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

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Bsd Off An External Usb Hdd, OpenBSD on C1000
pjlasky
post Aug 23 2006, 10:20 AM
Post #1





Group: Members
Posts: 7
Joined: 17-June 04
Member No.: 3,730



Something of a newbie question re: OpenBSD on zaurus (have used OpenBSD on PCs and several Linux distros on Zaurus.)
Might it be possible to boot BSD off of an external HDD connected to a C1000 via USB?
Thanks!
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 23 2006, 10:55 AM
Post #2





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



No, not without rewriting the boot loader.

The hardware probe only checks CF based drives at the moment.

If may™ be feasible to cat the kernel straight to /proc/zboot instead of using zboot to find the kernel on the root file system... the kernel then may™ latch on to the root file system on the USB disk and boot.

Getting OpenBSD onto the USB drive may also be challenging... I think I tried doing a minimal install onto a thumb drive once and it wouldn't go using the standard bsd.rd/installer.

I can understand you wanting to try this if you only have a 1000 but it sounds like you will need to shutdown when you have finished.... one of the nicest things that I find about OpenBSD is stability and long uptimes due to no need to reboot (if I'm I'm not tinkering with the Kernel or updating I never reboot - but have only stretched it to about 1 month before I wanted to do one of those things tongue.gif) it's a real shame to miss out on that.

-Andy

-Andy
Go to the top of the page
 
+Quote Post
mathemajikian
post Aug 23 2006, 04:48 PM
Post #3





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



While we are on the discussion of booting can you give a brief explanation as to how the zaurus goes about using Linux to boot bsd?

QUOTE(iamasmith @ Aug 23 2006, 06:55 PM)
No, not without rewriting the boot loader.

The hardware probe only checks CF based drives at the moment.

If may™ be feasible to cat the kernel straight to /proc/zboot instead of using zboot to find the kernel on the root file system... the kernel then may™ latch on to the root file system on the USB disk and boot.

Getting OpenBSD onto the USB drive may also be challenging... I think I tried doing a minimal install onto a thumb drive once and it wouldn't go using the standard bsd.rd/installer.

I can understand you wanting to try this if you only have a 1000 but it sounds like you will need to shutdown when you have finished.... one of the nicest things that I find about OpenBSD is stability and long uptimes due to no need to reboot (if I'm I'm not tinkering with the Kernel or updating I never reboot - but have only stretched it to about 1 month before I wanted to do one of those things tongue.gif) it's a real shame to miss out on that.

-Andy

-Andy
*
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 24 2006, 01:30 AM
Post #4





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(mathemajikian @ Aug 24 2006, 12:48 AM)
While we are on the discussion of booting can you give a brief explanation as to how the zaurus goes about using Linux to boot bsd?

QUOTE(iamasmith @ Aug 23 2006, 06:55 PM)
No, not without rewriting the boot loader.

The hardware probe only checks CF based drives at the moment.

If may™ be feasible to cat the kernel straight to /proc/zboot instead of using zboot to find the kernel on the root file system... the kernel then may™ latch on to the root file system on the USB disk and boot.

Getting OpenBSD onto the USB drive may also be challenging... I think I tried doing a minimal install onto a thumb drive once and it wouldn't go using the standard bsd.rd/installer.

I can understand you wanting to try this if you only have a 1000 but it sounds like you will need to shutdown when you have finished.... one of the nicest things that I find about OpenBSD is stability and long uptimes due to no need to reboot (if I'm I'm not tinkering with the Kernel or updating I never reboot - but have only stretched it to about 1 month before I wanted to do one of those things tongue.gif) it's a real shame to miss out on that.

For the interested take a look at the source tree /sys/arch/zaurus/stand - one point of interest is that zbsdmod.o and zboot even though they are Linux kernel modules and programs are actually built on OpenBSD not on Linux.

-Andy
*

*



boot(8) and boot_zaurus(8) give a rough overview but to clarify what zbsdmod and zboot are here is a little more information.

zbsdmod carries a set of routines to zero the MMU and device configuration, essentially wiping Linux from RAM and initializing the system to a known state for booting a provided Kernel. The Kernel is passed by writing the image to the node /proc/zboot.

zboot is the actual boot loader, the thing that gives you the prompt allowing you to select kernels etc. It is responsible for probing the disks, finding the first MBR with an OpenBSD partition carrying a root file system and acquiring the kernel from that file system. It uses zbsdmod to load that Kernel once it has been acquired.

-Andy
Go to the top of the page
 
+Quote Post
mathemajikian
post Aug 24 2006, 05:01 AM
Post #5





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



Say I wanted to install cacko in the flash area but wanted Openbsd to continue to autoload like it does now what would I have to change inorder to have the bootloader give me the option of booting cacko instead? What files would I need to edit?
Go to the top of the page
 
+Quote Post
iamasmith
post Aug 26 2006, 01:09 AM
Post #6





Group: Members
Posts: 1,248
Joined: 6-July 04
Member No.: 3,928



QUOTE(mathemajikian @ Aug 24 2006, 01:01 PM)
Say I wanted to install cacko in the flash area but wanted Openbsd to continue to autoload like it does now what would I have to change inorder to have the bootloader give me the option of booting cacko instead? What files would I need to edit?
*


Well, the OpenBSD boot loader won't specifically boot Linux for you, have a hunt around though, I think doing the IPK version of the install is going to suit your requirements somehow.

Basically I would suggest adding something conditional in the Zaurus boot that lets you select OpenBSD as a startup and have it conditionally insmod the module and run zboot if that option is selected.

Under Cacko you may want to take a look at /usr/sharp/etc/launch.conf and since Cacko doesn't have launch.default set to immediately select Qtopia from the launch.conf you can hit / to get the launch menu defined in launch.conf. Personally if I wanted a dual boot system this is probably where I would implement the selection.

-Andy
Go to the top of the page
 
+Quote Post
mathemajikian
post Aug 26 2006, 03:11 AM
Post #7





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



So at boot up what files are used to launch the linux kernel which I have installed now? Once this kernel is loaded what files are used to inform it to load the zbsdmod? It would seem like there should be away to have it ask you if you want to load zbsdmod to boot BSD or to load cacko? How is cacko normally launched?

Zaurus bootloader: http://www.piro.hopto.org/~piro/zaurus/bootloader/

Go to the top of the page
 
+Quote Post
mathemajikian
post Aug 26 2006, 11:30 AM
Post #8





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



I figured it out. I now have my full openbsd install on the internal hard drive with the option of booting into cacko at boot time! I will post the how to later tonight. The best news is that this process does not affect your existing BSD install!

EDIT: Heres the link to the text http://www.oesf.org/forums/index.php?showtopic=21249
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: 11th July 2014 - 05:41 AM