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

Am I doing something wrong?

Altera_Forum
Honored Contributor II
1,367 Views

I have a Microtronix uKit development board. 

 

I want to use jffs2 as my root filesystem. 

The mtd drivers correctly detect my 8MB flash and set it up with two partitions. 

One of them is at offset 0 and is 2MB in size. 

The other is at offset 0x200000 and is 6MB in size. 

I have used the mkfs.jffs2 tools to create a jffs2.bin of my filesystem. 

I have used the upload tool to upload jffs2.bin at offset 0x200000. 

The pass the kernel the argument of "root=/dev/mtdblock1". 

 

Is there something else I need to do in order to get this to work. 

Right now I'm getting the usual error: 

 

"Kernel panic: VFS: Unable to mount root fs on mtdblock1"
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
675 Views

Hmmm ... this sounds familiar -- I had a similar problem before I 

switched to cramfs. Unfortunately, I didn't keep good notes :-( 

but I believe I had to pass rootfstype=jffs2 as well. 

 

Anyway, there was another cmdline parameter that I needed ... sorry 

I can't be more specific ... give the above a try though. 

 

Regards, 

--Scott
0 Kudos
Altera_Forum
Honored Contributor II
675 Views

PS -- you also have to make sure your /dev/mtdblock1 inode has 

the correct major,minor numbers . 

--Scott
0 Kudos
Reply