Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Raspberry Pi USB boot #611

Closed
clach04 opened this issue Mar 2, 2019 · 1 comment
Closed

Support Raspberry Pi USB boot #611

clach04 opened this issue Mar 2, 2019 · 1 comment

Comments

@clach04
Copy link

clach04 commented Mar 2, 2019

Enhancement request. Lakka 2.2 (possibly earlier) does support booting from USB with Raspberry Pi 3b+ (and some earlier models via https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/msd.md) if cmdline.txt is modified (by default it is hard coded to the SD card device/partitions).

There are notes online on how to do this, e.g. https://forums.libretro.com/t/raspberry-pi-3-usb-boot/12172/13 I believe this can be supported out of box without the need to edit the cmdline.txt manually.

I was able to get a USB boot with Lakka 2.2 by using the LABEL option for both "boot" and "disk".

Original:

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet $EXTRA_CMDLINE vt.global_cursor_default=0 loglevel=2

Boot using label:

boot=LABEL=LAKKA disk=LABEL=LAKKA_DISK quiet  vt.global_cursor_default=0 loglevel=2

It looks like

boot=/dev/mmcblk0p1 disk=/dev/mmcblk0p2 quiet $EXTRA_CMDLINE vt.global_cursor_default=0 loglevel=2
is the one to change (I don't have a build environment :( ).

clach04 added a commit to clach04/Lakka-LibreELEC that referenced this issue Mar 2, 2019
Allow boot from USB and SD for Raspberry Pi devices that support USB boot.

Resolve libretro#611
@clach04
Copy link
Author

clach04 commented Mar 2, 2019

I opened PR #612 however I checked up stream and https://github.com/LibreELEC/LibreELEC.tv/blob/e370750526f8196252aadfab97f065e37e67e172/scripts/mkimage#L182 already uses UUID its already a resolved issue!. Better to pull upstream and abandon #612.

kivutar pushed a commit that referenced this issue Apr 1, 2019
Allow boot from USB and SD for Raspberry Pi devices that support USB boot.

Resolve #611
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant