OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
28 stars 45 forks source link

nuc980 networking support not work #23

Closed ATmega8 closed 4 years ago

ATmega8 commented 4 years ago

I used nuc980_iot_defconfig configuration and added

CONFIG_CMD_PING=y
CONFIG_CMD_DHCP=y
CONFIG_NETDEVICES=y
CONFIG_NUC980_ETH=y
CONFIG_NUC980_EMAC0=y
CONFIG_NUC980_PHY_ADDR=0

added

ipaddr=192.168.0.100
ethaddr=10:20:30:40:50:60 

to env.txt

but,I try to execute

ping 192.168.0.1

in the command line。command line seems to stop at

=> ping 192.168.0.1
Using emac device

Is my configuration wrong?

yachen commented 4 years ago

10:20... is a multicast MAC address. Can you test with other setting? https://en.wikipedia.org/wiki/Multicast_address#Ethernet

ATmega8 commented 4 years ago

I tried random MAC address but still not work.

yachen commented 4 years ago

Can't reproduce this issue. Here's my test result. Are you testing on IoT board? Or on other device?

=> ping 192.168.10.1
Using emac device
host 192.168.10.1 is alive
ATmega8 commented 4 years ago

I tried to find out where the program was executed by adding logs. But after adding my logs, the network seems to be back to normal.Maybe a problem with my hardware design.

> ping 192.168.4.190
Trying emac
100M FullUsing emac device
start ping
start set_icmp_header, ptk: 03fe8c6e ip: 192.168.4.190
start set ip header
pkt: 0x03fe8c6e
src: 192.168.4.205
dst: 192.168.4.190
start 1
start 2
start 3
start 4
start 5
start 6
start 7
start copy ip 1
end
start copy ip 2
end
end
start compute checksum 1
end
start1
start2
start3
start4
start5
start compute checksum 2
end
end set_icmp_header
start arp request
nuc980 eth start send data
nuc980 eth end send data
end ping
nuc980 eth start recv data
nuc980 eth start send data
nuc980 eth end send data
nuc980 eth end recv data
host 192.168.4.190 is alive