Failed to get kernel version from ... /Linux_for_Tegra/kernel/Image

I am trying to flash to my Jetson AGX Xavier but I am getting the error Failed to get kernel version from … /Linux_for_Tegra/kernel/Image.

Here is the log:
sudo ./flash.sh ${BOARD} mmcblk0p1
[sudo] password for derconnect:
###############################################################################

L4T BSP Information:

R35 , REVISION: 1.0

###############################################################################

Target Board Information:

Name: jetson-agx-xavier-devkit, Board Family: t186ref, SoC: Tegra 194,

OpMode: production, Boot Authentication: NS,

Disk encryption: disabled ,

###############################################################################
copying soft_fuses(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)… done.
./tegraflash.py --chip 0x19 --applet “/home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod.bin” --skipuid --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg --bins “mb2_applet nvtboot_applet_t194.bin” --cmd “dump eeprom boardinfo cvm.bin;reboot recovery”
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.0381 ] Generating RCM messages
[ 0.0612 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod.bin zerosbk
[ 0.0630 ] Header already present for /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod.bin
[ 0.1094 ] tegrasign_v3.py --key None --getmode mode.txt
[ 0.1099 ] Assuming zero filled SBK key
[ 0.1129 ] tegrasign_v3.py --file /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin --key None --length 1136 --offset 2960 --pubkeyhash pub_key.key
[ 0.1132 ] Assuming zero filled SBK key
[ 0.2364 ] Warning: pub_key.key is not found
[ 0.2229 ] tegrahost_v2 --chip 0x19 0 --updatesigheader /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.hash zerosbk
[ 0.2852 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg.pdf sfuse.bin
[ 0.3097 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm /home/agx/Linux_for_Tegra/bootloader/mb1_t194_prod_sigheader.bin 0 0
[ 0.3110 ] RCM 0 is saved as rcm_0.rcm
[ 0.3152 ] RCM 1 is saved as rcm_1.rcm
[ 0.3157 ] RCM 2 is saved as rcm_2.rcm
[ 0.3157 ] List of rcm files are saved in rcm_list.xml
[ 0.3157 ]
[ 0.3157 ] Signing RCM messages
[ 0.3344 ] tegrasign_v3.py --key None --list rcm_list.xml --getmontgomeryvalues montgomery.bin --pubkeyhash pub_key.key
[ 0.3347 ] Assuming zero filled SBK key
[ 0.3429 ] Warning: pub_key.key is not found
[ 0.3267 ] Copying signature to RCM mesages
[ 0.3293 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[ 0.3312 ] Boot Rom communication
[ 0.3334 ] tegrarcm_v2 --chip 0x19 0 --rcm rcm_list_signed.xml --skipuid
[ 0.3344 ] RCM version 0X190001
[ 0.3355 ] Boot Rom communication completed
[ 2.3575 ] tegrarcm_v2 --isapplet
[ 2.3592 ] Applet version 01.00.0000
[ 2.3667 ] tegrarcm_v2 --ismb2
[ 2.3949 ] tegrahost_v2 --chip 0x19 --align nvtboot_applet_t194_aligned.bin
[ 2.3978 ] tegrahost_v2 --chip 0x19 0 --magicid PLDT --appendsigheader nvtboot_applet_t194_aligned.bin zerosbk
[ 2.3988 ] adding BCH for nvtboot_applet_t194_aligned.bin
[ 2.4423 ] tegrasign_v3.py --key None --list nvtboot_applet_t194_aligned_sigheader.bin_list.xml --pubkeyhash pub_key.key
[ 2.4426 ] Assuming zero filled SBK key
[ 2.4446 ] Warning: pub_key.key is not found
[ 2.4305 ] tegrahost_v2 --chip 0x19 0 --updatesigheader nvtboot_applet_t194_aligned_sigheader.bin.encrypt nvtboot_applet_t194_aligned_sigheader.bin.hash zerosbk
[ 2.4364 ] tegrarcm_v2 --download mb2 nvtboot_applet_t194_sigheader.bin.encrypt
[ 2.4374 ] Applet version 01.00.0000
[ 2.4419 ] Sending mb2
[ 2.4420 ] […] 100%
[ 2.4635 ] tegrarcm_v2 --boot recovery
[ 2.4650 ] Applet version 01.00.0000
[ 3.4784 ] tegrarcm_v2 --isapplet
[ 3.4871 ] tegrarcm_v2 --ismb2
[ 3.4884 ] MB2 Applet version 01.00.0000
[ 3.4949 ] tegrarcm_v2 --ismb2
[ 3.4959 ] MB2 Applet version 01.00.0000
[ 3.5025 ] Retrieving board information
[ 3.5047 ] tegrarcm_v2 --oem platformdetails chip chip_info.bin
[ 3.5061 ] MB2 Applet version 01.00.0000
[ 3.5147 ] Saved platform info in chip_info.bin
[ 3.5202 ] Chip minor revision: 2
[ 3.5205 ] Bootrom revision: 0xf
[ 3.5208 ] Ram code: 0x2
[ 3.5211 ] Chip sku: 0xd0
[ 3.5213 ] Chip Sample: non es
[ 3.5223 ] Retrieving EEPROM data
[ 3.5224 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/agx/Linux_for_Tegra/bootloader/cvm.bin
[ 3.5239 ] MB2 Applet version 01.00.0000
[ 3.5328 ] Saved platform info in /home/agx/Linux_for_Tegra/bootloader/cvm.bin
[ 3.5758 ] Rebooting to recovery mode
[ 3.5790 ] tegrarcm_v2 --ismb2
[ 3.5807 ] MB2 Applet version 01.00.0000
[ 3.5857 ] Rebooting to recovery mode
[ 3.5879 ] tegrarcm_v2 --reboot recovery
[ 3.5888 ] MB2 Applet version 01.00.0000
Board ID(2888) FAB(400) sku(0004) revision(K.0)
lz4c installed at /usr/bin/lz4c
Compressing /home/agx/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p2888-a04.dtb …
Copy /home/agx/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb to /home/agx/Linux_for_Tegra/kernel/dtb/tegra194-p2888-0001-p2822-0000.dtb.rec
NVDISP+UEFI in bootloader/nvdisp-init.bin …
copying bctfile(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p2888.cfg)… done.
copying bctfile1(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)… done.
copying uphy_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-uphy-lane-p2888-0000-p2822-0000.cfg)… done.
copying minratchet_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg)… done.
copying device_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-sdmmc.cfg)… done.
copying misc_cold_boot_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)… done.
copying misc_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)… done.
copying pinmux_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p2888-0000-a04-p2822-0000-b01.cfg)… done.
copying gpioint_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p2888-0000-p2822-0000.cfg)… done.
copying pmic_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p2888-0001-a04-E-0-p2822-0000.cfg)… done.
copying pmc_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p2888-0000-a00-p2822-0000-a00.cfg)… done.
copying prod_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p2888-0000-p2822-0000.cfg)… done.
copying scr_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)… done.
copying scr_cold_boot_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini.cfg)… done.
copying bootrom_config(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p2888-0000-p2822-0000.cfg)… done.
copying dev_params(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-sdmmc.cfg)… done.
copying dev_params_b(/home/agx/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct_b-sdmmc.cfg)… done.
Existing bootloader(/home/agx/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/agx/Linux_for_Tegra/bootloader/l4t_initrd.img)… done.
Making Boot image… done.
/home/agx/Linux_for_Tegra/bootloader/tegraflash.py --chip 0x19 --key --minratchet_config tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg --cmd sign boot.img kernel
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.0014 ] Generating signature
[ 0.0044 ] tegrasign_v3.py --key --getmode mode.txt
[ 0.0047 ] Assuming zero filled SBK key : not reading
[ 0.0039 ] Generating ratchet blob
[ 0.0059 ] tegrabct_v2 --chip 0x19 0 --ratchet_blob ratchet_blob.bin --minratchet tegra194-mb1-bct-ratchet-p2888-0000-p2822-0000.cfg
[ 0.0068 ] FwIndex: 1, MinRatchetLevel: 0
[ 0.0305 ] FwIndex: 2, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 3, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 4, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 5, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 6, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 7, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 11, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 12, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 13, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 14, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 15, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 16, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 17, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 18, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 19, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 30, MinRatchetLevel: 0
[ 0.0306 ] FwIndex: 31, MinRatchetLevel: 0
[ 0.0306 ]
[ 0.0308 ] header_magic: 414e4452
[ 0.0641 ] tegrahost_v2 --chip 0x19 --align 1_boot_aligned.img
[ 0.0672 ] tegrahost_v2 --chip 0x19 0 --magicid KRNL --ratchet_blob ratchet_blob.bin --appendsigheader 1_boot_aligned.img zerosbk
[ 0.0680 ] adding BCH for 1_boot_aligned.img
[ 1.2187 ] tegrasign_v3.py --key --list 1_boot_aligned_sigheader.img_list.xml --pubkeyhash pub_key.key
[ 1.2191 ] Assuming zero filled SBK key : not reading
[ 1.3135 ] Warning: pub_key.key is not found
[ 1.3153 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_boot_aligned_sigheader.img.encrypt 1_boot_aligned_sigheader.img.hash zerosbk
[ 2.5878 ] Signed file: /home/agx/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
l4t_sign_image.sh: Generate header for boot_sigheader.img.encrypt
l4t_sign_image.sh: chip 0x19: add 0x281c000 to offset 0x8 in sig file
l4t_sign_image.sh: Generate 16-byte-size-aligned base file for boot_sigheader.img.encrypt
l4t_sign_image.sh: the signed file is /home/agx/Linux_for_Tegra/bootloader/temp_user_dir/boot_sigheader.img.encrypt
Making recovery ramdisk for recovery image…
Re-generating recovery ramdisk for recovery image…
/home/agx/Linux_for_Tegra/bootloader/ramdisk_tmp /home/agx/Linux_for_Tegra/bootloader /home/agx/Linux_for_Tegra
36144 blocks

gzip: /home/agx/Linux_for_Tegra/kernel/Image: not in gzip format
/home/agx/Linux_for_Tegra/tools/ota_tools/version_upgrade/ota_make_recovery_img_dtb.sh: line 177: strings: command not found
ERROR: failed to get kernel version from /home/agx/Linux_for_Tegra/kernel/Image

Could you try to flash your board with sdkmanager? It will install missing tools on your host machine.

Currently this issue is just “strings: command not found”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.