Friday, October 18, 2013

Raspberry PI – BerryBoot Bootloader (Multi OS + USB)

BerryBoot v2.0 – bootloader

Universal Operating System Installer

clip_image002[4]

For people short on SD cards: Berryboot is a simple boot selection screen, allowing you to put multiple Linux distribution on a single SD card.

In addition it allows you to put the operating system files on an external USB hard drive instead of on the SD card itself.

Download link Berryboot for the Raspberry Pi: berryboot-20130908.zip

To install: extract the contents of the .zip file to a normal (FAT formatted) SD card, and put it in your Raspberry Pi. This can be simply done under Windows without any special image writer software.

Once you start your Pi it will start an installer that reformats the SD card and downloads the operating systems files from the Internet.

Other devices

In addition to running on the Raspberry Pi, Berryboot also supports Android tablets, TV sticks and boards that have an Allwinner A10 processor.
For more information see the BerryBoot A10 page

Changelog

→ Moved to: Berryboot Changelog

Walkthrough

clip_image004[4]

If your Pi is connected to the Internet BerryBoot will try to detect your location based on your IP-address, and set the right timezone automatically. Verify that it is correct and press “ok”

clip_image006[4]

Select where you want to store the operating system files, and press “format” You can install the operating system files on the SD card itself or an external USB stick/disk. Be aware that if you choose an external drive, the files of the operating system will be stored there, but you still need to keep the SD card in the Pi to boot from.

WARNING: all existing files on the disk will be erased.

clip_image008[4]

Select which operating system you want to install. You can add more later.

clip_image010[4]

It will download the files from the Internet automatically.

clip_image012[4]

In the Berryboot menu editor you can install more operating systems, rename them, delete them, etc. Press “exit” to exit the editor and start using the operating system you installed.

HDMI CEC support

When attached to a HDMI TV, you can also use the arrows on your TV remote to select an operating system to boot, instead of using your keyboard or mouse.

Available options in menu editor

§ “Add OS” (or CTRL+A on keyboard, red button on TV remote)
Single click to download additional operating systems from the Internet.
Hold down your mouse button over the “Add OS” button and select “copy OS from USB stick”, to install an operating system saved on USB stick.

§ “Edit” (or ENTER on keyboard)
Change the name of the selected operating system.
You used to be able to change the memory split setting here as well, but for new installations (that have CMA enabled) this is no longer used.

§ “Clone”
Creates a copy of the selected operating system.
It is possible to create either a copy that includes the file system changes you made, or create a copy of the original operating system image as downloaded from the Internet.

§ “Backup”
Creates a backup of a single operating system or all of them to a USB stick, or SD card (requires USB SD card reader).
Backups of individual images can be restored by holding down the “add OS” button and selecting “copy OS from USB stick”

§ “Delete” (or DEL on keyboard)
Deletes the files of the selected operating system.

§ “Make default”
Makes the selected operating system the default. On boot, this operating system will be started automatically unless another is selected within a number of seconds.

§ “Exit” (or ESC on keyboard)
Exits the menu editor.

Advanced options

clip_image014[4]

Click on the ”»” button to the right of the screen to see all options.

§ “Advanced configuration”
Editor for configuration files such as cmdline.txt and config.txt

When using a Raspberry Pi you can specify kernel parameters and Berryboot parameters in cmdline.txt (use uEnv.txt if you have another device).
Special Berryboot parameters:

bootmenutimeout=<number of seconds> - number of seconds before default operating system is started. nobootmenutimeout - do not start the default operating system automatically.

In config.txt advanced overscan, HDMI and overclocking settings can be specified. See the RPIconfig page on eLinux.org for details.
Note that overclocking is known to cause SD card filesystem corruption, so only use that when you are using an USB stick or drive as storage and know what you are doing.

§ “Console”
Activates a console on tty2
Press CTRL+ALT+F2 to access, username “root”, no password.

§ “Set password”
Password protects access to the menu editor, so that unauthorized users cannot delete or edit the operating systems.

§ “Repair filesystem”
Performs a file system check and repair. Attempts to repair file system corruption. Can perform a lot of writes to the SD card, so you might want to make a backup of important files first.

Alternative installation method using disk image

If you are experiencing problems unpacking the installation files to a FAT formatted SD card (the easiest and recommend installation method), you can alternatively use a tool like Win32diskimager or dd to write this disk image to the card.
The disk image is meant to install Berryboot on another device, but it includes the Raspberry Pi boot files as well.

More information

For advanced users:

§ Headless installation (install Berryboot without display attached, using VNC)

§ Adding your own custom operating systems to the menu

§ Berryboot source code on Github

§ Report bugs

Taken From: http://www.berryterminal.com/doku.php/berryboot

1 comment:

PhilW said...

wonder if its possible for a headless install to start a client os depending on a GPIO pin action. That is start Berryboot and wait for GPIO signal (momentary contact switch) that starts the desired OS?

This would negate the use of VNC. I could see this of use to select a Media OS say Moode/Volumio/Plex all of which would operate headless and one could switch by rebooting and selecting the approproite switch.