On Fri, Aug 28, 2015 at 5:37 AM, Andrew P. Lentvorski <[email protected]> wrote:
> I tried a couple of different ways to build the "hello world" kernel module,
> but I seem to be lacking the proper "build" to use in my makefiles.
>
> So, I installed the linux headers, but I seem to be missing a "classmap.h"
> file.
>
> I also managed to get past git crashing by downloading the repo and then
> rsync'ing it to the BBB.  So, after 8 hours(!), the BBB fully compiled a
> 4.1.6-ti-r12 build.  So, if there is something I can do to build a kernel
> module using that tree and scripts, I can do that, too.
>
> What obvious thing am I missing?
>
> Thanks.
>
>
> The following NEW packages will be installed:
>   linux-headers-4.1.6-ti-r11
> 0 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`/build
> root@arm:/lib/modules/4.1.6-ti-r11/build# ls
> arch  block  crypto  Documentation  drivers  firmware  fs  include  init
> ipc  Kconfig  kernel  lib  Makefile  mm  Module.symvers  net  samples
> scripts  security  sound  tools  usr  virt
> root@arm:/lib/modules/4.1.6-ti-r11/build# make scripts
> scripts/kconfig/conf  --silentoldconfig Kconfig
>   HOSTCC  scripts/selinux/genheaders/genheaders
> scripts/selinux/genheaders/genheaders.c:13:22: fatal error: classmap.h: No
> such file or directory
>  #include "classmap.h"
>                       ^

This just means, for your external module, you need more then just the
'headers" you need the full kernel source..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to