Hello everybody,
I want to use ubifs as the root filesystem on my evmdm365 board. But on the boot process I get lots of "ubi_io_read: error -74". Here is my approach:
After booting with nfs I attached /dev/mtd4 to the ubi device 0. Then I created volume "rootfs" to ubi device 0 and created an ubifs image of the filesystem with mkfs.ubifs and wrote it directly via mkfs.ubifs to the volume. To test it I mounted it to /mnt/nand without any problems. So I changed the kernel parameters in u-boot to:
ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs
The errors occur when ubi wants to attach the mtd device. But the PEB size, LEB size and so on are all ok. I get:
UBI: attaching mtd4 to ubi0
UBI: physical eraseblock size: 131072 bytes (128KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 0:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 1:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 4:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 4102:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 4103:0, read 64 bytes
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 4104:0, read 64 bytes
...
UBI error: ubi_io_read: error -74 while reading 64 bytes from PEB 5060:0, read 64 bytes
UBI: attached mtd4 to ubi0
UBI: MTD device name: "filesystem2"
UBI: MTD device size 1516 MiB
UBI: number of good PEBs: 12108
UBI: number of bad PEBs: 20
...
Then the boot process continues and I get the UBI error messages with error -74 in between. Although the boot process finishes an I see the logon screen it is impossible to logon because I get continuous UBI error messages. What could be the reason for the error messages?
By the way, before flashing the ubifs image to mtd4, the device was erased with "flash_eraseall /dev/mtd4". And before that, I formatted the device with ubiformat.
Regards,
Matthias