From nobody Sat Jul 03 16:14:24 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 C156811F69AA for ; Sat, 3 Jul 2021 16:14:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic309-21.consmr.mail.gq1.yahoo.com (sonic309-21.consmr.mail.gq1.yahoo.com [98.137.65.147]) (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 4GHH8S3cm2z3q5r for ; Sat, 3 Jul 2021 16:14:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625328869; bh=dg2fQpIqnYUkWiZmW+DwQBp3knIYh5fpF5E7S9RklBc=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=TJNtU6c34WWDb6r5TRzI/O+pm0hQrz/2I2/B6B14A/DhgBOlWasFb9fUOTYimSW+5vFUf0vTyT4lc0EvoaDEsDF8drK5qYjatsbc2kr+EIXkqZu3DlAC9dfXndjzviJW0/EU6RgbItepauiPIh62N6d5b39i4qEfOxAeJ5+Uzr6Br5HnAS8gDJ6xxqDUVI8SST6huFwLQXkD9YN2cq1Ei03RIkxgPZOdKYtooKoKcJUf5FXEQhIY5Lcu29i5JyTfEI49OQ09Q8q92xBi6zlgcRsvUX6Emsg9nOvxQn4gi/m6TrvbHyKkrIR3F6ZHdm/YgRjCTCVeq0cNpCBX6B6Tfw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1625328869; bh=6OSunzxoNp5eIH+JjqFn2uq+Fl4RSxBpLHCKJTtJrYV=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=dZXNebn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UXh29BE2QBiq89WoJUIngrIpd7oTBzkLi eBNMRHwW3xIDN9UmOj6sJqwFrBbEZfS0ymXRvX4FpRWOh1ai7oVZhLvTwFRUze7UuXqdwGslbAq1 0QPsEtLOx7TSU46K46uaD.X0MsJDA4.RSnJ.y8skA0y1TniJrYeH4F0SrmEojWFT0yxkFwoTOdic iJcxrNOjm6ApSKvgDCUXnPjHZY8cGdZgPojX0jzxbkmD22pw4F6_62L8Ydq35N3dyQS8qYdWHTzJ PHueYxy5qk4b93qDBZ1mm2vUNv08ueFQVj7RzPppajbesSlpOZW1FP0ZyRdBZ.cyZwtORyYsjVIb tGPYVJAaryCVgD4jDa3ZOJDT9gd7P0J.tEmzxZRnDf9WK3pVUfWzklKMUBBZyZhbS2Oy8hYxAUZp lnBPUPv7klMzA0zREatfsXJt2tRoga5sCvzX3nZAxipM27_.Je5zkLZpNjIFdb8ZP4836q659wIy u7znHkBnQ8htXsHPkQM04HQVqsf7l7pW3289vQckt4Adz9buhh3lw5MtU4YBWSItoD_AG5DU3bIw WJLVkeYUTMRIqAVf8yC5HmfxDdPoCkIP9nKVA._ijoWOBItVfeb.XmwP0uxtMgoIVKiOeStCgTlD ZrmmeOMvLp2MEu5oTvgh536AdUwN4ovLeWGPurnW.o5AWfs_FRw12_oXd1U4Awfqvj5rLhSvKgIL 3BsfCIgxcN_uG56mg8DpsTgeDQiTRihZuSA3YnFaxGHr1f7nws0LKv0NI3TGwQ5ZL7s8mozteUG8 fYaohuUeFCtK6Qtn0gao_RhspXEpDUWd2rM7YD2GBmWVC_6evcJg- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.gq1.yahoo.com with HTTP; Sat, 3 Jul 2021 16:14:29 +0000 Received: by kubenode522.mail-prod1.omega.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 3e583ee141b82e8dbccf09c73108e8b9; Sat, 03 Jul 2021 16:14:24 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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.100.0.2.22\)) Subject: Re: RPi4 - Booting from mSD with USB storage In-Reply-To: <0309ED7D-32C9-4A5A-A867-5C4CA454212B@jbass.io> Date: Sat, 3 Jul 2021 09:14:24 -0700 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <0309ED7D-32C9-4A5A-A867-5C4CA454212B@jbass.io> To: Jordan Bass X-Mailer: Apple Mail (2.3654.100.0.2.22) X-Rspamd-Queue-Id: 4GHH8S3cm2z3q5r X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-arm X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Jul-3, at 03:11, Jordan Bass wrote: > I've installed 13.0-RELEASE on a micro SD card to use on a 8GB = Raspberry Pi 4. The Raspberry Pi 4 launches u-boot from the mSD card = successfully. Without any USB devices attached, u-boot will boot FreeBSD = from the mSD card successfully. When I attach an externally powered USB = SDD enclosure containing 2 drives and try to boot, u-boot will fail to = boot FreeBSD from the micro SD card. It will then try to boot from USB = and fail because they are just ZFS storage. Finally, u-boot will = endlessly try to boot over the network. >=20 > To work around the problem, I can detach the USB drives, power on the = Pi, wait a few seconds, and then attach the USB drives. >=20 > I've tried the 2021-04 build of u-boot, and that will boot from mSD = with the USB drives attached, but only because it fails to detect the = USB devices, and the ZFS pools will not be imported on boot. >=20 > Does anyone have any suggestions for configuring u-boot to behave in = the way I expect? I want to boot from mSD, even when USB drives are = attached. >=20 You do not report what, if any, error messages U-Boot is reporting. Just in case it is relevant, I', going to quote a list message from back in April: QUOTE I will note that one thing that was discovered was that u-boot does not well support having a USB device with more than one storage LUN in the device. It produces messages like: Scanning disk usb_mass_storage.lun1... ** Unrecognized filesystem type ** ** Unrecognized filesystem type ** Scanning disk usb_mass_storage.lun3... ERROR: failure to add disk device usb_mass_storage.lun3, r =3D 20 Error: Cannot initialize UEFI sub-system, r =3D 20 2676208 bytes read in 41 ms (62.2 MiB/s) libfdt fdt_check_header(): FDT_ERR_BADMAGIC Error: Cannot initialize UEFI sub-system, r =3D 20 EFI LOAD FAILED: continuing... BOOTP broadcast 1 DHCP client bound to address 192.168.1.171 (121 ms) *** ERROR: `serverip' not set (Text is actually from a test that Fedora's configuration at the time was getting the same sort of problem from its u-boot build. The text just happened to be handy to grab.) It seemed that such a device needed to be plugged in after u-boot was no longer involved (and to be unplugged before u-boot would again be involved). I mention this because having multiple SATA drives possible might be an example of multiple storage LUNs for a single USB device. There is: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253983 that starts before the u-boot tie was known and progresses through it being discovered --and that mistakenly indicates "Closed FIXED" to indicate that it was not a FreeBSD problem. (No problem was "fixed": just isolated to not be FreeBSD's problem.) END QUOTE To my knowledge, you would have to adjust U-Boot's configuration to complete ignore USB in order to work around U-Boot's problem for such contexts. Looks like Robert Crowston provided some notes that go in this driection. There might be multi-storage-device (each single LUN) that also have problems, for all I know. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)