Author Topic: Openbsd Wannabe  (Read 3852 times)

bart

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://
Openbsd Wannabe
« on: February 20, 2006, 02:27:14 pm »
Hi,

Could someone please explain in a few easy steps how to install OpenBSD on a C3100 that is currently running pdaxrom? Yes, I did read the INSTALL.zaurus but I don't have a tape drive anymore  ;-)

[no dual-boot, full 4GB useable]

Thanks,
Bart
Bart
C3100 currently with OZ/GPE 3.5.4.1

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Openbsd Wannabe
« Reply #1 on: February 20, 2006, 03:42:01 pm »
Be assured that if you did have a tape drive and OpenBSD on tape that you could probably do it that way, along with that old tape of Richard Stallman's EMACS that you have hidden in the loft somewhere.

Well, I have to say first that I have an SL-C3000 and not a 3100 but I think I can see a path to you getting the full 4Gb OpenBSD and you have already completed step 1

Be aware first of all, you are going to lose SD support and there is no proper Bluetooth in OpenBSD at the moment... finally it's not quite as snappy as PDAXROM with regard to running your favourite games so if Quake is your bag I would suggest that booting into PDAXROM is a good thing.

EDIT: Also you won't see any of that 128Mb Flash when booted in OpenBSD so there's no benefit in having a 3100 over a 3000 to do this other than being able to boot into PDAXROM if you want.

1. Install a ROM on your SL-C3100 that doesn't need the hard drive at all, Cacko and PDAXROM are possible options. Shouldn't matter as long as it is based on the 2.4 Kernel.

2. Ensure that the ROM isn't mounting the drive in any way... you probably want to hack around with some scripts for this - you must at least let cardmgr initialise the drive though. If you are determined not to have cardmgr resident then run cardmgr -o which will initialise the drive then quit.

3. Obtain zbsdmod.o, zboot and bsd.rd from one of the mirror sites. Don't waste your time with 3.8, the Zaurus has come a long way since then, go for the snapshot version.

4. Copy these somewhere on the Zaurus, for example create a directory called /bsd on the PDAXROM install.

5. Use the following sequence to get started....

insmod zbsdmod.o
cp bsd.rd /proc/zboot

6. The system should now boot into an install, get that NIC card plugged into the CF slot.

7. If you want to run OpenBSD on the whole Zaurus then allow the installer to do it... Note SL-C3000 users should be using my initrd and stuff from http://zaurus.daemons.gr/openbsd and not following these instructions. You may want to delete the disklabel and recreate so that wd0a is a little smaller so you have some swap space... my disklabel looks like this if it's any help (seasoned UNIX guys shudder that I didn't partition further but I know what I'm doing and am not going to overflow the /home or /usr space etc).

#             size        offset  fstype [fsize bsize  cpg]
  a:       7737281            63  4.2BSD   2048 16384  328 # Cyl     0*-  7675*
  b:        262144       7737344    swap                   # Cyl  7675*-  7935
  c:       7999488             0  unused      0     0      # Cyl     0 -  7935

note that partition c always refers to the whole disk space on BSD., DON'T delete that one.

8. The most problematical part is getting a WIFI NIC set up to use WEP against your access point (note no WPA yet).. answer yes to performing additional config and you should drop to a prompt. You can then use..

ifconfig wi0 nwid <myaccesspoint> nwkey <mykeytext>

9. Press Ctrl-D to leave the shell and go back into the installer.

10. Follow the installer until the packages stage, (you will have selected HTTP or FTP as an install medium, no proxy etc. and selected a mirror for the install). When the packages list is presented to you just type 'all' and continue.

11. The rest of the install should complete predictably and your Zaurus should prompt for a reboot at the end.

Now booting into OpenBSD.

You will initially boot Linux, in your case PDAXROM..

Go into /bsd and perform the following steps..

insmod zbsdmod.o
zboot

OpenBSD will now boot..

Optionally you can create a script file in one of the /etc/rc directories to do that for you.

When you are basicallly up and running take a look at some of my Living with OpenBSD posts because they will help you get your NIC automatically configured with the AP name and key and various other things.


Hope this helps,

-Andy
« Last Edit: February 20, 2006, 04:02:34 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

bart

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • http://
Openbsd Wannabe
« Reply #2 on: February 22, 2006, 03:07:24 pm »
Thanks, that at least does seem relatively easy to do. But do I understand it correctly that it will always first boot the Linux kernel and then (with the help of some rc scripts/insmod) boots OpenBSD? If so, is this a temporary solution/hack or am I missing something?

Regards,
Bart
Bart
C3100 currently with OZ/GPE 3.5.4.1

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
Openbsd Wannabe
« Reply #3 on: February 22, 2006, 03:22:33 pm »
The boot loader mechanism for OpenBSD on the Zaurus as it stands boots Linux then uses a Kernel module to bootstrap OpenBSD.

I looked into this and it is pretty thorough, once the kernel is loaded is clears the MMU mappings and resets everything so once OpenBSD is booted you are running pure OpenBSD even though you booted via Linux.

- Andy
« Last Edit: February 22, 2006, 03:22:49 pm by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card