[openbeos] Re: Is it possible to boot Haiku from a USB key?

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sat, 07 Jun 2008 13:07:47 +0200 CEST

"Michael Lotz" <mmlr@xxxxxxxx> wrote:
> In fact it is loaded anyway since usb_disk is present. It is just not 
> loaded when searching for the boot volume, but only afterwards when 
> searching for other volumes. Generally as most of the current 
> computers 
> rely on some kind of USB (mice mostly) the USB stack will have to be 
> loaded during boot anyway. If not by usb_disk then by usb_hid. So it 
> doesn't make the boot process longer, it's just where in the boot 
> process the time is spent.

Well, the boot loader's BIOS loading routines are slower than what 
Haiku does otherwise, but I doubt it's really noticeable with the 
numbers we're talking about here :-)
In the long run, though, I would like to get rid of the boot module 
links (or at least make them optional), and put more knowledge into the 
boot loader to make the right decisions. But that might not even happen 
in R1 anymore.

> The only reason it would make the boot 
> process longer would be if the USB stack was actually unloaded (which 
> happened under BeOS R5 even though it shouldn't), as then the stack 
> has 
> to be loaded multiple times. If this is the case (I haven't checked) 
> then this would need to be fixed. So I took the liberty to add the 
> boot 
> module symlinks in r25836. Any default image starting from that 
> revision should be USB bootable by default, so you should be able to 
> simply dd an image to a USB stick and boot from that (provided your 
> BIOS supports USB booting that is). Note that this of course wipes 
> the 
> content of the USB stick (just so that I mentioned).



Other related posts: