And then nothing. Finally after a while the board reboots automatically to U-boot
the kexec version used is
# kexec --version
kexec-tools 2.0.14
The above kernel boots normally with uboot and i can see output in ttyS0.
Does anyone have a successful experience with booting a socfpga kernel with kexec ?
In continuation to the setup described in the above comments i
enabled in kernel (socfpga-4.9.76-ltsi-rt) configuration “Kernel Hacking” -> "Kernel low-level debugging functions " and the kexeced kernel seems to get decompressed but then still hangs
The “Uncompressing Linux… done, booting the kernel.” message means tha the kexeced kernel starts to execute and reaches at least at line 546 of “/arch/arm/boot/compressed/head.S” file executing the following instruction:
root@node1:/mnt/test#uname -a
Linux node1 4.1.22-ltsi-altera #2 SMP PREEMPT Mon Jul 29 12:38:06 EEST 2019 armv7l GNU/Linux
root@node1:/mnt/test# kexec -d -e
[ 46.306102] kexec: Starting new kernel
[ 46.309928] Disabling non-boot CPUs ...
[ 46.306102] kexec: Starting new kernel
[ 46.378053] CPU1: shutdown
[ 46.381875] Bye!
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.76-rt61-ltsi-altera (aggelis@corei5) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG l9
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt:Machine model: MitySOM-5CSX Altera SOCFPGA Cyclone V
[ 0.000000] cma: Reserved 16 MiB at 0x3f000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 15 pages/cpu @ef6bf000 s29184 r8192 d24064 u61440
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260416
[ 0.000000] Kernel command line: root=/dev/mmcblk0p3 rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] allocated 1048576 bytes of page_ext
The kexec patch applied on the 4.1.22 kernel is already present in 4.9.76 kernel. So did something break in kexec implementation in later 4 series kernels? Unforunatelly using the older 4.1.22 kernel is not an option in my case.
I’m trying to do something similar on an Arria 10 device with the 5.4.44 kernel (was using 4.19 but that had issues elsewhere). I get the same symptom you did, “Bye!” then all goes quiet. Adding “earlycon” to the command line args I do get the “Uncompressing Linux…” but then it blocks and eventually u-boot kicks in.