From owner-freebsd-arm@freebsd.org Sat Dec 3 21:01:50 2016 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 27445C654FF for ; Sat, 3 Dec 2016 21:01:50 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-8.reflexion.net [208.70.210.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD09F1EE3 for ; Sat, 3 Dec 2016 21:01:49 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 16802 invoked from network); 3 Dec 2016 21:01:54 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 3 Dec 2016 21:01:54 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.20.0) with SMTP; Sat, 03 Dec 2016 16:01:55 -0500 (EST) Received: (qmail 3063 invoked from network); 3 Dec 2016 21:01:55 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 3 Dec 2016 21:01:55 -0000 Received: from [192.168.1.106] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 2FDB5EC9143; Sat, 3 Dec 2016 13:01:47 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: Can't get 11.0-RELEASE to boot on Banana PI M3 From: Mark Millard In-Reply-To: Date: Sat, 3 Dec 2016 13:01:46 -0800 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <53608BFE-4653-4407-AFBE-7AB5E45AF2C1@dsl-only.net> References: <20161124222152.dfd02dcafdc25182b6b46e50@bidouilliste.com> <66508AA3-436A-4D9E-AAB5-B85D0B4FC40C@dsl-only.net> <9C8B313C-A058-44DF-8673-D23B481CE312@dsl-only.net> <1E9515A0-06D5-4CF9-9D29-D6FF591686F4@dsl-only.net> To: Michael Sperber X-Mailer: Apple Mail (2.3251) 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: Sat, 03 Dec 2016 21:01:50 -0000 On 2016-Dec-3, at 5:23 AM, Michael Sperber = wrote: > Mark Millard writes: >=20 >> /dev/da0 is not the same as /dev/mmcsd0 . /dev/da0 is the >> interface to the SATA port. That hardware is accessed over >> USB on the BPi-M3. >=20 > Ah, now I understand. Sorry for my being stupid about this! >=20 > I finally noticed this: >=20 > eval: cannot open /etc/fstab: No such file or directory >=20 > And indeed /etc/fstab is not there - creating one fixed that problem. In . . ./crochet/board/BananaPi-M3/overlay/etc/ there should be: # ls fstab rc.conf rc.d When things work right these are simply copied. If one of these files was not copied over then it may be that some other(s) were not copied over as well. > (Shouldn't Crochet have created one?) So that leaves the Ethernet > problem. I get this: >=20 > awg0: mem 0x1c30000-0x1c300ff on = simplebus0 > awg0: soft reset timed out > device_attach: awg0 attach returned 60 >=20 > Any ideas on that one? Broken hardware? I see the awg driver is = fairly > new - is 11.0-RELEASE recent enough? awg Ethernet support was added about 2 months before head -r304406 was turned into stable/11 -r304408 based on the svn history: Ethernet added for A83T back on 2016-May-4 ( -r299084 ). > --=20 > Regards, > Mike While I do not know anything about the details I can find the source code for the "soft reset timed out": 1122 static int 1123 awg_reset(device_t dev) 1124 { 1125 struct awg_softc *sc; 1126 int retry; 1127=09 1128 sc =3D device_get_softc(dev); 1129=09 1130 /* Soft reset all registers and logic */ 1131 WR4(sc, EMAC_BASIC_CTL_1, BASIC_CTL_SOFT_RST); 1132=09 1133 /* Wait for soft reset bit to self-clear */ 1134 for (retry =3D SOFT_RST_RETRY; retry > 0; retry--) { 1135 if ((RD4(sc, EMAC_BASIC_CTL_1) & = BASIC_CTL_SOFT_RST) =3D=3D 0) 1136 break; 1137 DELAY(10); 1138 } 1139 if (retry =3D=3D 0) { 1140 device_printf(dev, "soft reset timed out\n"); 1141 #ifdef AWG_DEBUG 1142 awg_dump_regs(dev); 1143 #endif 1144 return (ETIMEDOUT); 1145 } 1146=09 1147 return (0); 1148 } I'd guess that the message indicates a hardware problem. As I've suggested before: you could see of an official Linux also fails to initialize the Ethernet interface. Once checked: A) If Linux did fail as well then blame the hardware. B) If Linux worked then get the FreeBSD folks that work on the A83T/ALLWINNER support to look into the issue. My guess is the that FreeBSD folks would want a build with that AWG_DEBUG enabled and information from the "dump" that it makes if Linux worked. =3D=3D=3D Mark Millard markmi at dsl-only.net