Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
G4 iMac will not boot after initial install [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
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Mon Feb 27, 2006 12:50 pm    Post subject: G4 iMac will not boot after initial install [SOLVED] Reply with quote

Hi, I'm installing Gentoo on a G4 iMac for the first time. I've gone through all the steps in the installation manual and everything seemed to go fine. When I try to reboot using the new installation I get the "BONG," followed by the "Mac ?" splash screen. That's all I get, unless the installation CD happens to be in the tray. In that case, it eventually default boots from the CD.

Any veterans, developers or other Linux-savvy types out there know what the problem might be?

Regards,
James Rasmussen


Last edited by C8H10N4O2 on Sat Mar 11, 2006 4:05 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Feb 27, 2006 2:34 pm    Post subject: Reply with quote

You probably either specified an invalid drive in your yaboot.conf or didn't create the bootstrap partition correctly. Please boot back into the InstallCD, then give us the output of mac-fdisk -l, and the contents of your yaboot.conf (you'll need to remount your root partition to get this, it's found in /etc
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Tue Feb 28, 2006 3:59 pm    Post subject: Reply with quote

Thanks Jose;

Unfortunately I don't have an internet connection on the machine I'm trying to install to. :(

I can try to copy the files to CD and upload them at work tomorrow so please be patient and again, thanks for trying to help me.

Regards,
James Rasmussen
Back to top
View user's profile Send private message
iqt
n00b
n00b


Joined: 23 Oct 2002
Posts: 23

PostPosted: Wed Mar 01, 2006 8:43 am    Post subject: Reply with quote

I had a similar problem during my first install on MacMini (dual boot Mac OS X and Gentoo). Default boot was still Mac OS X. I had to hold down the 'Option' (or Alt) key after the BONG. Then I could select the partition marked with a little penguin and voila, Gentoo was booting without CD. After login as root I checked yaboot.conf and did ybin again.

For some reason yaboot out of the chroot environment during install was not working for me.

Anyhow the info requested from Jose would be helpfull.
Back to top
View user's profile Send private message
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Wed Mar 01, 2006 1:07 pm    Post subject: Reply with quote

okay, I re-installed yaboot.conf, this time using yabootconfig as opposed to doing it manually. I can now boot the installed system, but it hangs at:

Code:
Calling quiesce ...
returning 0x01400000 from prom_init


my yaboot.conf looks like this:

Code:
boot=/dev/hda2
device=/pci@f2000000/mac-io@17/ata-4@1f000/disk@0:
partition=4
root=/dev/hda4
timeout=30
install=/usr/lib/yaboot/yaboot
 
ofboot=hd:2
magicboot=/usr/lib/yaboot/ofboot
 
image=/boot/2.6.12-gentoo-r6
               label=Linux
              read-only


BTW, I had to add ofboot=hd:2 to get out of firmware even though my chip is a G4. ...

Jose also asked about fstab: mine looks like this:

Code:
/dev/hda2      /boot      Apple_Bootstrap      defaults,noatime      1 2
/dev/hda3      none      swap      sw      0 0
/dev/hda4      /            ext3      noatime      0 1
 
none            /proc       proc      defaults      0 0
 
none           /dev/shm      tmpfs       nodev,nosuid,noexec      0 0


So bottom line, I could still use some help.

I have to say, this has been an interesting project. I've never done anything like this before and while the learning curve is steep sometimes, I AM LEARNING, thanks to the Gentoo Community and the rest of my teachers! :)

Regards,
James Rasmussen
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 01, 2006 2:16 pm    Post subject: Reply with quote

The most common cause of it not returning from "prom_init" is that you didn't build in a framebuffer. Make sure your kernel is configured according to the handbook directions:
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=7#doc_chap3
The X config question in the FAQ also has more detail on Framebuffers and video drivers:
http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml#xorg
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Wed Mar 01, 2006 6:14 pm    Post subject: Reply with quote

Thanks; can I reconfigure the kernel on the fly, using (make menuconfig) or do I have to reinstall the kernel & start over?

Regards,
James Rasmussen
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Mar 01, 2006 7:05 pm    Post subject: Reply with quote

You can always reconfigure the kernel with make menuconfig, just be sure to compile and copy the kernel afterwards.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Thu Mar 02, 2006 1:42 pm    Post subject: Reply with quote

Ok Jose, I ran menuconfig and as you suspected, I hadn't specified a framebuffer for the graphics package. Since my graphics card is a Nvidia [GeForce MX400 / 400] I selected the generic Nvidia framebuffer, recompiled the kernel and cp'd it over to /boot.

I re-ran yabootconfig but on reboot it still halted at prom_init. I then repeated the process, this time using the other Nvidia Framebuffer (RAGE <something>): I got the same result.

So what's the deal? Do I need to set video=Nvidia in yaboot.conf? Do I have to reconfigure some older *.conf files that wouldn't have updated when the kernel was recompiled? Do I have some bizzarre video card that Linux doesn't have a driver for? ..... :?: :?: :?: ....

Regards,
James Rasmussen
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Thu Mar 02, 2006 2:20 pm    Post subject: Reply with quote

Unfortunately, nVidia is usually a pain on ppc, the drivers don't work very well. That said, "rage" is actually an ATi card. You could try with the rivafb driver. If you're specifying the video type on boot, the proper line for the rivafb driver would be video=rivafb. For the nvidia driver, nvidiafb. If neither of those are working, you should try building in the openfirmware framebuffer.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
C8H10N4O2
n00b
n00b


Joined: 05 Feb 2006
Posts: 43

PostPosted: Sat Mar 11, 2006 4:17 pm    Post subject: Reply with quote

So, I finally got it to boot using the Nvidia Framebuffer - after removing some of the options I'd set in make.conf & recompiling (what a pain... :!: ).

Moral of the story: get it running first, then tweak it for functionality later.... :roll:

Regards,
James Rasmussen
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