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

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

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

933 Views
nabilb
Contributor I

Hello guys,

I am trying to boot my imx53-qsrb. I'm using a 4.0 kernel. I built u-boot, my kernel put the binaries on a fat16 partition of my Micro SD card. I downloaded a debian rootfs that I put it on the ext4 partition of my sd card. After booting my board here is the output :

U-Boot 2015.04-dirty (May 11 2015 - 15:58:04)                                                            
                                                                                                         
Board: MX53 LOCO                                                                                         
I2C:   ready                                                                                             
DRAM:  1 GiB                                                                                             
MMC:   FSL_SDHC: 0, FSL_SDHC: 1                                                                          
In:serial                                                                                            
Out:   serial                                                                                            
Err:   serial                                                                                            
Net:   FEC                                                                                               
Hit any key to stop autoboot:  0                                                                         
switch to partitions #0, OK                                                                              
mmc0 is current device                                                                                   
SD/MMC found on device 0                                                                                 
Checking for: /uEnv.txt ...                                                                              
reading /uEnv.txt                                                                                        
570 bytes read in 11 ms (49.8 KiB/s)                                                                     
Loaded environment from /uEnv.txt                                                                        
Checking if uenvcmd is set ...                                                                           
Running uenvcmd ...                                                                                      
reading zImage                                                                                           
5679310 bytes read in 115 ms (47.1 MiB/s)                                                                
** No boot file defined **                                                                               
Kernel image @ 0x70010000 [ 0x000000 - 0x5653c0 ]                                                        
                                                                                                         

Starting kernel ...

...

...

...

...

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

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

...

...

b302    

3837952 mmcblk0p2 b984de4c-02

[2.044505] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)            
[2.052784] drm_kms_helper: panic occurred, switching back to text console                            
[2.060619] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)   

[   25.153014] random: nonblocking pool is initialized

Thanks

0 Kudos
2 Replies

591 Views
igorpadykov
NXP Employee
NXP Employee

Hi Nabil

had you tried to add to kernel boot line

rootfstype=ext4

Best regards

igor

0 Kudos

591 Views
nabilb
Contributor I

Hi Igor,

Yes, I did that, here is my uEnv.txt :

#u-boot mmc (SDcard) boot

kernel_file= zImage

                                                                                                                                 

#mmc (SDcard for bbb) parameters

mmcdev=0

mmcpart=1

loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file}

loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} ${fdtfile}

#systemd boot

optargs=quiet init=/hello_s.out

console=ttyO0,115200n8

mmcroot=/dev/mmcblk0p2 rw

mmcrootfstype=ext4 rootwait fixrtc

mmcargs=setenv bootargs console=${console} root=${mmcroot} rootfstype=${mmcrootfstype} ${optargs}

#boot commands for compressed image kernel

uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - ${fdtaddr}

                                                                                                                            

In the first partition mmcblk0p1 I have my uEnv.txt and my zImage (I used a zImage combined with th fdt). In the second partition mmcblk0p2 I have the my rootfs. I tried with both, debian and a hello_s.out file which is a hello_world statically compiled. I always got he same error.

Nabil

0 Kudos