-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not build external kernel module #263
Comments
Did you install the linux headers:
Regards, |
Hi, |
Those aren't mine.. Did you build nativity or cross built the *.deb files? Regards, |
This is my natively build of the newest RT kernel. |
I've build kernel on my BBB many times before (last time 9 months ago) and had no trouble building the external module afterwards. For example:
It looks like some headers files are missing now in linux-headers-5.4.xxxxxx_armhf.deb. |
Was there any progress regarding this problem? I use the BBG and came from kernel 4.19 and updated to 5.4 but my kernel module is now failing with the same error as mentioned above:
I used the kernel_update.sh from https://github.com/RobertCNelson/boot-scripts and installed headers afterwards, as well as "apt dist-upgrade". Current uname: linux-kernel-5.4.106-ti-r40 and -r39 small addition:
|
i'm facing similar issue with 5.x kernel .# ls -1 /usr/src/linux-headers-5.10.131-ti-r49 4.19 kernel looks good |
this is a change in 5.10.x that messed all this up.. https://www.kernel.org/doc/Documentation/kbuild/modules.txt https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1906131 change KDIR.. Regards, |
odd because the same issue is in your kernel 5.4.x .#ls usr/src/linux-headers-5.4.106-ti-r41 .#ls usr/src/linux-headers-5.10.131-ti-r49 . # ls /usr/src/linux-headers-4.19.94-ti-r73/ .#ls /usr/src/linux-headers-5.15.48-sunxi64 last one come from another system, but just to show about things are not changed in newer kernel (been using the same wifi driver on both system) Kind Regards, |
Describe the bug
Hi, I receive an error and cannot build external 5.4-rt kernel module :
make[3]: *** No rule to make target 'arch/arm/kernel/module.lds'
I Checked that there is no module.lds file in the current headers directory::
/usr/src/linux-headers-5.4.106/arch/arm
Few months ago I build the same module without an issue and I had:
/usr/src/linux-headers-5.4.70/arch/arm/kernel/module.lds
Describe how to reproduce the bug
#I would like to instal botc module:
#https://github.com/coroner21/botic-modules/tree/5.4
#after checkout:
sudo git clone -b 5.4 https://github.com/coroner21/botic-modules.git
#create missing directories:
sudo mkdir /lib/modules/$(uname -r)/extramodules
sudo mkdir /lib/modules/$(uname -r)/updates
#change directories
cd botic-modules
sudo make
REQUIRED INFORMATION
Run this command and paste the output here:
The text was updated successfully, but these errors were encountered: