Flashing encrypted dtb does not work defaults to nvidia /dvs/git/dirty

I am trying to fix the issue with ath9k/10k on jetson nano (AIRETOS AEX-QCA9880-NX wifi module on jetson nano) and when flashing new dtb at first boot the new dts is in kernel logs but after a reboot system is defaulting to dvs/git. Such a strange issue, never seen this on any tegra platforms but this is the first qspi-sd flashing any of us have dealt with. Please help with flashing new DTB and having it permanent. Thanks in advance community and NVIDIA devs.

I have flashed with both creating sdcard blob.img and also flashing signed encrypted dtb:

sudo ./flash.sh -r -k DTB jetson-nano-qspi-sd mmcblk0p1
also tried flashing DTB to RP1 which is bootloader DTB i believe.


jetson@jetson-nano:~$ dmesg|grep dts
[    0.216344] DTS File Name: arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[    0.424389] DTS File Name: arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[    0.459435] tegra-pmc 7000e400.pmc: scratch reg offset dts data not present
jetson@jetson-nano:~$ reboot
jetson@jetson-nano:~$ dmesg|grep dts
[    0.212453] DTS File Name: /dvs/git/dirty/git-master_linux/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[    0.424385] DTS File Name: /dvs/git/dirty/git-master_linux/kernel/kernel-4.9/arch/arm64/boot/dts/../../../../../../hardware/nvidia/platform/t210/porg/kernel-dts/tegra210-p3448-0000-p3449-0000-b00.dts
[    0.459064] tegra-pmc 7000e400.pmc: scratch reg offset dts data not present

This is a known issue and should be fixed. I think you need this patch.

diff --git a/rootfs/opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh b/rootfs/opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh
index 921efc2..fe60093 100755
--- a/rootfs/opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh
+++ b/rootfs/opt/nvidia/l4t-bootloader-config/nv-l4t-bootloader-config.sh
@@ -123,7 +123,7 @@ t210ref_update_qspi_check () {
                        # need to update QSPI
                        return 0
                elif (( "${sys_maj_rev}" == "${qspi_maj_rev}" )); then
-                       if (( "${sys_min_rev}" >= "${qspi_min_rev}" )); then
+                       if (( "${sys_min_rev}" > "${qspi_min_rev}" )); then
                                # sys_rel == qspi_rel
                                # sys_maj_rev == qspi_maj_rev
                                # sys_min_rev >= qspi_min_rev

Much appreciation WayneWWW! I can always count on you!!