raspberrypi / firmware

This repository contains pre-compiled binaries of the current Raspberry Pi kernel and modules, userspace libraries, and bootloader/GPU firmware.
5.18k stars 1.68k forks source link

Can't boot pi4 from disk with 4096 logical block size #1840

Open abaumgaertner opened 1 year ago

abaumgaertner commented 1 year ago

Trying to boot of 4k logical sector size disk. Manually setup GPT layout on large disk on Raspberry Pi 4 Model B Rev 1.4

Device Model: ST18000NM003D-3DL103 Firmware Version: SN03 Sector Size: 4096 bytes logical/physical

Disk is connected via ASM235 (USB to SATA) and detected by bootloader.

Bootloop with error: MSD unsupported block size 4096 bootloader CURRENT: Wed Jan 11 17:40:52 UTC 2023 (1673458852) VL805_FW: CURRENT: 000138c0

Same setup boots fine with disk set to 512bytes logical sector emulation.

timg236 commented 1 year ago

Yes, that's not supported by the bootloader.

diegocjorge commented 9 months ago

I'm having the same problem. Is this ever going to be supported by the bootloader?

macromorgan commented 9 months ago

Ditto for the Pi 5. Looks like I can't use a 4kn NVME drive without enabling 512e mode.

doubleuerner commented 5 days ago

https://man.archlinux.org/man/nvme-format.1.en bootloader does not support 4096, only 512

macromorgan commented 5 days ago

https://man.archlinux.org/man/nvme-format.1.en bootloader does not support 4096, only 512

I understand that, but was hoping that support could be added.

timg236 commented 5 days ago

It's on the TODO list (with many other things), priority would be Pi5 NVMe first, USB later, Pi4 etc afterwards