本帖最后由 oezz 于 2015-1-19 16:06 编辑
版主,您好!
我在设置imx6的nfs时,遇到下面的问题。设置好uboot环境变量,然后run bootcmd,出错。再print查看环境变量,发现 bootfile = (空的),但bootfile我之前设过=uImage的,而且还保存了的。
下面是打印信息,麻烦版主帮忙分析一下。
MX6SOLO SABREAUTO U-Boot > print
hdmi=setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
bootcmd_mmc_hdmi=run bootargs_base bootargs_mmc hdmi; mmc dev 2; mmc read ${loadaddr} 0x800 0x2000; bootm
filesize=38FEA0
fileaddr=10800000
dnsip=10.211.0.3
ethaddr=00:23:63:3f:28:10
gatewayip=192.168.1.1
bootdelay=3
baudrate=115200
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=(0x1300000)
netdev=eth0
ethprime=FEC0
uboot=u-boot.bin
kernel=uImage
bootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 3; mmc read &(loadaddr) 0x800 0x2000;bootm
ethact=FEC0
bootargs_mmc=setenv bootargs &{bootargs} root=/dev/mmcblk0p1 rootwait
serverip=192.168.1.116
ipaddr=192.168.1.124
bootargs_base=setenv bootargs console=ttymxc0,115200
bootcmd=dhcp; run bootcmd_net
bootcmd_net=run bootargs_base bootargs_nfs;bootm
nfsroot=/tftpboot/rootfs
bootargs=console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=192.168.1.116:/tftpboot/rootfs,vdev=ldb,LDB-XGA,if=RGB666 ldb=sin1
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 ldb=sin1
stdin=serial
stdout=serial
stderr=serial
bootfile=uImage
Environment size: 1147/8188 bytes
MX6SOLO SABREAUTO U-Boot > run bootcmd
FEC: Link is Up 796d
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 52
*** Unhandled DHCP Option in OFFER/ACK: 52
DHCP client bound to address 192.168.1.124
Using FEC0 device
TFTP from server 192.168.1.116; our IP address is 192.168.1.124
Filename ''.
Load address: 0x10800000
Loading: *
TFTP error: 'File not found' (1)
Starting again
FEC: Link is Up 796d
Abort
MX6SOLO SABREAUTO U-Boot > print
hdmi=setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24
bootcmd_mmc_hdmi=run bootargs_base bootargs_mmc hdmi; mmc dev 2; mmc read ${loadaddr} 0x800 0x2000; bootm
filesize=38FEA0
fileaddr=10800000
dnsip=10.211.0.3
ethaddr=00:23:63:3f:28:10
gatewayip=192.168.1.1
bootdelay=3
baudrate=115200
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=(0x1300000)
netdev=eth0
ethprime=FEC0
uboot=u-boot.bin
kernel=uImage
bootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 3; mmc read $(loadaddr) 0x800 0x2000;bootm
ethact=FEC0
bootargs_mmc=setenv bootargs &{bootargs} root=/dev/mmcblk0p1 rootwait
serverip=192.168.1.116
ipaddr=192.168.1.124
bootargs_base=setenv bootargs console=ttymxc0,115200
bootcmd=dhcp; run bootcmd_net
bootcmd_net=run bootargs_base bootargs_nfs;bootm
nfsroot=/tftpboot/rootfs
bootargs=console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=192.168.1.116:/tftpboot/rootfs,vdev=ldb,LDB-XGA,if=RGB666 ldb=sin1
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp video=mxcfb0:dev=ldb,LDB-XGA,if=RGB666 ldb=sin1
stdin=serial
stdout=serial
stderr=serial
bootfile=
Environment size: 1142/8188 bytes |