Issue flashing Xavier NX with custom .cfg

Dear Forum,

Following my previous question about the conversion from custom .dtsi files to .cfg files, I generated custom .cfg as below :

  1. Convert .dtsi to .cfg :

$ cd <path-to/Linux_for_Tegra/kernel/pinmux/t19x

$ python3 pinmux-dts2cfg.py --pinmux addr_info.txt gpio_addr_info.txt por_val.txt ~/Workspace/rtr_base_pinmux_v2/tegra19x-rtr_base-pinmux.dtsi ~/Downloads/RtR/rtr_base_pinmux_v2/tegra19x-rtr_base-gpio-default.dtsi 1.0 > tegra19x-mb1-pinmux-p3668-rtr-nx.cfg

$ python3 pinmux-dts2cfg.py --pad pad_info.txt ~/Workspace/rtr_base_pinmux_v2/tegra19x-rtr_base-padvoltage-default.dtsi 1.0 > tegra19x-mb1-padvoltage-p3668-rtr-nx.cfg

Move the newly created .cfg files to the following places :

Linux_for_Tegra/bootloader/tegra19x-mb1-pinmux-rtr-nx.cfg
Linux_for_Tegra/bootloader/tegra19x-mb1-padvoltage-rtr-nx.cfg
Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-rtr-nx.cfg
Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-rtr-nx.cfg

tegra19x-mb1-pinmux-rtr-nx.cfg.txt (27.0 KB)
tegra19x-mb1-padvoltage-rtr-nx.cfg.txt (586 Bytes)

  1. Create custom common configuration :
$ cd Linux_for_Tegra
$ cp p3668.conf.common rtr-nx-p3668.conf.common

And replace following lines :

...
PINMUX_CONFIG="tegra19x-mb1-pinmux-p3668-a01.cfg";
...
PMC_CONFIG="tegra19x-mb1-padvoltage-p3668-a01.cfg";

by

...
PINMUX_CONFIG="tegra19x-mb1-pinmux-p3668-rtr-nx.cfg";
...
PMC_CONFIG="tegra19x-mb1-padvoltage-p3668-rtr-nx.cfg";

rtr-nx-p3668.conf.common.txt (6.3 KB)

  1. Create custom specific board configuration :
    $ cp p3509-0000+p3668-0001-qspi-emmc.conf rtr-nx+p3668-0001-qspi-emmc.conf

Replace following line
source "${LDK_DIR}/p3668.conf.common";
to
source "${LDK_DIR}/rtr-nx-p3668.conf.common";

rtr-nx+p3668-0001-qspi-emmc.conf.txt (2.4 KB)

Then I flashed the board after putting it into the recovery mode :
$ sudo ./tools/kernel_flash/l4t_initrd_flash.sh rtr-nx+p3668-0001-qspi-emmc mmcblk0p1

With following error extracted from the log file :

[   2.6066 ] Sending BCTs
[   2.6090 ] tegrarcm_v2 --instance 1-10 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
[   2.6100 ] Applet version 01.00.0000
[   2.6314 ] Sending bct_bootrom
[   2.6315 ] [................................................] 100%
[   2.6325 ] Sending bct_mb1
[   2.6376 ] [................................................] 100%
[   2.6408 ] Sending bct_mem
[   2.6987 ] [................................................] 100%
Error: Return value 8
Command tegrarcm_v2 --instance 1-10 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt --download bct_mem mem_rcm_sigheader.bct.encrypt
Cleaning up...

flash_1-10_0_20240514-155244.log (21.5 KB)

I tested with both Jetpack-5.0.2 and Jetpack-5.1.2.

Could you help identify what could be the missing part, please ?
Best Regards,
Khang

Sorry, it was my fault to use the wrong file name : .cfg files were missing p3668 while this later were used in .conf.common file.