Busybox modprobe brings error "Invalid ELF header magic: !=ELF"

Service IIT (Mayer EMI) service.iit at mayer-emi.at
Sat Mar 18 09:40:31 UTC 2023


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-




More information about the busybox mailing list