This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ezsdk5.05 dm8168关于ubi挂载不上的问题



Hi all:

   

       芯片是dm8168,原来采用的是官方EVM板上的256MB的nand flash ,产品需要,换了4GB的大flash,根据手册要求,选用MT29F32G08CBAAA这块芯片:

页大小和块大小都符合dm8168手册的要求( blocksize = 524288, pagesize = 4096, oobsize = 218, chipsize = 4GB)。

      我用的环境是:ezsdk  5.05   (校验都是bch8)

      现在的状况是:

            1、在修改内核和u-boot相关代码后,linux已经可以对这块nand进行正常读写;

            2、我们要将mtd5的nand分区挂载到 /mnt/ubifs目录下,使用了如下指令:

flash_eraseall /dev/mtd5

ubiattach /dev/ubi_ctrl -m 5

ubimkvol /dev/ubi0 -N userfs -s 32MiB

echo "mount!!!!"

mount -t ubifs -o sync ubi0:userfs /mnt/ubifs

            3、前3条指令都没有报错,执行mount的时候会报错:

UBI device number 0, total 127 LEBs (65544192 bytes, 62.5 MiB), available 121 LEBs (62447616 bytes, 59.6 MiB), LEB size 516096 bytes (504.0 KiB)
Volume ID 0, size 66 LEBs (34062336 bytes, 32.5 MiB), LEB size 516096 bytes (504.0 KiB), dynamic, name "userfs", alignment 1
mount!!!!
UBIFS: default file-system created
UBIFS error (pid 1152): ubifs_read_node: bad node type (0 but expected 6)
UBIFS error (pid 1152): ubifs_read_node: bad node at LEB 0:0, LEB mapping status 1
mount: wrong fs type, bad option, bad superblock on ubi0:userfs,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail or so
        4、我用evm板的nand flash挂载的时候就没有问题:
UBI device number 0, total 512 LEBs (65011712 bytes, 62.0 MiB), available 503 LEBs (63868928 bytes, 60.9 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 265 LEBs (33648640 bytes, 32.1 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "userfs", alignment 1
mount!!!!
UBIFS: default file-system created
UBIFS: mounted UBI device 0, volume 0, name "userfs"
UBIFS: file system size: 32505856 bytes (31744 KiB, 31 MiB, 256 LEBs)
UBIFS: journal size: 1650688 bytes (1612 KiB, 1 MiB, 13 LEBs)
UBIFS: media format: w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root: 1535331 bytes (1499 KiB)
        请问,这可能是什么问题呢?是ezsdk这个版本的ubi不支持4k页大小的flash吗?
谢谢!