pcDuino2 sun4i_emac ethernet

This forum is for supported devices using an ARMv7 Allwinner SoC.

pcDuino2 sun4i_emac ethernet

Postby bluescreener » Sat Mar 16, 2019 8:18 pm

I've installed Arch on a pcDuino2 following the installation instructions at https://archlinuxarm.org/platforms/armv7/allwinner/pcduino3 but substituting pcduino for pcduino3 in the U-Boot section. I can boot to a serial console but I can't get the ethernet link to come up. It does, however, work from the u-boot prompt, I can get a dhcp address and it attempts to tftp boot.
$this->bbcode_second_pass_code('', '$journalctl -b | grep sun4i
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: Linked as a consumer to regulator.0
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
Feb 21 13:45:34 pcduino2-arch kernel: sun4i-usb-phy 1c13400.phy: Linked as a consumer to regulator.3
Feb 21 13:45:38 pcduino2-arch kernel: sun4i-mdio 1c0b080.mdio: 1c0b080.mdio supply phy not found, using dummy regulator
Feb 21 13:45:38 pcduino2-arch kernel: sun4i-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
Feb 21 13:45:38 pcduino2-arch kernel: sun4i-mdio 1c0b080.mdio: Linked as a consumer to regulator.0
Feb 21 13:45:38 pcduino2-arch kernel: libphy: sun4i_mii_bus: probed
Feb 21 13:45:38 pcduino2-arch kernel: sun4i-ss 1c15000.crypto-engine: Die ID 7
Feb 21 13:45:38 pcduino2-arch kernel: sun4i-emac 1c0b000.ethernet: eth0: at (ptrval), IRQ 18 MAC: 02:d2:08:81:af:a7
')

I got wireless working but it required adding some packages to the filesystem whilst I had it mounted on my laptop.
I added
http://os.archlinuxarm.org/armv7h/core/ ... pkg.tar.xz
http://os.mirror.archlinuxarm.org/armv7 ... pkg.tar.xz
for the wifi. Boot into the system using a serial console then
installed with pacman -U.

Once I'd done this I managed to configure the wifi using netctl as per the Arch wiki.

Kernel version
$this->bbcode_second_pass_code('', '[alarm@pcduino2-arch ~]$ uname -a
Linux pcduino2-arch 5.0.1-1-ARCH #1 SMP PREEMPT Tue Mar 12 04:09:35 UTC 2019 armv7l GNU/Linux')

Output from ethtool
$this->bbcode_second_pass_code('', '[alarm@pcduino2-arch ~]$ ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised pause frame use: Symmetric Receive-only
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Link partner advertised link modes: 10baseT/Half
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Link partner advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000000 (0)

Link detected: no
')

So I think I may be missing something obvious. Does anyone else have this working?
bluescreener
 
Posts: 4
Joined: Tue Mar 05, 2019 12:23 pm

Return to Allwinner

Who is online

Users browsing this forum: No registered users and 6 guests