Dual Booting

From OESF

Revision as of 02:23, 16 March 2006 by Uth (Talk | contribs)
Jump to: navigation, search

Unlike the PC, where you can install a boot manager in the boot sector, and use it to select an OS and partition to boot into, dual-booting on the Zaurus is not quite so simple. It's also not widely understood. This guide will attempt to answer dual booting questions, and describe various dual booting scenarios.

NOTE THAT THIS DOC IS IN ITS EARLY STAGES, DO ANY OF THIS AT YOUR OWN RISK!

Contents

Dual Boot Caveats

It appears that you can only have one kernel in rom at a time, and that kernel must be compatible with every OS/distribution you intend to boot. Dual/Multiboots are obtained by changing the root device just after the kernel boots (in the init process)

Dual Boot Cacko and pdaXrom

These directions were adapted from directions that penguinsam posted in the forum. I'd like to thank him for his efforts.

In this scenario, Cacko 1.22 is installed as the main rom, and pdaXrom 1.0.0 will be booted if the SD card containing the pdaXrom root image is inserted at boot time. These instructions were written for the C760

It is unknown at this time whether this works on other versions of Cacko, or with other versions of pdaXrom, or on non-C760's.

  1. Install Cacko (link to be added for directions)
  2. Format your SD card as ext2 or ext3
    1. Directions on how to do that can be found at Step-by-step_CF/SD_fdisk/formatting_for_newbies
  3. Download the required scripts Dual_C760.zip, and unzip them on the machine.
  4. Download a pdaXrom tarball. Either pdaX-SD.tar.gz or pdaX-1.0.5-SD.tar.gz
  5. Next, extract the tarball to the root of the SD card. The command is gtar -xvpzf pdaX-1.0.5-SD.tar.gz The trick is that you need to use gtar because you need to use the 'p' flag (preserve permissions). The built-in tar on the Zaurus doesn't have that feature. You have two choices:
    1. Download a gtar ipkg and install it on your Zaurus
    2. If you have an SD card reader on a Linux PC, you can use the tar there to extract it onto the card
  6. Complete these steps:
# mount -o rw,remount /
# mkdir /sbin/sys
# cp /sbin/init /sbin/sys/init
# rm /sbin/init
# cp /home/zaurus/init /sbin/init
# cp /home/zaurus/pivot_root /sbin/pivot_root
# chmod +x /sbin/init
# chmod +x /sbin/pivot_root
  1. Since there are changes on the filesystem in Cacko 1.22, this line in the /sbin/init script needs to be altered:
mount -n -r -t cramfs /boot/usr.bin /usr -o loop

Change it to:

mount -n -r -t squashfs /boot/usr.bin /usr -o loop
  1. Finally, remount / as read-only and reboot:
# mount -o ro,remount /
# reboot

Dual Booting with OZ

Recent OZ distributions ship with a boot manager that appears very flexible. See here: altboot

Dual Booting with BSD

To be added

The altboot Boot Manager

altboot is a Boot Manager that is part of the OpenZaurus distribution. The good news is that it can be installed on other roms. The Following models are supported: SL-5000, SL-5500, SL-5600, SL-C1000, SL-C3000

Personal tools