Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

jffs2 filesystem not correct

Altera_Forum
Honored Contributor II
1,721 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
982 Views

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 ---  

0 Kudos
Reply