Hi guys,
I am facing a critical issue and I really need your help. Currently, my i.MX35 pdk boots through NFS and the kernel (2.6.31 09-12) is loaded successfully; however I need to boot the board and load the kernel through NAND Flash. I followed exactly the steps found in the "i.MX35 PDK 2009.12 Linux User's Guide" but with no success. I get the following error:
"VFS: Cannot open root device "<NULL>" or unknown block (2,0), kernel panic unable to mount rootfs on unknown block".
What am I doing wrong?
Thank you so much in advance.
Sam Zak
Hi,
you'll need root=/dev/mtdblockX type of parameter to kernel to tell it where to look for the root files system. You probably have something in your run script in u-boot wrong so that not all parameters are set well...
Vladan
Hey Vladan,
Thank you for your help. For some reason I can't see all of your reply. The same command line works for NFS boot and this is what it is specified in the user guide. Sometimes I feel the user guide provided by Freescale is always missing. What kind of extra parameters should I specify?
Thank you.
Sam
The problem you have is due to wrong command line to kernel. If you check kernel output in bootcmd_nand.txtit says:
Kernel command line: noinitrd console=ttymxc0,115200 This is obviously wrong. You want to specify additional parameters here, one of which is of course the root=/dev/mtdblockX parameter. vladan
Hey guys,
Can some one please help me solve my problem. This is a summary of the steps that I followed to boot the imx35 PDK board by NAND:
1 - tftpboot ${loadaddr} uImage (loadaddr is 0x80100000)
2 - nand erase 0x300000 0x250000
3 - nand write ${loadaddr} 0x300000 0x250000
4 - tftpboot ${loadaddr} rootfs.jffs2
5 - nand erase 0x800000 0xb80000
6 - nand write ${loadaddr} 0x800000 0xb80000
7 - setenv bootargs_nand 'setenv bootargs_base ${bootargs} root=/dev/mtdblock8 rw ip=192.168.1.20:192.168.1.100:192.168.1.100:255.255.255.0 rootfstype=jffs2'
8 - setenv bootcmd_nand 'run bootargs_base bootargs_nand; nand read ${loadaddr} 0x300000 0x250000;bootm'
Please I would really appreciate any kind of help. Thank you in advance!
Sam
Can you attach a full console output log so we can see all messages printed out by uboot and linux kernel during startup?
Vladan