Hi,
I am trying to configure, patch and build the kernel to enable certain modules required for librealsense. The patches were obtained from this repository https://github.com/IntelRealSense/librealsense
and .config modifications were done using configurekernel.sh script from this repo https://github.com/jetsonhacks/buildLibrealsense2TX
specifically these were the modules that were enabled in the script (excerpt from configurekernel.sh)
bash scripts/config --file .config \
--set-str LOCALVERSION $LOCAL_VERSION \
--enable IIO_BUFFER \
--module IIO_KFIFO_BUF \
--module IIO_TRIGGERED_BUFFER \
--enable IIO_TRIGGER \
--set-val IIO_CONSUMERS_PER_TRIGGER 2 \
--module HID_SENSOR_IIO_COMMON \
--module HID_SENSOR_IIO_TRIGGER \
--module HID_SENSOR_HUB \
--module HID_SENSOR_ACCEL_3D \
--module HID_SENSOR_GYRO_3D
yes "" | make olddefconfig
I extracted the .config file from a freshly flashed TX2 and applied the modifications.
I am cross-compiling the kernel on a host machine running Ubunut 16.04. Kernel version is 4.4.38-tegra and L4T 28.2.1. The kernel build fails with following errors
LD init/built-in.o
drivers/built-in.o: In function `nvs_remove':
/home/user/tegra-build/kernel/kernel-4.4/drivers/misc/nvs/nvs_iio.c:1804: undefined reference to `devm_iio_kfifo_free'
drivers/built-in.o: In function `nvs_init':
/home/user/tegra-build/kernel/kernel-4.4/drivers/misc/nvs/nvs_iio.c:1846: undefined reference to `devm_iio_kfifo_allocate'
/home/user/tegra-build/kernel/kernel-4.4/Makefile:959: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory '/home/user/tegra/kernel'
Makefile:150: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
As you can see the errors are directly related to the modules enabled in .config file. I am new to Linux and Jetson platform. I would really appreciate if someone can explain what might be the issue here?
Thanks