yaboot boots os x, not linux, b&w g3
Olaf Olson
yellowdog-general@lists.terrasoftsolutions.com
Thu Jul 1 00:25:01 2004
Sorry about my earlier post. I was half asleep and missed the key point
to your message, about having re-partitioned your drive. Are you *sure*
you want to boot to vmlinux? Perhaps you should look at the FAQ on OF
booting, at the YDL FAQ site:
http://www.sharplabs.com:8668/space/Installing+YDL/BootX%2C+Yaboot+and+the+OF
Mascarasnake did an excellent job writing this one up and there's a LOT
of good stuff in here, but maybe you want to pay special attention to
the syntax towards the bottom of the first screen. It looks something
like this:
===================================
Snipped from the FAQ
*Don't Panic*, revisited
Just because you told your drunken frat boy to chase after that
transvestite and quit making intelligent choices, doesn't mean you can't
sober him up. If you've changed your startup disk from the Mac side
*and* you put your Apple_Bootstrap partition before all of your other OS
partitions, there is a simple way to get your yaboot back. Reset your
NVRAM (Zap the PRAM). While starting up, hold down the
[option]+[command]+[P]+[R] buttons until your box chimes three times.
This /should/ make the bootstrap partition, once again, the first
partition the OF sees.
* /Thanks to Olaf Olson for pointing out this bit:/
Note that I said resetting the NVRAM /should/ fix things so the
bootstrap is the first partition the OF sees. Since we do not live in an
ideal world, this is not always the case. If you find that you are still
unable to boot into Linux, there are still a few things you can do to
get back on track.
Armed with the Apple_Bootstrap partition number (pdisk will get this
info for you) you will need to boot into the OF like you did at the
beginning of this article. Once you are booted into the OF, simply enter
this command:
boot hd:x,\\:tbxi
and then enter (replacing "x" in that command with /your/
Apple_Bootstrap partition number).
Once you are back in YDL, you will need to rerun ybin to permanently
reset the OF to recognize the bootstrap as the first partition.
This really is a simplified overview of how /NewWorld/ and /OldWorld/
Macs behave and about the roles of OF, yaboot and BootX. To find more
detailed info and help, check out this stuff:
===================================
End of the Snip
Note that the slashes lean to the left. hd is the alias for all of the
string of stuff that makes up the definition for the boot drive. You may
not have to type ide0, just, in your case:
boot hd:2,\\:tbxi
printalias will give you the definitions for hd and stuff.
Olaf
Jeffrey Bruton wrote:
> I repartitioned before installing ydl a second time, so as far as I
> could tell via the clues (checkmarks) in the graphical installer,
> yaboot was installed to the main hd, and / and swap to the second
> drive. since yaboot works for os x as it should but fails while
> trying to boot, it does not know the correct device path to /,
> wouldn't that be correct?
>
> I found some yaboot documentation on penguinppc.org, there it states
> OF commands as follows
>
> name device type
> ------- ---------------
> hd internal ide drive (primary controller, master disk)
> ultra1 internal ide drive (primary controller, slave disk)
> ide0 ide drive (secondary controller, master disk)
> ide1 ide drive (secondary controller, slave disk)
> cd cdrom
> zip zip drive
> fw firewire interface
> fd floppy drive
> enet ethernet interface
>
> the drive with root is on the secondary controller, and jumpered as
> master, or ide0
>
> I have tried many variations at the boot prompt where I am left after
> yaboot prints the error message, I will to go through them again and
> document what variations on a path-to-kernel I have tried.
>
> I know I was unsuccessful with the following entered at the boot prompt:
>
> ide0:2,/vmlinux root=/dev/hdb2
>
>
> On Jun 30, 2004, at 9:49pm, David Hacker wrote:
>
>> If you repartitioned the drive then the partiton numbers are
>> different so yaboot is looking in the wrong place now. Try booting
>> from the cd by typing linux root=/dev/???? where ???? is the drive
>> and partiton of your YDL install. It is hard to tell from the pdisk
>> info whether the rdisk1 disk is an ata disk or a USB disk. if it is
>> on ata then it is probably hdb2 if it is a USB disk then it is
>> probably sda2. Once you get booted run ybin -v as root from a
>> terminal and then try rebooting with yaboot.
>> Good Luck,
>> David C. Hacker, DVM
>> On Jun 30, 2004, at 10:30 PM, Jeffrey Bruton wrote:
>>
>>> yaboot will boot os x, but if I type an "l" at the prompt it prints
>>> the following
>>>
>>> /pci@8000000/pci-bridge@d/Ultra-Tek100P@4/0,0:2,/bootvmlinux-2.4.22
>>> -2f: Unable to open file, Invalid device.
>>>
>>> I used carbon copy cloner to clone my working os x to the drive
>>> attached to the Ultra-Tek ide controller, it booted just fine. For
>>> some reason it would not work for yaboot.
>>>
>>> I repartitioned my main drive, allocating free space for the apple
>>> bootstrap partition and the rest to os x, cloned os x back,
>>> installed ydl, seemed to go fine. I have been reading about
>>> openfirmware, but this seems to be a yaboot problem, no? I am left
>>> with a "boot:" prompt. I am confused as to what path might be
>>> appropriate here, or what other steps to take. I did manage to
>>> provide a pdisk dump below (something new to me, cool)
>>>
>>> jbg3:~ jb$ sudo pdisk /dev/rdisk0 -dump
>>> /dev/rdisk0 map block size=512
>>> #: type name length base
>>> ( size )
>>> 1: Apple_partition_map Apple 63 @ 1
>>> 2: Apple_Bootstrap untitled 2048 @ 64
>>> ( 1.0M)
>>> 3: Apple_Free Extra 268288 @ 2112
>>> (131.0M)
>>> 4: Apple_HFS Apple_HFS_Untitled_3 119832784 @
>>> 270400 ( 57.1G)
>>> 5: Apple_Free Extra 16 @ 120103184
>>>
>>> Device block size=512, Number of Blocks=120103200
>>> DeviceType=0x0, DeviceId=0x0
>>>
>>> jbg3:~ jb$ sudo pdisk /dev/rdisk1 -dump
>>> /dev/rdisk1 map block size=512
>>> #: type name length base (
>>> size )
>>> 1: Apple_partition_map Apple 63 @ 1
>>> 2: Apple_UNIX_SVR2 untitled 22240448 @ 64 (
>>> 10.6G)
>>> 3: Apple_UNIX_SVR2 swap 3144960 @ 22240512
>>> ( 1.5G)
>>>
>>> Device block size=512, Number of Blocks=25385472
>>> DeviceType=0x0, DeviceId=0x0
>>>
>>> _______________________________________________
>>> yellowdog-general mailing list
>>> yellowdog-general@lists.terrasoftsolutions.com
>>> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
>>> HINT: to Google archives, try '<keywords>
>>> site:terrasoftsolutions.com'
>>>
>>
>> _______________________________________________
>> yellowdog-general mailing list
>> yellowdog-general@lists.terrasoftsolutions.com
>> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
>> HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'
>>
>
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> HINT: to Google archives, try '<keywords> site:terrasoftsolutions.com'
>