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 !
ok ok ...!
now i' m trying to boot with the lcd ;)...
thank u a lot !
Wth the 'nfs' command you load the uImage over nfs at the loadaddr in memory.
The bootm command boots the loaded image
Thank u...it works...
Can u tell me the means of the :
setenv bootcmd_nfs 'run bootargs_base bootargs_nfs ; nfs ${loadaddr} ${serverip}:${nfsroot}/boot/uImage;bootm'
i've tried to search it on the linux user guide...but nothing....
Thank u again!
Marco
Your rootfs points to an nfs which the kernel seems to be unable to mount.
Try this something like this:
setenv nfsroot '/tools/rootfs/mx35/rootfs'
setenv bootargs_base 'setenv bootargs console=ttymxc0,115200 ip=${ipaddr}'
setenv bootargs_nfs 'setenv bootargs ${bootargs} root=/dev/nfs nfsroot=${serverip}:${nfsroot},v3,tcp'
setenv bootcmd_nfs 'run bootargs_base bootargs_nfs ; nfs ${loadaddr} ${serverip}:${nfsroot}/boot/uImage;bootm'
setenv bootcmd 'run bootcmd_nfs'
saveenv
Also check the obvious, ethernet connection and verify if the nfs server is running on you host