OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => OpenBSD => Topic started by: mathemajikian on August 26, 2006, 10:23:57 pm
-
******************************
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 (http://mersenne.homeunix.net/zaurusforums/viewtopic.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/ (http://cacko.biz/cacko/)
tools.tar <--- Download from Cacko Website http://cacko.biz/cacko/ (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.sh (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
Last Updated 9-Jan-2007 --> rc.rofilesys (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
Last Updated 9-Jan-2007 --> updater.sh (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
Last Updated 9-Jan-2007 --> rc.sysinit (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
The below zboot zbsdmod.o are from OpenBSD 4.0-beta
Last Updated 9-Jan-2007 --> zboot (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
Last Updated 9-Jan-2007 --> zbsdmod.o (http://mersenne.homeunix.net/zaurusforums/viewtopic.php?p=7#7)
You will have to download initrd.bin and tools.tar files from the cacko website http://cacko.biz/cacko/ (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.
-
I installed Cacko to dual boot with OpenBSD last night successfully. Thanks for the crystal clear instructions!
Things run well so far, yet there seems to be a caveat: under Cacko i have no access to the ffs formatted microdrive (!). Is there any way to get it mounted?
-
I installed Cacko to dual boot with OpenBSD last night successfully. Thanks for the crystal clear instructions!
Things run well so far, yet there seems to be a caveat: under Cacko i have no access to the ffs formatted microdrive (!). Is there any way to get it mounted?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160509\"][{POST_SNAPBACK}][/a][/div]
you can try mount -t ufs or -t ffs ...
might work if cacko has the appropriate module installed...
-
Thanks, Meanie.
Actually I don't know which device to mount.
The microdrive is detected but not mounted in SystemInfo.
-
Thanks, Meanie.
Actually I don't know which device to mount.
The microdrive is detected but not mounted in SystemInfo.
The microdrive should still be detected as one of the /dev/hda slices.
-
Under cacko, I've tried mount -t ffs /dev/hd?? (hda1...9, hdb1...9, hdc1...9) /mnt/obsd (my own mount point).
But it keeps saying "mount: Mounting ... failed ...No such device" ...
-
in the same way, could we imagine a pdaxii13/openbsd or angstrom/openbsd dual boot ???
-
Is anyone currently doing the cacko dual boot? Do you see a benefit from it, as in do you actually use cacko? The concept is cool, but I'm curious to see how it actually plays out day to day
-
One here. Both cacko and openbsd boot fine.
They just run separately and do not tamper with each other. One thing missing in Cacko is not being able to mount ffs filesystem (if anyone knows if there is a module/solution PLZ tell me ), such that the whole obsd setup remains invisible to cacko. But this is not such a big issue, though.
In fact I just installed cacko to flash not to "waste" the flash area but I am not actually using it. The obsd setup is a standard and really complete unix system with (almost) everything I want (yeah, the port tree rocks!), so i do see any big need to use cacko.
I have still yet to see a solution to dualbooting OBSD and pdaX. That would be a killer combo.
-
That confirmed a couple of my suspicions-- that Cacko would live in internal flash only...and that you wouldn't use it much.
Why pdaX openbsd dual boot? don't they have pretty much the same apps, with pdaX being faster, and openbsd being more big-distro-ish?
I'd imagine more gain from using the quick little Qt apps on Cacko when on the go....
-
Well, the only reason is I just want to test pdaX in flash while using obsd as the primary work
-
Well, the only reason is I just want to test pdaX in flash while using obsd as the primary work
[div align=\"right\"][a href=\"index.php?act=findpost&pid=162763\"][{POST_SNAPBACK}][/a][/div]
Ah. makes more sense.