mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.0-test6 + fb patch = dead PowerBook
@ 2003-10-24 18:44 David Eger
  2003-10-24 22:38 ` David Eger
  0 siblings, 1 reply; 3+ messages in thread
From: David Eger @ 2003-10-24 18:44 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: 2.6.0-test6 + fb patch = dead PowerBook
  2003-10-24 18:44 2.6.0-test6 + fb patch = dead PowerBook David Eger
@ 2003-10-24 22:38 ` David Eger
  2003-10-28 12:09   ` gcc 3.2+ alignment issue with 2.6 kernel (was Re: 2.6.0-test6 + fb patch = dead PowerBook) David Eger
  0 siblings, 1 reply; 3+ messages in thread
From: David Eger @ 2003-10-24 22:38 UTC (permalink / raw)
  To: linux-kernel


Though I still do not know what happened, I have a remedy:

+ Removing a RAM stick
+ Put RAM stick back in
+ Boot

-Eger David

^ permalink raw reply	[flat|nested] 3+ messages in thread

* gcc 3.2+ alignment issue with 2.6 kernel (was Re: 2.6.0-test6 + fb patch = dead PowerBook)
  2003-10-24 22:38 ` David Eger
@ 2003-10-28 12:09   ` David Eger
  0 siblings, 0 replies; 3+ messages in thread
From: David Eger @ 2003-10-28 12:09 UTC (permalink / raw)
  To: linux-kernel

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 =====
--- 1.24/arch/ppc/kernel/vmlinux.lds.S Fri Sep 12 18:26:52 2003
+++ edited/arch/ppc/kernel/vmlinux.lds.S Sun Oct 12 20:17:25 2003
@@ -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);


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-28 10:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24 18:44 2.6.0-test6 + fb patch = dead PowerBook David Eger
2003-10-24 22:38 ` David Eger
2003-10-28 12:09   ` gcc 3.2+ alignment issue with 2.6 kernel (was Re: 2.6.0-test6 + fb patch = dead PowerBook) David Eger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®