Batocera & Kodi Dual Boot for Raspberry Pi


Here is my easy how-to for building a multi-boot Batocera & KODI system.
You can also install any other systems as well (eg. Raspbian) & easily boot to them from KODI.

It is compatible with all versions of the Raspberry Pi.
An internet connection is required on the Pi.

How

#1

Follow THIS post to install PINN Lite.

#2

Power on the Pi and connect it to the internet (via ethernet or WiFi).

PINN will load and give you a list of OS's to install.

Navigate to the Media tab and select which KODI system you would like to install.
You can choose between LibreELEC (recommended), OSMC or Xbian.
Navigate to the Games tab and select Batocera.
Feel free to install any other systems that you like.
Once you have selected all your systems, simply press i or click Install.
PINN will now download and install your chosen systems.
This can take a bit of time depending on how many systems you are installing.

Wait for it to complete, and then move on to step 3.

#3

Follow THIS post to install my NOOBS Companion Add-on in KODI.

#4

Let's now make Batocera able to boot-back into our KODI system.

Go to the main menu.
Scroll down to Add-ons.
Select the "NOOBS Companion" add-on.

Move down to the Batocera system.
Open the context menu and select "Install Boot-Back"
Batocera has now been modified to "Boot-Back" into our KODI system (instead of it's own).
Watch the video on the NOOBS Companion post for more things you can do with it!

USB Storage Device

If you change the Batocera storage device to a USB device, there is an extra step you need to perform to make the boot-back work again.

This is due to Batocera not copying the custom.sh file when it creates the new system files on the USB stick. Therefore the boot-back custom.sh is never run and the KODI script not modified on boot.

Plug the USB device into a PC.

Download custom.sh
Copy custom.sh onto the USB drive in the recalbox/system folder.
That's it.

This file simply runs the original custom.sh that is on the boot media.

Plug the USB drive back into the Pi and boot Recalbox.
The boot-back should now work.

Discussion

Support