From nobody Fri Jul 8 20:30:55 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 8A1223E62A5 for ; Fri, 8 Jul 2022 20:31:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LflKh0grHz3bv5 for ; Fri, 8 Jul 2022 20:31:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657312262; bh=yjzssn9Sb2rdRKqps5igAPgVp+75zEYuygg4iZlkQwI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=ZO4NXw2UPI/zFO6FXpLFiM5yZo0T3rmWYBI4S1dgyxmLQRYM/a/75zSJnW+1gSurs8Ud8xD7wc4DzGqpLwKAVdSn8Qv8/STYGtfXDOrkW7/1r6Nf5Tm/RwHX6PnuQT4EWWaM0fR2aAAPzg9eQyKK4ap7rgOr6zM93P0KgHteLzRzsOu58ywjUCrC5tXCNTSR/1lYa06CM+n2xtFfEMuCNWoqnPsXbJJguZS7WMCi90KKnLC+uvj0HsM1ghw8RiIyfCY6WbR2OIKGR/emosDh0agFtMl9Z/0nGvwUebfhu0dG3zATwR6yuOTxJk2eC2IK4Ly962nfyNySG8TZnAFcfQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657312262; bh=1MpY1ycNZ1SEDlp4SHw7fgmwf8fhk5bW1KVMavmr2Is=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=qS08CwVX6aEuc7x/v2pq0iBymdsqp4122fnw1W7vwAAHaUADSk2KLHC135f8kj3CVTsNomIDnM7Jp1yqx9GifD39ptWucS/dWghw3nGDvppcUF/eu61DMV+4vKhaXLMdK7dGpOUVISnr9yMslAMSdUxObe/hpumA0MapAOJAkKlnB3x0WmwFCZ+vnuRjH/vYEuQXyPFlyWns5i0dTa2WycrHEa6VudINZcvIV5xrMlN6tyZwcEvqqhdgwUloDtgr0gXgIAN7UoUZ2fxl4varTXUaRLJQv/rxyLTb0AtolvhbFqyd5VRC++wGDcaNv1DupNr66PffIfsv5Y5G+1SB/w== X-YMail-OSG: 3MnlU6UVM1k.XT7sxVn1fXemJ4Il4r4VM9Nl3X5D6bGERt62WuUDRlOygTum20q YnfrMnY4bHJLJNVao408Sr_FLclesFgDIvcnucw6tqwEUIsXdhP4u14SToFHEPQvmQY17NRDJCus to6heyEF_MF9O3xnAJl.EEhIK1uus9Y84pokadTIkUjfxzbtO9DuS0lZA4GEjO5XAz5ygjaaCgpQ C.t_SbVm6_137UKz4ZPekx7pUqx1URDUMAPls4oOWYuRqIF4wDrhJ4rczDZMgmKtbcj1481S7gxD PwkFQZLQjjPyDmE0CeaTfaqLY2jiiU0YknAfPau.Y7a1HU.arZOjjPDj7CtPLRDplhl9ISBwA50i Y0fmM2.06Pg3hAmswDiTgAI4sJKQ0mc2TZ4Kcui6yEFeBdPl94Tc2YbHkUEq55OfABDBdBc.vgW8 EUXmrXxcuwTKQpznJBcrayrtZTZvPI9gMZkc7HxJKn.m4uDxWOiikUUesblTPp3iV5uwodAZTJSN VxufVHtUGZZAwFtEah124wV8FkzP5yYdMeLTJU1.4KL6aCZeikfULI15cpCWHYyqrZ0lucq80B5K .v3.V1rrkFGW4H0UpJEk04W7Go31Tkztg_22CRRKWKBw0wuAJYOTeFuxJ0DLs6r15jXPKrPIHVLj eD82ESr9e_C6tQbbWO5uWcyy8I40qY8xdCqBt1TrdpAI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O4KhBx.FoS tYXUprvjUHFHqiRBKT9W18veVo1t4MozjVfbVmUYpPNh9fUp3CURLa_hbFRiuew2sGohGpWsd43W pR4CxS_9gqeX7RWFACXP2GyewucYWEdBUyp4r0KwDRuYReYKIK_8y1FBBQ5czYM6a1UBdI5qt9FA FN.CRsrik39SuNe1PmofuW8G6X09NvzuvcLiMhidimR6LdLF.aEdonjGjRhz8RvI3k6GdMdnFp51 D8CsZuqHnKiDbIgX2mpdHDyWQ7GqucxgAwOdPFqqEN_2.TVpsbAsAu316RJUtF4GMYigULSpNzlx IiQTkjKYP2egGX7kWmGihmuC4kX_5TPxcDtyCOh4xaaUQFXRhnWGo.U7C2rt1BliS9EjVaz3MpmO FkG231Dhl9tcIec_wuigY77sZOHd6A4tXP9m3bN7MrOeQpWhbYTnFsMXdj11OMBNS0bZkv9CGkRJ nkq9ZfdfWlg62qkqAfypChgR5zcAamHRxSKmHPc1lW078wihsndl9KNu_mxMy0v.fmYcnSXSV6B1 niWYT X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 8 Jul 2022 20:31:02 +0000 Received: by hermes--production-ne1-7864dcfd54-zcbtw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 138d1b1409beac6993b4a24e2f4cb7d2; Fri, 08 Jul 2022 20:30:57 +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.120.0.1.13\)) Subject: Re: Installing 13.1 ARM on SSD From: Mark Millard In-Reply-To: <1C93D01D-D316-496F-B1E0-B374C7E3CE88@yahoo.com> Date: Fri, 8 Jul 2022 13:30:55 -0700 Cc: "Wall, Stephen" , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <7FE6C042-AC16-4726-A5BA-67408DE26739@yahoo.com> References: <1C93D01D-D316-496F-B1E0-B374C7E3CE88@yahoo.com> To: John Kennedy X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LflKh0grHz3bv5 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=ZO4NXw2U; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; BLOCKLISTDE_FAIL(0.00)[98.137.69.83:server fail]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.83:from]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N On 2022-Jul-8, at 13:10, Mark Millard wrote: > On 2022-Jul-8, at 12:15, John Kennedy wrote: >=20 >> On Fri, Jul 08, 2022 at 06:26:59PM +0000, Wall, Stephen wrote: >>> I tried something like this - I used rsync to replicate the SD = card's (mounted) msdos partition onto the SSD's (also mounted) efi = partition. That got past the firmware message, but then it stopped in = the boot loader asking for a partition to boot from. = 'zfs:zroot/ROOT/default' resulted in an unknown partition. >>>=20 >>> At the moment, I'm running with the SSD imaged from the FreeBSD RPI = .img file, and that is working, but it's UFS, not ZFS. I'll give your = steps a try, and if I get nowhere, I might wind up creating a UFS = partition for root and boot, and make the rest of the disk zfs with my = desired filesystems. >>=20 >> So, bsdinstall should have set that up (zroot/ROOT/default). =46rom = the >> UFS disk, I think (off the top of my head) you can just do a "zfs = import >> zroot" and then you should be able to see it (and everything else) = with >> a: "zfs list -tall -r zroot" If you picked something other than = zroot >> for the pool name, you might need to do some more tweaking. >>=20 >> In my case, my USB disk is only ~256G. >=20 > "The Design and Implementation of the FreeBSD Operating System" > says about ZFS (page 548): >=20 > "Like all non-overwritingfile systems, ZFS operates best > when at least a quarter of its disk pool is free. Write > throughout becomes poor when the pool gets too full. By > contrast, UFS can run well to 95 percent full and acceptably > to 99 percent full." >=20 > So, for a 256 GiByte USB disk used basically just as space for > one ZFS area (so nearly all the 256 GiBytes is available), > That would mean being careful to avoid having much less than > 64 GiBytes free on the media: hopefully using less than 192 > 192 GiBytes of space at all times. Corrections: "that" not "That". Only one "192". >> I don't know if uboot has any >> BIOS limitations like old x86 did. I've never had to be too wary, = but >> then I've never had BIOS-breaking SSDs laying around to attach to = RPI. >>=20 >> I think uboot has some commands that might let you do some zfs >> exploration, I'm not aware of the RPi* firmware or the U-Boot that it loads and starts being able to deal with ZFS of themselves. The first stage that deals with ZFS, to my knowledge, is the FreeBSD EFI loader (that was loaded and started by U-Boot). The RPi4B sequencing for the normal FreeBSD way of setting things up is: RPi* firmware (I'll not give substages in this) -> armstub8-gic and U-Boot -> FreeBSD loader -> FreeBSD kernel -> FreeBSD world The FreeBSD loader goes on the msdosfs file system, under efi/ . . . but that msdosfs file system also has the RPi* firmware, armstub8-gic, and U-Boot files at its top level. (Most other SBC boards seem to have U-Boot [and, sometimes more] outside any file system, needing to be dd'd to the right place that the partitioning and file systems need to avoid overlapping.) >> but hate to point you at web resources because there seems >> to be a huge variations in what we end up with on FreeBSD/RPI. My = RPI >> is a few hours into a firefox rebuild so I can't give you some real >> guidance from what I'm using at the moment. =3D=3D=3D Mark Millard marklmi at yahoo.com