[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

missing headers



Hi all,

I'm using an ARM Cortex-A9. There is Linux Debian 4.6.2-11 distribution which I installed following this instruction http://wiki.debian.org/InstallingDebianOn/TI/BeagleBone. I faced a problem during compilation a simple Hello-World kernel module:

root@localhost:~/test/KernelModuleTest# make -C /usr/src/linux-headers-3.1.0.paullliu-1-am335x/ SUBDIRS=$PWD modules   
make: Entering directory `/usr/src/linux-headers-3.1.0.paulliu-1-am335x'
make: Warning: File `/usr/src/linux-headers-3.1.0.paulliu-1-am335x/arch/arm/Makefile' has modification time 3.8e+08 s in the future
make[1]: Warning: File `scripts/Makefile.lib' has modification time 3.8e+08 s in the future
  CC [M]  /root/test/KernelModuleTest/hello-1.o
In file included from /usr/src/linux-headers-3.1.0.paulliu-1-am335x/arch/arm/include/asm/page.h:204:0,
                 from include/linux/mmzone.h:20,
                 from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /root/test/KernelModuleTest/hello-1.c:1:
/usr/src/linux-headers-3.1.0.paulliu-1-am335x/arch/arm/include/asm/memory.h:19:25: fatal error: mach/memory.h: No such file or directory
compilation terminated.
make[1]: *** [/root/test/KernelModuleTest/hello-1.o] Error 1
make: *** [_module_/root/test/KernelModuleTest] Error 2
make: Leaving directory `/usr/src/linux-headers-3.1.0.paulliu-1-am335x'

More precisely, I havn't got this dir /usr/src/linux-headers-3.1.0.paulliu-1-am335x/include/mach and thus, no headers there.

I have followed by the debian installation manual very strictly and installed all packages for sure. In fact, now I have /usr/src/linux-headers-3.1.0.paulliu-1-am335x/arch/arm/include/asm/mach, but there are no memory.h. At the same time, I have memory.h in this dir : /usr/src/linux-headers-3.1.0.paulliu-1-am335x/arch/arm/include/asm/. Just copying this file didn't rescued and caused another errors.

Which way is the simplest to resolve this problem? or How can I install missing packages and not to break anything?

I will appreciate any help on this.

Best regards,
Irina Fedotova


Reply to: