[U-Boot-Users] Bootargs for mtd and cramfs

Tales Toledo toledo.tales at gmail.com
Wed Jul 9 23:58:47 CEST 2008


Hi,

I'm trying to boot linux from flash with cramfs from a specific mtd partition.
Using fixed maps from /drivers/mtd/maps I had success but with command
line arguments I didn't.

I always get the following message:

VFS: Cannot open root device "mtdblock4" or 1f:04
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 1f:04

Does anybody know the right bootargs command line and/or root=
parameter should I use?

BTW, I'm using ELDK 3.1 with kernel 2.4.25.

Thx,
TT

Current u-boot configuration
-----------------------------------------
mtdids=nor0=flash0
mtdparts=mtdparts=flash0:256k(u-boot),64k(u-boot-env),768k(fpga),960k(kernel),5632k(cramfs),128k(cfg0),128k(cfg1),256k(log)
ipaddr=192.168.1.1
serverip=192.168.1.100
partition=nor0,4
mtddevnum=4
mtddevname=cramfs
bootcmd=tftp; bootm
bootargs=root=/dev/mtdblock4 ro rootfstype=cramfs
ip=192.168.1.1:192.168.1.100::::eth0




More information about the U-Boot mailing list