From owner-freebsd-arm@freebsd.org Mon Oct 7 07:39:57 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F5ACF99EB for ; Mon, 7 Oct 2019 07:39:57 +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 46msnl5xngz4Nsp for ; Mon, 7 Oct 2019 07:39:55 +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 b702a17a; Mon, 7 Oct 2019 09:39:47 +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=XZTUwidrvEYbwXTQHKF4p9PrkuI=; b=Z4Nhw/Ifh2k91XQBYfNHKr+u/srF f6b6ulAeetCN7wneqYQk8We9r88hM36EB/H1crzuQSSGzHu/iYQG9DNy7gqcETvZ F1HgQDawI8EsF3WR8TsV4qu47nKq9sQ+NHr61/CuEqvoG5XhYCSu5mJqN1O4nzs1 UwECz2oaGtMands= 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=VqmS9PNIlRbc9kkYzX5fKHpWSzaZmy7+XXNZPL78m0klT6LEtRxW8hsJ H5/crKpj0rxthzhgg5wdo764skolYo86A3tu0AE+zf/hie5nSNzqrkSVKI79XM/0 LewIJw1CuJgMeMswL9GTZMFHOQrnoV+c8p4LZHGjveO/dBqqYOU= 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 f0871878 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 7 Oct 2019 09:39:47 +0200 (CEST) Date: Mon, 7 Oct 2019 09:39:47 +0200 From: Emmanuel Vadot To: mike@karels.net Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black Message-Id: <20191007093947.69ae5d772ebedfc1e1c98328@bidouilliste.com> In-Reply-To: <201910061502.x96F2WkF040803@mail.karels.net> References: <201910061502.x96F2WkF040803@mail.karels.net> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46msnl5xngz4Nsp X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=Z4Nhw/If; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-1.47 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.94)[-0.938,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.37)[ip: (-0.76), ipnet: 212.83.160.0/19(2.49), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Oct 2019 07:39:57 -0000 Hi, On Sun, 06 Oct 2019 10:02:32 -0500 Mike Karels wrote: > [bcc to freebsd-stable; followups to freebsd-arm] > I am not subscribed to freebsd-arm, please cc me on responses. > > My Beaglebone Black does not boot FreeBSD 12.1-BETA3. It previously ran > 11.3 and 12.0 without problems. The initial boot from micro SD gets to > this point [with some preceding lines as well; note that the "support > voltages" line does not appear on 12.0]: > > sdhci_ti1: mem 0-0xfff irq 48 on ti_sysc35 > sdhci_ti1-slot0: Hardware doesn't report any support voltages. > mmc1: on sdhci_ti1 > ... > mmcsd0: 16GB at mmc0 48.0MHz/4bit/65535-block > iicbus1: on iichb1 > iic1: on iicbus1 > icee1: at addr 0xa8 on iicbus1 > icee2: at addr 0xaa on iicbus1 > icee3: at addr 0xac on iicbus1 > icee4: at addr 0xae on iicbus1 > sdhci_ti1-slot0: Bus power failed to enable > uhub0: 1 port with 1 removable, self powered > uhub1: 1 port with 1 removable, self powered > sdhci_ti1-slot0: Controller timeout > sdhci_ti1-slot0: ============== REGISTER DUMP ============== > sdhci_ti1-slot0: Sys addr: 0x00000000 | Version: 0x00003101 > sdhci_ti1-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000000 > sdhci_ti1-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 > sdhci_ti1-slot0: Present: 0x01f70000 | Host ctl: 0x00000000 > sdhci_ti1-slot0: Power: 0x00000000 | Blk gap: 0x00000000 > sdhci_ti1-slot0: Wake-up: 0x00000000 | Clock: 0x00008007 > sdhci_ti1-slot0: Timeout: 0x00000000 | Int stat: 0x00000000 > sdhci_ti1-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb > sdhci_ti1-slot0: AC12 err: 0x00000000 | Host ctl2:0x00000000 > sdhci_ti1-slot0: Caps: 0x04e10080 | Caps2: 0x00000000 > sdhci_ti1-slot0: Max curr: 0x00000000 | ADMA err: 0x00000000 > sdhci_ti1-slot0: ADMA addr:0x00000000 | Slot int: 0x00000000 > sdhci_ti1-slot0: =========================================== > > and then the timeout and dumps repeat every few seconds. > > This board cannot boot from the on-board EMMC, which seems to be at issue > here, but it can access it under FreeBSD. > > The full boot transcript follows. The "bad CRC" errors show up on 12.0 > as well. > > Mike > I thought that the issue was solved but it seems that there is still some weird shit happening. Here's what's working : - Booting from SDcard with eMMC formated - Booting from eMMC without an sdcard inserted - Booting from eMMC with an sdcard inserted (no sdcard-boot button press) What's not working is booting from SDcard by pressing the button (to force sdcard boot). To me it's clearly some u-boot or bootrom problem but maybe I'm wrong. So if you boot from the sdcard but have u-boot on the eMMC so can do : 1) First confirmed that you booted off the SDCard, you should see U-Boot SPL 2019.07 (Sep 27 2019 - 15:17:40 +0000) Trying to boot from MMC1 MMC1 is the sdcard while MMC2 is the eMMC 2) Interrupt u-boot autoboot by pressing any key 3) Confirm that you have u-boot files on the eMMC by doing => fatls mmc 1 EFI/ 106148 MLO dtb/ 700756 u-boot.img 364264 ubldr.bin MLO is the file that we want to delete. 4) Delete MLO file => fatrm mmc 1 MLO 5) Confirm that it was deleted => fatls mmc 1 EFI/ dtb/ 700756 u-boot.img 364264 ubldr.bin Power cycle the board so you can boot from 12.1 sdcard image and update your eMMC (or whatever you want to do). -- Emmanuel Vadot