******************************
Dual Booting BSD/Cacko
******************************
This
is intended for those who have already accomplished a full install of
Openbsd on thier Zaurus SL-C3200's internal hard drive and want the
option of booting Cacko in flash at boot time rather than OpenBSD.
The files located in the BSDCACKOBOOT directory will remove Cackos
need to mount hdd1, hdd2, and hdd3 therefore allowing OpenBSD to
exist. This process will not delete/edit your existing OpenBSD
install in anyway; however, it is important that you copy /bsd from
your exiting installation to an SD card. /bsd is located on
/dev/mtdblock2 and contains zboot and zbsdmod.o which are needed to
boot your existing BSD installation.
Download the following files:
initrd.bin <--- Download from
Cacko Website http://cacko.biz/cacko/
tools.tar <--- Download from
Cacko Website http://cacko.biz/cacko/
updater.sh <--- Attached Below
rc.rofilesys <--- Attached
Below
rc.sysinit <--- Attached Below
qpe.sh <--- Attached Below
zboot and zbsdmod.o from existing /bsd <--- or use the attachments below
NOTE:
to obtain zboot and zbsdmod.o from an existing installation you must
load the emergency boot Linux (See Step 2), mkdir /mnt/mtdflash2,
mount /dev/mtdblock2 to /mnt/mtdflash2 and then change to the
directory /mnt/mtdflash2/bsd.
*Step 1, Complete the flash
installation process*
a. Copy the files zboot,
zbsdmod.o, initrd.bin, updater.sh, tools.tar, rc.rofilesys, qpe.sh,
rc.sysinit to
an SD or CF card.
b. Unplug Zaurus from AC power.
c. Remove battery for at least 5
seconds.
d. Insert CF or SD card.
e. Replace battery, Replace
battery cover, Lock cover.
f. Press and hold the "OK"
button on the keyboard.
g. Turn the power on, you should
see the Japanese service menu.
h. Plug in the Power Cord.
i. Select option 4
(flash/update).
j. Choose either CF or SD,
depending on which media you put the files on.
k. Press "Y" to continue.
The
screen will go blank for a second. You will see a Sharp logo, and then
an installtion screen. Select Install a New Rom and answer yes when
prompted to format /usr user directory.
This will install Cacko onto the
SL-C3200. When the flashing process has completed select reboot.
(If
you hold down D+B after selecting reboot above you will not have to
perform Step 2. Emergency boot linux should load, if not follow the
instructions in Step 2)
*Step 2, Entering the Emergency boot
Linux*
a. Unplug Zaurus from AC power.
b. Remove battery for at least 5
seconds and then reinsert battery
c. Leaving the Battery Cover
OFF, return the battery cover lock to the LOCKED position.
d. Locate reset switch on the
left side edge of battery compartment.
e. Open the unit so that the
keyboard is accessible with one hand and the base of the unit is
accessible with the other.
f. Hold down D+B on the keyboard
and whilst these keys are held depress the reset button.
g. Release the D+B keys once the
Sharp logo is displayed. Within a few seconds the unit should start to
boot.
h. Reconnect AC power.
i. Replace battery cover, Lock
cover.
*Step 3, Install Cacko Patches*
a. Log into Emergency Linux
using the username root (no password).
b. Insert the SD or CF storage
card if you have removed it.
c. Install:
# cd /mnt
# mkdir mtdflash2
# mkdir mtdflash3
# mount/dev/mtdblock2
/mnt/mtdflash2
# mount /dev/mtdblock3
/mnt/mtdflash3
# cd /mnt/card for SD card or
# cd /mnt/cf for a CF card.
# cp qpe.sh
/mnt/mtdflash3/QtPalmtop
# cp rc.rofilesys
/mnt/mtdflash2/root/etc/rc.d
# cp rc.sysinit
/mnt/mtdflash2/root/etc/rc.d
# cd
/mnt/mtdflash3/etc/rc.d/rc3.d
# mv S04sd _S04sd
# mv S00bvdd _S00bvdd
# cd ../rc4.d
# mv S04sd _S04sd
# mv S00bvdd _S00bvdd
# cd ../rc5.d
# mv S04sd _S04sd
# mv S00bvdd _S00bvdd
# cd /mnt/mtdflash2
# mkdir bsd
# cd /mnt/card for SD card or
# cd /mnt/cf for a CF card
# cp zboot zbsdmod.o
/mnt/mtdflash2/bsd
# reboot
You
will be prompted during the boot process to select the OS you wish to
load. Type either openbsd or cacko (for now this is case sensetive);
however, I suggest booting Cacko first. Once Cacko has loaded open
konsole and check to see that the Documents directory is not a symbolic
link. It will be a light blue color if it is and dark blue if it isn't.
# ls or ls -l
If it is a symbolic link then:
# rm -R Documents
and then reboot into Cacko once
more to check that the Documents directory is now static,ie, not light
blue.
Once everything is ok with the
Documents directory I suggest changing the zaurus and root user
account passwords.
# passwd
then
# su
# passwd
While you are root I also
suggest adding the following "alias
block-major-22 off" to /etc/modules.conf
# cd /etc
# vi modules.conf and add alias
block-major-22 off
Finally reboot the system and
load OpenBSD to ensure its proper
operation.
qpe.sh (
1.78k )
rc.rofilesys ( 5.38k )
updater.sh ( 15.92k )
rc.sysinit ( 2.72k )
The below zboot zbsdmod.o are
from OpenBSD 4.0
zboot (
51.57k )
zbsdmod.o ( 7.22k )
You
will have to download initrd.bin and tools.tar files from the Cacko
website http://cacko.biz/cacko/.
If for some reason you are unable to do so then you can obtain them
here:
http://mersenne.homeunix.net/tools.tar
<-- For SL-C3200
http://mersenne.homeunix.net/initrd.bin <--
For SL-C3200
http://mersenne.homeunix.net/SL-C3200-CACKO-1.23.zip
http://mersenne.homeunix.net/SL-C3100-CACKO-1.23.zip
These
instructions were tested using Cacko-1.23-full install, but should
also work with Cacko-1.23-lite; furthermore, since the SL-C3100 and
SL-C3200 are pretty much the same these instructions should also work
on the SL-C3100. Also note that you do not need to
copy over any special pcmcia config file since Cackos pcmcia file is
already patched.
You can remove and
install applications in Cacko using the package manager. If an app is
preinstalled and you want to remove it then install the existing app
using the package manager then uninstall it. This will remove
preinstalled applications freeing up space to install more important
programs. Here is a df from my installation:
Filesystem Size Used Available
Use% Mounted on
rootfs 43.0M 35.8M 7.2M 83% /
/dev/root 43.0M 35.8M 7.2M 83% /
/dev/ram1 108.0k 28.0k 80.0k 26%
/dev
/dev/loop0 25.9M 25.9M 0 100%
/usr
/dev/mtdblock3 78.0M 12.9M 65.1M
16% /home
none 10.0M 52.0k 9.9M 1% /dev/shm
/dev/mmcda1 973.9M 41.8M 932.1M
4% /usr/mnt.rom/card
/dev/mtdblock3 shows that I have
65.1M of free user/program install
space. Also note that after you change /dev/mtdblock3 in anyway, which
is mounted as /home and where applications from the feeds are
installed, cacko you will start to report inode errors. These are normal and are due to the
way linux writes to the jffs2 flash file system.
<