Page 72 of 124
Re: New kernels
Posted: Fri Mar 22, 2024 7:26 am
by xeno74
Skateman wrote: Thu Mar 21, 2024 9:18 pm
Final kernel 6.8 Up and Running on my AmigaOne X5000
Great! Thanks a lot for testing!
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.
Skateman wrote: Thu Mar 21, 2024 9:20 pm
xeno74 wrote: Thu Mar 14, 2024 4:33 am
We can start bisecting if you like.
I would like to, but i dont have a lot of time at the moment....
It's OK. Never mind.
Re: New kernels
Posted: Mon Mar 25, 2024 4:41 am
by xeno74
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.

Re: New kernels
Posted: Mon Mar 25, 2024 10:51 am
by xeno74
We have configured (kernel config):
# CONFIG_CRASH_DUMP is not set
CONFIG_KEXEC_CORE=y
Link:
x5000_defconfig
Compiling error:
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
PowerPC updates
6.9-2:
Code: Select all
#ifdef CONFIG_KEXEC_CORE
-extern int crashing_cpu;
Code: Select all
+#if defined(CONFIG_CRASH_DUMP)
...
+extern int crashing_cpu;
+#ifdef CONFIG_CRASH_DUMP
/* This keeps a track of which one is the crashing cpu. */
int crashing_cpu = -1;
#endif
-- Christian
Re: New kernels
Posted: Mon Mar 25, 2024 12:06 pm
by xeno74
Configured:
CONFIG_VMCORE_INFO=y
# CONFIG_CRASH_DUMP is not set
CONFIG_KEXEC_CORE=y
PowerPC updates
6.9-2:
Code: Select all
-#ifdef CONFIG_VMCORE_INFO
+#ifdef CONFIG_CRASH_DUMP
/* This keeps a track of which one is the crashing cpu. */
int crashing_cpu = -1;
#endif
int crashing_cpu = -1; was used before.
I continue to use it with the following temporary 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();
-- Christian
Re: New kernels
Posted: Mon Mar 25, 2024 1:57 pm
by xeno74
Hi All,
Here is the
RC1 of kernel
6.9 for testing.
New:
Download:
linux-image-6.9-rc1-X1000_X5000.tar.gz
Please test the kernels.
Thanks,
Christian
Re: New kernels
Posted: Tue Mar 26, 2024 8:06 pm
by Skateman
kernel 6.9 RC1 up and running on my AmigaOne X5000
Big picture
https://www.skateman.nl/wp-content/uplo ... 8-15-2.png
Re: New kernels
Posted: Tue Mar 26, 2024 10:17 pm
by xeno74
Skateman wrote: Tue Mar 26, 2024 8:06 pm
kernel 6.9 RC1 up and running on my AmigaOne X5000
Thank you for testing!

Re: New kernels
Posted: Mon Apr 01, 2024 6:26 pm
by xeno74
Hi All,
Linus Torvalds has released the
RC2 of kernel
6.9 for testing.
I compiled it for the X1000 and X5000 today.
Download and further information:
github.com
Please test the kernels.
Thanks,
Christian
Re: New kernels
Posted: Tue Apr 02, 2024 8:29 pm
by Skateman
Kernel 6 RC2 up and running on my AmigaOne X5000 with the latest ArcticFox 44
Big picture
https://www.skateman.nl/wp-content/uplo ... -24-11.png
Re: New kernels
Posted: Tue Apr 02, 2024 8:34 pm
by xeno74
Skateman wrote: Tue Apr 02, 2024 8:29 pm
Kernel 6 RC2 up and running on my AmigaOne X5000 with the latest ArcticFox 44
Fantastic! Thank you for testing the RC2 of kernel 6.9 and ArcticFox 44.0.
