From owner-freebsd-hackers@freebsd.org Fri Oct 25 21:41:49 2019 Return-Path: Delivered-To: freebsd-hackers@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 2C2C515C15F for ; Fri, 25 Oct 2019 21:41:49 +0000 (UTC) (envelope-from mason@blisses.org) Received: from phlegethon.blisses.org (phlegethon.blisses.org [50.56.97.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 470Hcr1Xtfz46MG for ; Fri, 25 Oct 2019 21:41:47 +0000 (UTC) (envelope-from mason@blisses.org) Received: from cocytus.blisses.org (cocytus.blisses.org [64.223.129.151]) by phlegethon.blisses.org (Postfix) with ESMTP id 954C614002 for ; Fri, 25 Oct 2019 17:41:41 -0400 (EDT) Received: from blisses.org (acheron.int.blisses.org [10.0.1.10]) by cocytus.blisses.org (Postfix) with ESMTPSA id CF93780150 for ; Fri, 25 Oct 2019 17:41:39 -0400 (EDT) Date: Fri, 25 Oct 2019 17:41:37 -0400 From: Mason Loring Bliss To: freebsd-hackers@freebsd.org Subject: Booting from USB on RPi3 Message-ID: <20191025214137.GB12665@blisses.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="s/l3CgOIzMHHjg/5" Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 470Hcr1Xtfz46MG X-Spamd-Bar: ------- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mason@blisses.org designates 50.56.97.101 as permitted sender) smtp.mailfrom=mason@blisses.org X-Spamd-Result: default: False [-7.11 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_THREE(0.00)[3]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[blisses.org]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:19994, ipnet:50.56.0.0/17, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-2.71)[ip: (-9.85), ipnet: 50.56.0.0/17(-2.01), asn: 19994(-1.62), country: US(-0.05)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Oct 2019 21:41:49 -0000 --s/l3CgOIzMHHjg/5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I posted this to freebsd-arm a couple days ago, but didn't get any bites. Apologies for the crosspost, but I'm hoping someone here's familiar with the code: I'm struggling with how to boot FreeBSD 12 directly from a hard drive on an RPi3b+, with no MMC card. It happens automatically with a Raspbian image, a= nd I got Devuan to boot this way by changing the right pointers in config.txt, but I'm struggling to figure out how to do it on FreeBSD. I'm not sure what dictates the boot behaviour. No matter what I try, I seem to fail through to the system trying to netboo= t. I read this thread: https://forums.freebsd.org/threads/booting-raspberry-pi-3-from-usb.7179= 8/ =2E..and that had me try changing fstab to point to the hard drive directly= , but that didn't work - the kernel hasn't loaded at that point - and there was t= he notion of adding these to loader.conf: vfs.mountroot.timeout=3D"15" vfs.mountfrom=3D"ufs:/dev/da0s2a" =2E..but those seem not to be helping. The bit that's frustrating is that clearly I'm starting the FreeBSD bootloader, as seen here: https://wiki.freebsd.org/MasonLoringBliss?action=3DAttachFile&do=3Dget&= target=3Drpi-boot.jpg How do I tell it to look at da0, either as a one-shot or persistently? (Preferably both!) In exchange for help, I'll document the process, complete with (better) screenshots, for the wiki. Thanks! --=20 Mason Loring Bliss mason@blisses.org They also surf, who only stand on waves. --s/l3CgOIzMHHjg/5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEEXtBZz1axB5rEDCEnrJXcHbvJVUFAl2zbBEACgkQnrJXcHbv JVXKthAArrPKwmEn0H+tg37uEDWHkDShAJuFfYci46ovLjCRpTIaRXT5ozP+lK33 2HW52uvrcCyZOx7xdcmHTFo64CxqfgsOcs0I21NPpgXQ9+VY3nR5FVPBYewOuNHA pN7Ue3bGJ/Y7WccRPPTniXgU3CueSl3z21/dgIjOdN2GH9+iZ4CbMyRwzcS/VX8w Dujn84QF0laBzlLCkmBn6Xlx4BF1EFs38n2chD32s78bO6/eYwzlOen/Why6EOPr d3ekjK1D1Jcsy37OnqV2NXWqWShuNmQhu/FQRr38rcQYLqWlTRSk/fSm439TkJXk XO2xKV7Wa1ug+rbtx2Xdel68Y21BoAHqO1E0zvGzOgYMaooIk/w9okhdfu8Rxksp 7WbSr92xrA+e/WGnBNko7WMFIKAKHfIUHIozMV2QkYLYdKY/Usu9denVyuvNKglt SDTnnlT/llvPnEBbUine2GqvHQBKKtUdU00raYt6ujuX4ILVtl8NLhas/zvWip1v jzRAzUN7jZ5MtnoVY9Rvf+CoaqOqIfSXQxe1q12iXZjQ3nOD/iYrMaNwa9cMlpu/ iuMpixxeyzSKbgI2ifYZ/iCVej3nzWZNJSJ4lOc0sj1XnwfHKM4GkImO1R0VnoSe DglEbb/w1sklW1h2gW2HVmE7AZcyFlXmmkYaU6dPBZkxefhqMbc= =/qsG -----END PGP SIGNATURE----- --s/l3CgOIzMHHjg/5--