Lakka USB boot RPI4?

Has anyone got Lakka booting from a USB drive on the Raspberry Pi 4?

If so, how did you do it?

Thanks

Does the RPi support it now? Last time I looked the hardware wasn’t ready

It supports it through a hybrid boot process. There must still be an SD card that contains a config file to redirect the system to boot from USB.

Here’s a exhaustively complete guide. https://jamesachambers.com/raspberry-pi-4-usb-boot-config-guide-for-ssd-flash-drives/

I tried it with Lakka some months ago, but it was too confusing because Lakka has multiple files that contribute to the boot.

With the kind of performance gains that are seen from this, it’s hard to imagine that everyone doesn’t want to do it. It’s also unclear if they will ever make USB boot explicitly available, so it may be best to figure this method out.

You can probably do a frankenstein install by flashing both SD card and USB drive and changing the cmdline to use the USB drive instead of the SD card.

It will look like SD boot -> kernel -> cmdline -> loads SYSTEM and mounts storage off of USB. Kinda cursed but could work on existing Lakka releases.

Ok. I think I tried something like this before, but I just couldn’t find the magic combination.

My thought was that people would be clamoring for this because of the performance bump, so I was hoping that it would have been worked out by someone.

Sigh. I guess I’ll give it another shot and report back if I make any progress.

Thanks

Well, it’s almost officially supported now, so this is no longer necessary. https://tynick.com/blog/05-22-2020/raspberry-pi-4-boot-from-usb/

Still in beta, but I’m going to go right for it.

natinusala,

They have USB support in the current eeprom bootloader (still in the beta pool), but I’m having trouble getting it to work with Lakka.

The instructions I found state that you have to copy the .elf and .dat files from a working SD card to the SSD installation, but I can’t seem to get that to work.

sudo cp /boot/*.elf /mnt/usb
sudo cp /boot/*.dat /mnt/usb

The guide I referenced is here https://tynick.com/blog/05-22-2020/raspberry-pi-4-boot-from-usb/

Any ideas?

Thanks,

So just tried something on a whim, copying all of the .dat and .elf files from the most current firmware release’s /boot folder to my SSD along with the Lakka image (flashed via Etcher) booted up perfectly fine

https://github.com/raspberrypi/firmware/tree/a6c9b6b48ce86ef2527586a50760d52f1b33f642

That’s great. Are you using a CRT?

I found that I wasn’t able to use the Retrotink Ultimate OR a Gert666 VGA adapter with the new Pi bootloader using Raspberry Pi OS. I think it has something to do with FKMS changes. There’s actually a bug-patched version of the bootloader on Github that has worked for others, but I couldn’t get it to work.

However, It’s possible that Lakka would still work ok as long as it isn’t using FKMS.(which I have no idea)