Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

After building buildroot with Kernelimage and rootfs (jffs2) i flashed them to my board.

bootargs set to: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2

Now when i boot i get the following error:

VFS: Cannot open root device "mtdblock1" or unknown-block(31,1) Please append a correct "root=" boot option; here are the available partitions: 1f00 256 mtdblock0 (driver?) 1f01 261888 mtdblock1 (driver?) 1f02 8448 mtdblock2 (driver?) Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,1)

anyone know what went wrong?

best regards

share|improve this question
up vote 1 down vote accepted

Check your kernel configuration. This message means that the kernel doesn't have a driver for what you've told it is the root device. Your command line looks plausible, so make sure you've included MTD block device support in the kernel (not as a module). Make sure you have jffs2 in the kernel as well.

share|improve this answer
    
well i am using a default config which should do fine, the following options are set: CONFIG_MTD=y CONFIG_MTD_CONCAT=y CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_DATAFLASH=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y – Gobliins Dec 9 '10 at 7:40
    
for jffs2 i included CONFIG_JFFS2=y – Gobliins Dec 9 '10 at 7:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .