2008-10-15 11:15:22     Kernel will not mount JFFS2 - BF561

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-15 11:15:22     Kernel will not mount JFFS2 - BF561

John Redford (UNITED KINGDOM)

Message: 63723   

 

Hi, I keep getting the error:

 

List of all partitions:

No filesystem could mount root, tried:

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

 

I have read many posts on the forum regarding the kernel configuration etc etc, but everything seems in order, and the filesystem can be displayed correctly using 'ls' in uBoot. I really don't know what to try next...

 

I have attached the error log and BF561 kernel config file

 

error.txt

BF561-EZKIT_defconfig

QuoteReplyEditDelete

 

 

2008-10-15 17:28:36     Re: Kernel will not mount JFFS2 - BF561

Robin Getz (UNITED STATES)

Message: 63726   

 

John:

 

> Kernel command line: roo=/dev/mtdblock0 rw

 

You are setting "roo" - you need to set "root".

 

And it does not look like you have your maps defined properly - you should get a list of mtd blocks in the kernel startup.

 

I would point you to the docs - which explain this - But it is down atm - and we are getting it back up...

 

 

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-15 21:30:10     Re: Kernel will not mount JFFS2 - BF561

Robin Getz (UNITED STATES)

Message: 63737   

 

John:

 

Now the docs are back up:

 

https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd#partitioning

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-16 05:14:06     Re: Kernel will not mount JFFS2 - BF561

John Redford (UNITED KINGDOM)

Message: 63775   

 

Hi, I have read the docs regarding partitioning and I am pretty sure I have enabled everything in the kernel configuration options that I am supposed to. However I am still getting no list of MTD partitions.

 

Do I need to manually configure the 3 partition sizes before compiling the kernel or will they automatically be detected?

 

This leads me to believe that the following:

 

Assuming you've enabled the kernel configuration option, you can override the default layout that is in the board resources by using the kernel command line. For example:

 

bootargs=mtdparts=FLASH-DRIVER:256k(uboot)ro,1792k(kernel),-(rootfs)

 

How can I use this? Do I use it to setenv at the uBoot command line, or pre-compiling stage?

 

 

 

The board I am using is the BF561 EZKIT

 

Thanks in advance,

 

John Redford.

 

error2.txt

BF561-EZKIT_defconfig

QuoteReplyEditDelete

 

 

2008-10-16 11:17:01     Re: Kernel will not mount JFFS2 - BF561

John Redford (UNITED KINGDOM)

Message: 63793   

 

Please can someone offer some hints for this problem, because I have exhaustively read through the forum

 

I am completely stuck and am unable to progress to the next stage of my task

 

I have started with a fresh config, and added the relevant drivers to the config as described in the wiki. Still i get the:

 

No filesystem could mount root, tried:

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

 

error message and the kernel fails to mount the jffs2 filesystem.

 

 

 

Thanks in advance for any information

 

 

 

John Redford.

QuoteReplyEditDelete

 

 

2008-10-16 14:43:17     Re: Kernel will not mount JFFS2 - BF561

Robin Getz (UNITED STATES)

Message: 63804   

 

John:

 

Until you get the maps printing out - the only thing to suggest is to re-read the docs.

 

https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd#board_examples

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-17 00:47:07     Re: Kernel will not mount JFFS2 - BF561

Mike Frysinger (UNITED STATES)

Message: 63834   

 

he isnt even that far ... the docs state that you first need a flash driver.  if you dont have a flash driver, then none of the partitioning information will get utilized at all.

Outcomes