Hello.
I have TMDSEVM572X.
I want to add USB tmc and USB acm class driver to kernel but an error occurred.
First of all I change tisdk_am57xx-evm_defconfig.
Set:
CONFIG_USB_ACM=y
CONFIG_USB_TMC=y
After this I add toolchain path to PATH variable:
export PATH=<sdk_path>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin:$PATH.
Then change dir to kernel src:
cd <sdk_path>/board-support/linux-4.14.79+gitAUTOINC+bde58ab01e-gbde58ab01e
and consistently run:
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am57xx-evm_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage.
In last step (kernel compilation) an error occurred.
......
CC kernel/utsname.o
CC kernel/pid_namespace.o
GZIP kernel/config_data.gz
gzip: relocation error: <sdk_path>/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/../../lib/libc.so.6: symbol __tunable_get_val, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference
kernel/Makefile:120: recipe for target 'kernel/config_data.gz' failed
make[1]: *** [kernel/config_data.gz] Error 1
Makefile:1039: recipe for target 'kernel' failed
make: *** [kernel] Error 2
As I understand the problem in libc version.
In <sdk_path>/linux-devkit/sysroots/x86_64-arago-linux/lib/ I found libc-2.26.so and ld-2.26.so (and symbol links ld-linux-x86-64.so.2 and libc.so.6 linked on it)
My host is Ubuntu 16.04 LTS with libc-2.23.so. LD_LIBRARY_PATH is empty. SDK version: 05_02_00_10.
What is the reason of this problem and how can I solve it?