[Bug 269072] fstyp(8) does not recognize rpi2040 chip in update mode as fat16-drive

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 29 Feb 2024 13:18:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269072

Stefan Eßer <se@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |se@FreeBSD.org
             Status|Open                        |In Progress
           Assignee|fs@FreeBSD.org              |se@FreeBSD.org

--- Comment #1 from Stefan Eßer <se@FreeBSD.org> ---
(In reply to nkoch from comment #0)

There is no problem with FAT16 on file systems larger than 32 MB.

The number of FAT entries limits the number of addressable clusters (to a bit
less than 2^FATBITS entries (the first 2 and the last 10 to 16 clusters are
reserved).

FAT16 supports (at least) 65538 clusters, and 32 MB is therefore only the limit
for 1 sector per cluster formats (but your FAT16 file system is formatted with
8 sectors per cluster which raises the limit to 256 MB).

Could you please provide me with a download URL for the raw image you use?
In case you have created the FAT file system yourself, provide me with the
exact parameters used. (Or just send the first 128 KB of the raw file system
image to se@FreeBSD.org ...)

I haven't looked in detail at the sequence of validity checks performed by the
fstyp command when the signature of a FAT file system is detected, but I do
assume that a false assumption has been made in those checks.

-- 
You are receiving this mail because:
You are the assignee for the bug.