Skip to content

Commit 440dc5b

Browse files
Merge remote-tracking branch 'github-heads/master' into pureboot-27-heads-upstream
2 parents 718be73 + 8d7d07a commit 440dc5b

5 files changed

Lines changed: 79 additions & 3 deletions

File tree

initrd/bin/kexec-boot

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,17 @@ echo "$kexeccmd"
154154
eval "$kexeccmd" \
155155
|| die "Failed to load the new kernel"
156156

157+
if [ "$CONFIG_DEBUG_OUTPUT" = "y" ];then
158+
#Repeat kexec command that will be executed since in debug
159+
DEBUG "kexeccmd= $kexeccmd"
160+
161+
read -n 1 -p "[DEBUG] Continue booting? [Y/n]: " debug_boot_confirm
162+
if [ "${debug_boot_confirm^^}" = N ]; then
163+
# abort
164+
die "Boot aborted"
165+
fi
166+
fi
167+
157168
if [ "$CONFIG_TPM" = "y" ]; then
158169
tpmr kexec_finalize
159170
fi

initrd/bin/kexec-insert-key

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ if [ "$unseal_failed" = "y" ]; then
6868
fi
6969
fi
7070

71+
echo
7172
echo '+++ Building initrd'
7273
# pad the initramfs (dracut doesn't pad the last gz blob)
7374
# without this the kernel init/initramfs.c fails to read
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 8093bd4df682a49ab87845e4154e87885ad41734 Mon Sep 17 00:00:00 2001
2+
From: Jonathon Hall <jonathon.hall@puri.sm>
3+
Date: Tue, 11 Jul 2023 14:48:33 -0400
4+
Subject: [PATCH] util/crossgcc/buildgcc: Use different mirror
5+
6+
acpica.org now redirects to Intel and all the links no longer work.
7+
8+
Intel has a mirror of this archive, use it.
9+
10+
Change-Id: I4fbfe33a4614aec97c631904d78ec391ed438bec
11+
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
12+
---
13+
util/crossgcc/buildgcc | 3 ++-
14+
1 file changed, 2 insertions(+), 1 deletion(-)
15+
16+
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
17+
index b25b260807..24916c5ab8 100755
18+
--- a/util/crossgcc/buildgcc
19+
+++ b/util/crossgcc/buildgcc
20+
@@ -52,7 +52,8 @@ MPFR_ARCHIVE="https://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.xz"
21+
MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz"
22+
GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz"
23+
BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz"
24+
-IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-${IASL_VERSION}.tar.gz"
25+
+# acpica.org links rotted, use Intel mirror for 20220331
26+
+IASL_ARCHIVE="https://downloadmirror.intel.com/774879/acpica-unix2-${IASL_VERSION}.tar.gz"
27+
# CLANG toolchain archive locations
28+
LLVM_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/llvm-${CLANG_VERSION}.src.tar.xz"
29+
CLANG_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/clang-${CLANG_VERSION}.src.tar.xz"
30+
--
31+
2.30.2
32+
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
From 8093bd4df682a49ab87845e4154e87885ad41734 Mon Sep 17 00:00:00 2001
2+
From: Jonathon Hall <jonathon.hall@puri.sm>
3+
Date: Tue, 11 Jul 2023 14:48:33 -0400
4+
Subject: [PATCH] util/crossgcc/buildgcc: Use different mirror
5+
6+
acpica.org now redirects to Intel and all the links no longer work.
7+
8+
Intel has a mirror of this archive, use it.
9+
10+
Change-Id: I4fbfe33a4614aec97c631904d78ec391ed438bec
11+
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
12+
---
13+
util/crossgcc/buildgcc | 3 ++-
14+
1 file changed, 2 insertions(+), 1 deletion(-)
15+
16+
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
17+
index b25b260807..24916c5ab8 100755
18+
--- a/util/crossgcc/buildgcc
19+
+++ b/util/crossgcc/buildgcc
20+
@@ -52,7 +52,8 @@ MPFR_ARCHIVE="https://ftpmirror.gnu.org/mpfr/mpfr-${MPFR_VERSION}.tar.xz"
21+
MPC_ARCHIVE="https://ftpmirror.gnu.org/mpc/mpc-${MPC_VERSION}.tar.gz"
22+
GCC_ARCHIVE="https://ftpmirror.gnu.org/gcc/gcc-${GCC_VERSION}/gcc-${GCC_VERSION}.tar.xz"
23+
BINUTILS_ARCHIVE="https://ftpmirror.gnu.org/binutils/binutils-${BINUTILS_VERSION}.tar.xz"
24+
-IASL_ARCHIVE="https://acpica.org/sites/acpica/files/acpica-unix2-${IASL_VERSION}.tar.gz"
25+
+# acpica.org links rotted, use Intel mirror for 20220331
26+
+IASL_ARCHIVE="https://downloadmirror.intel.com/774879/acpica-unix2-${IASL_VERSION}.tar.gz"
27+
# CLANG toolchain archive locations
28+
LLVM_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/llvm-${CLANG_VERSION}.src.tar.xz"
29+
CLANG_ARCHIVE="https://github.com/llvm/llvm-project/releases/download/llvmorg-${CLANG_VERSION}/clang-${CLANG_VERSION}.src.tar.xz"
30+
--
31+
2.30.2
32+

patches/kexec-2.0.26.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ index 14263b0..55291d6 100644
8383
+ dbgprintf("%s: Reusing video type %d\n",
8484
+ __func__, real_mode->orig_video_isVGA);
8585
} else {
86-
+ dbgprintf("%s: Unknown driver %s, can't provide framebuffer\n",
87-
+ __func__, fix.id);
86+
+ fprintf(stderr, "Unknown driver %s, can't provide framebuffer\n kexec'ed OS will take over console only if %s is provided\n",
87+
+ fix.id, fix.id);
8888
real_mode->orig_video_isVGA = 0;
8989
close(fd);
9090
return 0;
@@ -95,7 +95,7 @@ index 14263b0..55291d6 100644
9595
+ dbgprintf("%s: Kernel did not provide framebuffer address\n",
9696
+ __func__);
9797
+ dbgprintf("%s: Try enabling CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM and "
98-
+ "drm_kms_helper.drm_leak_fbdev_smem\n",
98+
+ "drm_kms_helper.drm_leak_fbdev_smem in kernel command-line options\n",
9999
+ __func__);
100100
+ }
101101
+

0 commit comments

Comments
 (0)