Cubieboard 装 linux 到 NAND

来源:互联网 发布:python 流量 预测 编辑:程序博客网 时间:2024/05/02 03:06


总体步骤

做一个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)


3.向分好的区copy系统文件。

  1).将新的分区mount起来    

cd /mntmkdir 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                                            
原创粉丝点击