Hi,
I have booted my imx6 SABRE SDB evk from the sd card with Linux version 3.0.35-2508. The eth0 is not working . the light of eth0 blinks periodically
root@freescale /$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:9F:02:6C:A6
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Solved! Go to Solution.
The linux kernel was without ethernet. Activated by:
ipconfig eth0 up // to load the FEC driver
udhcpc // to obtain the IP address via DHCP when required.
and it works now..
thanks
Hello,Vishvapathi,
It seems that ethernet didn't get IP address. Did you add ip=dhcp in bootargs of u-boot environment ?
Regards,
Weidong
Hi Weidong,
Yes, i did set tht.. below is my env setting
MX6Q SABRESD U-Boot > printenv
bootdelay=3
baudrate=115200
ipaddr=192.168.1.103
serverip=192.168.1.101
netmask=255.255.255.0
loadaddr=0x10800000
rd_loadaddr=(0x1300000)
netdev=eth0
ethprime=FEC0
uboot=u-boot.bin
kernel=uImage
nfsroot=/opt/eldk/arm
bootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverp
bootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; boom
ethact=FEC0
bootargs_mmc=setenv bootargs ${bootargs} root=/dev/mmcblk1p1 rootwait rw init=/t
bootargs_base=console=ttymxc0,115200
bootargs=console=ttymxc0,115200 setenv bootargs ${bootargs} root=/dev/mmcblk1p1t
bootcmd_mmc=mmc dev 2;mmc read ${loadaddr} 0x800 0x2000;bootm
bootcmd=run bootcmd_mmc
stdin=serial
stdout=serial
stderr=serial
bootargs_base_mmc=root=/dev/mmcb1k1p1 rootfstype=ext3 rootwait rw ip=dhcp
root@freescale ~$ ifconfig eth0 up
eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=1:01, irq=-1)
root@freescale ~$ PHY: 1:01 - Link is Up - 100/Full
root@freescale ~$ ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:04:9F:02:6C:A6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:640 (640.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
LOOPBACK MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Hello,Vishvapathi,
Would you like to try the following settings in u-boot environment ?
setenv bootargs_base console=ttymxc0,115200
setenv bootargs_mmc 'setenv bootargs ${bootargs_base} root=/dev/mmcblk1p1 rootfstype=ext3 rootwait rw ip=dhcp'
setenv bootcmd_mmc 'run bootargs_mmc;mmc dev 2;mmc read ${loadaddr} 0x800 0x2000;bootm'
Regards,
Weidong
Hi Weidong,
After giving udhcpc command eth0 was enabled and now i am able to ping the server.
Thanks for your support
OK, Good Job !
Hi,Vishvapathi,
you forgot to select FEC driver ! :smileyhappy:
weidong
The linux kernel was without ethernet. Activated by:
ipconfig eth0 up // to load the FEC driver
udhcpc // to obtain the IP address via DHCP when required.
and it works now..
thanks