IMX6 MFGtool download kernel error:'VFS: Cannot open root device "(null)" or unknown-block(0,0)'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 MFGtool download kernel error:'VFS: Cannot open root device "(null)" or unknown-block(0,0)'

1,191 Views
龙伟赖
Contributor I

hello everyone,

     I can download an uImage file with MFGtool, but when I rebuild a new uImage and download it with MFGtool, it shows following error:

VFS: Cannot open root device "(null)" or unknown-block(0,0)

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

b300         3866624 mmcblk0  driver: mmcblk

  b301         3856384 mmcblk0p1 00000000-0000-0000-0000-000000000000

b310            1024 mmcblk0boot1  (driver?)

b308            1024 mmcblk0boot0  (driver?)

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

[<80048854>] (unwind_backtrace+0x0/0xf8) from [<805260ec>] (panic+0x74/0x18c)

[<805260ec>] (panic+0x74/0x18c) from [<80008ce8>] (mount_block_root+0x170/0x224)

[<80008ce8>] (mount_block_root+0x170/0x224) from [<80008e84>] (mount_root+0xe8/0

x108)

[<80008e84>] (mount_root+0xe8/0x108) from [<80008fc4>] (prepare_namespace+0x120/

0x178)

[<80008fc4>] (prepare_namespace+0x120/0x178) from [<800089b0>] (kernel_init+0x10

8/0x13c)

[<800089b0>] (kernel_init+0x108/0x13c) from [<80042aa4>] (kernel_thread_exit+0x0

/0x8)

here are my bootenv:

bootdelay=3

baudrate=115200

ipaddr=192.168.1.103

serverip=192.168.1.101

netmask=255.255.255.0

loadaddr=0x10800000

rd_loadaddr=(0x10800000 + 0x300000)

netdev=eth0

ethprime=FEC0

uboot=u-boot.bin

kernel=uImage

nfsroot=/opt/eldk/arm

bootargs_base=setenv bootargs console=ttymxc0,115200 nosmp

bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp

bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm

bootargs_mmc=setenv bootargs ${bootargs} ip=off root=/dev/mmcblk0p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666  video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd=run bootcmd_mmc

ethact=FEC0

bootargs=console=ttymxc0,115200 nosmp ip=off root=/dev/mmcblk0p1 rootwait rw video=mxcfb1:dev=ldb,LDB-XGA,if=RGB666 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24

bootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 3; mmc read ${loadaddr} 0x800 0x2000; bootm

stdin=serial

stdout=serial

stderr=serial

need your nice help, thanks in advance.

Labels (1)
0 Kudos
2 Replies

549 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Longwei,

    It seems that the issue was generated by MFG Tools version or incomplete MFG tools. Every linux BSP version has its own related MFG Tools version, so you can't used it by mistake.

    My suggestion is to re-download MFG tools from our official website according to your linux BSP version. Accutally, from your log, rootfs in OS Firmware is not correct, so it was not loaded by linux kernel.

   Hope abvoe advice can help you !

Regards,

Weidong

0 Kudos

549 Views
龙伟赖
Contributor I

Hi Weidong,

Thanks for you help.

The worked kernel information is:

root@freescale ~$ cat /proc/version

Linux version 3.0.35-2666-gbdde708 (root@dchip) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #1 SMP PREEMPT Thu May 28 18:04:10 CST 2015

And the rebuilded linux kernel is also 3.0.35.

The rootfs is kept the same with the worked uimage, why it not work here?

Thanks

发件人: bounces+210748-53ac-lailongwei1985=163.com@jiveon.jivesoftware.com 代表 weidong.sun

发送时间: 2015年10月22日 11:24

收件人: 龙伟 赖

主题: Re: - IMX6 MFGtool download kernel error:'VFS: Cannot open root device "(null)" or unknown-block(0,0)'

<http://jiveon.jivesoftware.com/mpss/c/fwA/PDcDAA/t.1rh/C3lclpjpT9up9rFq4b18Qg/h0/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bQ-3D>

IMX6 MFGtool download kernel error:'VFS: Cannot open root device "(null)" or unknown-block(0,0)'

reply from Weidong Sun <http://jiveon.jivesoftware.com/mpss/c/fwA/PDcDAA/t.1rh/C3lclpjpT9up9rFq4b18Qg/h1/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bS3y2vRYSrRHJMazAcdRM6i-2Btkrwe-2BRgT7FgRqTlIZbdO0dOiK5iPv1BjohgpaJFOk-3D> in i.MX Community - View the full discussion <http://jiveon.jivesoftware.com/mpss/c/fwA/PDcDAA/t.1rh/C3lclpjpT9up9rFq4b18Qg/h2/eqhG5v9o4WV1pCmWaB03cUjBPgRj-2F3GoJUaXSZ409bRfgfN9Nw7q98oEzvVaApConpUzltaMu1ri-2BVeJJvoQZf6n-2BUL8AqvYbo4i38eSkto-3D>

0 Kudos