Skip to content

bootcode.bin cannot load files when loaded from a GPT drive #749

Open
@feherneoh

Description

@feherneoh

I'm using commit 1a717bb from the next branch.
I'm trying to boot from an external hard drive, that is partitioned as GPT. When I have another USB device connected (can be anything, mouse, keyboard, game controller), bootcode loads from the hard drive's EFIESP partition, the rainbow splash appeares, but the green led starts blinking, and nothing more happens. I tried disabling the rainbow screen in config.txt, but it did not have any effect, so seems like it's not loaded at all.

Drive is a Western Digital My Passport Ultra (1TB), partitioned using Windows' diskpart.
Bus 004 Device 002: ID 1058:0837 Western Digital Technologies, Inc.
No ext4 partition was added yet.

Partition table shown by gdisk:

Command (? for help): p
Disk /dev/sdc: 1953458176 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953458142
Partitions will be aligned on 8-sector boundaries
Total free space is 4029 sectors (2.0 MiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1              34          262177   128.0 MiB   0C01  Microsoft reserved ...
   2          264192         1288191   500.0 MiB   EF00  EFI system partition
   3         1288192      1953456127   930.9 GiB   0700  Basic data partition

Command (? for help):

Device is a Raspberry Pi 3 Model B V1.2

Also note that bootcode.bin won't get loaded if the only attached USB peripheral is the external HDD.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions