Menu

#160 No network on APF51 with vanilla kernel (5.10)

Armadeus-8.0
closed-fixed
nobody
5
2023-01-05
2021-09-09
Fabien M
No

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

Discussion

  • Kevin_Joly

    Kevin_Joly - 2022-02-24

    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:

    &fec {
            pinctrl-names = "default";
            pinctrl-0 = <&pinctrl_fec>;
            phy-mode = "mii";
            phy-handle = <&ethphy1>;
            status = "okay";
    
            mdio: mdio {
                    #address-cells = <0>;
                    #size-cells = <0>;
    
                    ethphy1: ethernet-phy@1 {
                            compatible = "ethernet-phy-id0007.300F", "ethernet-phy-ieee802.3-c22";
                            reg = <1>;
                            reset-gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                            reset-assert-us = <1000>;
                            reset-deassert-us = <2000>;
                            status = "okay";
                    };
            };
    };
    
     
    • Sébastien Szymanski

      I see two mistakes: #address-cells must be <1>; and the PHY addr on the MDIO bus is 0 so the node should be:

      ethphy0: ethernet-phy@0 {
          ...
          reg = <0>;
          ...
      }
      
       
  • Sébastien Szymanski

    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB