Changing Pinmux and Generating New Flash Image for AGX Xavier Industrial Board

Hi,
I am working with an AGX Xavier industrial board, and I encountered a situation where I needed to modify some GPIO pins. In light of this, I am seeking assistance in changing the pin mixing configuration and generating a new .config file. Allow me to outline the steps I have taken thus far:

  1. I visited the following link to obtain the necessary resources
    [Jetson Download Center | NVIDIA Developer]
    From there, I downloaded the “Jetson_AGX_Xavier_Series_Pinmux_Configuration_Template_v1.4” file.
  2. Utilizing the provided Excel file, I generated .dtsi files without modifying Excel.
  3. I then proceeded to copy the generated .dtsi file to the following directory: /Linux_for_Tegra/kernel/pinmux/t19x/.
  4. At this point, I attempted to execute a specific command;
    CMD : $ python pinmux-dts2cfg.py --pinmux addr_info.txt gpio_addr_info.txt por_val.txt --mandatory_pinmux_file mandatory_pinmux.txt tegra19x-jetson_agx_industrial-pinmux.dtsi tegra19x-jetson_agx_industrial-gpio-default.dtsi 1.0 >galen.cfg
    however, I encountered the following error:

Now, with regards to creating a new kernel image after generating the galen.cfg file, I kindly request your guidance on the necessary steps involved. Could you please provide instructions on how to proceed? Additionally, if any modifications are required within the provided steps, kindly let me know, and I will incorporate them accordingly.

Thank you in advance.

Hi Jaydeep.hn,

Are you using the devkit or custom board for AGX Xavier Industrial?
What’s your Jetpack version in use?

Do you generate the .dtsi under the subtab of Jetson Xavier Industrial?

I am currently working with the custom Jetson AGX Xavier Industrial Board and Jetpack v5.1.1 and I have generated the .dtsi by clicking on generate dtsi tab available in the downloaded Excel and after generating the .dtsi file. I proceeded to copy the generated .dtsi file to the following directory :
~/Linux_for_Tegra/kernel/pinmux/t19x/.

At this stage, I have also created the galen.cfg file using the provided command. However, I am now at a point where I need guidance on the further steps to generate a new kernel image based on the updated configuration.

It’s great to hear to generate the cfg file for pinmux.

You could refer to the following instruction to build custom kernel.
Kernel Customization — Jetson Linux Developer Guide documentation (nvidia.com)

(You can ignore the errors which the pinmux-dts2cfg.py shows as they are related to some mandatory SoM internal pin conf related)

Since this is a Jetson AGX Xavier Industrial based board (JAXI), copy the galen.cfg file to overwrite the following

/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p2888-0008-b01-p2822-0000-jaxi.cfg

No need to rebuild kernel or bootloader for DTSI file changes.
You can directly use flash.sh script to program the new pinmux changes.

2 Likes

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