Closed nfraprado closed 4 months ago
This is one example of Invalid ELF header magic: != ELF
errors currently happening on baseline-nfs jobs across chromebooks: https://lava.collabora.dev/scheduler/job/13529286
I couldn't see them when building locally with the same config & kernel version: https://lava.collabora.dev/scheduler/job/13535233 Though it does seem modules are failing to load since no network adapter is found.
By just adding the config in this PR, modules now load (like the r8152 network adapter driver) and boot succeeds: https://lava.collabora.dev/scheduler/job/13535191
Commit d4bbe942098b ("kbuild: remove CONFIG_MODULE_COMPRESS"), introduced in kernel v5.13, substituted CONFIG_MODULE_COMPRESS=n for CONFIG_MODULE_COMPRESS_NONE=y as the way to disable module compression. Since module compression causes "Invalid ELF header magic: != ELF" errors during boot on the ChromeOS base config, add the missing config to disable module compression on kernels > v5.13 as well.