Skip to content
This repository has been archived by the owner on Aug 6, 2021. It is now read-only.

Kernel module build #550

Open
balenaio opened this issue Aug 10, 2020 · 1 comment
Open

Kernel module build #550

balenaio opened this issue Aug 10, 2020 · 1 comment

Comments

@balenaio
Copy link
Collaborator

Description

This tests building kernel modules against the kernel module headers we supply for each board.

Steps to reproduce issue

1 - Clone and push the test kernel module build application.

git clone https://github.com/balena-os/kernel-module-build.git && cd kernel-module-build/

Edit the files_url variable on line 3 of the build.sh file to point to the staging s3 server

files_url='https://files.balena-staging.com/' # URL exporting S3 XML

Commit this change

git remote add <your_app_remote>

Make sure you change to the desired resinOS version in the Dockerfile.template and commit the change before you start building this project.
e.g. for 2.26.0:
RUN ./build.sh %%RESIN_MACHINE_NAME%% '2.26.0+rev1.prod' example_module

git push balena

Expected result

1 - The application should be built and pushed to the device.

The application should run successfully and you should see "Hello World" twice in dmesg.

Actual result

OS Version is 2.53.9+rev1
10.08.20 13:35:53 (+0300) main Loading module from example_module_nanopi-neo-air_2.53.9+rev1.prod
10.08.20 13:35:53 (+0300) main hello 12288 -2
10.08.20 13:35:53 (+0300) main rmmod: ERROR: Module hello is in use
10.08.20 13:35:53 (+0300) main Loading module from example_module_nanopi-neo-air_2.53.9+rev1.prod_from_src
10.08.20 13:35:54 (+0300) main insmod: ERROR: could not insert module example_module_nanopi-neo-air_2.53.9+rev1.prod_from_src/hello.ko: File exists
10.08.20 13:35:54 (+0300) main hello 12288 -2
10.08.20 13:35:54 (+0300) main rmmod: ERROR: Module hello is in use

zcat /proc/config.gz | grep -i unload

CONFIG_MODULE_UNLOAD is not set

CONFIG_MODULE_UNLOAD should be added

Other information

@vicgal
Copy link

vicgal commented Aug 10, 2020

Fixed in balena-os/balena-allwinner#122

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants