[haiku] Re: Raw images: what am I doing wrong here?

  • From: David McPaul <dlmcpaul@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Wed, 6 Jan 2010 15:44:01 +1100

2010/1/6 Cameron Mac Millan <casmacmillan@xxxxxxxxx>:
>> Perhaps because there is no boot volume you are automatically taken
>> there.  Someone who knows more about this can confirm.
>>
>> So we have pass off from the BIOS to the bootloader which is good but
>> the bootloader cannot see the USB drive.
>
> I just noticed an adjunct behaviour to this: with 'Flash interface' set
> to 'enabled', booting without a flash drive attached to the device
> causes the internal SSD to not be detected and booting halts ("No boot
> device present.  Halting." BIOS error message).  In fact, it appears as
> though this setting outright disables the SSD: I just booted PuppyLinux
> and did an `fdisk -l'.  The only disk it saw was /dev/sda, which, of
> course, was the USB flash drive I booted off of.
>
> What this means is that even if this behaviour were to be worked around,
> it still wouldn't be possible to install to the SSD.
>
> I should point out that the PuppyLinux image I'm using to boot from
> (http://bit.ly/7Qz4rv) is an ISO that's been `dd'd over to the USB flash
> drive.  It may be that this is a hybrid ISO/MBR image; I just don't
> know.  But it will boot without the 'Flash interface' BIOS option set to
> enabled.  There's an issue with it finding the compressed OS image, but
> it does get the kernel and a shell up at least.

If it is an ISO image then it will look like a CD-ROM to the BIOS I expect.

>> Most likely the BIOS is not supplying the disk details that the loader needs.
>
> Possibly, though it works from CD.

CD is not HDD

>> If you have a look at the code at
>> src/system/boot/platform/bios_ia32/stage1.S you can see what it is
>> trying to do but without some sort of support from the BIOS
>> manufacturer it will be an effort to figure out what is happening.
>>
>> I think the boot loader asks the BIOS for a list of fixed disks and
>> then checks each one for BFS partitions so if the BIOS does not return
>> the USB as a disk then that is bad.
>
> I understand where you're coming from with this, but if it works from
> USB CD-ROM and another OS can boot from the exact same flash media, does
> it not seem reasonable to suggest that the issue may be with the boot
> loader rather than the BIOS?

I don't know.  I suspect the BIOS is handling USB-CD-ROM ok but needs
something else for USB-HDD

The best I can offer at this stage is to have:

IDE BIOS Support Enable
DMA/UDMA Enable
CD-ROM Configuration Enable
Flash Configuration Enable

On the Boot Order Page put USB Hard Drive/Flash Drive first

Considering the BIOS puts USB Hard Drive and Flash Drive as the same
thing on the boot order page it does suggest that Flash Configuration
should be Enabled.

-- 
Cheers
David

Other related posts: