From nobody Wed Oct 27 22:37:03 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0391218180E9 for ; Wed, 27 Oct 2021 22:37:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic308-55.consmr.mail.gq1.yahoo.com (sonic308-55.consmr.mail.gq1.yahoo.com [98.137.68.31]) (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 4Hfk8M5VYQz3Hc2 for ; Wed, 27 Oct 2021 22:37:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635374226; bh=8tiIsHVqMQR1XMxuxq/yrqFX7iM8YII22u3vQiF7RfM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=BjqC+6sU21RSXBE2yTS43GAPyqSvr/PdzxDXnDHho31YzBHcEvuHcWf+jaXQYiXrdYaiU9cNxqqoGIM05FWv1dewc3hnjye1NotWsUw3g/pUfB42kaUM0u5ARiT8Yf9hBDBr8XoUUZR40CRH2XXBWKcZ2Uc/XWTYd+3PohxA6M7o1BVSBLFMMLzeGzmwnvVJIH+xpjNYjJvIz2+2rN+t4ugaAa96KCechejum8fzn67jaCVlSMrtGlxedd/Ve4fnQL0wtJZ7KClWayXedDIffARjKu1zbu6iFjbZ9korUs4B1G278scS4iar6cKDAKbTqFCZVZHgq3d3tISQpVdvgw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1635374226; bh=LVCLa+D5hrTriEr3BYDfR8raZaq3XeAbK7bTZqlueXa=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=OEvJtkck7o2xoSDUJc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8Hmj9qmhCmg4HHT5aqlwXqS90jGHwRbOwZE5NNdkUUnodkyb17slAYAhXh_FmR92eHGxzTkQ5 jZdfGt5EG.yz3r4OHxOE.WmmAjrLi1fg8.wiHObIcVZoXjFcSYkd8zhNPap.njLoSHdsDLUEN2OR fupjUB8trIAsF05mgQgcMAAh8tk2A0zG7SvuCoD8Fhg3LMkoJaI922AgYXBz4ZDNVNPg50.rRQja NSpYhT4vOh71sUNN6xFvczWJxokcKmgN.B_O92jYqAukYE31.KXCeg91jbJOsbajLA4mkvNmcUyg ZSWeMrpX71ydOKszA4Z9RgqAdLA0uwh2V5QriF1mWIM0m0jb8U5.qkpOpM9ez359hL3z37qK9DW_ gxIw8kyhb4C8GM6adHfE9a0UDV8O2IIOlcgKQ6FLj5EsSyL_Mj7k0Ozm3v4AoAYytSoqU3pK2Diu RdIRAKpu7kczGt89Y0QzsIgmBhxBA4.hlTeAISe7R_h8b X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Wed, 27 Oct 2021 22:37:06 +0000 Received: by kubenode539.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 34fda6c00065ed7d5c172e57a763ba68; Wed, 27 Oct 2021 22:37:04 +0000 (UTC) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Troubles booting Pi2 from USB using bootcode.bin method In-Reply-To: Date: Wed, 27 Oct 2021 15:37:03 -0700 Cc: Free BSD , freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <41C0A656-D898-4381-BB81-034D54CA04A0@yahoo.com> References: <20211025034332.GA8398@www.zefox.net> <20211027162852.GA16010@www.zefox.net> To: bob prohaska X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4Hfk8M5VYQz3Hc2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=BjqC+6sU; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.31:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.31:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Oct-27, at 10:39, Mark Millard wrote: > On 2021-Oct-27, at 09:28, bob prohaska wrote: >=20 >> On Sun, Oct 24, 2021 at 08:43:32PM -0700, bob prohaska wrote: >>> I've got an early Pi2B (not plus) that has been booting reliably >>> from a USB2 disk connected via a USB3 hub using just bootcode.bin >>> and timeout on the DOS partition of the microSD card. >>>=20 >> It turns out the USB3 disk boots normally _provided_ the old >> USB2 disk remains connected. I didn't try that initially both >> because I didn't need both disks and because the boot order=20 >> couldn't be obviously controlled.=20 >>=20 >> It turns out the new disk is discovered first and boots as=20 >> desired, so the system is busy building an up-to-date world >> and kernel. There's room for a ports tree on this disk. >>=20 >> Does the ports version of u-boot include support for the >> bootcode.bin-only mode of USB booting? >=20 > Before U-Boot is involved there are other files involved > such as a start* file from the USB device. With appropriate > config.txt content, and possibly other settings, the boot > is likely rather explicit about its early activity. (But I > do not currently have access to a RPi2B v1.1 or earlier to > test the details on. In fact, the accessible only RPi*'s > are RPi4B 8 GiByte ones.) >=20 > (I wondered if you meant RPi3B: To my knowledge there is > no such thing as a RPi2B+ so the "plus" reference suggests > an early RPi3B might have been what was involved.) >=20 >> Right now I'm using >> the version of bootcode.bin offered at=20 >> = https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#spec= ial-bootcode-bin-only-boot-mode >>=20 >> Without having the USB2 disk connected the serial console hangs >> with what looks like "cb" as the only output. It's unclear if >> u-boot is starting at all. The red and green LEDs remain lit, >> seemingly indefinitely.=20 >>=20 >=20 Your specific path may be different, but what does a command analogous to the below show for you for the problematical context? # strings /boot/efi/start.elf | grep "VC_BUILD_" VC_BUILD_ID_USER: dom VC_BUILD_ID_TIME: 12:12:09 VC_BUILD_ID_VARIANT: start VC_BUILD_ID_TIME: Feb 25 2021 VC_BUILD_ID_BRANCH: bcm2711_2 VC_BUILD_ID_HOSTNAME: buildbot VC_BUILD_ID_PLATFORM: raspberrypi_linux VC_BUILD_ID_VERSION: 564e5f9b852b23a330b1764bcf0b2d022a20afd0 (clean) I'll note that there is: QUOTE bootcode.bin UART Enable NOTE For boards pre-Raspberry Pi 4, Model B. For information on enabling the UART on the Pi4 bootloader, please see = this page. It is possible to enable an early stage UART to debug booting issues = (useful with the above bootcode.bin only boot mode). To do this, make = sure you=E2=80=99ve got a recent version of the firmware (including = bootcode.bin). To check if UART is supported in your current firmware: strings bootcode.bin | grep BOOT_UART To enable UART from bootcode.bin use: sed -i -e "s/BOOT_UART=3D0/BOOT_UART=3D1/" bootcode.bin Next, connect a suitable USB serial cable to your host computer (a = Raspberry Pi will work, although I find the easiest path is to use a USB = serial cable since it=E2=80=99ll work out the box without any pesky = config.txt settings). Use the standard pins 6, 8 and 10 (GND, GPIO14, = GPIO15) on a Pi or CM board. Then use screen on linux or a Mac or putty on windows to connect to the = serial. Setup your serial to receive at 115200-8-N-1, and then boot your Pi / = Compute module. You should get an immediate serial output from the = device as bootcode.bin runs. END QUOTE That text is from: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)