Jetson-io doesnt work after flashing nvidia agx orin with encrption enabled

hello,
i have an nvidia agx orin 64gb deveoper. I have downloaded and extracted Jetson Linux R36.4.3 and its accompanying file system extracted it and followed the following methods for flashing with encryption

sudo ./flash.sh \
  --no-flash \
  -k A_eks \
  -i sym2_t234.key \
  jetson-agx-orin-devkit \
  nvme0n1p1

sudo cp ./bootloader/eks_t234_sigheader.img.encrypt ./tools/kernel_flash/images/internal/eks_t234_sigheader.img.encrypt

sudo ROOTFS_ENC=1 ./tools/kernel_flash/l4t_initrd_flash.sh --showlogs --no-flash --external-device nvme0n1p1 -i ./sym2_t234.key -S 50GiB -c ./tools/kernel_flash/flash_l4t_t234_nvme_rootfs_enc.xml --external-only --append --network usb0 jetson-agx-orin-devkit external

technicaly the command below and the one below it are the same so tried just the last one with -k params, lets see how it goes nope didnt flash it right


sudo ./tools/kernel_flash/l4t_initrd_flash.sh -k A_eks --flash-only --showlogs

sudo ./tools/kernel_flash/l4t_initrd_flash.sh --network usb0 --showlogs --flash-only --external-only

now the flash works and i can see my files encrypted as well but when i try to use jetson-io
using
sudo ./jetson-io.py

theres aquick fash of the expected terminal UI and then it disappears, when using it with a screen session I was able to get the following error

 FATAL ERROR!                            |

| |
| |
| Multiple APP partitions found! |
| |
| |
| Press any key to terminate

now this is an issue that i get only when flashing with encryption enabled
when i try the following normal flash

sudo ./nvsdkmanager_flash.sh --storage nvme0n1p1

jetson-io works fine, i can see and use the termnal UI and everything is fine

now i also tried mounting jetpack to rootfs and then flashing it with the stock rootfs but that didnt work either.
i also tried apply this patch here
that didnt work either

i have JetPack version 6.2 (build b77) installed
some addition info
i tried encryption with and without uda encryption enabled
and i got this for my prtitions
NAME FSTYPE LABEL UUID MOUNTPOINT SIZE
loop0 16M
mmcblk0 59.2G
├─mmcblk0p1 ext4 1b89febe-bcf5-47a7-a233-0a3f446ee7ec /media/tru 57.8G
├─mmcblk0p2 128M
├─mmcblk0p3 768K
├─mmcblk0p4 31.6M
├─mmcblk0p5 128M
├─mmcblk0p6 768K
├─mmcblk0p7 31.6M
├─mmcblk0p8 80M
├─mmcblk0p9 512K
├─mmcblk0p10 vfat 7226-B1C6 64M
├─mmcblk0p11 80M
├─mmcblk0p12 512K
├─mmcblk0p13 64M
├─mmcblk0p14 crypto e8329736-7dcc-465b-adb1-682096f6c21b 400M
└─mmcblk0p15 479.5M
mmcblk0boot0 4M
mmcblk0boot1 4M
zram0 [SWAP] 3.8G
zram1 [SWAP] 3.8G
zram2 [SWAP] 3.8G
zram3 [SWAP] 3.8G
zram4 [SWAP] 3.8G
zram5 [SWAP] 3.8G
zram6 [SWAP] 3.8G
zram7 [SWAP] 3.8G
nvme0n1 119.2G
├─nvme0n1p1 ext4 c25f8845-3367-453e-a619-d4883dee2d18 /boot 400M
├─nvme0n1p2 crypto 2b47d4d7-e400-455e-8ec6-489071e0d43c 79.6G
│ └─crypt_root
│ ext4 09297c37-8d6f-42e4-9f64-2fab62841650 / 79.6G
├─nvme0n1p3 128M
├─nvme0n1p4 768K
├─nvme0n1p5 31.6M
├─nvme0n1p6 128M
├─nvme0n1p7 768K
├─nvme0n1p8 31.6M
├─nvme0n1p9 80M
├─nvme0n1p10 512K
├─nvme0n1p11 vfat 9B3C-CEF2 /boot/efi 64M
├─nvme0n1p12 80M
├─nvme0n1p13 512K
├─nvme0n1p14 64M
├─nvme0n1p15 crypto 183ec382-5b60-4aee-9949-7f124078b71a 400M
│ └─crypt_UDA
│ ext4 afb5db69-2694-43f7-9294-1c3574d728b8 /mnt/crypt 384M
└─nvme0n1p16 479.5M

now i also made custom changes to my .xml file

let me know if you need additional info
will appreciate your help
thank you!

hello muhammad8,

is the /opt/nvidia/jetson-io/Jetson/board.py detect the active partition correctly?
could you please double check you’ve same code snippets as following..

class Board(object):
...
        #Finding the active partition in case of redundant rootfs flash.
        activepart = syscall.call_out('nvbootctrl -t rootfs get-current-slot')
        if activepart[0] == '0':
            mountpart = "APP"
        elif activepart[0] == '1':
            mountpart = "APP_b"
        else:
            raise RuntimeError("Failed to get active rootfs partition!")