Aug 15 2007, 04:37 AM
Post
#1
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
After exploring for a while with dinorex, i've succeeded in setting up a dualbooting environment for pdaXii (5.4.8 Sally on NAND) and OpenBSD 4.2 beta (on my internal Extreme III 16GB CF):
Here is how it plays: (Sorry for the poor quality of the pics 1. First load the pdaXii (5.4.8) kernel. Then answer the question if i want to boot into OpenBSD or pdaX. 2. Booting up pdaX. Everything is fine. 3. After reboot, choose OpenBSD this time. There is a warning message, but again everything is fine. OpenBSD 4.2 starts to boot ... 4. OpenBSD 4.2 underway 5. Mission accomplished!
|
|
|
|
![]() |
Aug 15 2007, 06:00 PM
Post
#2
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
[UPDATED]
Dualbooting pdaXii & OpenBSD: a mini how-to (for C3100/3200 only; do it at your own risk) ******************************************************************************* To set up a dualboot environment of pdaXii and OpenBSD, you have to do three things: 1. Flash pdaXii (in the usual flash "OK mode") & OpenBSD (in the emergency "D+B mode") 2. Modify /etc/rc.d/rc.rofilesys in pdaXii 3. Create a directory to hold the OpenBSD bootloader and kernel. ******************************************************************************* 1. (I suppose you know how to do this. If not, you'd better stop here for your safety.) 2. Modify /etc/rc.d/rc.rofilesys in pdaXii This is how I change the /etc/rc.d/rc.rofilesys in pdaXii (5.4.8) (This also seems to work for other pre-Beta4 builds which uses the older bootloader, including Beta1 and Beta3, but YMMV): QUOTE #!/bin/sh export PATH=$PATH:/usr/bin:/bin:/sbin get_dev_pcmcia() { while read SOCKET CLASS DRIVER INSTANCE DEVS MAJOR MINOR; do echo $DEVS done } get_dev_pcmcia_slot() { grep "^$1" /var/lib/pcmcia/stab | get_dev_pcmcia } RW_MTD_LINE=`cat /proc/mtd | grep "home" | tail -n 1` if [ "$RW_MTD_LINE" = "" ]; then RW_MTD_LINE=`cat /proc/mtd | grep "\<NAND\>.*\<2\>" | tail -n 1` fi if [ "$RW_MTD_LINE" = "" ]; then RW_MTD="" RW_MTDBLK="" RW_MTD_SIZE=0 else RW_MTD_NO=`echo $RW_MTD_LINE | cut -d: -f1 | cut -dd -f2` RW_MTD_SIZE_HEX=`echo $RW_MTD_LINE | cut -d" " -f2` if [ -x /sbin/devfsd ]; then RW_MTD=/dev/mtd/$RW_MTD_NO RW_MTDBLK=/dev/mtdblock/$RW_MTD_NO else RW_MTD=/dev/mtd$RW_MTD_NO RW_MTDBLK=/dev/mtdblock$RW_MTD_NO fi RW_MTD_SIZE=`dc 0x$RW_MTD_SIZE_HEX 1024 / p` initlog -s $"found $RW_MTD ${RW_MTD_SIZE}\"Kbyte\"" fi if [ "$ZAURUS_RESET" = "HARD" ]; then if [ ! -x /sbin/devfsd ]; then mount -t tmpfs -o size=12m none /dev cd / tar xf /root/.dev_default.tar 2> /dev/null > /dev/null mkdir /dev/shm else mount -t tmpfs -o size=12m none /dev/shm fi STRING=$"Starting filesystem: " msg -n $STRING mount -o remount / 2> /dev/null > /dev/null if [ $RW_MTD_SIZE -ne 0 ]; then /sbin/eraseall --j --q $RW_MTD 2> /dev/null > /dev/null mount -t jffs2 -o rw,noatime $RW_MTDBLK /home 2> /dev/null > /dev/null mkdir /home/root cd / tar --no-same-owner -xf /root/.home_default.tar 2> /dev/null > /dev/null fi #OpenBSD Boot if [ /bsd ]; then echo "Would you like to boot OpenBSD or pdaXrom (openbsd/pdaxrom)?" read acceptance if [ "$acceptance" != "pdaxrom" ]; then echo "Booting OpenBSD" cardmgr -o >/dev/null 2>&1 #<-- This line is necessary, or the bootloader won't be able to find /bsd on the internal CF/MD.# cd /bsd /sbin/insmod /bsd/zbsdmod.o ./zboot fi echo "Booting pdaXrom" fi mkdir /dev/shm/tmp mkdir /dev/shm/run chmod 4777 /var/tmp chmod 777 /tmp touch /var/run/utmp cd / tar --no-same-owner -xf /root/.var_default.tar 2> /dev/null > /dev/null touch /var/log/lastlog rc=$? if [ "$rc" = "0" ]; then success "$STRING" else failure "$STRING" fi msg else ### SW Reset ! ...... ...... Probably this is just a quick and dirty trick. I suppose there is a better way of doing that. Anyway here is the full script. USE IT AT YOUR OWN RISK! DON'T BLAME ME IF IT BRICKS YOUR BUDDY Z. Two small notes: -- In case OpenBSD fails to load for some reason, in the bootloader prompt (i.e., boot>), simply type reboot and the system will boot into pdaX. -- You don't actually have to type "openbsd" to answer the boot question. Just a [ENTER] will do. 3. Create a directory to hold the OpenBSD bootloader and kernel. -- Create a new directory under pdaXii: CODE mkdir /bsd -- Copy zboot and zbsdmod.o into this directory: CODE cd /WHEREEVER/YOUR/OBSD/FILES/ARE cp zboot zbsdmod.o /bsd Reboot. And then you'll see your glutton dog enjoy both penguin and puffyfish meat ... This post has been edited by ZDevil: Aug 15 2007, 07:24 PM
Attached File(s)
|
|
|
|
ZDevil Dualbooting Pdaxii & Openbsd Aug 15 2007, 04:37 AM
HoloVector Whoa! So, in theory, I could have pdaXii13 Ak... Aug 15 2007, 06:59 AM
mathemajikian QUOTE(ZDevil @ Aug 15 2007, 12:37 PM)2. Booti... Aug 15 2007, 03:27 PM
ZDevil Actually I don't make much use of the cacko/op... Aug 15 2007, 04:58 PM
ZDevil Right, i forgot to mention that pdaXrom seems to l... Aug 15 2007, 06:22 PM
Capn_Fish I can probably do it for r198, but that's not ... Aug 15 2007, 06:44 PM
ZDevil I guess, technically speaking, dualbooting is also... Aug 15 2007, 06:48 PM
ZDevil So has anyone tried this solution so far?
I am ... Aug 21 2007, 03:23 AM
climber At the moment I have no time but I will try it lat... Aug 21 2007, 03:40 AM
ZDevil There you go: http://www.oesf.org/forums/index.php... Aug 21 2007, 03:52 AM
climber Yeah, this is what I wished to see :-)
Do you hav... Aug 21 2007, 04:30 AM
ZDevil I don't quite get what you meant by "how ... Aug 21 2007, 04:41 AM
climber Yes, I'm talking about the formatting and part... Aug 21 2007, 05:03 AM
ZDevil No, the CF runs very well. I think one very nice ... Aug 21 2007, 05:09 AM
portalgod QUOTE(ZDevil @ Aug 21 2007, 06:09 AM)No, the ... Aug 25 2007, 10:52 AM
ZDevil QUOTE(portalgod @ Aug 25 2007, 08:52 PM)Just ... Aug 30 2007, 03:18 AM
Civil QUOTEI can probably do it for r198, but that's... Aug 26 2007, 07:31 AM
apink You say that openbsd is on your cf card with pdax ... Aug 31 2007, 07:28 PM
ZDevil Precisely. The whole system takes much more space ... Aug 31 2007, 07:31 PM
ZDevil Just wanna add:
The default installation of OpenBS... Aug 31 2007, 07:47 PM
DaemonsGR I think that after some months in the dust Ill try... Sep 4 2007, 12:03 AM![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 10:38 PM |