Re: Ybin inst failure on B/W G3 Rev 1


Subject: Re: Ybin inst failure on B/W G3 Rev 1
From: Patrick Ladam (ladam@smbh.smbh.univ-paris13.fr)
Date: Thu Nov 15 2001 - 14:02:24 MST


Patrick Callahan wrote:

> I have a Blue G3 rev 1 and it boots fine. Details below
>
> hda9 is my yaboot partition. Anyone know if its ok to mount the yaboot
> partition or does it get un-blessed or other bad things happen if you do?
>
> Linux is installed in hda12.
>
> If you're having trouble booting, its a good idea to include the following
> info in your post.
> o Your ybin version
> o Your Yaboot.conf file
> o a listing of what's in your /boot partition
>
> (What else would be good to have? Anyone?)
>
> /usr/sbin/ybin --version
> ybin 1.3.4-ydl
>
> cat /etc/yaboot.conf
>
> # ybin options
> boot=/dev/hda9
> macos=/dev/hda6
> macosx=/dev/hda7
> magicboot=/usr/lib/yaboot/ofboot
> delay=10
> defaultos=linux
> enablecdboot
>
> # yaboot options
> init-message="\nWelcome to Yellow Dog Linux\n\n"
> timeout=50
> default=linux
> partition=12
>
> # yaboot images
> image=/boot/vmlinux
> label=linux
> root=/dev/hda12
>
> image=/boot/vmlinux
> label=linux-novideo
> root=/dev/hda12
> novideo
>
> s -lah /boot
> total 8.2M
> drwxr-xr-x 2 root root 4.0k Nov 14 05:42 .
> drwxr-xr-x 27 root root 4.0k Nov 1 20:19 ..
> lrwxrwxrwx 1 root root 21 Nov 14 05:42 System.map ->
> System.map-2.4.10-12a
> -rw-r--r-- 1 root root 581k Oct 9 05:16 System.map-2.4.10-12a
> lrwxrwxrwx 1 root root 22 Oct 24 19:12 module-info ->
> module-info-2.4.10-12a
> -rw-r--r-- 1 root root 11k Oct 9 05:16 module-info-2.4.10-12a
> lrwxrwxrwx 1 root root 18 Oct 24 19:12 vmlinux ->
> vmlinux-2.4.10-12a
> -rwxr-xr-x 1 root root 4.4M Oct 9 05:16 vmlinux-2.4.10-12a
> <snip> I don't use prep
>
> On Wednesday 14 November 2001 02:34, you wrote:
> > Hi folks,
> > Got the latest 2.1 iso (20011105) and the install went on OK, excepted for
> > yaboot.
> > My config is:
> > B/W G3 Revision 1 (yosemite) MacOS 9.1.
> >
> > After install and no yaboot prompt, I booted Linux from the CD and did the
> > trick
> >
> > from the Inst. guide (rerun yabin). This did not work still and yaboot
> > prompt did
> > not show up. I checked my yaboot.conf file and it is OK.
> > Then I went playing in the OpenFirmware and tried a bunch of 'boot
> > hd:8,\\yaboot'
> > (my bootstrap partition is on sda8) and other trials that never got me into
> > Linux.
> > There is definitely a problem with these Revision 1 B/W G3, it is said
> > in http://www.yellowdoglinux.com/support/solutions/multiboot.shtml that:
> > "Users of first generation New World ROM machines (original iMac, '99
> > PowerBook, Blue and White G3) will need to follow more complex steps to
> > get back into Linux. We will add this additional information to this topic
> > in the near future. "
> >
> > Please can someone of YDL mail a fix for this, I am getting nuts trying
> > desperatly to get yaboot working since two days with no succes!!! Heeeeelp!
> >
> > Bye and thanX for this killer distro anyway

Here are some more info:

This is my yaboot.conf file:
----------------------------
# ybin options
boot=/dev/sda8
macos=/dev/sda6
magicboot=/usr/lib/yaboot/ofboot
delay=10
defaultos=macos
enablecdboot

# yaboot options
init-message="\nWelcome to Yellow Dog Linux\n\n"
timeout=50
default=linux
partition=9

# yaboot images
image=/boot/vmlinux
        label=linux
        root=/dev/sda9

image=/boot/vmlinux
        label=linux-novideo
        root=/dev/sda9
        novideo
-------------------------------
So yaboot.conf seems coorect acoording to my partitions displayed
with parted:

[root@localhost /root]# parted /dev/sda print
Disk geometry for /dev/sda: 0.000-8715.820 megabytes
Disk label type: mac
Minor Start End Filesystem Name Flags
1 0.000 0.031 Apple
2 0.031 0.057 Macintosh
3 0.058 0.093 Macintosh
4 0.094 0.343 Macintosh
5 0.344 0.593 Patch Partition
6 0.594 2030.956 hfs YAP
7 2030.956 2158.956 linux-swap swap swap
8 2158.957 2168.957 hfs untitled boot
9 2168.957 8715.820 ext2 untitled
[root@localhost /root]#

-------------------------------
ybin is version ybin 1.3.4-ydl
Here is what ybin with verbose displays (sounds good to me...):

[root@localhost /root]# ybin -v
ybin: Finding OpenFirmware device path to `/dev/sda8'...
ybin: Finding OpenFirmware device path to `/dev/sda6'...
ybin: Installing first stage bootstrap /usr/lib/yaboot/ofboot onto /dev/sda8...
ybin: Installing primary bootstrap /usr/lib/yaboot/yaboot onto /dev/sda8...
ybin: Installing /etc/yaboot.conf onto /dev/sda8...
ybin: Setting attributes on ofboot...
ybin: Setting attributes on yaboot...
ybin: Setting attributes on yaboot.conf...
ybin: Blessing /dev/sda8 with Holy Penguin Pee...
ybin: Updating OpenFirmware boot-device variable in nvram...
[root@localhost /root]#
[root@localhost /root]# gedit ybin_out &
[1] 1944
[root@localhost /root]#

------------------------------------------------
And here is my /boot directory:

ls -al /boot
total 8312
drwxr-xr-x 2 root root 4096 Nov 15 08:52 .
drwxr-xr-x 25 root root 4096 Nov 15 08:52 ..
lrwxrwxrwx 1 root root 21 Nov 15 08:52 System.map ->
System.map-2.4.10-12a
-rw-r--r-- 1 root root 595345 Oct 9 11:16 System.map-2.4.10-12a
lrwxrwxrwx 1 root root 22 Nov 12 22:23 module-info ->
module-info-2.4.10-12a
-rw-r--r-- 1 root root 11773 Oct 9 11:16 module-info-2.4.10-12a
lrwxrwxrwx 1 root root 18 Nov 12 22:23 vmlinux ->
vmlinux-2.4.10-12a
-rwxr-xr-x 1 root root 4640939 Oct 9 11:16 vmlinux-2.4.10-12a
lrwxrwxrwx 1 root root 22 Nov 12 22:23 zImage-chrp ->
zImage-chrp-2.4.10-12a
-rw-r--r-- 1 root root 1638882 Oct 9 11:16 zImage-chrp-2.4.10-12a
lrwxrwxrwx 1 root root 22 Nov 12 22:23 zImage-prep ->
zImage-prep-2.4.10-12a
-rw-r--r-- 1 root root 1578345 Oct 9 11:16 zImage-prep-2.4.10-12a
-------------------------------------------------

Well I re-installed YDL 2.1 again and still the same. So I spent
half of the night in the OpenFirmware trying various options to
boot on yaboot. Unsuccessfully.

Could someone tell me what are his OF variables after a yaboot install,
I have the impression that mine are not correctly set for some weird
reasons. You can see that by booting the mac while maintaining
ALT+APPLE+o+f pressed. Here you get in the OF prompt, simply type
printenv and you will have your variables displayed. Once you are
done, type mac-boot or shut-down.

Here is what I get for the relevant OF variables:

boot-command: mac-boot (my guess is it should be boot)
boot-file: none (my guess is it should be ofboot.b or yaboot)
boot-device: /pci@80000000/pci-bridge@d/pci9004,7850@3/@0:8,\\:tbxi

I tried a bunch of variations around boot-device (turn tbxi into yaboot
for instance) with no succes. This is getting me mad!!!

Bye


--
------------------------------------------------------------------
| Patrick LADAM                   |                               |
| Laboratoire CSSB                |     THE BIG BANG THEORY:      |
| UFR SMBH                        |                               |
| 74 rue Marcel Cachin            |   In the begining there was   |
| 93017 Bobigny CEDEX             |        nothing at all.        |
| >>> NEW e-mail: <<<             |                               |
| ladam@smbh.smbh.univ-paris13.fr |      Then, it exploded...     |
| Tel: 01 48 38 77 26 / 76 85     |                               |
| Fax: 01 48 38 77 77             |                               |
------------------------------------------------------------------



This archive was generated by hypermail 2a24 : Thu Nov 15 2001 - 05:04:43 MST