Busybox modprobe brings error "Invalid ELF header magic: !=ELF"
Norbert Lange
nolange79 at gmail.com
Sat Mar 18 09:46:16 UTC 2023
Hello,
BusyBox first tries to pass the module the the kernel via filedescriptor,
this method only accepts uncompressed files. Yielding that error message.
Only then it will decompress the module and try again.
Regards, Norbert.
https://bugs.busybox.net/show_bug.cgi?id=14041
On Sat, 18 Mar 2023, 10:41 Service IIT (Mayer EMI), <
service.iit at mayer-emi.at> wrote:
>
> Am 18.03.2023 um 02:57 schrieb Khem Raj:
> > On Fri, Mar 17, 2023 at 2:10 PM Service IIT (Mayer EMI)
> > <service.iit at mayer-emi.at> wrote:
> >> Hi
> >>
> >> Can somone help how to get rid of the message "Invalid ELF header magic:
> >> !=ELF" of busybox when using moprobe with compressed kernel modules
> >>
> > Something is not in ELF format. Can you provide more details of what
> > you are trying to do?
>
> Having compiled the kernel (6.1.19) with
> Module compression mode (XZ) --->
> [*] Support in-kernel module decompression
>
> Having compiled busybox with
> Archival Utilities --->
> [*] Make tar, rpm, modprobe etc understand .xz data
> [*] Make tar, rpm, modprobe etc understand .gz data
>
> Modules are succesfully compressed compiled
> Booting up brings
>
> "Invalid ELF header magic: !=ELF" message for each loaded module, modules
> are loaded and working (show up in lsmod and functionality is given)
>
> running modprobe manually have the same result
>
> >> BusyBox v1.36.0 (2023-03-17 16:25:58 UTC) multi-call binary.
>
> --
>
> -M-
>
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230318/57c0748c/attachment.html>
More information about the busybox
mailing list