agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
510 stars 398 forks source link

Enable to support USB boot #1175

Closed harunobukurokawa closed 7 months ago

harunobukurokawa commented 1 year ago

Raspberry Pi 4 board can boot the image from USB memory. But, current meta-raspberrypi supports only SD boot.

This commit allows switching SD boot to other device. For example, if you want to use USB boot, please define the following parameters in your conf/local.conf file. CMDLINE_ROOT_PARTITION = "/dev/sda2" BOOT_MEDIA = "usb"

- What I did I checked - How I did it This commit is a proposal then I wrote some description in commit message

harunobukurokawa commented 8 months ago

@agherzan I rebased and push my commit.

agherzan commented 7 months ago

@kraj I requested that so that we don't have to maintain values from uboot/kernel perspective. Indeed, a UX compromise. I'll leave it as such for now. We could have a better variable in the future if needed.