SD卡的系统:Cubietruck_Debian_2.8_wheezy
然后刷入NAND,之后做了些软件修改,没动分区表,现在想备份NAND到一个IMG好用PhoenixSuit直接刷入其他板子
我是按照论坛上的http://forum.cubietech.com/forum.php?mod=viewthread&tid=1918这个帖子操作的
一路操作都很成功
以下是我的步骤
./imgrepacker ct-lubuntu-server-nand-v2.0.img
cp rootfs.fex ct-lubuntu-server-nand-v2.0.img.dump/_iso/rootfs.fex.iso
cp rootfs.fex ct-lubuntu-server-nand-v2.0.img.dump/rootfs.fex
nand1_bak目录是我备份的NAND的nand1
../sunxi-tools/bin2fex nand1_bak/script.bin sys_config.fex
cp sys_config.fex ct-lubuntu-server-nand-v2.0.img.dump/
mount -t vfat ct-lubuntu-server-nand-v2.0.img.dump/_iso/bootloader.fex.iso /mnt/bootloader
cp nand1_bak/* /mnt/bootloader
cp nand1_bak/* /mnt/bootloader/linux
umount /mnt/bootloader
cp sys_partition.fex ct-lubuntu-server-nand-v2.0.img.dump/
sys_partition.fex我做了修改如下- [mbr]
- size = 32768
- [partition_start]
- [partition]
- name = bootloader
- size = 131072
- downloadfile = "bootloader.fex"
- verify = 1
- [partition]
- name = rootfs
- size = 14680064
- downloadfile = "rootfs.fex"
- verify = 1
复制代码 我需要备份的nand系统里面分区数据如下- partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 32768 user_type=0
- partition 2: class = DISK, name = rootfs, partition start = 65536, partition size = 0 user_type=0
复制代码- Filesystem 1K-blocks Used Available Use% Mounted on
- rootfs 7369792 1077868 5917552 16% /
- /dev/root 7369792 1077868 5917552 16% /
- devtmpfs 1023456 0 1023456 0% /dev
- tmpfs 131072 228 130844 1% /run
- tmpfs 5120 0 5120 0% /run/lock
- tmpfs 131072 0 131072 0% /run/shm
- /dev/nand1 16334 11170 5164 69% /boot
- tmpfs 1048576 0 1048576 0% /tmp
- /dev/root 7369792 1077868 5917552 16% /var/log.hdd
- ramlog-tmpfs 524288 2348 521940 1% /var/log
复制代码 a31sdk-tools/pack/pctools/linux/mod_update/script ct-lubuntu-server-nand-v2.0.img.dump/sys_partition.fex
a31sdk-tools/pack/pctools/linux/mod_update/update_mbr ct-lubuntu-server-nand-v2.0.img.dump/sys_partition.bin
cp dlinfo.fex ct-lubuntu-server-nand-v2.0.img.dump/
cp sunxi_mbr.fex ct-lubuntu-server-nand-v2.0.img.dump/
./imgrepacker ct-lubuntu-server-nand-v2.0.img.dump
|