Open bernid opened 2 years ago
Did you install the linux headers:
sudo apt install linux-headers-`uname -r`
Regards,
Hi, Ofcourse. I installed my new build: linux-image-5.4.106_5.4.106-1_armhf.deb linux-headers-5.4.106_5.4.106-1_armhf.deb linux-libc-dev_5.4.106-1_armhf.deb
linux-image-5.4.106_5.4.106-1_armhf.deb linux-headers-5.4.106_5.4.106-1_armhf.deb linux-libc-dev_5.4.106-1_armhf.deb
Those aren't mine.. Did you build nativity or cross built the *.deb files?
Regards,
Did you build nativity or cross built the *.deb files?
This is my natively build of the newest RT kernel.
Linux beaglebone 5.4.106 #1 SMP PREEMPT_RT Sat Sep 18 22:16:51 CEST 2021 armv7l GNU/Linux
I took about 20h on my BBB
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:
git clone -b 5.4-rt --depth 1 https://github.com/beagleboard/linux
cd linux
sudo make bindeb-pkg
It looks like some headers files are missing now in linux-headers-5.4.xxxxxx_armhf.deb. Regards, Bern
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:
make[3]: *** No rule to make target 'arch/arm/kernel/module.lds'
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:
CC [M] /opt/shepherd/software/kernel-module/src/pru_comm.o /tmp/ccp9lSUA.s: Assembler messages: /tmp/ccp9lSUA.s:43: Error: selected processor does not support "dsb st" in ARM mode /tmp/ccp9lSUA.s:231: Error: selected processor does not support "dsb " in ARM mode
i'm facing similar issue with 5.x kernel i have take a look of many linux-headers-5.*_1buster_armhf.deb and all looks to be incomplete, Kconfig and many dirs are missing:
.# ls -1 /usr/src/linux-headers-5.10.131-ti-r49 Makefile Module.symvers arch include scripts
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 maybe it is a different issue (I can open a new bug if u prefer), but definitely your 5.4.x and 5.10.x kernel headers are incomplete
.#ls usr/src/linux-headers-5.4.106-ti-r41 Makefile Module.symvers arch include scripts
.#ls usr/src/linux-headers-5.10.131-ti-r49 Makefile Module.symvers arch include scripts
. # ls /usr/src/linux-headers-4.19.94-ti-r73/ Documentation Makefile arch certs drivers fs init kernel mm samples security tools virt Kconfig Module.symvers block crypto firmware include ipc lib net scripts sound usr
.#ls /usr/src/linux-headers-5.15.48-sunxi64 arch certs Documentation fs init Kconfig lib mm net scripts sound usr block crypto drivers include ipc kernel Makefile Module.symvers samples security tools virt
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, Giulio
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.ldsDescribe 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: