/* Mask to zero out thechip options, which come from the id table */
#defineNAND_CHIPOPTIONS_MSK(0x0000ffff &~NAND_NO_AUTOINCR)
/* Chip can not autoincrement pages */
#define NAND_NO_AUTOINCR0x00000001
找到问题了,解决办法就有了,注释掉红色的那行代码,就是他把NAND_NO_SUBPAGE_WRITE给丢掉了。
//chip->options &=~NAND_CHIPOPTIONS_MSK;
再重新编译下载kernel,问题搞定了!
再次启动开发板,加载ubi,一切正常了。
root@dm368-evm:/# ubiattach/dev/ubi_ctrl -m 3
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI: attached mtd3 to ubi0
UBI: MTD device name: "filesystem1"
UBI: MTD device size: 512 MiB
UBI: number of good PEBs: 4096
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 1
UBI: available PEBs: 3639
UBI: total number of reserved PEBs:457
UBI: number of PEBs reserved for badPEB handling: 40
UBI: max/mean erase counter: 2/1
UBI: image sequence number: 0
UBI: background thread"ubi_bgt0d" started, PID 1483
UBI device number 0, total 4096 LEBs(520093696 bytes, 496.0 MiB), available 3639 LEBs (462065664 bytes, 440.7 MiB),LEB size 126976 bytes (124.0 KiB)
root@dm368-evm:/# mount -tubifs ubi0_0 /mnt/nand/ -o sync
UBIFS: mounted UBI device 0, volume0, name "rootfs"
UBIFS: file system size: 51171328 bytes (49972 KiB, 48 MiB, 403 LEBs)
UBIFS: journal size: 2539520 bytes (2480 KiB, 2 MiB, 20 LEBs)
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/dianqi/article-51076-5.html
我们就出兵叙利亚对美国支持武装份子往死里狂轰滥炸出一口窝囊气
真心想去
感觉丢了面子