Dual Booting

From OESF

(Difference between revisions)
Jump to: navigation, search
Current revision (08:38, 10 March 2008) (edit) (undo)
m (Dual Boot Cacko and pdaXrom - indicate borken link. fix forum links)
 

(35 intermediate revisions not shown.)

Line 9:

Line 9:

== Dual Boot Cacko and pdaXrom ==
== Dual Boot Cacko and pdaXrom ==
-
''These directions were adapted from directions that [http://www.oesf.org/forums/index.php?showuser=2316 penguinsam] posted [http://www.oesf.org/forums/index.php?showtopic=12111 in the forum]. I'd like to thank him for his efforts.''
+
''These directions were adapted from directions that [http://www.oesf.org/forum/index.php?showuser=2316 penguinsam] posted [http://www.oesf.org/forum/index.php?showtopic=12111 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
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

Line 18:

Line 18:

# Format your SD card as ext2 or ext3
# Format your SD card as ext2 or ext3
## Directions on how to do that can be found at [[Step-by-step_CF/SD_fdisk/formatting_for_newbies]]
## Directions on how to do that can be found at [[Step-by-step_CF/SD_fdisk/formatting_for_newbies]]
-
# Download the required scripts [http://www.oesf.org/forums/index.php?act=Attach&type=post&id=489 Dual_C760.zip], and unzip them on the machine.
+
# Download the required scripts '''[Broken Link]''' [http://www.oesf.org/forum/index.php?act=Attach
-
# Download a pdaXrom tarball. Either [http://zaurus.spy.org/feeds/dual-boot-760-xrom/pdaX-SD.tar.gz pdaX-SD.tar.gz] or [http://www.webspinners.co.il/pdaxrom/pdaX-1.0.5-SD.tar.gz pdaX-1.0.5-SD.tar.gz]
+
-
# Next, extract the tarball to the root of the SD card. The command is <code>gtar -xvpzf pdaX-1.0.5-SD.tar.gz</code> 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:
+
-
## Download a gtar ipkg and install it on your Zaurus
+
-
## If you have an SD card reader on a Linux PC, you can use the tar there to extract it onto the card
+
-
# Complete these steps:
+
-
<pre>
+
-
# 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
+
-
</pre>
+
-
# Since there are changes on the filesystem in Cacko 1.22, this line in the /sbin/init script needs to be altered:
+
-
<pre>mount -n -r -t cramfs /boot/usr.bin /usr -o loop</pre>
+
-
Change it to:
+
-
<pre>mount -n -r -t squashfs /boot/usr.bin /usr -o loop</pre>
+
-
# Finally, remount / as read-only and reboot:
+
-
<pre># mount -o ro,remount /
+
-
# reboot</pre>
+
-
== Dual Booting with OZ ==
+
== Future ? ==
-
Recent OZ distributions ship with a boot manager that appears very flexible. See here: [http://www.hentges.net/misc/openzaurus/docs/altboot.shtml altboot]
+
It may be possible to use kexec to have a real dual boot system (boot in a system, change to another).
-
== Dual Booting with BSD ==
+
See also this forum thread : [http://www.oesf.org/forum/index.php?showtopic=23911&mode=threaded&pid=161048 Dual Booting Pdaxrom And Angstrom? (something that may be possible)]
-
 
+
-
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'''
+

Current revision

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!

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 [Broken Link] [http://www.oesf.org/forum/index.php?act=Attach

Future ?

It may be possible to use kexec to have a real dual boot system (boot in a system, change to another).

See also this forum thread : Dual Booting Pdaxrom And Angstrom? (something that may be possible)

Personal tools