Skip to content

[Bug]: Wrong modules are builded for some board and kernels #8340

Open
@seniorandre

Description

@seniorandre

What happened?

My system NanoPC-T6-LTS
I have loaded linux headers per armbian-config and wrote simple module:

//only
module_init(sbl_init);
module_exit(sbl_exit);

Module is empty, only two methods.
Then i does insmod/rmmod and I have got errors.

andrey@NanoPC-T6-LTS:~/projects/linux-modules/sbl$ sudo insmod sbl.ko
andrey@NanoPC-T6-LTS:~/projects/linux-modules/sbl$ sudo rmmod sbl
rmmod: ERROR: ../libkmod/libkmod-module.c:856 kmod_module_remove_module() could not remove 'sbl': Device or resource busy
rmmod: ERROR: could not remove module sbl: Device or resource busy

dmesg is empty

How to reproduce?

That error I have at kernels 6.1.75, 6.1.99, 6.6, 6.12.13 and so on. But don`t have error at 6.1.43 (NanoPC-T6-LTS) and any desktop x86 systems like ubuntu, kubuntu and so on.
Also other users have same problem on their boards.
This behavior has been going on for over 6 months. It is not possible to build a working module per armbian.

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

https://paste.armbian.com/jozoreselu

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working as it shouldGood first issueFeel free to contribute :)Not framework bugBug in 3rd party component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions