Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

jffs2 errors

Hello!

I got my OMAP3EVM one week ago, so I'm pretty inexperienced with omap and also linux.

I followed the "Before the Gettin-Started-Guide" - works fine. I also did most of the Getting-Started-Guide, but there begin my problems.

1) After stopping the Auto-Boot, i can't "ls". This error occurs:

OMAP3_EVM # ls
Scanning JFFS2 FS: / get_fl_mem_nand: can't alloc -2146199486 bytes
off = 0x815c0c magic 0x1985 type 0xb922 node.totlen = -2146199486

 

2) Using TFTP to boot the New Linux Kernel: My uImage can be found on the server, but while loading, this happens:

[...]

<5>Further such events for this erase block will not be printed
Further such events for this erase block will not be printed
<4>Old JFFS2 bitmask found at 0x000fcb2c
Old JFFS2 bitmask found at 0x000fcb2c
<4>You cannot use older JFFS2 filesystems with newer kernels
You cannot use older JFFS2 filesystems with newer kernels

[...]

<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40000: 0x8973 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40000: 0x8973 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40004: 0xb4c7 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40004: 0xb4c7 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40008: 0x2fbe instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40008: 0x2fbe instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a4000c: 0xcce2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a4000c: 0xcce2 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40010: 0xbefa instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40010: 0xbefa instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40014: 0x4b5a instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40014: 0x4b5a instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40018: 0xdf19 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40018: 0xdf19 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a4001c: 0xd74d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a4001c: 0xd74d instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40020: 0x6cc8 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40020: 0x6cc8 instead
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40024: 0x2bd3 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00a40024: 0x2bd3 instead
<5>Further such events for this erase block will not be printed
Further such events for this erase block will not be printed
<4>Empty flash at 0x09488040 ends at 0x09488800
Empty flash at 0x09488040 ends at 0x09488800
<4>Empty flash at 0x0e823010 ends at 0x0e823800
Empty flash at 0x0e823010 ends at 0x0e823800
<4>Empty flash at 0x0e82b0f8 ends at 0x0e82b800
Empty flash at 0x0e82b0f8 ends at 0x0e82b800
<5>jffs2_scan_eraseblock(): Node at 0x0e8307f8 {0x1985, 0xe001, 0x0000002f) has invalid CRC 0xe0021985 (calculated 0xf244f9b1)
jffs2_scan_eraseblock(): Node at 0x0e8307f8 {0x1985, 0xe001, 0x0000002f) has invalid CRC 0xe0021985 (calculated 0xf244f9b1)
<5>jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0e8307fc: 0x002f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0e8307fc: 0x002f instead
VFS: Mounted root (jffs2 filesystem) on device 31:4.
VFS: Mounted root (jffs2 filesystem) on device 31:4.
<6>Freeing init memory: 156K
Freeing init memory: 156K
<4>Warning: unable to open an initial console.
Warning: unable to open an initial console.
<0>Kernel panic - not syncing: No init found.  Try passing init= optio

I think that Problem 1) and 2) are somehow connected?

My setenv's (i had to change it a bit, because i have no dhcp server running):

setenv serverip 192.168.0.30
setenv ipaddr 192.168.0.20
setenv bootfile uImage
setenv bootargs mem=99M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2 mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y
setenv bootcmd 'tftpboot 0x80000000 uImage;bootm'

It would be great if someone could help me out here.

  • Hi Abraxas,

              1. ls command does not exist in the u-boot, it is available in the linux kernel

              2. You can try out the below mentioned bootargs (environment variables): The issue seems to be the mismatch b/w the filesystem and the kernel image.

     

    setenv serverip (severip)
    setenv ipaddr (ipaddress)
    setenv gatewayip (gatewayip)
    setenv bootargs mem=128M console=ttyS0,115200n8 noinitrd root=/dev/mtdblock4 rw rootfstype=jffs2
    tftp 0x80000000 uImage

     

    Note : Make sure you use the appropriate filesystem for the appropriate kernel.

     

    Regards,

    N.S.SriHarsha

     

     

  • Thx for your help! :)

     

    Unfortunately, your suggestion didn't help either.

     

    But i figured out how i can boot with NFS (I haven't tryed tftp). In short terms, i forgot the ip=<target ip>... So stupid! Eventually someone can use my nfs-boot sequence as well:

     

    setenv nand_kernel nand read.i 0x80000000 280000 300000
    setenv get_kernel run nand_kernel
    setenv bootcmd 'run get_kernel;bootm 0x80000000'
    setenv nfshost <host ip>
    setenv serverip <host ip, same as above>
    setenv rootpath /home/<username>/workdir/filesys
    setenv ipaddr <board ip>
    setenv bootargs console=ttyS0,115200n8 noinitrd rw root=/dev/nfs nfsroot=$(nfshost):$(rootpath),nolock mem=99M mpurate=600 omapfb.rotate=1 omapfb.rotate_type=1 omap_vout.vid1_static_vrfb_alloc=y ip=<board ip, same as above>