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

Open
#749 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
raspberry-pi

Research direction

Start by reproducing the boot from the described GPT drive on a Raspberry Pi 3, both with and without another USB peripheral attached. Focus on bootcode.bin loading from the EFIESP partition and whether config.txt is subsequently read. Done means the system proceeds past the rainbow screen and loads the expected configuration in all reported USB-device combinations.

Written by the indexing model from the issue text.

Description

Waiting for internal response Waiting for response from OP

I'm using commit 1a717bb3efc7f4751d8c1839f8d48111a89958f8 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.

Dominant language
No language data
Stars
5.6k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from raspberrypi/firmware

All issues in raspberrypi/firmware

Similar issues

More Embedded & IoT issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.