**** BEGIN LOGGING AT Fri May 17 02:59:57 2019 May 17 08:06:10 Hi all May 17 08:06:38 I am trying to build a simple driver as out-of-tree module for a Beaglebone Black May 17 08:07:20 I am facing many issues, the main one is that following this https://www.kernel.org/doc/Documentation/kbuild/modules.txt May 17 08:07:42 and using the kernel headers I have on the bbb May 17 08:08:48 I am not able to compile the kernel module since it seems that a complete kernel build is needed in order to achieve that May 17 08:09:55 https://pastebin.com/eLhrp1Hg here are some notes on how you can reproduce the standard beaglebone kernels May 17 08:10:45 I looked around for Linux 4.1.15-ti-rt-r43 sources (which is the kernel actually installed on the bbb) but I haven't been able to find them anywhere May 17 08:10:54 zmatt: thanks, I'll give a look right now. May 17 08:10:55 you can either add your driver to it and recompile, or just build the kernel and then build module out-of-tree using the build directory produced May 17 08:11:05 that is a reaaaaaaaly ancient kernele May 17 08:11:21 current debian images for the beaglebone use a 4.14-ti series kernel May 17 08:11:32 I know but I can't change it :( May 17 08:12:42 it's even an ancient kernel *within* that ancient kernel series May 17 08:13:10 latest is 4.1.37-ti-rt-70.2 May 17 08:13:19 r70.2 May 17 08:14:35 I see.. May 17 08:15:18 but still I should be able to compile a kernel module using just its headers...am I right? May 17 08:16:02 pretty sure you're supposed to be able to yes May 17 08:20:26 also (as the context isn't already complicated...) my host machine is ubuntu 18.04 which comes with gcc7 toolchains May 17 08:21:06 and all the three different versions of linux 4.1.15 sources I have tried to cross compile failed because of May 17 08:21:34 linux/compiler-gcc7.h: No such file or directory May 17 08:21:55 weird. regardless, rcn's build scripts will download a linaro cross-compiler for you May 17 08:22:01 which I assume means that gcc7 is not supported May 17 08:22:42 probably too new May 17 08:24:01 https://github.com/RobertCNelson/ti-linux-kernel-dev/blob/ti-linux-rt-4.1.y/version.sh#L20 apparently the 4.1 branch will download a linaro gcc 4.9 compiler May 17 08:24:41 awesome, downloading right now May 17 10:02:16 zmatt: ok the linaro 4.9 toolchain should be the way, I just need a simple way to install it (a.k.a. configure all the environment variables in the proper way) May 17 10:03:45 I tried to mimic the way Yocto toolchains are deployed creating my own environment-poky- script but something is wrong since arm-linux-gnueabihf-gcc is still looking for libs in the wrong path May 17 10:04:02 zero_note: thats actually not needed. just prepend your call to make with ARCH=arm CROSS_COMPILE=/home/../../../arm-linux-gnueabihf- -> e.g. the full path to where you unpacked the linaro chain. May 17 10:10:29 LetoThe2nd: Hi and thank you. Unfortunately I still can't find libstdc++ May 17 10:10:31 error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory May 17 10:11:18 zero_note: weird. I can only say that I've used the linaro chains with little to no headache. May 17 10:12:36 I'll try to download another one of the same series (4) and see if something changes May 17 10:18:22 ok, just repeated the whole process in my ArchLinux machine and everything seems fine May 17 10:19:05 I'll say that my Ubuntu machine its a little bit messed up **** BEGIN LOGGING AT Fri May 17 11:09:06 2019 **** ENDING LOGGING AT Sat May 18 03:00:11 2019