What’s the command to flash only kernel image(Image) ?
I tried to the command “sudo ./flash.sh -r -K kernel/Image jetson-tx2 mmcblk0p1”, But it will flash the entire image.
I also tried the command “sudo ./flash -r -k LNX jetson-tx2 mmcblk0p1”, still get failed. log is as following:
###############################################################################
L4T BSP Information:
R28 (release), REVISION: 2.1, GCID: 11272647, BOARD: t186ref, EABI: aarch64,
DATE: Thu May 17 07:29:06 UTC 2018
###############################################################################
Target Board Information:
Name: jetson-tx2, Board Family: t186ref, SoC: Tegra 186,
OpMode: production, Boot Authentication: ,
###############################################################################
./tegraflash.py --chip 0x18 --applet “/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin” --cmd “dump eeprom boardinfo cvm.bin” --skipuid
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.0015 ] Generating RCM messages
[ 0.0020 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin 0 0
[ 0.0026 ] RCM 0 is saved as rcm_0.rcm
[ 0.0030 ] RCM 1 is saved as rcm_1.rcm
[ 0.0030 ] List of rcm files are saved in rcm_list.xml
[ 0.0030 ]
[ 0.0030 ] Signing RCM messages
[ 0.0035 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0041 ] Assuming zero filled SBK key
[ 0.0063 ]
[ 0.0063 ] Copying signature to RCM mesages
[ 0.0069 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0076 ]
[ 0.0076 ] Boot Rom communication
[ 0.0081 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml --skipuid
[ 0.0087 ] RCM version 0X180001
[ 0.0096 ] Boot Rom communication completed
[ 1.0168 ]
[ 1.0196 ] tegrarcm_v2 --isapplet
[ 1.0221 ] Applet version 01.00.0000
[ 1.0382 ]
[ 1.0411 ] Retrieving EEPROM data
[ 1.0413 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/cvm.bin
[ 1.0438 ] Applet version 01.00.0000
[ 1.0787 ] Saved platform info in /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/cvm.bin
[ 1.1563 ]
copying bctfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg)… done.
copying misc_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-misc-si-l4t.cfg)… done.
copying pinmux_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg)… done.
copying pmic_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg)… done.
copying pmc_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg)… done.
copying prod_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg)… done.
copying scr_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/minimal_scr.cfg)… done.
copying scr_cold_boot_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/mobile_scr.cfg)… done.
copying bootrom_config(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg)… done.
copying dev_params(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/BCT/emmc.cfg)… done.
Existing bootloader(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/nvtboot_cpu.bin) reused.
populating kernel to rootfs… done.
populating initrd to rootfs… done.
populating extlinux.conf.emmc to rootfs… done.
populating /home/martin/shining3D/64_TX2/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb to rootfs… done.
done.
Making Boot image… done.
Existing sosfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/mb1_recovery_prod.bin) reused.
copying tegraboot(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/nvtboot.bin)… done.
Existing mb2blfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/nvtboot_recovery.bin) reused.
Existing mtspreboot(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/preboot_d15_prod_cr.bin) reused.
Existing mts(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/mce_mts_d15_prod_cr.bin) reused.
Existing mb1file(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/mb1_prod.bin) reused.
Existing bpffile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/bpmp.bin) reused.
copying bpfdtbfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb)… done.
Existing scefile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/camera-rtcpu-sce.bin) reused.
Existing spefile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/spe.bin) reused.
copying wb0boot(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/warmboot.bin)… done.
Existing tosfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/tos.img) reused.
Existing eksfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/eks.img) reused.
copying dtbfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)… done.
Reusing existing system.img…
done.
Existing tbcfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/cboot.bin) reused.
copying tbcdtbfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/kernel/dtb/tegra186-quill-p3310-1000-c03-00-base.dtb)… done.
copying cfgfile(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t186.xml) to flash.xml… done.
Existing flasher(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu.bin) reused.
Existing flashapp(/home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/tegraflash.py) reused.
*** Updating [LNX] with boot.img ***
./tegraflash.py --bl nvtboot_recovery_cpu.bin --chip 0x18 --applet mb1_recovery_prod.bin --sdram_config P3310_A00_8GB_Samsung_8GB_lpddr4_204Mhz_A02_l4t.cfg --misc_config tegra186-mb1-bct-misc-si-l4t.cfg --pinmux_config tegra186-mb1-bct-pinmux-quill-p3310-1000-c03.cfg --pmic_config tegra186-mb1-bct-pmic-quill-p3310-1000-c04.cfg --pmc_config tegra186-mb1-bct-pad-quill-p3310-1000-c03.cfg --prod_config tegra186-mb1-bct-prod-quill-p3310-1000-c03.cfg --scr_config minimal_scr.cfg --scr_cold_boot_config mobile_scr.cfg --br_cmd_config tegra186-mb1-bct-bootrom-quill-p3310-1000-c03.cfg --dev_params emmc.cfg --cfg flash.xml --bins “mb2_bootloader nvtboot_recovery.bin; mts_preboot preboot_d15_prod_cr.bin; mts_bootpack mce_mts_d15_prod_cr.bin; bpmp_fw bpmp.bin; bpmp_fw_dtb tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb; tlk tos.img; eks eks.img; bootloader_dtb tegra186-quill-p3310-1000-c03-00-base.dtb” --cmd “write DTB tegra186-quill-p3310-1000-c03-00-base.dtb; write LNX boot.img; reboot”
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.0090 ] Generating RCM messages
[ 0.0099 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 --download rcm mb1_recovery_prod.bin 0 0
[ 0.0107 ] RCM 0 is saved as rcm_0.rcm
[ 0.0109 ] RCM 1 is saved as rcm_1.rcm
[ 0.0109 ] List of rcm files are saved in rcm_list.xml
[ 0.0109 ]
[ 0.0109 ] Signing RCM messages
[ 0.0116 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[ 0.0124 ] Assuming zero filled SBK key
[ 0.0154 ]
[ 0.0154 ] Copying signature to RCM mesages
[ 0.0161 ] tegrarcm_v2 --chip 0x18 --updatesig rcm_list_signed.xml
[ 0.0170 ]
[ 0.0170 ] Boot Rom communication
[ 0.0177 ] tegrarcm_v2 --chip 0x18 --rcm rcm_list_signed.xml
[ 0.0183 ] BootRom is not running
[ 1.0320 ]
[ 1.0340 ] tegrarcm_v2 --isapplet
[ 1.0357 ] Applet version 01.00.0000
[ 1.0545 ]
[ 1.0566 ] tegrasign_v2 --key None --getmode mode.txt
[ 1.0583 ] Assuming zero filled SBK key
[ 1.0585 ]
[ 1.0586 ] Parsing partition layout
[ 1.0606 ] tegraparser_v2 --pt flash.xml.tmp
[ 1.0619 ]
[ 1.0619 ] Creating list of images to be signed
[ 1.0625 ] tegrahost_v2 --chip 0x18 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[ 1.0872 ]
[ 1.0872 ] Generating signatures
[ 1.0897 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[ 1.0920 ] Assuming zero filled SBK key
[ 1.2967 ]
[ 1.2967 ] Reading BCT from device for further operations
[ 1.2967 ] Generating blob
[ 1.2973 ] tegrahost_v2 --align blob_nvtboot_recovery_cpu.bin
[ 1.2979 ]
[ 1.2984 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[ 1.2992 ]
[ 1.3000 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml
[ 1.3005 ] Assuming zero filled SBK key
[ 1.3041 ]
[ 1.3049 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[ 1.3057 ]
[ 1.3064 ] tegrahost_v2 --align blob_nvtboot_recovery.bin
[ 1.3069 ]
[ 1.3075 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[ 1.3082 ]
[ 1.3090 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml
[ 1.3095 ] Assuming zero filled SBK key
[ 1.3111 ]
[ 1.3119 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[ 1.3126 ]
[ 1.3133 ] tegrahost_v2 --align blob_preboot_d15_prod_cr.bin
[ 1.3139 ]
[ 1.3144 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[ 1.3151 ]
[ 1.3158 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml
[ 1.3163 ] Assuming zero filled SBK key
[ 1.3177 ]
[ 1.3184 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[ 1.3191 ]
[ 1.3198 ] tegrahost_v2 --align blob_mce_mts_d15_prod_cr.bin
[ 1.3204 ]
[ 1.3208 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[ 1.3233 ]
[ 1.3241 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml
[ 1.3246 ] Assuming zero filled SBK key
[ 1.3606 ]
[ 1.3613 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[ 1.3633 ]
[ 1.3640 ] tegrahost_v2 --align blob_bpmp.bin
[ 1.3646 ]
[ 1.3651 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[ 1.3662 ]
[ 1.3668 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml
[ 1.3672 ] Assuming zero filled SBK key
[ 1.3767 ]
[ 1.3773 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[ 1.3783 ]
[ 1.3789 ] tegrahost_v2 --align blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb
[ 1.3794 ]
[ 1.3799 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2.dtb zerosbk
[ 1.3809 ]
[ 1.3815 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb_list.xml
[ 1.3820 ] Assuming zero filled SBK key
[ 1.3903 ]
[ 1.3910 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.hash zerosbk
[ 1.3919 ]
[ 1.3924 ] tegrahost_v2 --align blob_tos.img
[ 1.3929 ]
[ 1.3935 ] tegrahost_v2 --appendsigheader blob_tos.img zerosbk
[ 1.3940 ]
[ 1.3947 ] tegrasign_v2 --key None --list blob_tos_sigheader.img_list.xml
[ 1.3951 ] Assuming zero filled SBK key
[ 1.3964 ]
[ 1.3971 ] tegrahost_v2 --updatesigheader blob_tos_sigheader.img.encrypt blob_tos_sigheader.img.hash zerosbk
[ 1.3977 ]
[ 1.3983 ] tegrahost_v2 --align blob_eks.img
[ 1.3988 ]
[ 1.3993 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[ 1.3998 ]
[ 1.4004 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml
[ 1.4009 ] Assuming zero filled SBK key
[ 1.4010 ]
[ 1.4016 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[ 1.4021 ]
[ 1.4027 ] tegrahost_v2 --align blob_tegra186-quill-p3310-1000-c03-00-base.dtb
[ 1.4032 ]
[ 1.4038 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3310-1000-c03-00-base.dtb zerosbk
[ 1.4045 ]
[ 1.4051 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb_list.xml
[ 1.4056 ] Assuming zero filled SBK key
[ 1.4097 ]
[ 1.4104 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.hash zerosbk
[ 1.4111 ]
[ 1.4118 ] tegrahost_v2 --generateblob blob.xml blob.bin
[ 1.4122 ] number of images in blob are 9
[ 1.4124 ] blobsize is 3694296
[ 1.4125 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 190048
[ 1.4136 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 79600
[ 1.4138 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 63024
[ 1.4140 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2076832
[ 1.4145 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 529440
[ 1.4148 ] Added binary blob_tegra186-a02-bpmp-quill-p3310-1000-c04-00-te770d-ucm2_sigheader.dtb.encrypt of size 466160
[ 1.4151 ] Added binary blob_tos_sigheader.img.encrypt of size 62976
[ 1.4153 ] Added binary blob_eks_sigheader.img.encrypt of size 1488
[ 1.4154 ] Added binary blob_tegra186-quill-p3310-1000-c03-00-base_sigheader.dtb.encrypt of size 224576
[ 1.4161 ]
[ 1.4161 ] Sending bootloader and pre-requisite binaries
[ 1.4167 ] tegrarcm_v2 --download blob blob.bin
[ 1.4172 ] Applet version 01.00.0000
[ 1.4346 ] Sending blob
[ 1.4348 ] [… ] 028%
[ 1.4348 ] [… ] 056%
[ 1.4348 ] [… ] 085%
[ 1.4348 ] […] 100%
[ 2.2714 ]
[ 2.2738 ] tegrarcm_v2 --boot recovery
[ 2.2760 ] Applet version 01.00.0000
[ 2.2957 ]
[ 2.2979 ] tegrarcm_v2 --isapplet
[ 2.9520 ]
[ 2.9546 ] tegradevflash_v2 --iscpubl
[ 2.9568 ] CPU Bootloader is not running on device.
[ 2.9576 ]
[ 4.2228 ] Writing partition
[ 4.2253 ] tegradevflash_v2 --write DTB /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/tegra186-quill-p3310-1000-c03-00-base.dtb
[ 4.2276 ] Bootloader version 01.00.0000
[ 4.2296 ] Writing partition DTB with /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/tegra186-quill-p3310-1000-c03-00-base.dtb
[ 4.2302 ] 000000000683400d: Failed to open partition
[ 4.2380 ]
Error: Return value 13
Command tegradevflash_v2 --write DTB /home/martin/shining3D/64_TX2/Linux_for_Tegra/bootloader/tegra186-quill-p3310-1000-c03-00-base.dtb
Failed to flash/read t186ref.