Orin NX Custom Pinmux Fails To Flash

I am trying to create a massflash blob for a new pinmux I created. I used v1.01 of the orin nx / orin nano series document to generate these files on the A03 page.

I have made the following changes to the pinmux in the files I use to flash Orin NX modules:

  • GPIO #3, Set req initial state to drive 1
  • GPIO #6, Set Pin Direction to Input, req initial state to N/A
  • GPIO #12 Set Pin Direction to Output, Req initial state to Drive 1
  • CAM1_PWDN Change Req initial state to Z
  • GPIO #9 Change Pin Direction to bidirectional

I generate the following files with the excel sheet after making the above changes:

  1. pinmux.dtsi
  2. gpio.dtsi
  3. padvoltage.dtsi

I then copy the padvoltage.dtsi and pinmux.dtsi files to the <l4t_top>/bootloader/t186ref/BCT/ directory and copy the gpio.dtsi file to the <l4t_top>/bootloader/ directory.

I changed the board.conf PINMUX_CONFIG and PMC_CONFIG to point to the pinmux and padvoltage files that were generate.

I use this command to generate massflash blob: sudo ./tools/kernel_flash/l4t_initrd_flash.sh --no-flash --massflash 6 -p "-c bootloader/t186ref/cfg/flash_t234_qspi.xml --no-systemimg" --network usb0 board_conf_name nvme0n1p1

I get the following error on my host PC:

[   3.2957 ] Pre-processing config: new_pinmux.dtsi
Error: Return value 1
Command cpp -nostdinc -x assembler-with-cpp -D IN_DTS_CONTEXT new_pinmux.dtsi new_pinmux_cpp.dts
Error: /home/labdesk/Desktop/Linux_for_Tegra/bootloader/signed/flash.idx is not found
Error: failed to relocate images to /home/labdesk/Desktop/Linux_for_Tegra/tools/kernel_flash/images
Cleaning up...

I tried manually running the cpp command in the <l4t_top>/bootloader/t186ref/BCT/ directory and I get the following error:

labdesk@labdesk01:~/Desktop/Linux_for_Tegra/bootloader/t186ref/BCT $ cpp -nostdinc -x assembler-with-cpp -D IN_DTS_CONTEXT new_pinmux.dtsi new_pinmux_cpp.dts
Orin-monarch_e5000-pinmux_June_6.dtsi:33:10: fatal error: pinctrl-tegra.h: No such file or directory
   33 | #include "pinctrl-tegra.h"
      |          ^~~~~~~~~~~

How can I resolve this error?

Ah I figured it out, I had renamed the gpio.dtsi file to a different name than what was used in the excel document, I had to change that name back to the original name that the excel document assigned to the file and now I am able to generate my massflash blob.

Glad to know issue resolved, thanks for your update.

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