linux 2.6.12-rc1-bk5 compilation error
Hi,
Once again i face an error that i got with a previous 2.6 kernel (i already posted about this in january i think).
My config G5 bi 2Ghz and you can grab my kernel config here : http://dj.planet-d.net/config
When compiling 2.6.12-rc1-bk5 i first get unknown symbol _flush_disable_L1. This is in arch/ppc/kernel/l2cr.S I changed the makefile in arch/ppc/kernel to have this :
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
into :
obj-$(CONFIG_POWER4) += l2cr.o cpu_setup_power4.o
I am not sure this is good but with this i can go on.
And finaly i face back the same unknown function than in my previous mail :disable_6xx_mmu
used in :arch/ppc/boot/simple/misc-prep.c
At that time i done some test defining CONFIG_6xx which give others erros or undefining PPC_PREP which give some others errors.
I finaly used a stupid patch to make it works (below)
But it seems that at some stage it gots forgotten. Anyway what puzzle me is that it seems i am the only one to face this ? Am i alone :) ?
diff -Naur a/arch/ppc/boot/simple/misc-prep.c b/arch/ppc/boot/simple/misc-prep.c
--- a/arch/ppc/boot/simple/misc-prep.c 2004-12-24 22:33:51.000000000 +0100
+++ b/arch/ppc/boot/simple/misc-prep.c 2005-01-21
12:09:50.976426672 +0100
@@ -34,7 +34,11 @@
extern void serial_fixups(void);
extern struct bi_record *decompress_kernel(unsigned long load_addr,
int num_words, unsigned long cksum);
+#ifdef CONFIG_6XX
extern void disable_6xx_mmu(void);
+#elif
+static inline void disable_6xx_mmu(void) {} +#endif
extern unsigned long mpc10x_get_mem_size(void);
static void
I send the wrong patch (old one) and with paste & cute error. Here is a good one.
One more things i can boot with this kernel.
I got a Invalid memory access right after
kernel start...
Jerome Glisse
Quoted 9 lines · Jerome Glisse
Hi,
Once again i face an error that i got with a previous 2.6 kernel (i already posted about this in january i think).
My config G5 bi 2Ghz and you can grab my kernel config here : http://dj.planet-d.net/config
Quoted 8 lines
When compiling 2.6.12-rc1-bk5 i first get unknown symbol
_flush_disable_L1. This is inarch/ppc/kernel/l2cr.SI changed the makefile inarch/ppc/kernelto have this :
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
into :
obj-$(CONFIG_POWER4) += l2cr.o cpu_setup_power4.o.../...
You should really be using a 64 bits kernel :)
Ben.
Quoted 1 line
You should really be using a 64 bits kernel :)
Yes, i should, honte =E0 moi :) btw which distribution do you use or recommand for 64bits ? gentoo ? I am long time debian user (x86) and i think that this is not the best choice for ppc64...
Jerome Glisse
Quoted 6 lines · Jerome Glisse
Quoted 1 line
You should really be using a 64 bits kernel :)
Yes, i should, honte à moi :) btw which distribution do you use or recommand for 64bits ? gentoo ? I am long time debian user (x86) and i think that this is not the best choice for ppc64...
I'm using debian 32 bits and do my own 64 bits toolchain for building kernels ;)
For toolchain, I recommend Janis scripts at penguinppc64.org (toolchain section, there is a link to mkbiarch etc... I don't use crosstools).
Ben.
I almost successfully run the 2.6.12-rc2, there were some bad old stuff lying around. But i needed the two workaround to compile it. So maybe this two could be applied to the kernel ?
Now the only issue which remains is that the radeon framebuffer no more set a proper mode for my screen. The screen complain about a out of range mode. But as soon as X start i get a proper mode set but can't switch to console.
The screen is a crt one on a radeon 9600 with dvi->vga adapter. Which works well on 2.6.10
I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
Jerome Glisse
Quoted 2 lines · Jerome Glisse
I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
I'd suggest looking at the changes between rc1 and rc2 first. On my iBook G3 with Radeon M6 I'm also having problems with rc2, whereas rc1 is working fine. I haven't found the time to look closer yet.
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 10 lines · Andreas Schwab
Quoted 2 lines · Jerome Glisse
I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
I'd suggest looking at the changes between rc1 and rc2 first. On my iBook G3 with Radeon M6 I'm also having problems with rc2, whereas rc1 is working fine. I haven't found the time to look closer yet.
Andreas.
Shame on me, i was passing wrong arguments to the kernel now this works...
Jerome Glisse
Quoted 9 lines · Jerome Glisse
I almost successfully run the 2.6.12-rc2, there were some bad old stuff lying around. But i needed the two workaround to compile it. So maybe this two could be applied to the kernel ?
Now the only issue which remains is that the radeon framebuffer no more set a proper mode for my screen. The screen complain about a out of range mode. But as soon as X start i get a proper mode set but can't switch to console.
Quoted 5 lines
The screen is a crt one on a radeon 9600 with
dvi->vgaadapter. Which works well on 2.6.10I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
radeonfb picks the first mode in the list generated from DDC, which unfortunately, on a lot of CRTs, is bullshit...
Ben.
Quoted 8 lines · Andreas Schwab
Quoted 2 lines · Jerome Glisse
I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
I'd suggest looking at the changes between rc1 and rc2 first. On my iBook G3 with Radeon M6 I'm also having problems with rc2, whereas rc1 is working fine. I haven't found the time to look closer yet.
What problem specifically ?
Ben.
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 8 lines · Andreas Schwab
Quoted 2 lines · Jerome Glisse
I will try t look at radeon framebuffer see if i can find anythings. Any idea of which change on that code may be the origin of this ?
I'd suggest looking at the changes between rc1 and rc2 first. On my iBook G3 with Radeon M6 I'm also having problems with rc2, whereas rc1 is working fine. I haven't found the time to look closer yet.
What problem specifically ?
<http://marc.theaimsgroup.com/?l=linux-kernel&m=111273873814456&w=2>
Andreas.
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
Quoted 3 lines · Jerome Glisse
Once again i face an error that i got with a previous 2.6 kernel (i already posted about this in january i think).
[snip]
Quoted 2 lines
Anyway what puzzle me is that it seems i am the
only one to face this ? Am i alone :) ?
I think you're the only person building a zImage for a 32bit kernel with a 64bit toolchain for MULTIPLATFORM, yes. :)
This is a valid problem, however. Does the following also work for you?
arch/ppc/boot/simple/Makefile +3 -0
@@ -118,10 +118,13 @@ zimageinitrd-$(pcore) := zImage.initrd end-$(pcore) := pcore cacheflag-$(pcore) := -include $(clear_L2_L3) +# Really only valid if CONFIG_6xx=y zimage-$(CONFIG_PPC_PREP) := zImage-PPLUS zimageinitrd-$(CONFIG_PPC_PREP) := zImage.initrd-PPLUS +ifeq ($(CONFIG_6xx),y) extra.o-$(CONFIG_PPC_PREP) := prepmap.o misc-$(CONFIG_PPC_PREP) += misc-prep.o mpc10x_memory.o +endif end-$(CONFIG_PPC_PREP) := prep end-$(CONFIG_SANDPOINT) := sandpoint
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Quoted 2 lines
I think you're the only person building a zImage for a 32bit kernel with a 64bit toolchain for MULTIPLATFORM, yes. :)
I should move to 64bits :)
Quoted 1 line
This is a valid problem, however. Does the following also work for you?
It partly works (correct the problem with disable_6xx_mmu) but i still have to the following for resolving __flush_disable_L1
I changed the makefile in arch/ppc/kernel to have this :
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
into :
obj-$(CONFIG_POWER4) += l2cr.o cpu_setup_power4.o
Jerome Glisse
PATCH 1/1 ppc32: Fix building 32bit kernel for 64bit machines (Was: Re: linux 2.6.12-rc1-bk5 compilation error)
Quoted 7 lines · Jerome Glisse
Quoted 2 lines
I think you're the only person building a zImage for a 32bit kernel with a 64bit toolchain for MULTIPLATFORM, yes. :)
I should move to 64bits :)
Quoted 1 line
This is a valid problem, however. Does the following also work for you?
Quoted 7 lines
It partly works (correct the problem with
disable_6xx_mmu) but i still have to the following for resolving__flush_disable_L1I changed the makefile in
arch/ppc/kernelto have this :
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
into :
obj-$(CONFIG_POWER4) += l2cr.o cpu_setup_power4.o
OK, I think the following is a better workaround for that (based on arch/ppc/platforms/pmac_sleep.S):
When building a ppc32 MULTIPLATFORM kernel for a 64bit pmac, we try and build certain files or use certain functions that make no sense in that context. This catches the last of these.
arch/ppc/platforms/pmac_cache.S +4 -0
@@ -28,6 +28,9 @@ */ _GLOBAL(flush_disable_caches) +#ifndef CONFIG_6xx + blr +#else BEGIN_FTR_SECTION b flush_disable_745x END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)
@@ -323,3 +326,4 @@ END_FTR_SECTION_IFSET(CPU_FTR_L3CR) mtmsr r11 /* restore DR and EE */ isync blr +#endif /* CONFIG_6xx */
arch/ppc/boot/simple/Makefile +3 -0
@@ -123,10 +123,13 @@ zimageinitrd-$(pcore) := zImage.initrd end-$(pcore) := pcore cacheflag-$(pcore) := -include $(clear_L2_L3) +# Really only valid if CONFIG_6xx=y zimage-$(CONFIG_PPC_PREP) := zImage-PPLUS zimageinitrd-$(CONFIG_PPC_PREP) := zImage.initrd-PPLUS +ifeq ($(CONFIG_6xx),y) extra.o-$(CONFIG_PPC_PREP) := prepmap.o misc-$(CONFIG_PPC_PREP) += misc-prep.o mpc10x_memory.o +endif end-$(CONFIG_PPC_PREP) := prep end-$(CONFIG_SANDPOINT) := sandpoint
Signature · 2 lines
Tom Rini http://gate.crashing.org/~trini/
Re: [PATCH 2.6.12-rc2] ppc32: Fix building 32bit kernel for 64bit machines (Was: Re: linux 2.6.12-rc1-bk5 compilation error)
Quoted 8 lines
OK, I think the following is a better workaround for that (based on
arch/ppc/platforms/pmac_sleep.S):When building a ppc32 MULTIPLATFORM kernel for a 64bit pmac, we try and build certain files or use certain functions that make no sense in that context. This catches the last of these.
Signed-off-by Tom Rini <[email protected]>
Works fine over here. Thx.
Jerome Glisse
Re: [PATCH 2.6.12-rc2] ppc32: Fix building 32bit kernel for 64bit machines (Was: Re: linux 2.6.12-rc1-bk5 compilation error)
In reply to Tom RiniGo for it i
Quoted 40 lines
When building a ppc32 MULTIPLATFORM kernel for a 64bit pmac, we try and build certain files or use certain functions that make no sense in that context. This catches the last of these.
Signed-off-by Tom Rini <[email protected]>arch/ppc/platforms/pmac_cache.S +4
-0@@ -28,6 +28,9 @@ */ _GLOBAL(flush_disable_caches) +#ifndef CONFIG_6xx + blr +#else BEGIN_FTR_SECTION b flush_disable_745x END_FTR_SECTION_IFSET(CPU_FTR_SPEC7450)@@ -323,3 +326,4 @@ END_FTR_SECTION_IFSET(CPU_FTR_L3CR) mtmsr r11 /* restore DR and EE */ isync blr +#endif /* CONFIG_6xx */arch/ppc/boot/simple/Makefile +3
-0@@ -123,10 +123,13 @@ zimageinitrd-$(pcore) := zImage.initrd end-$(pcore) := pcore cacheflag-$(pcore) := -include $(clear_L2_L3) +# Really only valid if CONFIG_6xx=y zimage-$(CONFIG_PPC_PREP) := zImage-PPLUS zimageinitrd-$(CONFIG_PPC_PREP) := zImage.initrd-PPLUS +ifeq ($(CONFIG_6xx),y) extra.o-$(CONFIG_PPC_PREP) := prepmap.o misc-$(CONFIG_PPC_PREP) += misc-prep.o mpc10x_memory.o +endif end-$(CONFIG_PPC_PREP) := prep end-$(CONFIG_SANDPOINT) := sandpoint
Signature · 1 line
Benjamin Herrenschmidt <[email protected]>