I think I found the problem. The freeze is caused by the
CONFIG_FORTIFY_SOURCE kernel configuration item.
--- /boot/config-5.3.18-59.25-default 2021-09-23 14:34:53.000000000 +0000
+++ .config 2021-07-15 12:07:05.608153308 +0000
@@ -10294,7 +10294,7 @@
CONFIG_LSM_MMAP_MIN_ADDR=0
CONFIG_HAVE_HARDENED_USERCOPY_ALLOCATOR=y
# CONFIG_HARDENED_USERCOPY is not set
-CONFIG_FORTIFY_SOURCE=y
+# CONFIG_FORTIFY_SOURCE is not set
# CONFIG_STATIC_USERMODEHELPER is not set
# CONFIG_HIDDEN_AREA is not set
CONFIG_SECURITY_SELINUX=y
At least the kernel is booting after changing it.
And it was only set to "y" for the 5.3.18-59.25-default kernel used in 15.3
config-5.14.11-2-default:# CONFIG_FORTIFY_SOURCE is not set
config-5.3.18-59.25-default:CONFIG_FORTIFY_SOURCE=y
config-5.3.18-lp152.92-default:# CONFIG_FORTIFY_SOURCE is not set
config-5.3.18-lp152.95-default:# CONFIG_FORTIFY_SOURCE is not set
config-5.3.18-lp152.95-mybuild:# CONFIG_FORTIFY_SOURCE is not set
Regards,
Christian
---------------------------- Original Message ----------------------------
Subject: Re: DE0-Nano-SoC boot fails on 15.3
From: "Christian Gross"
On 28/10/2021 20:07, Christian Gross wrote:
Hi all,
I tested the U-Boot fix for several versions and it works perfect for all of them.
Version | Build | U.Boot | Kernel | Boot Leap 15.1 | 2019.05.17-Snapshot1.105 | 2019.01 | 4.12.14 | OK Leap 15.2 | 2020.07.08-Build1.276 | 2020.01 | 5.3.18 | OK Leap 15.3 | 2021.05.31-Build8.7 | 2021.01 | 5.3.18 | freezing Tumbleweed | 2021.09.21-Snapshot20211008 | 2021.10 | 5.14.9 | OK Tumbleweed | 2021.10.20-Snapshot20211023 | 2021.10 | 5.14.11-2 | OK
But it looks like there is an additional problem with Leap 15.3 which freezes at boot.
Booting `openSUSE Leap 15.3'
Loading Linux 5.3.18-59.25-default ... Loading initial ramdisk ... EFI stub: Entering in SVC mode with MMU enabled EFI stub: Booting Linux Kernel... EFI stub: Using DTB from configuration table EFI stub: Exiting boot services and installing virtual address map... Deasserting all peripheral resets [freeze]
I also upgraded a fixed Leap 15.2 to 15.3 and the same thing happens (Only without the "Deasserting all peripheral resets" message) for kernel 5.3.18-59.25-default. The older kernels 5.3.18-lp152.95 and 5.3.18-lp152.92 are booting without any problem.
Any ideas how to debug this further?
You can try to get more output by editing the kernel boot parameter in grub. Try 'earlycon'. If that does not help, try 'earlycon efi=debug'. Beware that you might need to pass memory region of your serial console to the earlycon parameter. Have a look at: https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
Regards, Matthias