Can't find kernel_src.tbz2

Hey there!

I have a brand new JTX1, and the only thing I’ve done to it so far is flash JetPack to it.

I now need to locate “kernel_src.tbz2” which I know normally can be found in /usr/src/. However, I haven’t found it there, and haven’t been able to find it anywhere else on my JTX1 either (I used the command "find . “kernel_src.tbz2"” to no avail).

Can anyone help me locate the kernel source files?

Thank you!

Perhaps the file is named something else? i.e. not “kernel_src.tbz2”? In either case, it’s definitely not in /usr/src/ but maybe I should be looking for something else?

And/or maybe I need to download the kernel source files? I have not yet done this.

https://developer.ridgerun.com/wiki/index.php?title=Compiling_Tegra_X1_source_code#Downloading_the_code

You can download the latest tarball of the kernel sources directly from this page:

https://developer.nvidia.com/embedded/linux-tegra

If you’re looking for a specific L4T kernel, here are the links:

R24.1http://developer.nvidia.com/embedded/dlc/l4t-24-1-kernel-sources
R23.2http://developer.nvidia.com/embedded/dlc/l4t-23-2-kernel-sources
R23.1http://developer.download.nvidia.com/embedded/L4T/r23_Release_v1.0/source/kernel_src.tbz2

Thank you!

One more quick question: Since the latest JetPack uses R23.2, is that the kernel that I should be using if I want it to work with the JetPack upgrades?

For context, I’m trying to follow these instructions to install the DUO3D camera on the TX1: http://duo3d.com/docs/articles/install-arm#NVIDIAJetsonTX1

Another question if you have a moment: The steps require some patches to be applied to the kernel and then the built kernel should be transferred to the TX1. However, I’m running into a few errors when building:

drivers/media/platform/tegra/camera/mc_common.c: In function 'tegra_vi_v4l2_init':
drivers/media/platform/tegra/camera/mc_common.c:213:14: error: 'struct v4l2_device' has no member named 'mdev'
  vi->v4l2_dev.mdev = &vi->media_dev;
              ^
make[5]: *** [drivers/media/platform/tegra/camera/mc_common.o] Error 1
make[4]: *** [drivers/media/platform/tegra/camera] Error 2
make[4]: *** Waiting for unfinished jobs....
drivers/media/platform/tegra/csi/csi.c:492:19: error: 'v4l2_subdev_link_validate' undeclared here (not in a function)
  .link_validate = v4l2_subdev_link_validate,
                   ^
drivers/media/platform/tegra/csi/csi.c: In function 'tegra_csi_media_controller_init':
drivers/media/platform/tegra/csi/csi.c:597:8: error: 'struct v4l2_subdev' has no member named 'entity'
  subdev->entity.ops = &tegra_csi_media_ops;
        ^
drivers/media/platform/tegra/csi/csi.c:612:33: error: 'struct v4l2_subdev' has no member named 'entity'
  ret = media_entity_init(&subdev->entity, csi->num_ports * 2,
                                 ^
drivers/media/platform/tegra/csi/csi.c:626:30: error: 'struct v4l2_subdev' has no member named 'entity'
  media_entity_cleanup(&subdev->entity);
                              ^
drivers/media/platform/tegra/csi/csi.c: In function 'tegra_csi_media_controller_remove':
drivers/media/platform/tegra/csi/csi.c:636:30: error: 'struct v4l2_subdev' has no member named 'entity'
  media_entity_cleanup(&subdev->entity);
                              ^
  CC      drivers/mmc/card/queue.o
make[5]: *** [drivers/media/platform/tegra/csi/csi.o] Error 1
make[4]: *** [drivers/media/platform/tegra/csi] Error 2
make[3]: *** [drivers/media/platform/tegra] Error 2
make[2]: *** [drivers/media/platform] Error 2
make[1]: *** [drivers/media] Error 2
make[1]: *** Waiting for unfinished jobs....

Is this an issue I need to fix or can I proceed with ignoring it?

Never mind, I used the 23.2 kernel version and everything worked!

@pkshah: View my latest comment here (Moved from here to be in a more relevant place to find).