From 6a6c6083fa69575334282d0c8f5dd688a2282188 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 16 Mar 2022 15:39:18 +0000 Subject: x1000: bootloader: fix Linux self-extracting kernel boot Basically, there's longstanding bug in Linux with self-extracting kernels on MIPS which just happened to manifest now on the M3K as a hang on boot. The fix is applied to the M3K and Q1 since they both use this type of kernel image. Change-Id: I17d2bad6eebd677cd6d2e0bf146450c71fcf1229 --- firmware/export/linuxboot.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/linuxboot.h b/firmware/export/linuxboot.h index 7dbc213012..de6f24bf57 100644 --- a/firmware/export/linuxboot.h +++ b/firmware/export/linuxboot.h @@ -186,4 +186,7 @@ int uimage_load(struct uimage_header* uh, size_t* out_size, */ ssize_t uimage_fd_reader(void* buf, size_t size, void* ctx); +/* helper for patching broken self-extracting kernels on MIPS */ +uint32_t mips_linux_stub_get_entry(void** code_start, size_t code_size); + #endif /* __LINUXBOOT_H__ */ -- cgit v1.2.3