Jump to content

Tons of GPT errors on boot when USB drive is connected


Go to solution Solved by c0rnelius,

Recommended Posts

Posted

Odroid N2+ booting from eMMC with a 4TB USB drive.  With the USB drive disconnected, the system boots fine and very quickly.  With the USB drive connected, it throws hundreds of errors for about 30 seconds before finally moving on and booting from the eMMC.  I have no desire to ever boot from SD or USB, so I would like to just disable those options.  I found this topic https://forum.armbian.com/topic/10349-disable-u-boot-usb-support/ but I can't really follow what they're talking about and I have no idea how to patch U-boot or build a new boot image.  Is there an easier way to do this?

 

Here's what the errors look like:

 

Hit any key to stop autoboot:  2  1  0 
starting USB...
Bus usb@ff500000: Register 3000140 NbrPorts 3
Starting the controller
USB XHCI 1.10
scanning bus usb@ff500000 for devices... GPT: first_usable_lba incorrect: 800 > 0
find_valid_gpt: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xF0F7C330 != 0x5452415020494645
find_valid_gpt: *** ERROR: Invalid Backup GPT ***
GPT: first_usable_lba incorrect: 800 > 0
find_valid_gpt: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0xF0F7C330 != 0x5452415020494645
find_valid_gpt: *** ERROR: Invalid Backup GPT ***
GPT: first_usable_lba incorrect: 800 > 0
>>>>> ( Repeated a few hundred times ) <<<<
find_valid_gpt: *** ERROR: Invalid GPT ***
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
find_valid_gpt: *** ERROR: Invalid Backup GPT ***
** Invalid partition 1 **
Couldn't find partition usb 0:1
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
>>>>>>>( Then it boots normally )<<<<<<<<<<

 

<
  • Solution
Posted

Find the /dev/node `lsblk`

 

Flashing options:

eMMC:
sudo dd if=u-boot.bin of=/dev/mmcblkX bs=512 seek=1

SDCARD:
sudo dd if=u-boot.bin.sd.bin of=/dev/mmcblkX conv=fsync bs=1 count=442
sudo dd if=u-boot.bin.sd.bin of=/dev/mmcblkX conv=fsync bs=512 skip=1 seek=1

 

 

u-boot.bin u-boot.bin.sd.bin

Posted

Just to confirm, in this case would I use /dev/mmcblk1boot0 ?

Where did you get those .bin files (or did you just build them)?  I did a lot of searching on this but couldn't find anything (granted it's probably b/c I didn't know exactly what I was looking for).

 

Thank you!

 

# lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
sda            8:0    0  3.6T  0 disk
└─sda1         8:1    0  3.6T  0 part /mnt/usbdrive
mmcblk1      179:0    0 29.1G  0 disk
└─mmcblk1p1  179:1    0 28.8G  0 part /var/log.hdd
                                      /
mmcblk1boot0 179:32   0    4M  1 disk
mmcblk1boot1 179:64   0    4M  1 disk
zram0        251:0    0  1.8G  0 disk [SWAP]
zram1        251:1    0   50M  0 disk /var/log
zram2        251:2    0    0B  0 disk

 

Posted (edited)

I just want to say, c0rnelius, you are a lifesaver! I’ve spent several hours trying to figure out this issue, and it’s reassuring to see I’m not the only one dealing with it. This problem must be more common than it seems. I initially thought it was related to power management, as the external drives might be drawing too much power.

 

In my case, I tried countless methods to disable USB power management and other tweaks, but it turns out the simple custom boot file was the ultimate solution!
 

For reference, I’m running v24.11.1 on an Odroid N2 with Armbian Linux 6.6.63-current-meson64

 

Update

This is a more widely issue it seems given there are other releated threads

 

Edited by Z11ntal33r

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines