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.

OMAP L138 and UBIFS on 2.6.33-rc4

Other Parts Discussed in Thread: OMAP-L138

Hi

I try to use UBIFS as root file system  on NAND and I see something  strange on 2.6.33-rc4

The file system is mounted as a read-write and when it boots up for first time everything is fine, but after the first reboot I have a file system crash! And it happens always.

emac-mii: probed
omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:35 UTC (946684835)
UBI error: ubi_io_read: error -74 while reading 126976 bytes from PEB 3:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 while reading 126976 bytes from PEB 4:4096, read 126976 bytes
UBI error: ubi_io_read: error -74 while reading 11 bytes from PEB 10:6144, read 11 bytes
VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             128 mtdblock0 (driver?)
1f01             128 mtdblock1 (driver?)
1f02             512 mtdblock2 (driver?)
1f03            4096 mtdblock3 (driver?)
1f04          518144 mtdblock4 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Backtrace:
[<c0031730>] (dump_backtrace+0x0/0x114) from [<c03664b8>] (dump_stack+0x18/0x1c)
 r7:00008000 r6:c1c14000 r5:c0025a08 r4:c0499d18
[<c03664a0>] (dump_stack+0x0/0x1c) from [<c0366520>] (panic+0x64/0x13c)
[<c03664bc>] (panic+0x0/0x13c) from [<c0008fec>] (mount_block_root+0x1e0/0x220)
 r3:00000001 r2:00000001 r1:c1c23f78 r0:c0400c86
[<c0008e0c>] (mount_block_root+0x0/0x220) from [<c00091bc>] (prepare_namespace+0x94/0x1c8)
 r8:00000000 r7:00000000 r6:00000000 r5:c0025a08 r4:c0025a18
[<c0009128>] (prepare_namespace+0x0/0x1c8) from [<c00084c8>] (kernel_init+0xf0/0x12c)
 r5:00000000 r4:c0499440
[<c00083d8>] (kernel_init+0x0/0x12c) from [<c004536c>] (do_exit+0x0/0x6b4)

 

Does anyone of you has used UBIFS with NAND on OMAP 138L EVM LOGIC board?

The software hasn't changed at all, as it comes from TI, just enabled NAND support and UBI/UBIFS

Thank you

 

 

  • Hi,

     

    What happens if you mount the partition from linux command line repeatedly. Don't mount it through bootargs. Instead mount it from command line and check.

     

    Also, there is a UBIFS support page tested for AM335x platform http://processors.wiki.ti.com/index.php/UBIFS_Support

    This *could* be relevant to OMAP-L138 also. Can you try the methods given there.

     

    Regards

    Gururaja

  • Hi,

    I followed the steps mentioned in http://processors.wiki.ti.com/index.php/UBIFS_Support and was able to boot up the Logic PD OMAP-L138 EVM without any problem multiple times. The bootargs I used from U-Boot are as below:

    setenv bootargs mem=32M console=ttyS2,115200n8 root=ubi0:rootfs rw rootfstype=ubifs ubi.mtd=4,2048 ip=dhcp

    Regards, Sudhakar

  • Hello Sudhakar,

    Thank you for posting that. Could you please attach your linux kernel config file that you have used?

    Ragards,

    Andreas 

  • Hi Andreas,

    I have attached the config file.

    Regards, Sudhakar

  • Hi Andreas,

    One more important thing to note is the version of mkfs.ubifs utility being used on the host system to generate the UBIFS file system. We observed that when we used version 1.3 the EVM would not boot but everything worked fine when we used version 1.4.8.

    Regards, Sudhakar

  • Hi Sudhakar,

    Thanks for helping on that. I will reproduce your steps and get back to the forum.

    Regards, Andreas