How to include "linux-headers-4.4.38-tegra" for L4T 28.1

My V4L2 app does not work for L4T 28.1 and I fund many headers files in L4T have been changed.

When I tried to use header files in /usr/src/linux-headers-4.4.38-tegra, e.g.,

$(CC)   $(TARGET).cpp -I/usr/src/linux-headers-4.4.38-tegra/include -lc -lGL -o $(TARGET)

I got errors:

/usr/src/linux-headers-4.4.38-tegra/include/linux/cache.h:5:23: fatal error: asm/cache.h: No such file or directory

and I found there is no “asm” in “/usr/src/linux-headers-4.4.38-tegra”.

Did I missing something to use “linux-headers-4.4.38-tegra” for L4T 28.1?

Hi,
Is your V4L2 app on the basis of tegra_multimedia_api? We have HW componenets implemented in V4L2 frameworks and these samples are compiled successfully.

Is you app can be compiled on r24.2.1?

The header you mentioned is at

/usr/src/linux-headers-4.4.38-tegra/arch/arm64/include/asm/cache.h

I guess some headers are put under arch/arm64/include?

I was able to get V4L2 time stamp under R24.2.1 and was able to build app and acquire video under R28.1, however I was unable to get time stamp under R28.1, I found the video buffer structure was changed:

https://devtalk.nvidia.com/default/topic/1020202/jetson-tx1/v4l2-time-stamp-does-not-work-for-l4t-28-1-jetpack-3-1-/?offset=9#5199332

Please continue in that topic.