Command tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0000-p3449-0000-b00.dtb.encrypt 0 Failed flashing t210ref

Trying to reflash Jetson nano B01, I have tried with sdkmanager, command line and sd card;
Host: WSL2
With cmd:

 sudo ./flash.sh jetson-nano-devkit mmcblk0p1

Sdkmanager and cmd give following error:

###############################################################################
# L4T BSP Information:
# R32 , REVISION: 7.4
###############################################################################
# Target Board Information:
# Name: jetson-nano-devkit, Board Family: t210ref, SoC: Tegra 210,
# OpMode: production, Boot Authentication: ,
# Disk encryption: disabled ,
###############################################################################
./tegraflash.py --chip 0x21 --applet "/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery.bin" --skipuid --cmd "dump eeprom boardinfo cvm.bin"
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[   0.0057 ] Generating RCM messages
[   0.0062 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery.bin 0 0
[   0.0066 ] RCM 0 is saved as rcm_0.rcm
[   0.0069 ] RCM 1 is saved as rcm_1.rcm
[   0.0069 ] List of rcm files are saved in rcm_list.xml
[   0.0069 ]
[   0.0069 ] Signing RCM messages
[   0.0085 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0090 ] Assuming zero filled SBK key
[   0.0113 ]
[   0.0113 ] Copying signature to RCM mesages
[   0.0128 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[   0.0134 ]
[   0.0134 ] Boot Rom communication
[   0.0149 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml --skipuid
[   0.0153 ] RCM version 0X210001
[   0.0761 ] Boot Rom communication completed
[   1.0881 ]
[   1.0881 ] dump EEPROM info
[   1.0899 ] tegrarcm --oem platformdetails eeprom /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/cvm.bin
[   1.0903 ] Applet version 00.01.0000
[   1.0955 ] Saved platform info in /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/cvm.bin
[   1.2069 ]
[   1.2086 ] tegrarcm --reboot recovery
[   1.2090 ] Applet version 00.01.0000
[   1.2160 ]
Board ID(3448) version(401)
copying bctfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/BCT/P3448_A00_lpddr4_204Mhz_P987.cfg)... done.
copying bootloader(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying initrd(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
Making Boot image... done.
Existing sosfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
copying tegraboot(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/nvtboot.bin)... done.
copying cpu_bootloader(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
copying bpffile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/sc7entry-firmware.bin)... done.
copying wb0boot(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/warmboot.bin)... done.
Existing tosfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tos-mon-only.img) reused.
Existing eksfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/eks.img) reused.
./flash.sh: line 2661: [: : integer expression expected
copying dtbfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)... done.
Copying nv_boot_control.conf to rootfs
        populating kernel to rootfs... done.
        populating initrd to rootfs... done.
        populating kernel_tegra210-p3448-0000-p3449-0000-b00.dtb to rootfs... done.
Making system.img...
        populating rootfs from /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/rootfs ...      populating /boot/extlinux/extlinux.conf ... done.
        Sync'ing system.img ... done.
        Converting RAW image to Sparse image... done.
system.img built successfully.
Existing tbcfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
copying tbcdtbfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/kernel/dtb/tegra210-p3448-0000-p3449-0000-b00.dtb)... done.
copying cfgfile(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cfg/flash_l4t_t210_max-spi_sd_p3448.xml) to flash.xml... done.
copying flasher(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/t210ref/cboot.bin)... done.
Existing flashapp(/home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl cboot.bin --bct  P3448_A00_lpddr4_204Mhz_P987.cfg --odmdata 0xa4000 --bldtb kernel_tegra210-p3448-0000-p3449-0000-b00.dtb --applet nvtboot_recovery.bin  --cmd "flash; reboot"  --cfg flash.xml --chip 0x21    --bins "EBT cboot.bin; DTB tegra210-p3448-0000-p3449-0000-b00.dtb"
saving flash command in /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/moon/nvidia/nvidia_sdk/JetPack_4.6.4_Linux_JETSON_NANO_TARGETS/Linux_for_Tegra/bootloader/flash_win.bat
assign_value: crc-flash.xml.bin 1 65520 1
printf '\x1' | dd of=crc-flash.xml.bin bs=1 seek=65520 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 3.0664e-05 s, 32.6 kB/s
assign_value: crc-flash.xml.bin 0 65521 1
printf '\x0' | dd of=crc-flash.xml.bin bs=1 seek=65521 count=1 conv=notrunc
1+0 records in
1+0 records out
1 byte copied, 1.846e-05 s, 54.2 kB/s
assign_string: crc-flash.xml.bin PTHD 65528 4
echo PTHD | dd of=crc-flash.xml.bin bs=1 seek=65528 count=4 conv=notrunc
4+0 records in
4+0 records out
4 bytes copied, 2.1133e-05 s, 189 kB/s
*** Flashing target device started. ***
Welcome to Tegra Flash
version 1.0.0
Type ? or help for help and q or quit to exit
Use ! to execute system commands

[   0.0019 ] tegrasign --getmode mode.txt --key None
[   0.0023 ] Assuming zero filled SBK key
[   0.0025 ]
[   0.0025 ] Generating RCM messages
[   0.0044 ] tegrarcm --listrcm rcm_list.xml --chip 0x21 0 --download rcm nvtboot_recovery.bin 0 0
[   0.0047 ] RCM 0 is saved as rcm_0.rcm
[   0.0054 ] RCM 1 is saved as rcm_1.rcm
[   0.0055 ] List of rcm files are saved in rcm_list.xml
[   0.0055 ]
[   0.0055 ] Signing RCM messages
[   0.0070 ] tegrasign --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0074 ] Assuming zero filled SBK key
[   0.0098 ]
[   0.0098 ] Copying signature to RCM mesages
[   0.0115 ] tegrarcm --chip 0x21 0 --updatesig rcm_list_signed.xml
[   0.0122 ]
[   0.0122 ] Parsing partition layout
[   0.0138 ] tegraparser --pt flash.xml.tmp
[   0.0143 ]
[   0.0143 ] Using default ramcode: 0
[   0.0143 ] Disable BPMP dtb trim, using default dtb
[   0.0144 ]
[   0.0144 ] Creating list of images to be signed
[   0.0159 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --list images_list.xml
[   0.0186 ]
[   0.0187 ] Generating signatures
[   0.0201 ] tegrasign --key None --list images_list.xml --pubkeyhash pub_key.key
[   0.0205 ] Assuming zero filled SBK key
[   0.0452 ]
[   0.0453 ] Generating br-bct
[   0.0472 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.cfg --chip 0x21 0
[   0.0493 ]
[   0.0494 ] Updating boot device parameters
[   0.0509 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatedevparam flash.xml.bin
[   0.0512 ] Warning: No sdram params
[   0.0513 ]
[   0.0514 ] Updating bl info
[   0.0529 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   0.0536 ]
[   0.0536 ] Updating secondary storage information into bct
[   0.0553 ] tegraparser --pt flash.xml.bin --chip 0x21 0 --updatecustinfo P3448_A00_lpddr4_204Mhz_P987.bct
[   0.0557 ]
[   0.0558 ] Updating Odmdata
[   0.0573 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatefields Odmdata =0xa4000
[   0.0577 ] Warning: No sdram params
[   0.0578 ]
[   0.0578 ] Get Signed section of bct
[   0.0593 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --listbct bct_list.xml
[   0.0598 ]
[   0.0598 ] Signing BCT
[   0.0628 ] tegrasign --key None --list bct_list.xml --pubkeyhash pub_key.key
[   0.0631 ] Assuming zero filled SBK key
[   0.0633 ]
[   0.0634 ] Updating BCT with signature
[   0.0648 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatesig bct_list_signed.xml
[   0.0653 ]
[   0.0653 ] Copying signatures
[   0.0667 ] tegrahost --chip 0x21 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   0.0690 ]
[   0.0690 ] Updating BFS information on BCT
[   0.0706 ] tegrabct --bct P3448_A00_lpddr4_204Mhz_P987.bct --chip 0x21 0 --updatebfsinfo flash.xml.bin
[   0.0711 ]
[   0.0711 ] Boot Rom communication
[   0.0727 ] tegrarcm --chip 0x21 0 --rcm rcm_list_signed.xml
[   0.0730 ] BR_CID: 0x321010016430b746040000000c020240
[   0.0739 ] RCM version 0X210001
[   0.0748 ] Boot Rom communication completed
[   1.0855 ]
[   1.0856 ] Sending BCTs
[   1.0863 ] tegrarcm --download bct P3448_A00_lpddr4_204Mhz_P987.bct
[   1.0868 ] Applet version 00.01.0000
[   1.0931 ] Sending bct
[   1.0931 ] [................................................] 100%
[   1.2143 ]
[   1.2161 ] tegrahost --chip 0x21 --align cboot.bin
[   1.2165 ]
[   1.2181 ] tegrahost --magicid EBT --appendsigheader cboot.bin cboot.bin_blheader
[   1.2191 ]
[   1.2208 ] tegrasign --key None --list cboot.bin_list.xml
[   1.2212 ] Assuming zero filled SBK key
[   1.2268 ]
[   1.2285 ] tegrahost --updatesigheader cboot.bin_blheader.encrypt cboot.bin_blheader.hash zerosbk
[   1.2293 ]
[   1.2314 ] tegrahost --chip 0x21 --align tegra210-p3448-0000-p3449-0000-b00.dtb
[   1.2318 ]
[   1.2333 ] tegrahost --magicid DTB --appendsigheader tegra210-p3448-0000-p3449-0000-b00.dtb tegra210-p3448-0000-p3449-0000-b00.dtb_blheader
[   1.2341 ]
[   1.2357 ] tegrasign --key None --list tegra210-p3448-0000-p3449-0000-b00.dtb_list.xml
[   1.2360 ] Assuming zero filled SBK key
[   1.2388 ]
[   1.2410 ] tegrahost --updatesigheader tegra210-p3448-0000-p3449-0000-b00.dtb_blheader.encrypt tegra210-p3448-0000-p3449-0000-b00.dtb_blheader.hash zerosbk
[   1.2417 ]
[   1.2419 ] Sending bootloader and pre-requisite binaries
[   1.2435 ] tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0000-p3449-0000-b00.dtb.encrypt 0
[   1.2439 ] Applet version 00.01.0000
[   1.2490 ] Sending ebt
[   1.3195 ]
**Error: Return value 1**
**Command tegrarcm --download ebt cboot.bin.encrypt 0 0 --download rp1 tegra210-p3448-0000-p3449-0000-b00.dtb.encrypt 0**
**Failed flashing t210ref.**

I have flashed sevaral jetson devices with cmd as below successfully, but I have no idea with this error.Please give me some advice, thanks.

Please first try on a real Ubuntu host PC instead of WSL2.

I have tried flashing it with sdkmanager on Ubuntu18.04, but it returns the same error.And I could use wsl to flash another jetson nano b01 developkit even jetson tx2, so I guess wsl is not the point.How should I do next?

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Then please dump the serial console log during flashing.