****************************** Dual Booting BSD/Cacko******************************Text Last Updated: 9-Jan-2007
** Until oesf.org gets it database issues corrected I'll host these files here:
http://mersenne.homeunix.net/zaurusforums/...topic.php?p=7#7 **
This is intended for those who have already done 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 attached at the end of this text will remove Cackos need to mount hdd1,hdd2, and hdd3. 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
qpe.sh <--- Attached Below
rc.sysinit <--- 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 then follow 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.
All attached attachments below must be renamed from *.txt to that listed above (Basically just remove .txt from the file name after downloading) :
Last Updated 9-Jan-2007 -->
qpe.shLast Updated 9-Jan-2007 -->
rc.rofilesysLast Updated 9-Jan-2007 -->
updater.shLast Updated 9-Jan-2007 -->
rc.sysinitThe below zboot zbsdmod.o are from OpenBSD 4.0-betaLast Updated 9-Jan-2007 -->
zbootLast Updated 9-Jan-2007 -->
zbsdmod.oYou will have to download initrd.bin and tools.tar files from the cacko website
http://cacko.biz/cacko/. These instructions were tested using Cacko 1.23 full install. 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 will start to report
inode errors. These are normal and are due to the way linux writes to the jffs2 flash file system.