总体步骤
做一个SD卡上的linux系统 -> 在SD卡系统上安装新的系统到NAND上。
这里主要说第二步
1.进入SD卡上的系统(建议用VNC的方式)。
2.给NAND分区。
1).用NAND-PART工具,除了第一个分区,想怎么分就怎么分。
这里为了方便采用第二种。
2).用官方nand boot parttion image(http://dl.cubieforums.com/loz/boot_partition/bootloader/cubie_nand_uboot_partition_image.bin)(1).下载后写到/dev/nand上
dd if=./cubie_nand_uboot_partition_image.bin of=/dev/nand
(2). 重启后(重启系统才能认到新分的区),将分好的区格式化为ext4格式(mkfs.ext4 /dev/nandb)
1).将新的分区mount起来
cd /mnt
mkdir nandb
mount /dev/nandb /mnt/nandb
2).将build好的系统copy到nandb.(https://releases.linaro.org/13.03/ubuntu/quantal-images/server)3).copy uImage到/boot下.uImage可以是自己从sunxi-bsp build出来的,也可以是下载的(http://dl.cubieforums.com/loz/kernels/latest/uImage).
4).将从sunxi-bsp build出来的驱动等copy到相应文件夹。
sunxi-bsp/build/cubieboard_hwpack/rootfs 下 -> /mnt/nandb 对应文件夹下
4.拨出SD卡,重新上电即可从NAND启动。
注意:
1.copy 文件时注意权限的更改,不然可能导致读不到文件,而无法启动。
http://linux-sunxi.org/Cubieboard/FirstSteps
http://linux-sunxi.org/Cubieboard/Installing_on_NAND