[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FIXED: ybin not setting OpenFirmware boot-device



On Nov 20, 2004, at 2:52 PM, Ethan Benson wrote:
> On Fri, Nov 19, 2004 at 09:30:26AM -0800, ms419@freezone.co.uk wrote:
>>
>> Why doesn't ybin set my OpenFirmware boot-device variable?
>>
>> According to the manpage:
>>
>> 	Ybin will also set the OpenFirmware boot-device variable to the
>> 	device
>> 	path of the bootstrap(8) partition using nvsetenv(8) when a NewWorld
>> 	compatible version of nvsetenv(8) is available.
>>
>> But it continues to automatically boot OS X from hd:4, instead of
>> yaboot from hd:2. I must manually boot hd:2,yaboot from OpenFirmware.
>
> OSX apparently does things to prevent other OSes from booting.  try
> resetting the nvram with command option o f during boot, machine
> should reboot itself until you release those keys.
>
> then as long as you partitioned correctly with osx after the bootstrap
> partition (and you used the Apple_Bootstrap type) yaboot should boot
> by default.
>
>> I checked, & both nvsetenv & hfsutils are installed. I'm running 
>> Debian
>> unstable, yaboot 1.3.31-2, powerpc-utils 1.1.3-11, & hfsutils 3.2.6-7.
>>
>> I call ybin without arguments & use this minimal yaboot.conf:
>
> did it give you any warnings?
>
>> 	boot=/dev/hda2
>>
>> 	image=hd:4,/vmlinux-2.6.9-200411130
>> 	        initrd=hd:4,/ext2rd.200411130.gz
>> 	        initrd-size=6291456
>> 	        append="init=/linuxrc"
>>
>> Any suggestions why ybin doesn't set my OpenFirmware boot-device
>> variable?
>>
>> Thanks!
>>
>> Jack

Thank you very much for your help, guys. I did as you suggested & it 
worked: ybin now sets my boot-device to the bootstrap partition.

Actually, it now works even with my original yaboot.conf : \ I can't 
explain it.

"nvsetenv boot-device" was very useful for showing that ybin _is_ 
actually setting my boot-device. I don't know why it kept booting OS X 
before.

Thanks again, very much, for your help.

Jack