No network on APF51 with vanilla kernel (5.10)
Brought to you by:
sszy
I'm trying to use a fresh version of linux kernel with the old APF51 board.
I cloned the sourceforge git repository :
$ git clone git://git.code.sf.net/p/armadeus/code apf51
$ cd apf51
And built apf51 target :
$ make apf51_defconfig
I managed to flash and boot the board with this wiki page recommandations :
http://www.armadeus.org/wiki/index.php?title=How_to_use_vanilla_kernel_on_APF51
It works, but I can't use networks, no ping or udhcp availables :
# ping 192.168.0.196
PING 192.168.0.196 (192.168.0.196): 56 data bytes
ping: sendto: Network is unreachable
# udhcpc
udhcpc: SIOCGIFINDEX: No such device
# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 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)
sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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)
Kernel is :
# uname -a
Linux apf51 5.10.60 #1 PREEMPT Tue Sep 7 12:41:16 CEST 2021 armv7l GNU/Linux
It looks like some missing informations in the device tree. I did that based on opos6ul as told me sszy but it's crashing at boot time:
I see two mistakes: #address-cells must be <1>; and the PHY addr on the MDIO bus is 0 so the node should be: