NanoPi Neo missing awg0

Sebastian Zietz mail at sezi.eu
Wed Sep 13 15:22:47 UTC 2017


Hi everyone,

currently I am playing with my NanoPi NEO and build an image for it using crochet. The image was able to boot but the network interface could't be attached:

# dmesg | grep awg
awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 35 on simplebus0
awg0: soft reset timed out
device_attach: awg0 attach returned 60


Since awg0 is running fine with the FreeBSD image linked in the FriendlyARM wiki [1], I tried to swap its U-Boot (2016.07) against mine from the ports (2017.07). With the following patch and the older U-Boot I managed to get awg working:


Index: sys/boot/fdt/dts/arm/h3.dtsi
===================================================================
--- sys/boot/fdt/dts/arm/h3.dtsi	(revision 322966)
+++ sys/boot/fdt/dts/arm/h3.dtsi	(working copy)
@@ -36,6 +36,7 @@
 
 	soc {
 		emac: ethernet at 1c30000 {
+			#reset-cells = <1>;
 			compatible = "allwinner,sun8i-h3-emac";
 			reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
 			reg-names = "emac", "syscon";


# dmesg | grep awg
awg0: <Allwinner Gigabit Ethernet> mem 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 38 on simplebus0
miibus0: <MII bus> on awg0


Sadly my USB network card is not working with older U-Boot:

U-Boot 2017.07
# usbconfig 
ugen0.1: <Allwinner EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <Generic OHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x0fe6 USB 2.0 10100M Ethernet Adaptor> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (120mA)

U-Boot 2016.07
# usbconfig 
ugen0.1: <Allwinner EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (0mA)
ugen1.1: <Generic OHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)



For building I used GENERIC kernel and revision 322966.
Does anyone know how to fix the "soft reset timed out" error? I am thankful for every Idea, I will try it out.


[1] http://wiki.friendlyarm.com/wiki/index.php/NanoPi_NEO#FreeBSD


More information about the freebsd-arm mailing list