Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems booting B&W g3 [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 481
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Jul 03, 2009 2:41 am    Post subject: Problems booting B&W g3 [SOLVED] Reply with quote

I received some help for this on irc, but we received 'no joy' in our attempt to fix it

i followed the ppc handbook to install gentoo to a 300 mhz b&w. mostly stock setup. used nfs for portage, and unmasked portage 2.2.x

when I boot, i see:

Code:
Can't open device </pci@800000000/pci-bridge@d/pci-ata@1/@0/disk@0:2\\:0>
/pci@800000000/pci-bridge@d/pci-ata@1/@0/disk@0:2\\:0,yaboot.conf: Unable to open file, Invalid device
Can't open config file
Welcome to yaboot version 1,3,14
Enter "help" to get some basic useage information
Can't open device </pci@800000000/pci-bridge@d/pci-ata@1/@0/disk@0:2\\:0>


if I goto open firmware, and tell it 'boot hd:,\\yaboot', I see almost the same thing:

Code:
Welcome to yaboot version 1,3,14
Enter "help" to get some basic useage information
boot: Linux
Please wait, loading kernel...
hd:/pci@80000000/pci-bridge@d/pci-ata@1/@0/disk@0:4\\:0,/vmlinux: Unable to open file, Invalid device
boot:


here's what the disk layout looks like:

Code:
livecd ~ # mac-fdisk -l
/dev/hda
        #                    type name                length   base    ( size )  system
/dev/hda1     Apple_partition_map Apple                    2 @ 1       (  1.0k)  Partition map
/dev/hda2               Apple_HFS catalyst 2008.0     206176 @ 16      (100.7M)  HFS

Block size=512, Number of Blocks=206192
DeviceType=0x1, DeviceId=0x1

/dev/hdc
        #                    type name                length   base    ( size )  system
/dev/hdc1     Apple_partition_map Apple                   63 @ 1       ( 31.5k)  Partition map
/dev/hdc2         Apple_Bootstrap bootstrap             1600 @ 64      (800.0k)  NewWorld bootblock
/dev/hdc3         Apple_UNIX_SVR2 swap               1050624 @ 1664    (513.0M)  Linux swap
/dev/hdc4         Apple_UNIX_SVR2 root               7366528 @ 1052288 (  3.5G)  Linux native

Block size=512, Number of Blocks=8418816
DeviceType=0x0, DeviceId=0x0

/dev/hdd
        #                    type name                 length   base     ( size )  system
/dev/hdd1     Apple_partition_map Apple                    63 @ 1        ( 31.5k)  Partition map
/dev/hdd2         Apple_UNIX_SVR2 swap1               1048576 @ 64       (512.0M)  Linux native
/dev/hdd3         Apple_UNIX_SVR2 home               11607808 @ 1048640  (  5.5G)  Linux native

Block size=512, Number of Blocks=12656448
DeviceType=0x0, DeviceId=0x0

livecd ~ #


along with fstab:

Code:
livecd ~ # cat /mnt/gentoo/etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda4               /               xfs             noatime         0 1
/dev/hda                none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

#nfs


livecd ~ #


and yaboot.conf:

Code:
livecd ~ # cat /mnt/gentoo/etc/yaboot.conf
## yaboot.conf generated by yabootconfig 1.0.8
##
## run: "man yaboot.conf" for details. Do not make changes until you have!!
##
## For a dual-boot menu, add one or more of:
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ

boot=/dev/hdc2
device=/pci@80000000/pci-bridge@d/pci-ata@1/@0/disk@0:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot

image=/boot/vmlinux
        label=Linux
        read-only
        append="video=ofonly"
livecd ~ #


finally, my .config file is here.

any suggestions as to how to fix this, and get it too boot?

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'


Last edited by NotQuiteSane on Fri Jul 03, 2009 2:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
gringo
Advocate
Advocate


Joined: 27 Apr 2003
Posts: 3793

PostPosted: Fri Jul 03, 2009 11:26 am    Post subject: Reply with quote

i think sth. is wrong with the device line from your yaboot.conf, mine looks like this :

Code:
boot=/dev/hda2
device=hd:
partition=3
root=/dev/hda3
timeout=30
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot


but this is a G4 alubook, not a G3 B&W ...

hope this helps.

cheers
_________________
Error: Failing not supported by current locale
Back to top
View user's profile Send private message
NotQuiteSane
Guru
Guru


Joined: 30 Jan 2005
Posts: 481
Location: Klamath Falls, Jefferson, USA, North America, Midgarth

PostPosted: Fri Jul 03, 2009 2:08 pm    Post subject: Reply with quote

gringo wrote:
hope this helps.


it gave me the clue:

Code:
device=hd:


my device now points to

Code:
device=ultra0:2


but that was only part of the problem. for those with similar issues:

reboot into OpenFirmware. if like myself you use a "pc" usb keyboard, hold down <windows><alt> o f

at the prompt, type

Code:
printenv


note what "boot-device" is pointing to. you want it to point to the device in yaboot.conf

to set boot device to ultra0:2, as i have, type:

Code:
setenv boot-device ultra0:2,\\yaboot


then use

Code:
printenv

to verify changes

to check which alias can be used with which device, type

Code:
devalias


finally, once changes are made, type

Code:
mac-boot


to boot into linux

NQS
_________________
These opinions are mine, mine I say! Piss off and get your own.

As I see it -- An irregular blog, Improved with new location

To delete French language packs from system use 'sudo rm -fr /'
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum