From owner-freebsd-arm@freebsd.org Thu May 6 16:02:14 2021 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 0E73D626652 for ; Thu, 6 May 2021 16:02:14 +0000 (UTC) (envelope-from carlj@peak.org) Received: from smtp.email-protect.gosecure.net (smtp.email-protect.gosecure.net [208.80.202.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "*.email-protect.gosecure.net", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Fbdd02kYnz4pbR for ; Thu, 6 May 2021 16:02:12 +0000 (UTC) (envelope-from carlj@peak.org) Received: from envoy14.neonova.net ([137.118.58.100]) by smtp.email-protect.gosecure.net ({1a47cfb2-78bb-11eb-b0ba-d9a5843a38c6}) via TCP (outbound) with ESMTP id 20210506160204502_00002504 for ; Thu, 06 May 2021 09:02:04 -0700 X-RC-FROM: X-RC-RCPT: Received: from bay.localnet (unknown [199.58.99.76]) (Authenticated sender: carlj@peak.org) by envoy14.neonova.net (Postfix) with ESMTPA id 4Fbdcm5znVz9tKc for ; Thu, 6 May 2021 12:02:00 -0400 (EDT) Received: from carlj by bay.localnet with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1legRr-000Gam-3d for freebsd-arm@freebsd.org; Thu, 06 May 2021 09:01:59 -0700 From: Carl Johnson To: freebsd-arm@freebsd.org Subject: Re: rpi4 zfs-on-root boot-to-usb3 References: Date: Thu, 06 May 2021 09:01:59 -0700 In-Reply-To: (tech-lists@zyxst.net's message of "Thu, 6 May 2021 12:12:48 +0100") Message-ID: <86lf8r6ebs.fsf@bay.localnet> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-MAG-OUTBOUND: greymail.email-protect.gosecure.net@137.118.58.100/32 X-Rspamd-Queue-Id: 4Fbdd02kYnz4pbR X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=pass (policy=none) header.from=peak.org; spf=pass (mx1.freebsd.org: domain of carlj@peak.org designates 208.80.202.2 as permitted sender) smtp.mailfrom=carlj@peak.org X-Spamd-Result: default: False [-3.79 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[208.80.202.2:from]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:208.80.200.0/21]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[208.80.202.2:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[4]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[peak.org,none]; NEURAL_HAM_SHORT(-0.99)[-0.991]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14618, ipnet:208.80.202.0/23, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 May 2021 16:02:14 -0000 tech-lists writes: > Hi, > > How can zfs-on-root boot-to-usb3 on rpi4 be accomplished? > > I've tried bsdinstall from a mmcsd-booted rpi4 but there seems to be > problems with it that I can't work around. What's really needed is an > installer, but these aren't made for arm64.aarch64 rpi4 from what I can > see (I'm no expert though, it's entirely feasible i've missed > something). > > Maybe one way of doing it would be to have a usb key (as ufs2) for the > system to boot on, then have /home /usr/obj and other larger dirs on the > usb3-zfs disk. I am currently running a system that way (zfs-on-root and boot from USB3), but I had problems doing it. I used bsdinstall, but it complained that it couldn't find a MANIFEST file and I couldn't find a way around that. It had already partitioned the disk and set up zfs, so I just downloaded the base.txz and kernel.txz files from the FreeBSD website and extracted them to the filesystem. I then copied over the u-boot and rpi-firmware files from the mmcsd to the appropriate directories on the SSD, and booted it up. I think the default on the RPI4 is to boot from USB if there isn't a mmcsd card, or you can use the RPi OS to reverse that if you want to. Sorry if this doesn't sound as easy as it really should be. This was only a few weeks ago, but I didn't keep detailed notes of the exact steps. -- Carl Johnson carlj@peak.org