sorry so late to reply u . the flashing is so slow
and the error showing last .i dont know why .
i replace the sda(30G) with sda(500G)
and this my command
sudo ROOTFS_ENC=1 ./tools/kernel_flash/l4t_initrd_flash.sh -u rsa_priv.pem -v sbk.key --external-device sda1 -c ./tools/kernel_flash/flash_l4t_nvme_rootfs_enc.xml --external-only -S 35GiB --erase-all --network usb0 --showlogs jetson-xavier external
this my flash_l4t_nvme_rootfs_enc.xml
flash_l4t_nvme_rootfs_enc.xml (9.1 KB)
the erro here
Waiting for target to boot-up...
Waiting for device to expose ssh ......RTNETLINK answers: File exists
RTNETLINK answers: File exists
Waiting for device to expose ssh ...Run command: flash on fc00:1:1:0::2
8388608
[ 0]: l4t_flash_from_kernel: Starting to create gpt for external device
Active index file is /mnt/external/flash.idx
Number of lines is 15
max_index=14
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, 39929e91afe4085ea4f73bbbc31e32558c076d3c
Writing primary_gpt partition with gpt_primary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/mnt/external/gpt_primary_9_0.bin of=/dev/sda bs=1 skip=0 seek=512 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0435301 s, 388 kB/s
Writing primary_gpt partition done
Error: The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 347627567 blocks) or continue with the current setting?
Writing secondary_gpt partition with gpt_secondary_9_0.bin
Offset is not aligned to K Bytes, no optimization is applied
dd if=/mnt/external/gpt_secondary_9_0.bin of=/dev/sda bs=1 skip=0 seek=322122530304 count=16896
16896+0 records in
16896+0 records out
16896 bytes (17 kB, 16 KiB) copied, 0.0317244 s, 533 kB/s
Writing secondary_gpt partition done
Fix/Ignore? Fix
Error: The backup GPT table is not at the end of the disk, as it should be. Fix, by moving the backup to the end (and removing the old backup)?
Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra 347627567 blocks) or continue with the current setting?
Fix/Ignore? Fix
Model: Samsung Portable SSD T5 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 20.5kB 419MB 419MB ext4 APP msftdata
2 419MB 38.7GB 38.2GB APP_ENC msftdata
3 38.7GB 38.7GB 66.1MB recovery msftdata
4 38.7GB 38.7GB 524kB recovery-dtb msftdata
5 38.7GB 38.7GB 65.5kB kernel-bootctrl msftdata
6 38.7GB 38.7GB 65.5kB kernel-bootctrl_b msftdata
7 38.7GB 38.8GB 83.9MB kernel msftdata
8 38.8GB 38.9GB 83.9MB kernel_b msftdata
9 38.9GB 38.9GB 524kB kernel-dtb msftdata
10 38.9GB 38.9GB 524kB kernel-dtb_b msftdata
11 38.9GB 39.2GB 315MB RECROOTFS msftdata
12 39.2GB 322GB 283GB UDA msftdata
[ 2]: l4t_flash_from_kernel: Expanding last partition to fill the storage device
[ 2]: l4t_flash_from_kernel: Successfully create gpt for external device
[ 2]: l4t_flash_from_kernel: Starting to flash to external device
Active index file is /mnt/external/flash.idx
Number of lines is 15
max_index=14
writing item=0, 9:0:master_boot_record, 0, 512, mbr_9_0.bin, 512, fixed-<reserved>-0, 694898d1c345bdb31b377790ed7fc0b0db184bf7
writing item=1, 9:0:primary_gpt, 512, 19968, gpt_primary_9_0.bin, 16896, fixed-<reserved>-0, 39929e91afe4085ea4f73bbbc31e32558c076d3c
writing item=2, 9:0:APP, 20480, 419430400, , , fixed-<reserved>-1,
Formatting APP partition /dev/sda1 ...
mke2fs 1.44.1 (24-Mar-2018)
Creating filesystem with 409600 1k blocks and 102400 inodes
Filesystem UUID: b8486d89-68ea-47ba-8dc5-3f02b398a248
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409
Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
Formatting APP parition done
Formatting APP partition /dev/sda1 ...
tar --xattrs -xpf /mnt/external/system_boot.img --checkpoint=10000 --warning=no-timestamp --numeric-owner -C /tmp/ci-mgqpmzQHXc
writing item=3, 9:0:APP_ENC, 419450880, 38235275264, system_root_encrypted.img_ext, 6063895200, fixed-<reserved>-2,
Writing APP_ENC partition with system_root_encrypted.img_ext
Get size of partition through connection.
blkdiscard /dev/sda2
blkdiscard: /dev/sda2: BLKDISCARD ioctl failed: Operation not supported
Cannot erase using blkdiscard. Write zero to partition /dev/sda2
dd if=/dev/zero of=/dev/sda2
38235102208 bytes (38 GB, 36 GiB) copied, 12676 s, 3.0 MB/s
dd: writing to '/dev/sda2': No space left on device
74678273+0 records in
74678272+0 records out
38235275264 bytes (38 GB, 36 GiB) copied, 12676.1 s, 3.0 MB/s
[ 12689]: l4t_flash_from_kernel: ERROR simg2img not found! To install - please run: "sudo apt-get install simg2img" or "sudo apt-get install android-tools-fsutils"
[ 12689]: l4t_flash_from_kernel: Error: /mnt/internal/flash.idx is not found
[ 12689]: l4t_flash_from_kernel: The device size indicated in the partition layout xml is smaller than the actual size. This utility will try to fix the GPT.
[ 12689]: l4t_flash_from_kernel: Error flashing qspi
[ 12689]: l4t_flash_from_kernel: Error flashing external device
Cleaning up...
why it shows i have no space where i need to modify
thank u