A Solution for Dual Boot - Rune | OSMC (Pi2, Pi3)
- (edited: 17 Jul 2016)
Please see update method: Dual Boot: Rune | OSMC (Pi2, Pi3)
- Easy for anyone to switch.
- No SSH.
- No select from boot menu.
- Only a mouse click from Rune, TV remote or mouse clicks from OSMC.
Situations:
- - Normal boot / always on > Rune
- Rune > normal reboot > Rune
- Rune > Mouse click a reboot button > Reboot to OSMC
- OSMC reboot > Rune
Installation
Need:
- - Raspberry Pi 2 or 3
- 8GB SD card
- HDMI connect to a TV
- Mouse
Process:
- 1. Prepare NOOBS SD card
2. Install Rune
3. Install OSMC
4. Copy and replace some files
1. Prepare NOOBS SD card on a PC:
- - Download NOOBS_lite_v1_9_1_runeaudio_v0_4.zip in this post by PeteB:
- Unzip and copy to FAT32 SD card.
- Download and unzip modfiles.zip for FTP in 4
2. Install Rune:
- - Insert the SD card.
- Connect HDMI to TV.
- Connect mouse.
- [optional] Connect LAN cable.
- Boot Pi with the SD card.
- Select RuneAudio > Install (Fast - Rune is already in the SD card)
- Reboot when finished.
3. Install OSMC
- - Select OSMC > Install (Slow - download from internet)
- SSH to OSMC (user: osmc, password: osmc)
- # sudo nano /etc/ssh/sshd_config
- PermitRootLogin without-password > PermitRootLogin yes
# sudo passwd root
- rune .....(Set root password the same as Rune)
# sudo nano /boot/config.txt
- hdmi_force_hotplug=1 > #hdmi_force_hotplug=1 .....(Fix TV remote not working on auto switch HDMI port)
- Reboot
4. Copy and Replace Files:
- - Select Rune on boot.
- FTP to Rune (user: root password: rune)
- Copy new file:
- /var/www/assets/img/reboot.png .....(Reboot button)
/var/www/command/rune_bootnext .....(Set boot OSMC partition)
Backup > Replace existing files:
- /root/.xinitrc .....(Visible mouse pointer)
/var/www/app/settings_ctl.php .....(Add 'bootnext' command)
/var/www/app/templates/header.php .....(Add Reboot button)
/var/www/assets/js/runeui.js .....(Add Reboot click)
/var/www/command/rune_SY_wrk .....(Add 'bootnext' case)
- SSH to rune (user: root password: rune)
- # chmod 755 /var/www/command/rune_bootnext .....(Change file permission)
[optional] Bypass boot menu:
- # /var/www/command/rune_shutdown .....(Shutdown)[/color
- Move SD card back to [color=#FFFFFF]PC.
- Copy autoboot.txt to SD card root.
- Move SD card to Raspbery Pi.
- Boot
Reboot .....(No Bypass boot menu)
Done!
Note
If Raspberry Pi did not boot properly, check partition number:
- - Delete autoboot.txt from SD card with PC.
- Boot
- SSH to Rune.
- # fdisk -l
- Get number X in "/dev/mmcblk0pX (Type: W95 FAT32)"
1st partition = Rune
2nd partition = OSMC
# nano /var/www/command/rune_bootnext
- echo X > /sys/module/bcm2709/parameters/reboot_part .....(OSMC X number)
# /var/www/command/rune_shutdown
- Edit autoboot.txt with PC:
- boot_partition=X .....(Rune X number)