Hi,
I need to compile an RT kernel for a Jetson TX2-NX, I followed the explanations here to apply the patch. However during the compilation phase of zImage different compile errors appear, such as this:
/home/rpo/RT-Kernel/build/kernel/nvgpu/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c: In function ‘gk20a_tegra_get_emc_rate’:
/home/rpo/RT-Kernel/build/kernel/nvgpu/drivers/gpu/nvgpu/os/linux/platform_gk20a_tegra.c:170:13: error: implicit declaration of function ‘clk_get_rate’; did you mean ‘clk_hw_get_rate’? [-Werror=implicit-function-declaration]
gpu_freq = clk_get_rate(g->clk.tegra_clk);
^~~~~~~~~~~~
clk_hw_get_rate
error taken at random from the entire error panel
These errors obviously block the rest of the Kernel installation (which is not very cool)
So I wanted to know if anyone knows why this kind of error occurs ?
Welcome to the NVIDIA Developer forums! Looks like you posted in the wrong category, I will move this to the Jetson TX2 forum so support has visibility.
[Update]:
When following these instructions provided by NVIDIA, the following errors occur.
/path/to/kernel/kernel-4.9/arch/arm64/boot/dts/Makefile:119: target 'arch/arm64/boot/_ddot_' given more than once in the same rule
This solution is described on another topic but in my case it doesn’t work, I admit I’m a bit at a loss for a solution. Can anyone think of a solution?
There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks
What’s the version?
Did you confirm without problem before apply the rt patches?
3.Run below sh file to apply the rt-patches instead of manually
…/kernel/kernel-4.9/scripts/rt-patch.sh --apply-patches