From owner-freebsd-uboot@freebsd.org Mon Apr 30 07:48:32 2018 Return-Path: Delivered-To: freebsd-uboot@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 4F4C7FC6F39; Mon, 30 Apr 2018 07:48:32 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id AA3297C24C; Mon, 30 Apr 2018 07:48:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id e6715c66; Mon, 30 Apr 2018 09:48:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=JO0LF7B+zlFP7ytcGA0PtcWuFo0=; b=bXpyY9jR8tGSYTfr3Gee6yesvcsZ 0Ex9fWxeDgQcLyquCtaixxZl22byIOc/aiHqoQaPhsKiYcDtptUA12H7utMt9MYa TiAGD6zDBwuL2JlUiyOyDho6wkkqSA/hG31VSaXGyPuBrYJlaGtYZeHfZ266wNIL jCztIdDW0pjt/sc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=UENiQRKCFjcdiLYPLfOXm58Yz+aVvlYEkxNQ90qXO0AtM78atzjGVde+ eoaZr58A5mQX1N6VG93hW7XPOo7qHLpeur8p1ogWn9nsDQT48LzCYEOJLKYco7qs 5TB2AzuqF3J7aRxVcZfN5RZXUMLM+CDrOkLAjYcW/UDrZst2ZcY= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 16fb5574 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 30 Apr 2018 09:48:20 +0200 (CEST) Date: Mon, 30 Apr 2018 09:48:20 +0200 From: Emmanuel Vadot To: Mark Millard Cc: Mark Millard via freebsd-uboot , uboot@FreeBSD.org Subject: Re: FreeBSD Port: sysutils/u-boot-sinovoip-bpi-m3 2018.03: "USB0: data abort" after "starting USB" Message-Id: <20180430094820.0b5e2351c0b54ffe45b54038@bidouilliste.com> In-Reply-To: <55EB76ED-44CB-4AC3-8489-72F4F9E90AFC@yahoo.com> References: <55EB76ED-44CB-4AC3-8489-72F4F9E90AFC@yahoo.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-uboot@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of uboot with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 07:48:32 -0000 Hi Mark, On Sun, 29 Apr 2018 11:49:19 -0700 Mark Millard via freebsd-uboot wrote: > Unless I have missed something that I should do, it > appears to me that BPI-M3's are not working with the > latest sysutils/u-boot-sinovoip-bpi-m3 (and so the > latest sysutils/u-boot-master ). I noticed that too a week or two ago. It's broken upstream and it's fix in 2018.05-rc1. I haven't taken time to bisect. > The following is taken from where I first sent the > original note: > > https://lists.freebsd.org/pipermail/freebsd-arm/2018-April/017864.html > > > After upgrading a Pine64+ 2GB to head -r333079 > > 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 at 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=/usr/local/share/u-boot/u-boot-sinovoip-bpi-m3/u-boot-sunxi-with-spl.bin of=/path/to/sdcarddevice bs=1k seek=8 conv=notrunc,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 > > > > === > Mark Millard > marklmi26-fbsd at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > > > > > > > _______________________________________________ > freebsd-uboot@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-uboot > To unsubscribe, send any mail to "freebsd-uboot-unsubscribe@freebsd.org" -- Emmanuel Vadot