Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

jffs2 filesystem not correct

hi

we use nios2 on 2C35. it okay with

kernel altera (cygwin) or linux with buildroot for kernel 2.6.11

but when i change kernelt for kernel2.6.17 for a test, kernel boot but i got this

jffs2_scan_eraseblock()

You cannot use older JFFS2 filesystems with newer kernels

(a lot)

........

Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes

empty_blocks 22, bad_blocks 0, c->nr_blocks 32

VFS: Cannot open root device "mtdblock0" or unknown-block(31,0)

Please append a correct "root=" boot option

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,0)

it's okay with root=/dev/mtdblock0 ro rootfstype=romfs init=/init

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif

Bests regards

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    but when i change kernelt for kernel2.6.17 for a test, kernel boot but i got this

    jffs2_scan_eraseblock()

    ....

    Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes

    empty_blocks 26, bad_blocks 0, c->nr_blocks 32

    jffs2 as some trouble

    what happen &#39;s ? is this kernel 2.6.17 ok with jffs2 ?

    futhermore, i try to use TMD utils i get each time

    erase or eraseall /dev/mtd0: MTD Erase failure: Input/output error

    hwat is wrong ? is this possible reason: If you get this message for each block than probably write protection is on. Check the WP pin

    Bests regards

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=21712)</div>

    --- Quote End ---