|
最近在进行nand flash分区时遇到的问题,发现nand-part不起作用了,即不能产生/dev/nanda /dev/nandb.
1.wget https://cubieboard.googlecode.co ... partition_image.bin
2.dd bs=4096 if=cubie_nand_uboot_partition_image.bin of=/dev/nand
3.nand-part
check partition table copy 1: mbr: version 0x00000100, magic softw311 OK
check partition table copy 2: mbr: version 0x00000100, magic softw311 OK
check partition table copy 3: mbr: version 0x00000100, magic softw311 OK
mbr: version 0x00000100, magic softw311
2 partitions
partition 1: class = DISK, name = boot, partition start = 8, partition size = 1016 user_type=0
partition 2: class = DISK, name = root, partition start = 1024, partition size = 0 user_type=0
check partition table copy 0: mbr: version 0x00000100, magic softw311 OK
check partition table copy 1: mbr: version 0x00000100, magic softw311 OK
check partition table copy 2: mbr: version 0x00000100, magic softw311 OK
check partition table copy 3: mbr: version 0x00000100, magic softw311 OK
mbr: version 0x00000100, magic softw311
2 partitions
partition 1: class = DISK, name = boot, partition start = 8, partition size = 1016 user_type=0
partition 2: class = DISK, name = root, partition start = 1024, partition size = 0 user_type=0
貌似已经分区了,此时reboot.....
在启动信息中出现:
[ 1.233006] [NAND]nand driver, init.
[ 1.242626] nand clk init end
[ 1.259286] [NAND] nand gpio_request
[ 1.266200] [NAND] nand driver version: 0x2 0x9
[ 1.273346] nand interrupte register ok
[ 1.299901] nand clk init end
[ 1.375515] nand: unknown partition table
[ 1.382197] benn: nand probe enter
[ 1.387749] [NAND]nand driver, ok.
完全进入后,查看/dev下根本没产生/dev/nanda和nandb,
再nand-part一下出现的跟上面的一样,有2个分区,无解了!看别人都是写入cubie_nand_uboot_partition_image.bin这文件后重启就自动产生2个nanda和nandb节点了,求指点!
|
|