2010-03-16 07:16:34     Kernel panics : Cramfs as root file system

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

2010-03-16 07:16:34     Kernel panics : Cramfs as root file system

Santhosh Kumar (INDIA)

Message: 87251   

 

Am trying to use cramfs in flash memory as my root file system. When booted my bf527 device with vmImage, kernel panics with error message "Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"

 

Used referance   docs.blackfin.uclinux.org/doku.php?id=linux-kernel:cramfs.

 

Dont know what am missing here, my rootfs contents are bin  etc  home  lib  mnt  proc  root  sbin  sys  tmp  usr  var. Do i have to create /dev/console ?

 

Steps done:

 

1) Written my cramfs image(rootfs.cramfs) in one of my MTD flash partition(/dev/mtd2), using bootloader commands(protect off, erase, tftpboot and cp.b)

 

2) Set my bootargs as root=/dev/mtdblock2 ro rootfstye=cramfs

 

Posting error log below:

 

VFS: Cannot open root device "<NULL>" or unknown-block(0,0)

Please append a correct "root=" boot option; here are the available partitions:

1f00             256 mtdblock0 (driver?)

1f01             384 mtdblock1 (driver?)

1f02            7552 mtdblock2 (driver?)

1f03            7680 mtdblock3 (driver?)

1f04             512 mtdblock4 (driver?)

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

QuoteReplyEditDelete

 

 

2010-03-16 10:29:12     Re: Kernel panics : Cramfs as root file system

Mike Frysinger (UNITED STATES)

Message: 87264   

 

it's "rootfstype", not "rootfstye"

QuoteReplyEditDelete

 

 

2010-03-17 09:48:34     Re: Kernel panics : Cramfs as root file system

Santhosh Kumar (INDIA)

Message: 87328   

 

I tried "rootfstype" too, still kernel panics.

 

After kernel bootup, if same cramfs image written to mtd2 partition and mounted, cramfs succesfully mounts.

 

If bootloader passed with bootargs root=/dev/mtdblock2 ro rootfstype=cramfs, kernel panics at bootup

Attachments

    Outcomes