Hi everyone I’m trying to follow the Kernel Module load and compilation and I’m hitting the following error, why the opcodes library is not included? any ideas?
thanks
root@ac944d2:/usr/src/app# ./build.sh 'jetson-tx2' '2.7.4+rev1.prod' example_module
Building images/jetson-tx2/2.7.4+rev1.prod/kernel_modules_headers.tar.gz...
--2017-11-15 17:15:57-- https://files.resin.io/images/jetson-tx2/2.7.4%2Brev1.prod/kernel_modules_headers.tar.gz
Resolving files.resin.io (files.resin.io)... 34.225.84.11, 54.83.178.117
Connecting to files.resin.io (files.resin.io)|34.225.84.11|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9336559 (8.9M) [application/x-tar]
Saving to: 'kernel_modules_headers.tar.gz'
kernel_modules_headers.tar.gz 100%[==================================================================================================================================================================>] 8.90M 3.68MB/s in 2.4s
2017-11-15 17:16:01 (3.68 MB/s) - 'kernel_modules_headers.tar.gz' saved [9336559/9336559]
make: Entering directory '/tmp/tmp.9gvOdW0OKh'
CC [M] /usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod/hello.o
In file included from ./arch/arm64/include/asm/sysreg.h:23:0,
from ./arch/arm64/include/asm/cpufeature.h:13,
from ./arch/arm64/include/asm/hw_breakpoint.h:20,
from ./arch/arm64/include/asm/processor.h:33,
from ./arch/arm64/include/asm/spinlock.h:21,
from include/linux/spinlock.h:87,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from ./arch/arm64/include/asm/compat.h:25,
from ./arch/arm64/include/asm/stat.h:23,
from include/linux/stat.h:5,
from include/linux/module.h:10,
from /usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod/hello.c:2:
./arch/arm64/include/asm/opcodes.h:5:43: fatal error: ../../arm/include/asm/opcodes.h: No such file or directory
compilation terminated.
scripts/Makefile.build:267: recipe for target '/usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod/hello.o' failed
make[1]: *** [/usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod/hello.o] Error 1
Makefile:1414: recipe for target '_module_/usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod' failed
make: *** [_module_/usr/src/app/example_module_jetson-tx2_2.7.4+rev1.prod] Error 2
make: Leaving directory '/tmp/tmp.9gvOdW0OKh'
root@ac944d2:/usr/src/app# Connection to ssh.resindevice.io closed.