From nobody Fri Jul 8 20:48:57 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 943B912A9449 for ; Fri, 8 Jul 2022 20:49:05 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) (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 4LflkS1nj6z3f0m for ; Fri, 8 Jul 2022 20:49:04 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657313342; bh=agclin24pLFfrbr8J2Tmo9QiPl5G3mKV65mhC96DX3o=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=L7aU82rBGKVENLvWRD3B8mzaig2EwZ7zX1fNo/XKFdSLPskyQv6Vy0w+qwQye4AcjWb1UQRNEmmuHU0O2mmGwzxmL1oAgWxnsx4DD/GAhyCJCIr1umIBgh2JDaAxuIiVzq0+X4cKC5Y8Inmubt+mDRzhH+xJf/6Gv3Fc4cvSfO/aA6YmPGJyG9+tmPKGYHniGt7ejO776Ow7YhfGtI+2Rh+zY2cT1uFrbvZetRrlV0aRB8nS/1YQ929cYYRFyE4lfst7I44RnzG4Eah6NwB5LlvplTb+gqyTK8N/GIwWqoCYAV1F0PPEkaYIh57qPIW2uzQfdrh3eG+sWlNLPf++xQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657313342; bh=BU575OYQyoYmY/StCqfkBfI4HVKgVE9dgluq9l3EmIm=; h=X-Sonic-MF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MOdkKQAW30UIfNnTxAjvR idTQJsFkdKRsZrQHcF54WLiikgOK8ycK2Kvk4IfQ1zFuAqdzs9ep8DPVIyc.byXUxr5Hltn.5_Hk sghxX8HAQntDZ3Iae9yQ8_keQYmKmZB0FiUsPX1pONx5KUDQTc9Tm..2gja..tCgdAUb8arz9N.Y sR1DoIyvG8kbbqtwq94j0P6D3jzKTeppRJKt0T2gAKTRiXUy_QEqG5fxM41XJXgza5Gk6tMV0XTO VOiqb_l7crqWWQ5H5xyMD8aiUWM_BkMiKH6qoU2pCwls0rebX6aqvrzTohXW8Jf2MXhS1DS2EhHK OZvT55m8C71CeQADWfDHG0XP0bQP5vdUggVTN7y2tHmdoBEW48YQ0G7Jhp1Yx9ASxpTxp3ckCPuQ g180Yr40f_GsBnUBK9.acYi_YdYup_QNgahNH1OnhlRUrUqsWc0rdh87rnNRwwHi2cjm4by95RX2 Pst9idtrL1JYHQkMJ6_o9FD1DIYkXumfgtJjm4dRAiNRIdtlr1hhtAoroVuJdh9zBjaF2vFUur3c dgPKE X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Fri, 8 Jul 2022 20:49:02 +0000 Received: by hermes--production-ne1-7864dcfd54-xmlhn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 12073faa9eaef87bb894afd05b418913; Fri, 08 Jul 2022 20:48:59 +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: <7FE6C042-AC16-4726-A5BA-67408DE26739@yahoo.com> Date: Fri, 8 Jul 2022 13:48:57 -0700 Cc: "Wall, Stephen" , "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <1C93D01D-D316-496F-B1E0-B374C7E3CE88@yahoo.com> <7FE6C042-AC16-4726-A5BA-67408DE26739@yahoo.com> To: John Kennedy X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4LflkS1nj6z3f0m X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=L7aU82rB; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.37 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.87)[-0.871]; 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]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; 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.64.31: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:30, Mark Millard wrote: > On 2022-Jul-8, at 13:10, Mark Millard wrote: >=20 >> 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. >=20 > Corrections: "that" not "That". Only one "192". >=20 >>> 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, >=20 > 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. >=20 > The first stage that deals with ZFS, to my knowledge, is the > FreeBSD EFI loader (that was loaded and started by U-Boot). >=20 > The RPi4B sequencing for the normal FreeBSD way of > setting things up is: >=20 > RPi* firmware (I'll not give substages in this) > -> armstub8-gic and U-Boot Sorry: armstub8-gic is RPi4B (and related) specific. The other/older aarch64 RPi*'s use armstub8 . > -> FreeBSD loader > -> FreeBSD kernel > -> FreeBSD world >=20 > 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. >=20 > (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.) >=20 >>> 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. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com