From owner-freebsd-arm@freebsd.org Sun Apr 29 13:13:40 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4697DFACCE3 for ; Sun, 29 Apr 2018 13:13:40 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic306-3.consmr.mail.bf2.yahoo.com (sonic306-3.consmr.mail.bf2.yahoo.com [74.6.132.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CBB6D6F0F8 for ; Sun, 29 Apr 2018 13:13:39 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: .FM7PJsVM1litUxR7eZM9u_AZzzMwelpozVBBsayTYCfZISGe8mh9hORjI0WIoA gFx169y_sbACH6h0N791iShr3bQi3OBorjRr4jRTlzdz3hvcj_5vYhGTRvTADRBu3zNG29hkPHDr .Ll3QBjA2uRAEU06aQSkW07Bx4dmqUHGVAFx4FwZNkKnd1ikD72GCZVr7NyrW2nYZHgH.6BemerI QFk9uYLcSoQvyVjXYI7mhY9VdBH9z8GvqkkQye1CkAVUrFP_hZZa0r..YxBHyDXzPY7NKFc6Ygq0 BRAivtrA9UMSgU21Pml7NKcUP9eEEMgs2ll8luB3sxcMIwxt3xQDFeXsEjIcBneN7kvWaDfNGxJP bNhA4XRx_M7Qc4ipichwxZnf2UWlI9cmwEJ1OaIkssXW2sLauDW69odiSdZe0d1R0TSPDSXbcupz QVG.TkfCUEMsqKfz.D9nvB5hBk9.3UZ5F8xPZU_VtDd2xld9mFLshWiASjSZY63BkeUUdUPXCd8A s8Ng1e9vW7RI5_WujvNth3VD.pz2CT2kUQk_Lfytg3t520tuICUAqFVptOXrU71_ejcJALNN6RuU Iu0e4yGMBA8JF3Cp9pzkmuJXD5MHQdwh9AdlOtQrfGBsG_jJ1cMITTSwaDg4b9jO_iGjMwn3DVTe u64rX7iXtm8kFYtWETKYdUA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Sun, 29 Apr 2018 13:13:38 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c3f434355c5c8beaf634cfe8fd06f630 for ; Sun, 29 Apr 2018 13:13:36 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Allwinner A83T BananaPi M3 Board v1.2 early boot failures: "USB0: data abort" after "starting USB" under U-Boot 2018.03 Message-Id: <9673BD00-6874-4C00-8532-115D524786C2@yahoo.com> Date: Sun, 29 Apr 2018 06:13:34 -0700 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Apr 2018 13:13:40 -0000 After upgrading a Pine64+ 2GB to head -r333079=20 from a version from late last year/early this year, I tried doing so for a BPI-M3, also last updated in that general time frame. But what I get is repeated resets, each after a "USB0: data abort" (nothing is plugged into a USB port). "The loading Environment from" may indicate an earlier, separate problem from the data abort. resetting ... U-Boot SPL 2018.03 (Apr 06 2018 - 04:41:31 +0000) DRAM: 2048 MiB Trying to boot from MMC1 U-Boot 2018.03 (Apr 06 2018 - 04:41:31 +0000) Allwinner Technology CPU: Allwinner A83T (SUN8I 1673) Model: Allwinner A83T BananaPi M3 Board v1.2 DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from FAT... Unable to use mmc 1:0... Failed (-5) Loading Environment from MMC... *** Warning - bad CRC, using default = environment Failed (-5) In: serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: data abort pc : [] lr : [] reloc pc : [<4a01be3e>] lr : [<4a01be21>] sp : bbf51c40 ip : bbf5b4ec fp : 00000002 r10: bffb5058 r9 : bbf53ee0 r8 : 00000000 r7 : ffffffff r6 : bbf5a73c r5 : bffb319c r4 : bbf5a550 r3 : ffffffff r2 : 01c00004 r1 : ffff3f8f r0 : 00000000 Flags: nZCv IRQs off FIQs off Mode SVC_32 Resetting CPU ... resetting ... Details of what was used to put the updated u-boot in place: # pkg info u-boot-sinovoip-bpi-m3-2018.03 u-boot-sinovoip-bpi-m3-2018.03 Name : u-boot-sinovoip-bpi-m3 Version : 2018.03 Installed on : Fri Apr 13 21:25:08 2018 PDT Origin : sysutils/u-boot-sinovoip-bpi-m3 Architecture : FreeBSD:12:* Prefix : /usr/local Categories : sysutils Licenses : GPLv2 Maintainer : uboot@FreeBSD.org WWW : UNKNOWN Comment : Cross-build das u-boot for model sinovoip-bpi-m3 Annotations : repo_type : binary repository : custom Flat size : 851KiB Description : U-Boot loader for Banana Pi M3. To install this bootloader on an sdcard just do : dd = if=3D/usr/local/share/u-boot/u-boot-sinovoip-bpi-m3/u-boot-sunxi-with-spl.= bin of=3D/path/to/sdcarddevice bs=3D1k seek=3D8 conv=3Dnotrunc,sync This version is patched so that: * ELF and API features are enabled. * The default environment is trimmed to just what's needed to boot. * The saveenv command writes to the file u-boot.env on the FAT = partition. * The DTB file name is chosen based on the board model and passed to = ubldr.bin using the fdtfile env variable. ubldr.bin loads the DTB from = /boot/dtb/ on the FreeBSD partition. * By default, it loads PIE ubldr.bin from file ubldr.bin on the FAT = partition to address 0x42000000, and launches it. For information about running FreeBSD on Allwinner boards, see https://wiki.freebsd.org/FreeBSD/arm/Allwinner For general information about U-Boot see WWW: = http://www.denx.de/wiki/U-Boot =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar)