Jetson TX2 driver source code

Hi,

For the first time I am using NVIDIA Jetson TX2 Developer Kit, and the host machine has Ubuntu 18.04

We are using SDK Manager 1.9.10884 x86_64 and JetPack 4.6.3.

Using this SDK Manager we are able to Create Images and flash to Board but, we have some Questions regarding U-boot/Kernel source code

  1. How to extract U-Boot and Kernel Source code.
  2. How to add a new Device driver and how to modify the existing driver.
  3. How to create images for our custom board and how to flash the custom board

Does NVIDIA provide any user guide or training on how to implement custom drivers on the Jetson TX2 developer kit? if so kindly share the details.

Thanks

I can’t give you a complete answer, but here is some information related to this:

  • L4T releases URL.
  • JetPack/SDKM release URL (this is a GUI front end for flashing L4T).
  • Earlier releases had U-Boot, but as time went by, CBoot absorbed some of U-Boot’s functionality, and U-Boot itself was removed. You’ll be interested in CBoot, not U-Boot (see the official docs for your release).
  • If you download the kernel source from the L4T URL, then you’ll find three subdirectories. The kernel itself is in the “kernel/” subdirectory. You’ll find a subdirectory for bootloader and other firmware. During build of the Linux kernel itself some features, which depend on that content, use a relative path which exits the Linux source and refers to that other code. Similarly, there might be some content in those other directories which accesses the Linux kernel source via relative path.
  • Linux kernel drivers have a lot of development documentation “out in the wild”. This isn’t specific to Jetsons, although you need arm64/aarch64 architecture. Boot content though is custom to the Jetson (when you get to newer hardware using UEFI…which TX2s cannot support…then things start getting “standardized”). Much of the boot content is “black box”, but the drivers you have access to are bare metal targets just like the Linux kernel. In fact much of the driver code in booting is nearly identical to kernel drivers.

You’ll probably want someone from NVIDIA answering specific questions related to anything in boot, and possibly in the Linux kernel, but you’ll need to describe a specific use-case.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.