[OpenBIOS] [commit] r832 - in trunk/openbios-devel: arch/sparc32 drivers
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Wed Aug 4 21:08:51 CEST 2010
Mark Cave-Ayland wrote:
>> I changed the boot-device like this:
>> diff --git a/arch/sparc32/openbios.c b/arch/sparc32/openbios.c
>> index 60ee180..3624269 100644
>> --- a/arch/sparc32/openbios.c
>> +++ b/arch/sparc32/openbios.c
>> @@ -187,11 +187,11 @@ arch_init( void )
>> push_str("floppy");
>> break;
>> case 'c':
>> - push_str("disk");
>> + push_str("disk disk:d");
>> break;
>> default:
>> case 'd':
>> - push_str("cdrom");
>> + push_str("cdrom cdrom:d");
>> break;
>> case 'n':
>> push_str("net");
>
> Hmmm that should work. I'm just about to head home now, but can take a
> look later this evening. What's the filename of the ISO image you are
> using so I can use it for testing?
Ah wait a sec - according to the IEEE-1275 spec, the device chosen from
boot-device is the first one that can be successfully opened, i.e.
returns a valid ihandle with open-dev. Since the cdrom device is first
in the list (and can always be successfully opened), it will never try
the next option.
So what you need to do is swap the order over from "cdrom cdrom:d" to
"cdrom:d cdrom" which should give the desired behaviour.
HTH,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the OpenBIOS
mailing list