The following NEW packages will be installed: linux-headers-4.1.6-ti-r110 upgraded, 1 newly installed, 0 to remove and 9 not upgraded.Need to get 6,992 kB of archives.After this operation, 52.9 MB of additional disk space will be used.Get:1 http://repos.rcn-ee.com/debian/ jessie/main linux-headers-4.1.6-ti-r11 armhf 1jessie [6,992 kB]Fetched 6,992 kB in 3s (2,199 kB/s) Selecting previously unselected package linux-headers-4.1.6-ti-r11.(Reading database ... 84339 files and directories currently installed.)Preparing to unpack .../linux-headers-4.1.6-ti-r11_1jessie_armhf.deb ...Unpacking linux-headers-4.1.6-ti-r11 (1jessie) ...Setting up linux-headers-4.1.6-ti-r11 (1jessie) ...root@arm:~/kernels# cd /lib/modules/`uname -r`/buildroot@arm:/lib/modules/4.1.6-ti-r11/build# lsarch block crypto Documentation drivers firmware fs include init ipc Kconfig kernel lib Makefile mm Module.symvers net samples scripts security sound tools usr virtroot@arm:/lib/modules/4.1.6-ti-r11/build# make scriptsscripts/kconfig/conf --silentoldconfig Kconfig HOSTCC scripts/selinux/genheaders/genheadersscripts/selinux/genheaders/genheaders.c:13:22: fatal error: classmap.h: No such file or directory #include "classmap.h" ^compilation terminated.scripts/Makefile.host:91: recipe for target 'scripts/selinux/genheaders/genheaders' failedmake[3]: *** [scripts/selinux/genheaders/genheaders] Error 1scripts/Makefile.build:403: recipe for target 'scripts/selinux/genheaders' failedmake[2]: *** [scripts/selinux/genheaders] Error 2scripts/Makefile.build:403: recipe for target 'scripts/selinux' failedmake[1]: *** [scripts/selinux] Error 2Makefile:555: recipe for target 'scripts' failedmake: *** [scripts] Error 2
root@arm:~/bb-kernel/mymodules# cat makefile
obj-m += hello.o
all: make -C /root/bb-kernel/KERNEL/tools/build M=$(PWD) modules
clean: make -C /root/bb-kernel/KERNEL/tools/build M=$(PWD) clean
root@arm:~/bb-kernel/mymodules# makemake -C /root/bb-kernel/KERNEL/tools/build M=/root/bb-kernel/mymodules modulesmake[1]: Entering directory '/root/bb-kernel/KERNEL/tools/build'make[1]: *** No rule to make target 'modules'. Stop.make[1]: Leaving directory '/root/bb-kernel/KERNEL/tools/build'makefile:5: recipe for target 'all' failedmake: *** [all] Error 2root@arm:~/bb-kernel/mymodules#
root@arm:~/mymodules# ls -al /lib/modules/4.1.6-ti-r12/buildlrwxrwxrwx 1 root root 35 Aug 26 21:17 /lib/modules/4.1.6-ti-r12/build -> /usr/src/linux-headers-4.1.6-ti-r12
root@arm:/# ln -s /root/bb-kernel/KERNEL /lib/modules/4.1.6-ti-r12/build
root@arm:~/mymodules# insmod hello.koinsmod: ERROR: could not insert module hello.ko: Invalid module formatroot@arm:~/mymodules# modinfo hello.kofilename: /root/mymodules/hello.kodescription: A Simple Hello World moduledepends: vermagic: 4.1.6-bone15 mod_unload modversions ARMv7 thumb2 p2v8 root@arm:~/mymodules# uname -r4.1.6-ti-r12
root@arm:~/mymodules# cat Makefile
obj-m += hello.o
all: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean: make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
"bb-kernel" repo has w.x.y-bonez kernel names...
https://github.com/RobertCNelson/ti-linux-kernel-dev
has what your are looking for kernel source...