mdegans / tib

Tegra Image Builder
MIT License
1 stars 1 forks source link

Jetson disk image creator failure: Error: Return value 4 #14

Open mdegans opened 3 years ago

mdegans commented 3 years ago

spew:

/boot permissions fixed
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/run/resolvconf/resolv.conf
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/tmp
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/dev/pts
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/dev
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/proc
Unmounting: /home/ubuntu/Linux_for_Tegra/rootfs/sys
Assembling SD Card Image.
Running in VM: sudo /home/ubuntu/Linux_for_Tegra/tools/jetson-disk-image-creator.sh -o /home/ubuntu/sdcard.img -b jetson-xavier-nx-devkit
********************************************
     Jetson Disk Image Creation Tool     
********************************************
jetson-disk-image-creator.sh - creating signed images
~/Linux_for_Tegra ~
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 4.3
###############################################################################
Board ID(3668) version(000) sku() revision()
creating dummy /home/ubuntu/Linux_for_Tegra/bootloader/badpage.bin
1+0 records in
1+0 records out
4096 bytes (4.1 kB, 4.0 KiB) copied, 4.041e-05 s, 101 MB/s
copying bctfile(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg)... done.
copying bctfile1(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-memcfg-sw-override.cfg)... done.
copying device_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-bct-device-qspi-p3668.cfg)... done.
copying misc_cold_boot_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-l4t.cfg)... done.
copying misc_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-misc-flash.cfg)... done.
copying pinmux_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-pinmux-p3668-a01.cfg)... done.
copying gpioint_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg)... done.
copying pmic_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-pmic-p3668-0001-a00.cfg)... done.
copying pmc_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-padvoltage-p3668-a01.cfg)... done.
copying prod_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra19x-mb1-prod-p3668-0001-a00.cfg)... done.
copying scr_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying scr_cold_boot_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-scr-cbb-mini-p3668.cfg)... done.
copying bootrom_config(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-bct-reset-p3668-0001-a00.cfg)... done.
copying dev_params(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-br-bct-qspi.cfg)... done.
Existing bootloader(/home/ubuntu/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
copying initrd(/home/ubuntu/Linux_for_Tegra/bootloader/l4t_initrd.img)... done.
        populating kernel to rootfs... done.
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.0025 ] Generating signature
[   0.0049 ] tegrasign_v2 --key  --getmode mode.txt
[   0.0060 ] Assuming zero filled SBK key
[   0.0099 ] 
[   0.0101 ] header_magic: c05514
[   0.0121 ] tegrahost_v2 --chip 0x19 --align 1_Image
[   0.0144 ] 
[   0.0156 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_Image zerosbk
[   0.0164 ] adding BCH for 1_Image
[   0.6342 ] 
[   0.6354 ] tegrasign_v2 --key  --list 1_Image_sigheader_list.xml --pubkeyhash pub_key.key
[   0.6362 ] Assuming zero filled SBK key
[   0.6734 ] 
[   0.6937 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_Image_sigheader.encrypt 1_Image_sigheader.hash zerosbk
[   1.0467 ] 
[   1.0706 ] Signed file: /home/ubuntu/Linux_for_Tegra/bootloader/Image_sigheader.encrypt
Generate header for Image_sigheader.encrypt
Generate 16-byte-size-aligned base file for Image_sigheader.encrypt
Remove temporary file
done.
        populating initrd to rootfs... done.
        populating /home/ubuntu/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb to rootfs... done.
Making Boot image... done.
Existing sosfile(/home/ubuntu/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing tegraboot(/home/ubuntu/Linux_for_Tegra/bootloader/nvtboot_t194.bin) reused.
Existing cpu_bootloader(/home/ubuntu/Linux_for_Tegra/bootloader/nvtboot_cpu_t194.bin) reused.
Existing mb2blfile(/home/ubuntu/Linux_for_Tegra/bootloader/nvtboot_recovery_t194.bin) reused.
Existing mtspreboot(/home/ubuntu/Linux_for_Tegra/bootloader/preboot_c10_prod_cr.bin) reused.
Existing mcepreboot(/home/ubuntu/Linux_for_Tegra/bootloader/mce_c10_prod_cr.bin) reused.
Existing mtsproper(/home/ubuntu/Linux_for_Tegra/bootloader/mts_c10_prod_cr.bin) reused.
Existing mb1file(/home/ubuntu/Linux_for_Tegra/bootloader/mb1_t194_prod.bin) reused.
Existing bpffile(/home/ubuntu/Linux_for_Tegra/bootloader/bpmp_t194.bin) reused.
copying bpfdtbfile(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/tegra194-a02-bpmp-p3668-a00.dtb)... done.
Existing scefile(/home/ubuntu/Linux_for_Tegra/bootloader/camera-rtcpu-sce.img) reused.
Existing camerafw(/home/ubuntu/Linux_for_Tegra/bootloader/camera-rtcpu-rce.img) reused.
Existing spefile(/home/ubuntu/Linux_for_Tegra/bootloader/spe_t194.bin) reused.
Existing drameccfile(/home/ubuntu/Linux_for_Tegra/bootloader/dram-ecc.bin) reused.
Existing badpagefile(/home/ubuntu/Linux_for_Tegra/bootloader/badpage.bin) reused.
Existing wb0boot(/home/ubuntu/Linux_for_Tegra/bootloader/warmboot_t194_prod.bin) reused.
Existing tosfile(/home/ubuntu/Linux_for_Tegra/bootloader/tos-trusty_t194.img) reused.
Existing eksfile(/home/ubuntu/Linux_for_Tegra/bootloader/eks.img) reused.
copying soft_fuses(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/BCT/tegra194-mb1-soft-fuses-l4t.cfg)... done.
copying dtbfile(/home/ubuntu/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
Copying nv_boot_control.conf to rootfs
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.0021 ] Generating signature
[   0.0030 ] tegrasign_v2 --key  --getmode mode.txt
[   0.0039 ] Assuming zero filled SBK key
[   0.0043 ] 
[   0.0044 ] header_magic: d00dfeed
[   0.0057 ] tegrahost_v2 --chip 0x19 --align 1_tegra194-p3668-all-p3509-0000.dtb
[   0.0067 ] 
[   0.0078 ] tegrahost_v2 --chip 0x19 0 --magicid DATA --appendsigheader 1_tegra194-p3668-all-p3509-0000.dtb zerosbk
[   0.0085 ] adding BCH for 1_tegra194-p3668-all-p3509-0000.dtb
[   0.0131 ] 
[   0.0144 ] tegrasign_v2 --key  --list 1_tegra194-p3668-all-p3509-0000_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[   0.0151 ] Assuming zero filled SBK key
[   0.0156 ] 
[   0.0172 ] tegrahost_v2 --chip 0x19 0 --updatesigheader 1_tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt 1_tegra194-p3668-all-p3509-0000_sigheader.dtb.hash zerosbk
[   0.0211 ] 
[   0.0219 ] Signed file: /home/ubuntu/Linux_for_Tegra/bootloader/tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
Generate header for tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
Generate 16-byte-size-aligned base file for tegra194-p3668-all-p3509-0000_sigheader.dtb.encrypt
Remove temporary file
done.
Making system.img... 
        populating rootfs from /home/ubuntu/Linux_for_Tegra/rootfs ... done.
        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/ubuntu/Linux_for_Tegra/bootloader/cboot_t194.bin) reused.
copying tbcdtbfile(/home/ubuntu/Linux_for_Tegra/kernel/dtb/tegra194-p3668-all-p3509-0000.dtb)... done.
copying cfgfile(/home/ubuntu/Linux_for_Tegra/bootloader/t186ref/cfg/flash_l4t_t194_spi_sd_p3668.xml) to flash.xml... done.
Existing flasher(/home/ubuntu/Linux_for_Tegra/bootloader/nvtboot_recovery_cpu_t194.bin) reused.
Existing flashapp(/home/ubuntu/Linux_for_Tegra/bootloader/tegraflash.py) reused.
./tegraflash.py --bl nvtboot_recovery_cpu_t194.bin --sdram_config tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg,tegra194-memcfg-sw-override.cfg  --odmdata 0xB8190000 --applet mb1_t194_prod.bin --cmd "sign" --soft_fuses tegra194-mb1-soft-fuses-l4t.cfg  --cfg flash.xml --chip 0x19 --device_config tegra19x-mb1-bct-device-qspi-p3668.cfg --misc_cold_boot_config tegra194-mb1-bct-misc-l4t.cfg --misc_config tegra194-mb1-bct-misc-flash.cfg --pinmux_config tegra19x-mb1-pinmux-p3668-a01.cfg --gpioint_config tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --pmic_config tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --pmc_config tegra19x-mb1-padvoltage-p3668-a01.cfg --prod_config tegra19x-mb1-prod-p3668-0001-a00.cfg --scr_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --scr_cold_boot_config tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --br_cmd_config tegra194-mb1-bct-reset-p3668-0001-a00.cfg --dev_params tegra194-br-bct-qspi.cfg  --bin "mb2_bootloader nvtboot_recovery_t194.bin; mts_preboot preboot_c10_prod_cr.bin; mts_mce mce_c10_prod_cr.bin; mts_proper mts_c10_prod_cr.bin; bpmp_fw bpmp_t194.bin; bpmp_fw_dtb tegra194-a02-bpmp-p3668-a00.dtb; spe_fw spe_t194.bin; tlk tos-trusty_t194.img; eks eks.img; bootloader_dtb tegra194-p3668-all-p3509-0000.dtb" --skipuid  
saving flash command in /home/ubuntu/Linux_for_Tegra/bootloader/flashcmd.txt
saving Windows flash command to /home/ubuntu/Linux_for_Tegra/bootloader/flash_win.bat
*** Sign and generate flashing ready partition images... *** 
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.0377 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0391 ] Assuming zero filled SBK key
[   0.0412 ] 
[   0.0414 ] Generating RCM messages
[   0.0434 ] tegrahost_v2 --chip 0x19 0 --magicid MB1B --appendsigheader mb1_t194_prod.bin zerosbk
[   0.0444 ] Header already present for mb1_t194_prod.bin
[   0.0491 ] 
[   0.0508 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0517 ] Assuming zero filled SBK key
[   0.0622 ] 
[   0.0632 ] tegrasign_v2 --key None --file mb1_t194_prod_sigheader.bin --offset 2960 --length 1136 --pubkeyhash pub_key.key
[   0.0644 ] Assuming zero filled SBK key
[   0.0647 ] 
[   0.0658 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_t194_prod_sigheader.bin mb1_t194_prod_sigheader.hash zerosbk
[   0.0778 ] 
[   0.0807 ] tegrabct_v2 --chip 0x19 0 --sfuse tegra194-mb1-soft-fuses-l4t.cfg sfuse.bin
[   0.0844 ] 
[   0.0858 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x19 0 --sfuses sfuse.bin --download rcm mb1_t194_prod_sigheader.bin 0 0
[   0.0866 ] RCM 0 is saved as rcm_0.rcm
[   0.0898 ] RCM 1 is saved as rcm_1.rcm
[   0.0898 ] RCM 2 is saved as rcm_2.rcm
[   0.0898 ] List of rcm files are saved in rcm_list.xml
[   0.0898 ] 
[   0.0898 ] Signing RCM messages
[   0.0908 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   0.0917 ] Assuming zero filled SBK key
[   0.0923 ] 
[   0.0924 ] Copying signature to RCM mesages
[   0.0936 ] tegrarcm_v2 --chip 0x19 0 --updatesig rcm_list_signed.xml
[   0.0953 ] 
[   0.0954 ] Parsing partition layout
[   0.0969 ] tegraparser_v2 --pt flash.xml.tmp
[   0.0993 ] 
[   0.0994 ] Creating list of images to be signed
[   0.1003 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   0.1012 ] MB1: Nvheader already present is mb1_t194_prod.bin
[   0.1017 ] Header already present for mb1_t194_prod_sigheader.bin
[   0.1023 ] MB1: Nvheader already present is mb1_t194_prod.bin
[   0.1061 ] Header already present for mb1_t194_prod_sigheader.bin
[   0.1068 ] adding BCH for spe_t194.bin
[   0.1102 ] adding BCH for spe_t194.bin
[   0.1121 ] adding BCH for nvtboot_t194.bin
[   0.1145 ] adding BCH for nvtboot_t194.bin
[   0.1176 ] Header already present for preboot_c10_prod_cr.bin
[   0.1211 ] Header already present for preboot_c10_prod_cr.bin
[   0.1216 ] Header already present for mce_c10_prod_cr.bin
[   0.1225 ] Header already present for mce_c10_prod_cr.bin
[   0.1240 ] adding BCH for mts_c10_prod_cr.bin
[   0.1300 ] adding BCH for mts_c10_prod_cr.bin
[   0.1957 ] Header already present for warmboot_t194_prod.bin
[   0.2582 ] Header already present for warmboot_t194_prod.bin
[   0.2591 ] adding BCH for cboot_t194.bin
[   0.2602 ] adding BCH for cboot_t194.bin
[   0.2688 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   0.2779 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   0.2819 ] adding BCH for tos-trusty_t194.img
[   0.2866 ] adding BCH for tos-trusty_t194.img
[   0.2934 ] adding BCH for eks.img
[   0.3008 ] adding BCH for eks.img
[   0.3011 ] adding BCH for adsp-fw.bin
[   0.3018 ] adding BCH for adsp-fw.bin
[   0.3038 ] adding BCH for camera-rtcpu-rce.img
[   0.3064 ] adding BCH for camera-rtcpu-rce.img
[   0.3117 ] adding BCH for bpmp_t194.bin
[   0.3182 ] adding BCH for bpmp_t194.bin
[   0.3347 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[   0.3526 ] adding BCH for tegra194-a02-bpmp-p3668-a00.dtb
[   0.3559 ] adding BCH for boot.img
[   0.3811 ] adding BCH for boot.img
[   1.1235 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   1.8587 ] adding BCH for tegra194-p3668-all-p3509-0000.dtb
[   1.8702 ] 
[   1.8702 ] Filling MB1 storage info
[   1.8702 ] Generating br-bct
[   1.8712 ] Performing cfg overlay
[   1.8712 ] ['tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg', 'tegra194-memcfg-sw-override.cfg']
[   1.8718 ] sw_memcfg_overlay.pl -c tegra194-mb1-bct-memcfg-p3668-0001-a00.cfg -s tegra194-memcfg-sw-override.cfg -o /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg
[   1.9083 ] 
[   1.9085 ] Updating dev and MSS params in BR BCT
[   1.9085 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   1.9257 ] 
[   1.9257 ] Updating bl info
[   1.9268 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin
[   1.9287 ] 
[   1.9287 ] Generating signatures
[   1.9298 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[   1.9309 ] Assuming zero filled SBK key
[   2.0428 ] 
[   2.0428 ] Generating br-bct
[   2.0439 ] Performing cfg overlay
[   2.0439 ] ['/home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg']
[   2.0439 ] Updating dev and MSS params in BR BCT
[   2.0440 ] tegrabct_v2 --dev_param tegra194-br-bct-qspi.cfg --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --brbct br_bct.cfg --sfuse tegra194-mb1-soft-fuses-l4t.cfg --chip 0x19 0
[   2.0618 ] 
[   2.0618 ] Updating bl info
[   2.0631 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   2.0666 ] 
[   2.0667 ] Updating smd info
[   2.0676 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 --updatesmdinfo flash.xml.bin
[   2.0689 ] 
[   2.0690 ] Updating Odmdata
[   2.0702 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatefields Odmdata =0xB8190000
[   2.0714 ] 
[   2.0714 ] Get Signed section of bct
[   2.0723 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --listbct bct_list.xml
[   2.0733 ] 
[   2.0743 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key --getmontgomeryvalues montgomery.bin
[   2.0754 ] Assuming zero filled SBK key
[   2.0757 ] 
[   2.0758 ] Updating BCT with signature
[   2.0769 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x19 0 --updatesig bct_list_signed.xml
[   2.0786 ] 
[   2.0786 ] Generating coldboot mb1-bct
[   2.0810 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_cold_boot_bct.cfg --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --misc tegra194-mb1-bct-misc-l4t.cfg --scr tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --pinmux tegra19x-mb1-pinmux-p3668-a01.cfg --pmc tegra19x-mb1-padvoltage-p3668-a01.cfg --pmic tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --brcommand tegra194-mb1-bct-reset-p3668-0001-a00.cfg --prod tegra19x-mb1-prod-p3668-0001-a00.cfg --gpioint tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --device tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.0823 ] MB1-BCT version: 0x1

[   2.0827 ] Parsing config file :tegra19x-mb1-pinmux-p3668-a01.cfg 
[   2.0837 ] Added Platform Config 0 data with size :- 2496

[   2.0855 ] Parsing config file :tegra194-mb1-bct-scr-cbb-mini-p3668.cfg 
[   2.0861 ] Added Platform Config 1 data with size :- 19640

[   2.1017 ] Parsing config file :tegra19x-mb1-padvoltage-p3668-a01.cfg 
[   2.1024 ] Added Platform Config 2 data with size :- 24

[   2.1030 ] Parsing config file :tegra194-mb1-bct-pmic-p3668-0001-a00.cfg 
[   2.1037 ] Added Platform Config 4 data with size :- 348

[   2.1042 ] Parsing config file :tegra194-mb1-bct-reset-p3668-0001-a00.cfg 
[   2.1050 ] Added Platform Config 3 data with size :- 92
[   2.1050 ] 
[   2.1050 ] Parsing config file :tegra19x-mb1-prod-p3668-0001-a00.cfg 
[   2.1050 ] Added Platform Config 5 data with size :- 128
[   2.1050 ] 
[   2.1050 ] Parsing config file :tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg 
[   2.1050 ] Added Platform Config 7 data with size :- 392
[   2.1050 ] 
[   2.1050 ] Parsing config file :tegra19x-mb1-bct-device-qspi-p3668.cfg 
[   2.1050 ] Added Platform Config 9 data with size :- 40
[   2.1051 ] 
[   2.1051 ] Updating mb1-bct with firmware information
[   2.1060 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   2.1068 ] MB1-BCT version: 0x1
[   2.1072 ] 
[   2.1072 ] Updating mb1-bct with storage information
[   2.1082 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   2.1093 ] MB1-BCT version: 0x1
[   2.1097 ] 
[   2.1108 ] tegrahost_v2 --chip 0x19 --align mb1_cold_boot_bct_MB1.bct
[   2.1120 ] 
[   2.1130 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[   2.1141 ] adding BCH for mb1_cold_boot_bct_MB1.bct
[   2.1150 ] 
[   2.1161 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.1169 ] Assuming zero filled SBK key
[   2.1174 ] 
[   2.1185 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[   2.1201 ] 
[   2.1202 ] Generating recovery mb1-bct
[   2.1211 ] tegrabct_v2 --chip 0x19 0 --mb1bct mb1_bct.cfg --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --misc tegra194-mb1-bct-misc-flash.cfg --scr tegra194-mb1-bct-scr-cbb-mini-p3668.cfg --pinmux tegra19x-mb1-pinmux-p3668-a01.cfg --pmc tegra19x-mb1-padvoltage-p3668-a01.cfg --pmic tegra194-mb1-bct-pmic-p3668-0001-a00.cfg --brcommand tegra194-mb1-bct-reset-p3668-0001-a00.cfg --prod tegra19x-mb1-prod-p3668-0001-a00.cfg --gpioint tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg --device tegra19x-mb1-bct-device-qspi-p3668.cfg
[   2.1219 ] MB1-BCT version: 0x1

[   2.1224 ] Parsing config file :tegra19x-mb1-pinmux-p3668-a01.cfg 
[   2.1231 ] Added Platform Config 0 data with size :- 2496

[   2.1250 ] Parsing config file :tegra194-mb1-bct-scr-cbb-mini-p3668.cfg 
[   2.1258 ] Added Platform Config 1 data with size :- 19640

[   2.1394 ] Parsing config file :tegra19x-mb1-padvoltage-p3668-a01.cfg 
[   2.1402 ] Added Platform Config 2 data with size :- 24

[   2.1409 ] Parsing config file :tegra194-mb1-bct-pmic-p3668-0001-a00.cfg 
[   2.1419 ] Added Platform Config 4 data with size :- 348

[   2.1435 ] Parsing config file :tegra194-mb1-bct-reset-p3668-0001-a00.cfg 
[   2.1446 ] Added Platform Config 3 data with size :- 92

[   2.1452 ] Parsing config file :tegra19x-mb1-prod-p3668-0001-a00.cfg 
[   2.1456 ] Added Platform Config 5 data with size :- 128

[   2.1464 ] Parsing config file :tegra194-mb1-bct-gpioint-p3668-0001-a00.cfg 
[   2.1471 ] Added Platform Config 7 data with size :- 392

[   2.1483 ] Parsing config file :tegra19x-mb1-bct-device-qspi-p3668.cfg 
[   2.1490 ] Added Platform Config 9 data with size :- 40
[   2.1497 ] 
[   2.1497 ] Updating mb1-bct with firmware information
[   2.1507 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[   2.1514 ] MB1-BCT version: 0x1
[   2.1518 ] 
[   2.1518 ] Updating mb1-bct with storage information
[   2.1526 ] tegrabct_v2 --chip 0x19 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   2.1533 ] MB1-BCT version: 0x1
[   2.1537 ] 
[   2.1546 ] tegrahost_v2 --chip 0x19 --align mb1_bct_MB1.bct
[   2.1554 ] 
[   2.1562 ] tegrahost_v2 --chip 0x19 0 --magicid MBCT --appendsigheader mb1_bct_MB1.bct zerosbk
[   2.1571 ] adding BCH for mb1_bct_MB1.bct
[   2.1582 ] 
[   2.1594 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.1605 ] Assuming zero filled SBK key
[   2.1608 ] 
[   2.1622 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[   2.1635 ] 
[   2.1636 ] Generating coldboot mem-bct
[   2.1645 ] tegrabct_v2 --chip 0x19 0 --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --membct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_1.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_2.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_3.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_4.bct
[   2.1660 ] Packing sdram param for instance[0]
[   2.1856 ] Packing sdram param for instance[1]
[   2.1858 ] Packing sdram param for instance[2]
[   2.1858 ] Packing sdram param for instance[3]
[   2.1858 ] Packing sdram param for instance[4]
[   2.1858 ] Packing sdram param for instance[5]
[   2.1858 ] Packing sdram param for instance[6]
[   2.1858 ] Packing sdram param for instance[7]
[   2.1858 ] Packing sdram param for instance[8]
[   2.1858 ] Packing sdram param for instance[9]
[   2.1858 ] Packing sdram param for instance[10]
[   2.1858 ] Packing sdram param for instance[11]
[   2.1858 ] Packing sdram param for instance[12]
[   2.1858 ] Packing sdram param for instance[13]
[   2.1858 ] Packing sdram param for instance[14]
[   2.1858 ] Packing sdram param for instance[15]
[   2.1858 ] 
[   2.1859 ] Getting sector size from pt
[   2.1868 ] tegraparser_v2 --getsectorsize flash.xml.bin sector_info.bin
[   2.1877 ] 
[   2.1878 ] BlockSize read from layout is 200

[   2.1888 ] tegrahost_v2 --chip 0x19 0 --blocksize 512 --magicid MEMB --addsigheader_multi /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_1.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_2.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_3.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_4.bct
[   2.1896 ] adding BCH for /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_1.bct
[   2.1917 ] 
[   2.1926 ] tegrahost_v2 --chip 0x19 --align mem_coldboot.bct
[   2.1934 ] 
[   2.1943 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_coldboot.bct zerosbk
[   2.1952 ] Header already present for mem_coldboot.bct
[   2.1954 ] 
[   2.1964 ] tegrasign_v2 --key None --list mem_coldboot_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.1972 ] Assuming zero filled SBK key
[   2.1979 ] 
[   2.1992 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_coldboot_sigheader.bct.encrypt mem_coldboot_sigheader.bct.hash zerosbk
[   2.2004 ] 
[   2.2004 ] Generating recovery mem-bct
[   2.2013 ] tegrabct_v2 --chip 0x19 0 --sdram /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1.cfg --membct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_1.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_2.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_3.bct /home/ubuntu/Linux_for_Tegra/bootloader/28575/tmp5wAbwx1_4.bct
[   2.2022 ] Packing sdram param for instance[0]
[   2.2163 ] Packing sdram param for instance[1]
[   2.2169 ] Packing sdram param for instance[2]
[   2.2175 ] Packing sdram param for instance[3]
[   2.2178 ] Packing sdram param for instance[4]
[   2.2182 ] Packing sdram param for instance[5]
[   2.2186 ] Packing sdram param for instance[6]
[   2.2190 ] Packing sdram param for instance[7]
[   2.2194 ] Packing sdram param for instance[8]
[   2.2197 ] Packing sdram param for instance[9]
[   2.2200 ] Packing sdram param for instance[10]
[   2.2203 ] Packing sdram param for instance[11]
[   2.2203 ] Packing sdram param for instance[12]
[   2.2203 ] Packing sdram param for instance[13]
[   2.2203 ] Packing sdram param for instance[14]
[   2.2203 ] Packing sdram param for instance[15]
[   2.2203 ] 
[   2.2214 ] tegrahost_v2 --chip 0x19 --align mem_rcm.bct
[   2.2223 ] 
[   2.2232 ] tegrahost_v2 --chip 0x19 0 --magicid MEMB --appendsigheader mem_rcm.bct zerosbk
[   2.2239 ] adding BCH for mem_rcm.bct
[   2.2254 ] 
[   2.2266 ] tegrasign_v2 --key None --list mem_rcm_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   2.2275 ] Assuming zero filled SBK key
[   2.2277 ] 
[   2.2291 ] tegrahost_v2 --chip 0x19 0 --updatesigheader mem_rcm_sigheader.bct.encrypt mem_rcm_sigheader.bct.hash zerosbk
[   2.2307 ] 
[   2.2308 ] Copying signatures
[   2.2316 ] tegrahost_v2 --chip 0x19 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   3.1729 ] 
[   3.1740 ] tegraparser_v2 --generategpt --pt flash.xml.bin
[   3.1750 ] End sector for RECROOTFS, expected at: 33554398, actual: 33732391
[   3.1753 ] 
Error: Return value 4
Command tegraparser_v2 --generategpt --pt flash.xml.bin
~
ERROR: /home/ubuntu/Linux_for_Tegra/bootloader/signed/flash.xml.tmp not found

Looks like the new image creation script has a bug with large rootfs'es. Needs more investigation.

mdegans commented 3 years ago

We can sidestep this if we slim down the image. Attack surface should be minimized. Unity should be purged in favor of a boot directly to the app. eglfs is proving a problem for Qt dev, so lightdm can launch the app directly.