Hi everyone:
Recently I tested TFTP and NFS on my imx6Q, I found that if I download kernel from tftp, it can't get ethaddr.
So if I want to boot from NFS
tftpboot ${loadaddr} ${kernel}
lacking of ethaddr will cause :
IP-Config: Failed to open eth0 IP-Config: Device `eth0' not found.
And if I want to boot from local rootfs, I'll get 00:00:00:00:00:00 eth0 addr.
But if I boot from local kernel
mmc dev 0;mmc read ${loadaddr} 0x800 0x2000
Everything goes well.
All the environments are as below:
MX6Q SABRESD U-Boot > printenv bootdelay=3 baudrate=115200 rd_loadaddr=(0x1300000) netdev=eth0 ethprime=FEC0 uboot=u-boot.bin kernel=uImage ethact=FEC0 bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 0;mmc read ${loadaddr} 0x800 0x2000;bootm bootargs=console=ttymxc0,115200 root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=lcd,1440x900,if=RGB24 bootmd_mmc=run bootargs_0x800 0x2000;bootm bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=lcd,1440x900,if=RGB24 bootcmd_mmc=run bootargs_base bootargs_mmc;mmc dev 0;mmc read ${loadaddr} 0x800 0x2000;bootm loadaddr=0x10800000 bootfile=uImage bootargs_base=setenv bootargs console=ttymxc0,115200 netmask=255.255.255.0 serverip=172.16.4.73 ipaddr=172.16.4.75 gatewayip=172.16.4.254 fec_addr=00:04:9f:00:03:13 ethaddr=00:04:9f:00:03:13 nfsroot=/opt/nfs/rootfs bootcmd=run bootcmd_net bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm bootargs_nfs=setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p1 rootwait rw video=mxcfb0:dev=lcd,1440x900,if=RGB24 root=/dev/nfs ip=172.16.4.75:172.16.4.73:172.16.4.254:255.255.255.0::eth0 off nfsroot=172.16.4.73:/opt/nfs/rootfs,v3,tcp nwhwconf=device:eth0,hwaddr:00:04:9f:00:03:13 video=mxcfb0:dev=lcd,1440x900,if=RGB24 stdin=serial stdout=serial stderr=serial
Comparing local kernel and TFTP kernel log:
Original Attachment has been moved to: Compare.txt.zip