2014年6月9日 星期一

cubieboard nand-part

#get the sunxi-tools and compile up
cd /home
git clone git://github.com/linux-sunxi/sunxi-tools
cd sunxi-tools

#get usb library if not installed, and compile.
apt-get install libusb-1.0-0-dev
make clean
make


1。从SD卡进入CB2

2。查看nand的结构
  1. root@cubieboard2:~/# ./nand-part -f a20 /dev/nand
  2. check partition table copy 0: mbr: version 0x00000200, magic softw411
  3. OK
  4. check partition table copy 1: mbr: version 0x00000200, magic softw411
  5. OK
  6. check partition table copy 2: mbr: version 0x00000200, magic softw411
  7. OK
  8. check partition table copy 3: mbr: version 0x00000200, magic softw411
  9. OK
  10. mbr: version 0x00000200, magic softw411
  11. 5 partitions
  12. partition  1: class =         DISK, name =   bootloader, partition start =    32768, partition size =    65536 user_type=0
  13. partition  2: class =         DISK, name =          env, partition start =    98304, partition size =    32768 user_type=0
  14. partition  3: class =         DISK, name =         boot, partition start =   131072, partition size =    65536 user_type=0
  15. partition  4: class =         DISK, name =       rootfs, partition start =   196608, partition size =  4194304 user_type=0
  16. partition  5: class =         DISK, name =        UDISK, partition start =  4390912, partition size =  3342336 user_type=0
3。nand-part命令是:
  1. root@cubieboard2:~/# ./nand-part -f a20 /dev/nand 32768 "bootloader 65536" "env 32768" "boot 65536" "rootfs 7536640"
4。再来就是resize2fs
  1. root@cubieboard2:~/# fsck -f /dev/nandd
  2. root@cubieboard2:~/# resize2fs /dev/nandd
最后检查看:
  1. root@cubieboard:~# df -hl
  2. Filesystem      Size  Used Avail Use% Mounted on
  3. /dev/nandd      3.7G  939M  2.6G  27% /
  4. none            4.0K     0  4.0K   0% /sys/fs/cgroup
  5. none             91M  180K   91M   1% /run
  6. none            5.0M  4.0K  5.0M   1% /run/lock
  7. none            454M     0  454M   0% /run/shm
  8. none            100M     0  100M   0% /run/user

來源:http://forum.cubietech.com/forum.php?mod=viewthread&tid=1454
http://www.cubieforums.com/index.php?topic=72.0

沒有留言:

張貼留言

預測2031/1/1可能 TWCA 憑證 IOS會出現不信任

緣由: TWCA CYBER Root CA 有兩張、兩個效期 (2030、2047年到期) 推測TWCA 預計 2030年12月會停用: TWCA CYBER Root CA (2030 年到期) TWCA Global Root CA 改用啟用: TWCA CYBER ...