Marco Di Vivo

Kernel Panic...booting from NFS

Discussion created by Marco Di Vivo on Mar 9, 2011
Latest reply on Mar 10, 2011 by Christophe Ostermann

Hi everybody...

 

I'm trying to boot my kernel from NFS... i have some problem with env. variables on Uboot. I set the following variables :

 

setenv bootargs_nfs
setenv bootcmd_net
setenv bootargs_base
setenv uboot_addr
setenv uboot
setenv kernel
setenv load_uboot
setenv serverip 192.168.0.2
setenv ipaddr 192.168.0.100
setenv nfsroot /home/marco/ltib/rootfs

and add this for DVI(all in one shot) :

setenv bootargs console=ttymxc0,115200 video=mxcdi0fb:RGB24,1024x768M-16@60 di1_primary root=/dev/nfs ip=$(ipaddr) nfsroot=192.168.0.2:$/home/marco/Scrivania/work/ltib/rootfs,v3,tcp

boot

 

this is my printenv list :

 

BBG U-Boot > printenv
bootdelay=3
baudrate=115200
loadaddr=0x90800000
netdev=eth0
ethprime=FEC0
ethact=FEC0
nfssetenv=bootargs consolserverip):,v3,tc
bootcmd=mmc read 0 $(loadaddr) 2000 2000; bootm
serverip=192.168.0.2
ipaddr=192.168.0.100
nfsroot=/tftpboot/fs_imx51
bootargs=console=ttymxc0,115200 video=mxcdi0fb:RGB24,1024x768M-16@60 di1_primary root=/dev/nfs ip=192.168.0.100 nfsroot=192.168.0.2:/home/marco/ltib/rootfs,v3,tp
stdin=serial
stdout=serial
stderr=serial

Environment size: 444/131068 bytes

 

this is the error while booting(last rows) :

 

IP-Config: Complete:                                                                                                                           
     device=eth0, addr=192.168.0.100, mask=255.255.255.0,          gw=255.255.255.255,host=192.168.0.100, domain=, nis-domain=(none),                                                                                           
     bootserver=255.255.255.255, rootserver=192.168.0.2, rootpath=                                                                             
Looking up port of RPC 100003/3 on 192.168.0.2
PHY: 0:00 - Link is Up - 100/Full
Looking up port of RPC 100005/3 on 192.168.0.2
Root-NFS: Server returned error -13 while mounting /home/marco/ltib/rootfs
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)                       
Please append a correct "root=" boot option; here are the available partitions:
1f00            1024 mtdblock0 (driver?)
1f01            3200 mtdblock1 (driver?)
b300         3872256 mmcblk0 driver: mmcblk
b301         3868160 mmcblk0p1
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

 

I can't know what is the problem... i tried to modify with chmod the /rootfs..but nothing...

 

Can anyone help me ??

Thanks a lot !

Outcomes