raspberrypi / usbboot

Raspberry Pi USB booting code, moved from tools repository
Apache License 2.0
878 stars 221 forks source link

Is it possible to use Uboot from inside a secure signed boot.img? #145

Closed 3dlabsio closed 2 years ago

3dlabsio commented 2 years ago

I've tried utilizing uboot within a boot.img on a cm4 configured for secure signed boot images without success. I've also validated that it boots with a vanilla set of files in the boot.img.

I'll have to dig into the cause of the failure more, but wondering if anyone out there has successfully configured this.

timg236 commented 2 years ago

This is really a question for the forums since we don't support u-boot.

The GPU firmware loads a generic ARM blob + stubs and initramfs if specified. Since you are inserting an extra boot stage the initramfs within boot.img would need to contain all the resources require by u-boot since boot.img is discarded as soon as the kernel is loaded.

timg236 commented 2 years ago

Edit. The ramdisk is loaded at 512MB if you really want to patch uboot to read this. Although I’d recommend using a proper initrd like the Linux kernel

embed123linux commented 4 months ago

Hi @3dlabsio did you manage to u-boot within boot.img? I included boot.scr and uImage file inside boot.img but this does not seem to work.