r/SBCs • • 23h ago

Raspberry Pi 5: choose between two bootable SD cards (or OS) remotely, without touching the Pi ?

Hi,

I have a Raspberry Pi 5 connected to a TV, and I use two systems:

  • LibreELEC
  • LineageOS ATV 23 (KonstaKANG), for an Android streaming app

I want to switch between them without getting up, using only a remote or my phone. I don't care about the method, any solution is fine.

What I tried:

  • PINN on a single 128 GB SD card with both systems installed. It works, but the TV remote (HDMI-CEC) does not work in the PINN boot menu, so I can't pick the OS without a keyboard.
  • From LibreELEC over SSH, "systemctl reboot --reboot-argument=6" boots straight into Android. This works, and I'm planning a Kodi favourite to trigger it.

My questions:

  1. Is there a dual microSD slot board or HAT for the Pi 5, or any SD card switcher / multiplexer, that lets me select the active card remotely or by software ?
  2. Is there a way to make the PINN boot menu respond to a remote (CEC, IR or Bluetooth) ?
  3. From Android (LineageOS), is there a way to reboot into a specific PINN partition, so I can go back to LibreELEC without the PINN menu ?
  4. Any other approach I'm missing (network boot, NVMe, USB, etc.) ?

Thanks !

2 Upvotes

3 comments sorted by

2

u/will-cd 21h ago

An easy solution that comes to mind: Insert a card into a USB reader (or just use a pen drive). Change the Pi’s configuration boot order and then reboot. This functionality should be available in both operating systems. You could expose a rest endpoint for it and invoke by phone browser

1

u/Alyi74 11h ago

I see what you mean. Is it possible to do that with a script ? For example, have Office start on Librellec and then use a command to restart it on the other one. The goal is to do this remotely with my remote control.

1

u/will-cd 4h ago

Yes. A script with root privilege. Use rpi-eeprom-config with args and then reboot.