Multibooting

From OESF

(Difference between revisions)
Jump to: navigation, search
m (New article on multibooting)
(Trying to update and give more information)

Line 1:

Line 1:

-
The idea of a multiboot system is that you can run any distribution on your device. You initially boot a rootfs as the main system and then to boot quickly (bypassing the bootloader stage) into different distros/ROMs as subsystems.
+
= Concept =
-
New kernels are loaded on the spot with kexec.
+
-
You can switch between kernels and you can run the system from internal disk, CF, SD or NAND. This means that
+
On Zaurus there is a bootloader, this will select the device to boot, load a kernel and start the system. uboot is a bootloader.
-
you can run kernels such as Yonggun, Poky, Angstrom; ROM images such as Cacko and Sharp; also pdaXrom and
+
 
-
Android. Restrictions apply; for example, the Sharp ROM has the file structure hard coded.
+
The Angstrom project developed a tool called kexec that allows you to switch to another kernel from a running system. You can also make a kexec boot selector to choose from kernels stored on various media such as NAND, HDD, or memory card.
 +
 
 +
== kexec Bootloader ==
 +
 
 +
kexec probe all bootable devices and look for a directory /boot containing the following 3 files
 +
# zImage (the kernel)
 +
# image.nfo (One line description of the kernel, for the menu)
 +
# kernel-cmdline (kernel command line parameters)
 +
 
 +
The probe stage can be quite slow, it may be quicker to boot a distribution using a standard bootloader and then run kexec on the command line to switch to the other kernel.
Note that Angstrom has the altboot utility that also allows multibooting.
Note that Angstrom has the altboot utility that also allows multibooting.
-
+
 
-
* This is a summary of [http://www.oesf.org/forum/index.php?showtopic=25555 ZDevil's How to thread]
+
== Sharp ROM/Cacko ==
 +
 
 +
The Sharp ROM and Cacko both have restrictions:
 +
# The NAND has the original layout.
 +
# The hard drive on SL-C3xxx must have specific partitioning and files.
 +
 
 +
The Sharp kernel is based on 2.4 and does not read command line parameters, that's why some of these things are hard coded, such as drive layout.
 +
 
 +
The hard drive requirement may be removed from Cacko, using [http://www.oesf.org/forum/index.php?act=attach&type=post&id=5405 this script] by ZDevil.
 +
 
 +
== Android ==
 +
 
 +
[http://www.omegamoon.com/blog/static.php?page=ZaurusAndroid Cortez's Android] uses altboot, a tool from OpenEmbedded to set up a root filesystem after booting with the Poky kernel.
 +
 
 +
== Andromeda (Debian) ==
 +
 
 +
Andromeda can be run via the kexec bootloader.
 +
 
 +
== Zubuntu ==
 +
 
 +
Zubuntu comes ready to run via the kexec bootloader.

Revision as of 22:06, 1 June 2010

Contents

Concept

On Zaurus there is a bootloader, this will select the device to boot, load a kernel and start the system. uboot is a bootloader.

The Angstrom project developed a tool called kexec that allows you to switch to another kernel from a running system. You can also make a kexec boot selector to choose from kernels stored on various media such as NAND, HDD, or memory card.

kexec Bootloader

kexec probe all bootable devices and look for a directory /boot containing the following 3 files

  1. zImage (the kernel)
  2. image.nfo (One line description of the kernel, for the menu)
  3. kernel-cmdline (kernel command line parameters)

The probe stage can be quite slow, it may be quicker to boot a distribution using a standard bootloader and then run kexec on the command line to switch to the other kernel.

Note that Angstrom has the altboot utility that also allows multibooting.

Sharp ROM/Cacko

The Sharp ROM and Cacko both have restrictions:

  1. The NAND has the original layout.
  2. The hard drive on SL-C3xxx must have specific partitioning and files.

The Sharp kernel is based on 2.4 and does not read command line parameters, that's why some of these things are hard coded, such as drive layout.

The hard drive requirement may be removed from Cacko, using this script by ZDevil.

Android

Cortez's Android uses altboot, a tool from OpenEmbedded to set up a root filesystem after booting with the Poky kernel.

Andromeda (Debian)

Andromeda can be run via the kexec bootloader.

Zubuntu

Zubuntu comes ready to run via the kexec bootloader.

Personal tools