ls1012a-frdm network not work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ls1012a-frdm network not work

806 Views
olegyankovich
Contributor I

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: https://pastebin.com/raw/kVk8FuCH .
env print:  https://pastebin.com/raw/hGuZtcPH 

I give command:

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

bootm 0x96000000

And here the output: https://pastebin.com/raw/zdmhtgjC 

Linux booted at the moment and I use manual configure eth0:
root@ls1012afrdm:~# ip addr add 10.0.2.112/22 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 127.0.0.1/8 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 0.0.0.0 brd 0.0.0.0
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 10.0.2.112/22 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 10.0.2.110
PING 10.0.2.110 (10.0.2.110) 56(84) bytes of data.
From 10.0.2.112 icmp_seq=1 Destination Host Unreachable
From 10.0.2.112 icmp_seq=2 Destination Host Unreachable
From 10.0.2.112 icmp_seq=3 Destination Host Unreachable
From 10.0.2.112 icmp_seq=4 Destination Host Unreachable
From 10.0.2.112 icmp_seq=5 Destination Host Unreachable
From 10.0.2.112 icmp_seq=6 Destination Host Unreachable
^C
--- 10.0.2.110 ping statistics ---
7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6005ms
pipe 3
root@ls1012afrdm:~# arp -a
? (10.0.2.110) at <incomplete> on eth0

0 Kudos
Reply
0 Replies