Closed ragazenta closed 6 months ago
Is it because FAT 16?
It's weird why the bootloader detect it as type: 16 when lsblk
shows FAT32?
pi@raspberrypi:~$ lsblk -f /dev/mmcblk0
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
mmcblk0
├─mmcblk0p1
│ vfat FAT32 BOOTFS
│ 069C-A08E
└─mmcblk0p2
ext4 1.0 rootfs
048f37e1-864f-4d4f-aeb9-16f7734b888d
Describe the bug
Hi, I'm unable to boot SD Card if I use GPT scheme with EFI System Partition (ESP) as bootfs.
I've read previous related issue #359 and it should've already been fixed in e87bc4da8d983aa6e7c3edcf8cd823b76e50e65e, but currently it's not.
Steps to reproduce the behaviour
I'm using custom OS image in SD Card and official RaspiOS Bookworm Lite in USB.
Booting from USB to see bootloader version.
Disk partition
Click to show output of fdisk -l
``` pi@raspberrypi:~$ sudo fdisk -l /dev/mmcblk0 Disk /dev/mmcblk0: 29.73 GiB, 31927042048 bytes, 62357504 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 58C0F1B1-E142-405A-8F9B-D1206CEE54FD Device Start End Sectors Size Type /dev/mmcblk0p1 2048 1050623 1048576 512M EFI System /dev/mmcblk0p2 1050624 3795719 2745096 1.3G Linux root (ARM-64) ```Click to show output of gdisk -l
``` pi@raspberrypi:~$ sudo gdisk -l /dev/mmcblk0 GPT fdisk (gdisk) version 1.0.9 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Disk /dev/mmcblk0: 62357504 sectors, 29.7 GiB Sector size (logical/physical): 512/512 bytes Disk identifier (GUID): 58C0F1B1-E142-405A-8F9B-D1206CEE54FD Partition table holds up to 128 entries Main partition table begins at sector 2 and ends at sector 33 First usable sector is 2048, last usable sector is 62357470 Partitions will be aligned on 2048-sector boundaries Total free space is 58561751 sectors (27.9 GiB) Number Start (sector) End (sector) Size Code Name 1 2048 1050623 512.0 MiB EF00 bootfs 2 1050624 3795719 1.3 GiB 8305 rootfs ```Click to show Partition GUID
``` pi@raspberrypi:~$ sudo gdisk /dev/mmcblk0 GPT fdisk (gdisk) version 1.0.9 Partition table scan: MBR: protective BSD: not present APM: not present GPT: present Found valid GPT with protective MBR; using GPT. Command (? for help): i Partition number (1-2): 1 Partition GUID code: C12A7328-F81F-11D2-BA4B-00A0C93EC93B (EFI system partition) Partition unique GUID: 9AB42A2C-2354-426F-9ADD-B4B5BF492FB5 First sector: 2048 (at 1024.0 KiB) Last sector: 1050623 (at 513.0 MiB) Partition size: 1048576 sectors (512.0 MiB) Attribute flags: 0000000000000000 Partition name: 'bootfs' ```Device (s)
Raspberry Pi 5, Raspberry Pi 4 Mod. B
Bootloader configuration.
System
No response
Bootloader logs
In this log, the bootloader failed to read ESP partition in SD Card, so then it will boot to USB.
USB boot
No response
NVMe boot
No response
Network (TFTP boot)
No response