Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iMac G5 revC will not boot after kernel upgrade
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
hrfici
n00b
n00b


Joined: 16 Nov 2008
Posts: 4

PostPosted: Sun Nov 16, 2008 3:03 am    Post subject: iMac G5 revC will not boot after kernel upgrade Reply with quote

Installed 2008 from universal and was successful:

florshr@imacG5 ~ $ cat /proc/cpuinfo
processor : 0
cpu : PPC970FX, altivec supported
clock : 2100.000000MHz
revision : 3.1 (pvr 003c 0301)

timebase : 33333333
platform : PowerMac
machine : PowerMac12,1
motherboard : PowerMac12,1 MacRISC4 Power Macintosh
detected as : 337 (iMac G5 (iSight))
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld

uname -a
Linux imacG5 2.6.24-gentoo-r3 #3 SMP Thu Nov 13 23:46:44 CST 2008 ppc64 PPC970FX, altivec supported PowerMac12,1 GNU/Linux


I tried to upgrade the kernel from 2.6.24 to 2.6.26 (used emerge to download source), and performed basically the same steps as the install:
32 bit userland (cross compile option in Makefile)
make g5_defconfig
make && make modules_install

yaboot.conf -> ybin -v

When i reboot, i get the following:
___________________________________

Setup Arch
CF000015
Setup Done
Failed to map cascade IRQ
smp_core99_probe
core99_setup_cpu 0 done

____________________________________

and then the box just sits (the cascade IRQ message occurs even with the 2.6.24 kernel; so that is not the problem)

I did try a build without smp configuration with same results.

Any ideas?

Thanks
Back to top
View user's profile Send private message
hrfici
n00b
n00b


Joined: 16 Nov 2008
Posts: 4

PostPosted: Mon Nov 17, 2008 10:49 pm    Post subject: More info Reply with quote

I performed an upgrade to 2.6.27 with the same results as previously posted for the 2.6.26 kernel: Screen just sits there after the same output.

So i then set DEBUG on most files in the arch/powerpc/kernel direcotry and enabled syslog-ng and sshd.

I can log into the box from the network via ssh.


So it looks like the kernel works, but i have lost control of the console and possibly keyboard/mouse.


Any ideas?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 26, 2008 7:12 pm    Post subject: Reply with quote

This will happen if the framebuffer device isn't started properly. Make sure that you have both the open firmware framebuffer device and the correct framebuffer for your system (I believe that machine has a nvidia card in it).
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
hrfici
n00b
n00b


Joined: 16 Nov 2008
Posts: 4

PostPosted: Wed Dec 03, 2008 3:56 pm    Post subject: Solution found Reply with quote

I am booting with video=ofonly for all the kernel versions i hava tested. So far 2.6.24 is the only kernel that will setup the console correctly.

After digging around in the kernel, i found that the initial probe for pci devices (the video card is pci) that the allocated memory for the video card was being munged.

Apparently sometime after the 24 kernel and before the 26 kernel, many changes have taken place with this section of the kernel.

I inserted a hack in the alloc_resource() function that specifically searches for my vidoe resource, and maps them to the correct parent.

I can now boot the 2.6.28 kernel and use my console.


Thanks for the help.
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