AnsweredAssumed Answered

ls1012a-frdm network not work

Question asked by oleg yankovich on Oct 18, 2017

Have a ls1012a-frdm board. Use kernel-fsl-ls1012a-frdm-20170329175402.itb from SDK v2.0-1703. I use ready file, I didn't build it with yocto. When I boot and config eth0 I can't ping anything. Seems like network subsystem didn't work.  I connect board and my host PC to the same switch, on PC I run wireshark and look at network activity. When I start pinging PC from board, I see no activity on wireshark, even no arp request from board. If look at the arp table at the board I see that board can't resolve IP of PC to mac. Before booting linux I download itb file from host PC to board using tftp command of uboot. So the network line is OK. After booting to linux I use the same IP that I use for tftp downloading.


Now what I do step by step.
md5sum kernel-fsl-ls1012a-frdm-20170329175402.itb
b614a6be23070c7e568a11b2c2e52225  kernel-fsl-ls1012a-frdm-20170329175402.itb


Board have some predefined firmware at SPI, after connecting to board via debug usb and reseting board I see next uboot output: .
env print: 


I give command:

tftp 0x96000000 kernel-fsl-ls1012a-frdm-20170329175402.itb

bootm 0x96000000

And here the output: 


Linux booted at the moment and I use manual configure eth0:
root@ls1012afrdm:~# ip addr add dev eth0
root@ls1012afrdm:~# ip link set eth0 up
[  193.227485] eth0: pfe_eth_open
[  193.230872] hif_process_client_req: register client_id 0
[  193.236254] pfe_hif_client_register
[  193.239752] eth0: pfe_gemac_init
root@ls1012afrdm:~# [  197.614743] eth0: Link is Up - 1Gbps/Full - flow control rx/tx


root@ls1012afrdm:~# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default
    link/sit brd
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 00:04:9f:04:e1:66 brd ff:ff:ff:ff:ff:ff
    inet scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::204:9fff:fe04:e166/64 scope link
       valid_lft forever preferred_lft forever
4: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 00:04:9f:04:e1:67 brd ff:ff:ff:ff:ff:ff




And I try to ping my PC:
root@ls1012afrdm:~# ping
PING ( 56(84) bytes of data.
From icmp_seq=1 Destination Host Unreachable
From icmp_seq=2 Destination Host Unreachable
From icmp_seq=3 Destination Host Unreachable
From icmp_seq=4 Destination Host Unreachable
From icmp_seq=5 Destination Host Unreachable
From icmp_seq=6 Destination Host Unreachable
--- ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6005ms
pipe 3
root@ls1012afrdm:~# arp -a
? ( at <incomplete> on eth0