1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Aidan MacDonald 2022-03-16 15:39:18 +00:00
parent 44fbb1a593
commit 6a6c6083fa
4 changed files with 143 additions and 3 deletions

View file

@ -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__ */