OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Bsd/cacko Boot, Dual Boot
mathemajikian
post Aug 26 2006, 06:23 PM
Post #1





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



******************************
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.sh
Last Updated 9-Jan-2007 --> rc.rofilesys
Last Updated 9-Jan-2007 --> updater.sh
Last Updated 9-Jan-2007 --> rc.sysinit

The below zboot zbsdmod.o are from OpenBSD 4.0-beta

Last Updated 9-Jan-2007 --> zboot
Last Updated 9-Jan-2007 --> zbsdmod.o

You 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.
Go to the top of the page
 
+Quote Post
ZDevil
post May 4 2007, 11:15 PM
Post #2





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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?
Go to the top of the page
 
+Quote Post
Meanie
post May 4 2007, 11:44 PM
Post #3





Group: Members
Posts: 2,808
Joined: 21-March 05
From: Sydney, Australia
Member No.: 6,686



QUOTE(ZDevil @ May 5 2007, 05:15 PM)
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?
*


you can try mount -t ufs or -t ffs ...
might work if cacko has the appropriate module installed...
Go to the top of the page
 
+Quote Post
ZDevil
post May 5 2007, 12:06 AM
Post #4





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Thanks, Meanie.
Actually I don't know which device to mount.
The microdrive is detected but not mounted in SystemInfo.
Go to the top of the page
 
+Quote Post
mathemajikian
post May 5 2007, 02:40 AM
Post #5





Group: Members
Posts: 304
Joined: 8-July 06
From: United Kingdom for now....
Member No.: 10,349



QUOTE(ZDevil @ May 5 2007, 08:06 AM)
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.
Go to the top of the page
 
+Quote Post
ZDevil
post May 13 2007, 06:08 PM
Post #6





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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" ...
Go to the top of the page
 
+Quote Post
jpmatrix
post May 14 2007, 02:19 AM
Post #7





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



in the same way, could we imagine a pdaxii13/openbsd or angstrom/openbsd dual boot ???
Go to the top of the page
 
+Quote Post
adf
post Jun 6 2007, 04:58 PM
Post #8





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



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
Go to the top of the page
 
+Quote Post
ZDevil
post Jun 6 2007, 08:57 PM
Post #9





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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 biggrin.gif ), 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. smile.gif
Go to the top of the page
 
+Quote Post
adf
post Jun 6 2007, 09:27 PM
Post #10





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



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....
Go to the top of the page
 
+Quote Post
ZDevil
post Jun 6 2007, 09:35 PM
Post #11





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Well, the only reason is I just want to test pdaX in flash while using obsd as the primary work
Go to the top of the page
 
+Quote Post
adf
post Jun 7 2007, 12:24 AM
Post #12





Group: Members
Posts: 2,821
Joined: 13-September 04
From: Wasilla Ak.
Member No.: 4,572



QUOTE(ZDevil @ Jun 7 2007, 05:35 AM)
Well, the only reason is I just want to test pdaX in flash while using obsd as the primary work
*

Ah. makes more sense.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 23rd July 2014 - 06:20 PM