#get the sunxi-tools and compile upcd /homegit clone git://github.com/linux-sunxi/sunxi-toolscd sunxi-tools#get usb library if not installed, and compile.apt-get install libusb-1.0-0-devmake cleanmake
1。从SD卡进入CB2
2。查看nand的结构
- root@cubieboard2:~/# ./nand-part -f a20 /dev/nand
- check partition table copy 0: mbr: version 0x00000200, magic softw411
- OK
- check partition table copy 1: mbr: version 0x00000200, magic softw411
- OK
- check partition table copy 2: mbr: version 0x00000200, magic softw411
- OK
- check partition table copy 3: mbr: version 0x00000200, magic softw411
- OK
- mbr: version 0x00000200, magic softw411
- 5 partitions
- partition 1: class = DISK, name = bootloader, partition start = 32768, partition size = 65536 user_type=0
- partition 2: class = DISK, name = env, partition start = 98304, partition size = 32768 user_type=0
- partition 3: class = DISK, name = boot, partition start = 131072, partition size = 65536 user_type=0
- partition 4: class = DISK, name = rootfs, partition start = 196608, partition size = 4194304 user_type=0
- partition 5: class = DISK, name = UDISK, partition start = 4390912, partition size = 3342336 user_type=0
3。nand-part命令是:
- root@cubieboard2:~/# ./nand-part -f a20 /dev/nand 32768 "bootloader 65536" "env 32768" "boot 65536" "rootfs 7536640"
4。再来就是resize2fs
- root@cubieboard2:~/# fsck -f /dev/nandd
- root@cubieboard2:~/# resize2fs /dev/nandd
最后检查看:
- root@cubieboard:~# df -hl
- Filesystem Size Used Avail Use% Mounted on
- /dev/nandd 3.7G 939M 2.6G 27% /
- none 4.0K 0 4.0K 0% /sys/fs/cgroup
- none 91M 180K 91M 1% /run
- none 5.0M 4.0K 5.0M 1% /run/lock
- none 454M 0 454M 0% /run/shm
- 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
留言
張貼留言