Skip to contentSkip to conversation

compile 2.6.23 for zx2000?

PATCH Grant Grundler 2 participants 3 messages Oct 10, 2007 – Oct 11, 2007

lore
Share & tools
lore
#0 lore raw

Hi folks,
After a long break, I'm trying to update the kernel on my ia64 HP zx2000. Config file is attached. Two issues with kernel.org 2.6.23:

1) Can't build with NUMA=n and DISCONTIG=y.
Build quickly dies with NODE_DATA being undefined.
I tried to "work around" it with two changes:
a) include <asm/nodedata.h> from asm/mmzone.h. Not the other way around! No one includes asm/nodedata.h (except processor.h). Everyone includes linux/mmzone.h (which includes asm/mmzone.h). That needs to include nodedata.h to provide NODE_DATA.
The few arches I checked define NODE_DATA in their asm/mmzone.h.

b) added defined(CONFIG_NEED_MULTIPLE_NODES) to a few places that check CONFIG_NUMA so NODE_DATA would get properly defined. e.g. asm/processor.h for

#if defined(CONFIG_NUMA) || defined(CONFIG_NEED_MULTIPLE_NODES)
        struct ia64_node_data *node_data;

#endif

I decided this wasn't meant to be when node_cpuid was not defined. Forcing CONFIG_NUMA when DISCONTIG was enabled got me alot further:

arch/ia64/Kconfig renamed from arch/ia64/Kconfig-ORIG +2 -0
@@ -101,6 +101,7 @@
 config IA64_GENERIC
 	bool "generic"
 	select NUMA
+	select NEED_MULTIPLE_NODES
 	select ACPI_NUMA
 	select SWIOTLB
 	help
@@ -358,6 +359,7 @@
 	depends on !IA64_HP_SIM && !FLATMEM
 	default y if IA64_SGI_SN2
 	select ACPI_NUMA if ACPI
+	select NEED_MULTIPLE_NODES
 	help
 	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
 	  Access).  This option is for configuring high-end multiprocessor

2) But I'm getting this error:
CC [M] drivers/char/ipmi/ipmi_si_intf.o
drivers/char/ipmi/ipmi_si_intf.c:1095: error: __param_hotmod causes a section type conflict make[3]: *** [drivers/char/ipmi/ipmi_si_intf.o] Error 1

I've no idea what's going on here. config file is attached.

Lastly, I've failed to boot with a 2.6.22-2-mckinley on my zx2000. But I suspect it's failing because I don't have "noasync" and will retry with that. (This zx2000 has u320 SCSI card for it's internal disks.)

thanks,
grant

#1 lore raw
Quoted 3 lines · Grant Grundler

2) But I'm getting this error:
CC [M] drivers/char/ipmi/ipmi_si_intf.o
drivers/char/ipmi/ipmi_si_intf.c:1095: error: __param_hotmod causes a section type conflict

This is probably the same as
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id1490>.

Andreas.

Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
#2 lore raw
In reply to Grant Grundler
Quoted 8 lines · Andreas Schwab
Quoted 3 lines · Grant Grundler

2) But I'm getting this error:
CC [M] drivers/char/ipmi/ipmi_si_intf.o
drivers/char/ipmi/ipmi_si_intf.c:1095: error: __param_hotmod causes a section type conflict

This is probably the same as
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id1490>.

Yup - looks like the same symptom at least.
Does Debian have a gcc 4.2 or later compiler with that fixed?

I'd be happy to test it by building/running a 2.6.23 kernel if given a .deb to install.

thanks,
grant