From owner-freebsd-arm@freebsd.org Wed Sep 13 15:22:47 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9093FE01156 for ; Wed, 13 Sep 2017 15:22:47 +0000 (UTC) (envelope-from mail@sezi.eu) Received: from mail.fizon.de (mail.fizon.de [195.149.99.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3627169CDB for ; Wed, 13 Sep 2017 15:22:46 +0000 (UTC) (envelope-from mail@sezi.eu) Received: from sz-mbp.level1.hanse.fizon.de (p5DEDC051.dip0.t-ipconnect.de [93.237.192.81]) (authenticated bits=0) by mail.fizon.de (8.14.5/8.14.5) with ESMTP id v8DF3vBs035588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Sep 2017 17:03:57 +0200 (CEST) (envelope-from mail@sezi.eu) From: Sebastian Zietz Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: NanoPi Neo missing awg0 Message-Id: <065FD014-DA60-43D6-87E2-3B53BCDC0650@sezi.eu> Date: Wed, 13 Sep 2017 17:03:56 +0200 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 15:22:47 -0000 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: 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sys/boot/fdt/dts/arm/h3.dtsi (revision 322966) +++ sys/boot/fdt/dts/arm/h3.dtsi (working copy) @@ -36,6 +36,7 @@ =20 soc { emac: ethernet@1c30000 { + #reset-cells =3D <1>; compatible =3D "allwinner,sun8i-h3-emac"; reg =3D <0x01c30000 0x104>, <0x01c00030 0x4>; reg-names =3D "emac", "syscon"; # dmesg | grep awg awg0: mem = 0x1c30000-0x1c30103,0x1c00030-0x1c00033 irq 38 on simplebus0 miibus0: on awg0 Sadly my USB network card is not working with older U-Boot: U-Boot 2017.07 # usbconfig=20 ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH= (480Mbps) pwr=3DSAVE (0mA) ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DSAVE (0mA) ugen1.2: at usbus1, = cfg=3D0 md=3DHOST spd=3DFULL (12Mbps) pwr=3DON (120mA) U-Boot 2016.07 # usbconfig=20 ugen0.1: at usbus0, cfg=3D0 md=3DHOST spd=3DHIGH= (480Mbps) pwr=3DON (0mA) ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL = (12Mbps) pwr=3DON (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=