From nobody Thu Oct 19 07:45:25 2023 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 4SB0Bb2q14z4y6JD for ; Thu, 19 Oct 2023 07:45:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-23.consmr.mail.gq1.yahoo.com (sonic304-23.consmr.mail.gq1.yahoo.com [98.137.68.204]) (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 4SB0BZ73PVz3LJ3 for ; Thu, 19 Oct 2023 07:45:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697701540; bh=zR+1CmfZ1CTZEyepEXsjOpWtn3MFQnDl6UgaPzNyib4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=gWE6m47yV+lLZJcBptlmhBjTgBIvrxWIaHFqWHoieoRWcloow1hsaIls8oVXowv+E2gymJdg7rd50coVwknnqLJlFZoh9dkBSWKMrLmLDsMRjCJxclBuAKpscubkq+wt4SdvfZm/29NLFcTyneJiFX+XJojX1XXUUhimEXRpFstnobvwLcZpmgIKiJGR87djuyJgp/V1ALB/tcXR8ZQzCavRkmZsBIiqIz/QNKXXxW1P361v3WWlN+rxHYyrDQ+lZo9OCeu4ZlGVHzSiXz1QWbRXDh554kctpM5MpCBMjshvJZdKBImhCe/ytHuzrmFMuwS8fb79jBZ6gfqODtSdNg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697701540; bh=gtD9qa8SH2q+E/m4BNxxDWi6MKNhtJ0vtZ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iaoA_5lNxxuwDS_Vzcs1IukFWlDsSO4f7bzIhY48_T5 OUHHh1w3aAGBwadp_aK2X8OwtHNHC.m.yOO6EcJnfIAEyr884vZnIRBQB5GyyWflem_csdrH6Tx6 fsooE7EbWCpiBXXuXmfzQ9gakSKP8_X4jP.m63r6cmsC8g1WBNJfK9gBB4hC55dVlNa5kuN4IK.C mbCV7rntNUWnfjWUqlHEpxTMcIKARPHf091ZxhtNsIUCNMnkkaG29Ab0DsDI.p2PstWnQlt9ZSqj vV9ei7N66YmMc70Y1ZTR_pdiyJY2tTvuPyjq5GEQZy7escOJAgwQAAVoSVh38CJ5tFtESY.XItRq i0Qs64dsuJhOd7LxpmXYx83Uyi2HC0IrD9pG0heSECVITHEy21Wm9oK78FW47Dvlt3NNGqDcVjks dT9opwy9T968qnH5UEBMOYR4NY8WMDZ79f.FCvWzrRoxSEfVMZaCnNGqI0fIdGKgyez2p.sDwUtw 3JcYIQ3YRpIVEgfUWF2hPHOaSQD2h8KrIK5lAD5rQz8VdtbbxmOg9G4pfJEVzIGXemY.pBLT5 X-Sonic-MF: X-Sonic-ID: 59e74944-8cea-4f80-9d13-79c57ef31962 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Thu, 19 Oct 2023 07:45:40 +0000 Received: by hermes--production-bf1-fc478f446-h82k2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 206c65f2af10d901319daf456755eff5; Thu, 19 Oct 2023 07:45:38 +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 16.0 \(3774.100.2.1.4\)) Subject: Re: State of the freebsd/crochet project? From: Mark Millard In-Reply-To: <87wmvjjkae.fsf@protonmail.com> Date: Thu, 19 Oct 2023 00:45:25 -0700 Cc: Warner Losh , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <33693188-5C53-4C9E-8F67-647655E957BD@yahoo.com> References: <87ttqrqnal.fsf@protonmail.com> <87wmvjjkae.fsf@protonmail.com> To: Rahul Rameshbabu X-Mailer: Apple Mail (2.3774.100.2.1.4) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4SB0BZ73PVz3LJ3 On Oct 18, 2023, at 21:41, Rahul Rameshbabu = wrote: > On Tue, 17 Oct, 2023 09:01:33 -0600 "Warner Losh" = wrote: >> On Tue, Oct 17, 2023, 7:44 AM void wrote: >>=20 >> On Tue, Oct 17, 2023 at 07:13:28AM -0600, Warner Losh wrote: >>=20 >>> Crochet has no active maintainers. Most people have moved on to = poudriere. >>=20 >> Does poudriere handle the msdos uboot *and* efi part when=20 >> creating the image? >>=20 >> Yes. I worked with manu years ago to put all the needed metadata for = the different boards into the ports... >=20 > It does but it seems to have an unfortunate caveat. It assumes that > FAT16 is supported by all embedded targets. The Raspberry Pi 4 and I > assume the Pi 5 as well drop support for FAT16 The snapshot images booted the RPI4B's that I have access to just fine last I tried such. But release/arm64/RPI.conf and release/tools/arm.subr which are used to build such uses (selective axtractions across files): FAT_SIZE=3D"50m -b 1m" FAT_TYPE=3D"16" . . . gpart add -t efi -l efi -a 512k -s ${FAT_SIZE} ${mddev} newfs_msdos -L efi -F ${FAT_TYPE} /dev/${mddev}s1 FreeBSD release images are also build with such: efi partition type and a FAT16 file system. Looking at a (my abbreviation) RaspiOS64 boot media used to boot the RPi4B's (official RPi* media content, not FreeBSD materials): # newfs_msdos -N /dev/da0s1 /dev/da0s1: 523984 sectors in 32749 FAT16 clusters (8192 bytes/cluster) BytesPerSec=3D512 SecPerClust=3D16 ResSectors=3D1 FATs=3D2 = RootDirEnts=3D512 Media=3D0xf0 FATsecs=3D128 SecPerTrack=3D63 Heads=3D255 = HiddenSecs=3D0 HugeSectors=3D524288 But it does have a partition type of fat32lba: # gpart show -p /dev/da0 =3D> 63 468862065 da0 MBR (224G) 63 8129 - free - (4.0M) 8192 524288 da0s1 fat32lba (256M) 532480 468329648 da0s2 linux-data (223G) Do you know some specific RPi4B EEPROM content for which a FAT16 file syatem is not supported? (The EEPROM has the RPi4B boot loader.) Or are you saying some U-Boot vintage is restricted to FAT32 file systems for loading FreeBSD's EFI/BOOT/bootaa64.efi ? Or may be you are referencing the partition type (expressed here in gpart terms), instead of the actual file system type that is contained? : efi The system partition for computers that use = the Extensible Firmware Interface (EFI). The = scheme- specific types are "!239" for MBR, and "!c12a7328-f81f-11d2-ba4b-00a0c93ec93b" for = GPT. . . . fat16 A partition that contains a FAT16 = filesystem. The scheme-specific type is "!6" for MBR. fat32 A partition that contains a FAT32 = filesystem. The scheme-specific type is "!11" for MBR. fat32lba A partition that contains a FAT32 (LBA) filesystem. The scheme-specific type is = "!12" for MBR. (It has been some time since last I tried it, but last I tried partition type fat16, the RPi4B's boot from it just fine if I remember right. But GPT is supported, not just MBR.) > , so the boot partition > needs to be FAT32. >=20 Not for the actual file system for any fairly modern vintage of RPi4B EEPROM content or U-Boot that I'm aware of. I've less certainty about the range of partition types, not having tested such in recent times. Is there a chance you are using so large of an msdos file system that a FAT32/FAT32LBA file system is a requirement? =3D=3D=3D Mark Millard marklmi at yahoo.com