2.6.0-test6 + fb patch = dead PowerBook
I decided a week ago to work on bringing the Radeon driver up-to-date for Linux 2.6 -- essentially a forward port of BenH's 2.4 driver + some acceleration code from xfree86.
My PowerBook is now toast. I'm hoping someone might give me some hints on resurrecting it. Here's the story:
1. Dowloaded linux-2.6.0-test8. Compiled. Rebooted. My lcd didn't show anything once tux was supposed to appear.
2. Decided "must be a bad radeon driver". Forward ported BenH's driver, ifdef'ing out all of the Power Management code and console ugliness.
3. Compiled this patched kernel. Rebooted. Hung, I believe, detecting a mouse. strange.
4. Checked my .config from linux-2.4.22-ben2. Oh. I'll try enabling VGA console in addition to FB console, and those other "Apple" framebuffers just for kicks in my 2.6.0-test8+ kernel.
5. Compile. Reboot. tux! login prompt! Rock! login. just for kicks, startx. X starts! Rock! Okay, reboot to linux-2.4 so I can clean up the new driver. X gets killed and video goes weird during shut down. That's expected, though, as I disabled some of the Power Management codes.
My machine never reboots properly.
It will get to the end of openpic() right before tux is supposed to appear and dies. Linux-2.4.22-ben2, MacOSX, Linux-2.6.0-test8+, Gentoo Install CD, MacOSX install CD, they all die somewhere during kernel initialization. The only thing I can get to boot is the Hardware Test CD.
I figure, "okay, I must have screwed with some registers improperly. I'll just unplug it, take the battery out, let all of the registers settle down to zero and reboot it later. I'll even hit that reset switch on the PMU just in case."
None of this helps.
Any ideas?
-Eger David, in Budapest
Though I still do not know what happened, I have a remedy:
+ Removing a RAM stick
+ Put RAM stick back in
+ Boot
-Eger David
gcc 3.2+ alignment issue with 2.6 kernel (was Re: 2.6.0-test6 + fb patch = dead PowerBook)
FYI:
My issue seems to be a bad interaction of new versions of gcc (me gcc-3.2.3, him gcc-3.3.1) with alignments in the kernel. My problems have gone away with the following patch presented on linuxppc-dev by Sam Ravnborg. I do not know if other platforms are affected, so similar patches might be needed elsewhere.
Why this misalignment would turn my machine into a brick even through reboots... I do not know.
-Eger David
===== arch/ppc/kernel/vmlinux.lds.S 1.24 vs edited =====
arch/ppc/kernel/vmlinux.lds.S Sun Oct 12 20:17:25 2003 renamed from arch/ppc/kernel/vmlinux.lds.S Fri Sep 12 18:26:52 2003 +0 -0
@@ -47,13 +47,17 @@
.fixup : { *(.fixup) }
- __start___ex_table = .;
- __ex_table : { *(__ex_table) }
- __stop___ex_table = .;
+ __ex_table : {
+ __start___ex_table = .;
+ *(__ex_table)
+ __stop___ex_table = .;
+ }
- __start___bug_table = .;
- __bug_table : { *(__bug_table) }
- __stop___bug_table = .;
+ __bug_table : {
+ __start___bug_table = .;
+ *(__bug_table)
+ __stop___bug_table = .;
+ }
/* Read-write section, merged into data segment: */ . = ALIGN(4096);