NAND boot support for i.MX35 PDK

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

NAND boot support for i.MX35 PDK

1,243 Views
SZK
Contributor I

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

Tags (1)
0 Kudos
6 Replies

1,057 Views
VladanJovanovic
NXP Employee
NXP Employee

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

0 Kudos

1,057 Views
SZK
Contributor I

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

0 Kudos

1,057 Views
VladanJovanovic
NXP Employee
NXP Employee

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

					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos

1,057 Views
SZK
Contributor I

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

0 Kudos

1,057 Views
SZK
Contributor I

Hi Vladan,

 

I have attached the u-boot environment in "mx35_u-boot.txt" and the linux startup in "bootcmd_nand.txt". I would really appreciate any kind of help you can provide. Thank you!

 

Sam

0 Kudos

1,057 Views
VladanJovanovic
NXP Employee
NXP Employee

Can you attach a full console output log so we can see all messages printed out by uboot and linux kernel during startup?

 

Vladan

0 Kudos