From nobody Fri Jul 08 18:00:27 2022 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 BACC917D45D9 for ; Fri, 8 Jul 2022 18:02:03 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Lfh1f1stWz3Fld for ; Fri, 8 Jul 2022 18:01:58 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.16.1/8.16.1) with ESMTPS id 268I0RVL018740 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 8 Jul 2022 11:00:27 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.16.1/8.16.1/Submit) id 268I0Rab018739; Fri, 8 Jul 2022 11:00:27 -0700 (PDT) (envelope-from warlock) Date: Fri, 8 Jul 2022 11:00:27 -0700 From: John Kennedy To: "Wall, Stephen" Cc: "freebsd-arm@freebsd.org" Subject: Re: Installing 13.1 ARM on SSD Message-ID: References: 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Rspamd-Queue-Id: 4Lfh1f1stWz3Fld X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of warlock@phouka1.phouka.net has no SPF policy when checking 107.170.196.116) smtp.mailfrom=warlock@phouka1.phouka.net X-Spamd-Result: default: False [-1.80 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; FORGED_SENDER(0.30)[warlock@phouka.net,warlock@phouka1.phouka.net]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm]; TO_DN_EQ_ADDR_SOME(0.00)[]; R_SPF_NA(0.00)[no SPF record]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; BLOCKLISTDE_FAIL(0.00)[107.170.196.116:server fail]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:14061, ipnet:107.170.192.0/18, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[phouka.net]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_NEQ_ENVFROM(0.00)[warlock@phouka.net,warlock@phouka1.phouka.net] X-ThisMailContainsUnwantedMimeParts: N On Fri, Jul 08, 2022 at 05:40:23PM +0000, Wall, Stephen wrote: > I am attempting to install FreeBSD/ARM 13.1 on a RPi4 with a USB3 SSD attached. > Steps I’ve taken: > - Used Raspberry Pi Imager to set the board to boot from USB first, SD card second > - downloaded and burned FreeBSD 13.1 arm65-aarch64-RPI image > - booted and run bsdinstall > - selected ZFS > - selected the USB SSD > > Installation ran to completion, but when I reboot without the SD card, I get a “Firmware not found” error message. > Searching the web gives lots of results for linux, but I can’t find anything for FreeBSD. > Has anyone successfully done an install like this, and can point me toward some resources that will get me straightened out? For my RPI4, I burned the SD card and initially booted off of that. That approach got started from Mark Millard's approach here: https://marc.info/?l=freebsd-arm&m=162032836014677&w=2 The image I seeded from was "burned" via: xzcat < FreeBSD-13.1-STABLE-arm64-aarch64-RPI-20220603-185159f77c9-250958.img.xz | dd bs=512b of=/dev/da1 Probably could have used a much bigger multiple of 512 for the blocksize, da1 happened to be what the disk-to-be showed up as on my system. So that's a -STABLE (vs a -RELEASE), and that "arm65" was probably a human typo I'm guessing (vs arm64). From the SD card, I did a typical bsinstall onto the USB-connected disk, then stomped on /boot/efi with the SDCARD's /boot/msdos contents (uboot). I suspect that is what is biting you. I yanked out the SD card at that point, and have been USB-only ever since. root@rpi4:~ # gpart show => 40 488397088 da0 GPT (233G) 40 532480 1 efi (260M) 532520 2008 - free - (1.0M) 534528 50331648 2 freebsd-swap (24G) 50866176 437530624 3 freebsd-zfs (209G) 488396800 328 - free - (164K) This was from the SD card booted, where the USB disk is now da0, and I think that is bash-style environment variable declaration but you get the idea. Reformatted what will be /boot/efi, mounted it, copied over uboot from SD card's /boot/msdos, unmounted it: export TGT=da0 newfs_msdos -F16 -L uboot /dev/${TGT}p1 mount -vt msdos /dev/${TGT}p1 /mnt (cd /boot/msdos && tar jcf - .) | (cd /mnt && tar fvx -) umount -v /mnt Probably a little old-school.