Cubieboard 装 linux 到 NAND


总体步骤

做一个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 /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                                            
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值