mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-19 04:57:55 +00:00
b71f3757c1
* modules/linux: add support for building with kernel 5.4.69 Add support to module, port patches from 4.19.139. Needed for newer platforms not supported by 4.19 kernel. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * CircleCI: add rysnc dependency for building kernel 5.x Signed-off-by: Matt DeVillier <matt.devillier@puri.sm> * Migrate all Librem boards to kernel 5.x, common config Update linux-librem_common.config from 4.x to 5.x, and add CONFIG items needed to support the librem_l1um (AST DRM drivers, serial port output). Tested on Librem 13v4, Librem Mini, and Librem Server L1UM. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>
29 lines
983 B
Diff
29 lines
983 B
Diff
diff --recursive -u ./clean/linux-4.9.80/arch/x86/realmode/init.c linux-4.9.80/arch/x86/realmode/init.c
|
|
--- ./clean/linux-4.9.80/arch/x86/realmode/init.c 2018-02-03 11:05:43.000000000 -0500
|
|
+++ linux-4.9.80/arch/x86/realmode/init.c 2018-02-07 15:51:28.538500435 -0500
|
|
@@ -35,8 +35,8 @@
|
|
/* Has to be under 1M so we can execute real-mode AP code. */
|
|
mem = memblock_find_in_range(0, 1<<20, size, PAGE_SIZE);
|
|
if (!mem) {
|
|
- pr_info("No sub-1M memory is available for the trampoline\n");
|
|
- return;
|
|
+ mem = 0x4000;
|
|
+ pr_info("No sub-1M memory is available for the trampoline, guessing %p\n", mem);
|
|
}
|
|
|
|
memblock_reserve(mem, size);
|
|
@@ -138,7 +138,12 @@
|
|
static int __init init_real_mode(void)
|
|
{
|
|
if (!real_mode_header)
|
|
- panic("Real mode trampoline was not allocated");
|
|
+ {
|
|
+ // ignore for now
|
|
+ //panic("Real mode trampoline was not allocated");
|
|
+ pr_warn("Real mode trampoline was not allocated");
|
|
+ return 0;
|
|
+ }
|
|
|
|
setup_real_mode();
|
|
set_real_mode_permissions();
|