|
From: Jochen R. <jo...@pa...> - 2007-01-24 21:30:44
|
Hi Stefan, Still out here, just really really busy. The 2.4.21 kernel with patch never compiled properly with the older gcc tool chain from the tarball on sourceforge. Stefan Ulrich Hegner wrote: > powerpc-linux-gcc -D__ASSEMBLY__ -D__KERNEL__ > -I/home/hegi/netstation/ns1000/usr/src/linux-2.4.21/include > -I/home/hegi/netstation/ns1000/usr/src/linux-2.4.21/arch/ppc -c -o > cpu_setup_6xx.o cpu_setup_6xx.S > cpu_setup_6xx.S: Assembler messages: > cpu_setup_6xx.S:405: Error: Unrecognized opcode: `mftbl' > cpu_setup_6xx.S:406: Error: Unrecognized opcode: `mftbl' > make[1]: *** [cpu_setup_6xx.o] Fehler 1 In cpu_setup_6xx.S, change 'mftbl' to 'mftb' and at least this file should compile. Stefan Ulrich Hegner wrote: > Am Sonntag, den 21.01.2007, 13:18 +0100 schrieb Armin Schindler: >> maybe it's the wrong compiler version? > no but a broken cross-compile-chain. I think that's a wild guess at best, right? I know that these things can be extremely frustrating but I find it important to always look at things objectively. Like Armin said, wrong compiler version. That does not make it a broken tool. The ppc platform alternate mnemonics at some point changed in binutils, and the kernel folks adopted these changes when they started recommending gcc 3 for compilation. This is from memory, and I could be wrong on the gcc version. Stefan Ulrich Hegner wrote: > The Problem is now, that the resulting kernel (taking the 2.4.29 > vanilla sources + patch from the project and the config from > coruna as "oldconfig") is too big. > > "Address out fo range. File is bad or too large for installed memory." > > The new kernel has 847.521 bytes whereas the old one had only > 786.920. Here are some kernels that all worked for me in the past: [jochen@jt ns1000]$ l kernels/ibm/kernel.1000 -rw-rw-r-- 1 jochen users 4275584 Jul 20 2000 kernels/ibm/kernel.1000 [jochen@jt ns1000]$ l kernels/fb total 7032 -rw-rw-r-- 1 jochen users 1180180 Dec 11 2002 k_hda2 -rw-rw-r-- 1 jochen users 1180180 Dec 18 2002 k_hda3 -rw-rw-r-- 1 jochen users 1180180 Dec 18 2002 k_hda4 -rw-rw-r-- 1 jochen users 3613204 Dec 10 2002 k_initrd It may be that the ELF header generated by the crosstool-based linker is not compatible with the ns1000 firmware loader. Also, did the ncdcs tool complain about anything? Regards, Jochen |