Posts: 31
Joined: Thu Jul 05, 2012 10:34 am

debian/openelec on same card?

Wed Jul 11, 2012 6:50 am

is it possible to have 2 images on 1 sd card with a boot menu that lets you select which image to run from. For example, I would like to have debian wheezy and openelec on the same card with the option of booting into either. It seems daft to me that each image has to be on a separate card, or image backup/restore is used every time.

Posts: 1090
Joined: Sun Sep 25, 2011 11:44 am
Location: Potters Bar, United Kingdom
Contact: Website

Re: debian/openelec on same card?

Wed Jul 11, 2012 7:08 am

At the moment that is not easily possible although technically it should be possible.

There has been work under way to produce a boot loader. However because of the Pi unusual boot sequence this is a lot more than simply adapting one from another system. I think it will be a while before there is a mature boot loader.

What may get you close to what you want from a functional viewpoint is adding XBMC to the Debian wheezy install. I have not tried this myself, but there are a lot of forum posts about doing this.

Posts: 110
Joined: Wed Jul 11, 2012 7:07 am

Re: debian/openelec on same card?

Wed Jul 11, 2012 7:18 am

The cmdline.txt file on the boot partition of the SD card points to the partition to be used as root file system. You might be able to put the debian rootfs in one partition, the openelec in another partition and create a script under both systems to choose which OS to boot at the next boot. The script would then change the cmdline.txt to point to the right partition.
The script might also be used to change the kernel.img and/or start.elf to the appropriate one for the debian/openelec version you're running.

If you want to have this as boot menu you could have the script run early in the startup process of each OS and have it reboot if the current partition isn't the right one.

Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: debian/openelec on same card?

Wed Jul 11, 2012 5:07 pm

This is not hard to do with a reboot script, see:
http://www.raspberrypi.org/phpBB3/viewt ... 24&t=10814
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “General discussion”