However I Cross Compiled ARM Kernel instead of ARMHF(for my Cubietruck). I followed this tutorial: https://romanrm.net/a10/cross-compile-kernel
How can I determine for which architecture I´m cross-compiling?
However I Cross Compiled ARM Kernel instead of ARMHF(for my Cubietruck). I followed this tutorial: https://romanrm.net/a10/cross-compile-kernel
How can I determine for which architecture I´m cross-compiling?
i got a new error that /linux/utsrealease.h is not found
from above comment as you mentioned.. from that its clear that kernel module
which your building must match with running kernel version
. As kernel modules loading mechanism doesn't allow loading modules that were not compiled against the running kernel, due to mismatch error is coming.
The macro UTS_RELEASE is required by your driver in order to rebuild kernel modules from source.
retrieving the version string constant,
older versions require you to include<linux/version.h>
,
others <linux/utsrelease.h>
,
and newer ones <generated/utsrelease.h>
So my suggestion you do workaround by doing
you can find utsrelease.h in kernel source code make sure your running kernel must match with your source-code
copy linux-x.x.x/include/generated/utsrelease.h
to installed header i.e ../include/linux/utsrelease.h
Im not sure give a try .
If above doesnot work pls update your question with 1)which kernel sourcode version you have 2)Whats the kernel version running on target
When you compile your kernel, mention the architecture you are compiling for in:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- EXTRAVERSION=-custom1 uImage
For eg, here ARCH=arm
, so you are compiling for ARM, if it's x86, then you'll replace it with x86. Check what architecture your target board is on.
EDIT: gnueabihf is for armhf.