xeno74 wrote: ↑Fri Mar 22, 2024 7:26 am
I tested the alphas of kernel 6.9 currently but unfortunately these are not booting at the moment on the X5000. The kernel has become too large and therefore cannot be booted.
I have downsized the kernel and moved some drivers to modules, but there is another issue when switching to the framebuffer boot console.
I tried to compile the
RC1 of kernel
6.9 today but without any success.
Code: Select all
AR drivers/thunderbolt/built-in.a
AR drivers/built-in.a
make[1]: *** [/mnt/a/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
I removed USB4/Thunderbolt support and it compiles but I get another error message:
Code: Select all
AR net/batman-adv/built-in.a
AR net/handshake/built-in.a
AR net/built-in.a
make[1]: *** [/mnt/a/Makefile:1919: .] Error 2
Code: Select all
AR drivers/built-in.a
make[1]: *** [/mnt/a/Makefile:1919: .] Error 2
make: *** [Makefile:240: __sub-make] Error 2
Code: Select all
arch/powerpc/platforms/85xx/smp.c: In function 'mpc85xx_smp_kexec_cpu_down':
arch/powerpc/platforms/85xx/smp.c:401:13: error: 'crashing_cpu' undeclared (first use in this function); did you mean 'crash_save_cpu'?
401 | if (cpu == crashing_cpu && cpu_thread_in_core(cpu) != 0) {
| ^~~~~~~~~~~~
| crash_save_cpu
arch/powerpc/platforms/85xx/smp.c:401:13: note: each undeclared identifier is reported only once for each function it appears in
make[5]: *** [scripts/Makefile.build:244: arch/powerpc/platforms/85xx/smp.o] Error 1
make[4]: *** [scripts/Makefile.build:485: arch/powerpc/platforms/85xx] Error 2
make[3]: *** [scripts/Makefile.build:485: arch/powerpc/platforms] Error 2
make[2]: *** [scripts/Makefile.build:485: arch/powerpc] Error 2
Unfortunately it is not possible to compile the kernel currently.
I reverted the last PowerPC updates
6.9-2 and after that it compiles:
Code: Select all
git revert 484193fecd2b6349a6fd1554d306aec646ae1a6a -m 1
Result:
Code: Select all
WRAP arch/powerpc/boot/uImage
INFO: Uncompressed kernel (size 0x22b7878) overlaps the address of the wrapper(0x400000)
INFO: Fixing the link_address of wrapper to (0x2300000)
Image Name: Linux-6.9.0-rc1_A-EON_X5000-0000
Created: Mon Mar 25 05:30:13 2024
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 14569333 Bytes = 14227.86 KiB = 13.89 MiB
Load Address: 00000000
Entry Point: 00000000
I have created a patch:
Code: Select all
--- a/arch/powerpc/platforms/85xx/smp.c 2024-03-25 06:14:02.201209476 +0100
+++ b/arch/powerpc/platforms/85xx/smp.c 2024-03-25 06:10:04.421425931 +0100
@@ -393,6 +393,7 @@ static void mpc85xx_smp_kexec_cpu_down(i
int disable_threadbit = 0;
long start = mftb();
long now;
+ int crashing_cpu = -1;
local_irq_disable();
hard_irq_disable();
I reported this issue to the kernel developers today.
Link:
[FSL P50x0] Kernel 6.9-rc1 compiling issue
The RC1 of kernel 6.9 boots with this patch.