SOL-Space-Operating-Linux / meta-sol

Yocto layer for Space Operating Linux
MIT License
6 stars 1 forks source link

Flashing core-image-sol-dev-jetson-tx2i-sol-redundant-live fails when writing /config and /data partitions #21

Closed pdlloyd closed 1 year ago

pdlloyd commented 2 years ago

I get the following error after running sudo ./doflash.sh:

[ 427.3432 ] File to be written cannot be of zero size, pFileName=dummy.ext4.img
[ 427.4084 ] 
Error: Return value 10
Command tegradevflash_v2 --pt flash.xml.bin --create

There does not appear to be an actual file called dummy.ext4.img in the build directory. Is this related to #6?

Here is the full output from doflash.sh for reference:

$ sudo ./doflash.sh 

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.0008 ] Generating RCM messages
[   0.0017 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[   0.0023 ] RCM 0 is saved as rcm_0.rcm
[   0.0026 ] RCM 1 is saved as rcm_1.rcm
[   0.0026 ] List of rcm files are saved in rcm_list.xml
[   0.0026 ] 
[   0.0026 ] Signing RCM messages
[   0.0032 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0038 ] Assuming zero filled SBK key
[   0.0056 ] 
[   0.0056 ] Copying signature to RCM mesages
[   0.0062 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0068 ] 
[   0.0069 ] Boot Rom communication
[   0.0075 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[   0.0080 ] BR_CID: 0x81801001643d45850000000013038480
[   0.0345 ] RCM version 0X180001
[   0.0792 ] Boot Rom communication completed
[   1.0880 ] 
[   2.0927 ] tegrarcm_v2 --isapplet
[   2.0952 ] Applet version 01.00.0000
[   2.1745 ] 
[   2.1770 ] Retrieving EEPROM data
[   2.1772 ] tegrarcm_v2 --oem platformdetails eeprom cvm /home/patrick/Downloads/core-image-sol-dev-jetson-tx2i-sol-redundant-live-20220923123752.tegraflash/cvm.bin.Nyjpd
[   2.1791 ] Applet version 01.00.0000
[   2.2746 ] Saved platform info in /home/patrick/Downloads/core-image-sol-dev-jetson-tx2i-sol-redundant-live-20220923123752.tegraflash/cvm.bin.Nyjpd
[   2.3494 ] 
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.0006 ] tegrasign_v2 --key None --getmode mode.txt
[   0.0013 ] Assuming zero filled SBK key
[   0.0013 ] 
[   0.0013 ] Generating RCM messages
[   0.0018 ] tegrarcm_v2 --listrcm rcm_list.xml --chip 0x18 0 --download rcm mb1_recovery_prod.bin 0 0
[   0.0024 ] RCM 0 is saved as rcm_0.rcm
[   0.0025 ] RCM 1 is saved as rcm_1.rcm
[   0.0025 ] List of rcm files are saved in rcm_list.xml
[   0.0025 ] 
[   0.0025 ] Signing RCM messages
[   0.0030 ] tegrasign_v2 --key None --list rcm_list.xml --pubkeyhash pub_key.key
[   0.0035 ] Assuming zero filled SBK key
[   0.0053 ] 
[   0.0053 ] Copying signature to RCM mesages
[   0.0059 ] tegrarcm_v2 --chip 0x18 0 --updatesig rcm_list_signed.xml
[   0.0066 ] 
[   0.0066 ] Parsing partition layout
[   0.0071 ] tegraparser_v2 --pt flash.xml.tmp
[   0.0080 ] 
[   0.0080 ] Creating list of images to be signed
[   0.0086 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --list images_list.xml zerosbk
[   0.0203 ] 
[   0.0203 ] Generating signatures
[   0.0210 ] tegrasign_v2 --key None --list images_list.xml --pubkeyhash pub_key.key
[   0.0217 ] Assuming zero filled SBK key
[   0.1704 ] 
[   0.1704 ] Generating br-bct
[   0.1711 ] Updating dev and MSS params in BR BCT
[   0.1712 ] tegrabct_v2 --dev_param emmc.cfg --sdram jetson-tx2i-sol-redundant-live.cfg --brbct br_bct.cfg --chip 0x18 0
[   0.1775 ] 
[   0.1776 ] Updating bl info
[   0.1783 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updateblinfo flash.xml.bin --updatesig images_list_signed.xml
[   0.1794 ] 
[   0.1794 ] Updating smd info
[   0.1800 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 --updatesmdinfo flash.xml.bin
[   0.1809 ] 
[   0.1809 ] Updating Odmdata
[   0.1816 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatefields Odmdata =0x1090000
[   0.1823 ] 
[   0.1823 ] Get Signed section of bct
[   0.1830 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --listbct bct_list.xml
[   0.1836 ] 
[   0.1842 ] tegrasign_v2 --key None --list bct_list.xml --pubkeyhash pub_key.key
[   0.1848 ] Assuming zero filled SBK key
[   0.1848 ] 
[   0.1848 ] Updating BCT with signature
[   0.1855 ] tegrabct_v2 --brbct br_bct_BR.bct --chip 0x18 0 --updatesig bct_list_signed.xml
[   0.1861 ] 
[   0.1861 ] Generating coldboot mb1-bct
[   0.1867 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_cold_boot_bct.cfg --sdram jetson-tx2i-sol-redundant-live.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr mobile_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3489-1000-a00.cfg --pmc tegra186-mb1-bct-pad-quill-p3489-1000-a00.cfg --pmic tegra186-mb1-bct-pmic-quill-p3489-1000-a00.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3489-1000-a00.cfg --prod tegra186-mb1-bct-prod-storm-p3489-1000-a00.cfg
[   0.1873 ] MB1-BCT version: 0xf
[   0.1873 ] Copying Sdram info from 1 to 2 set
[   0.1935 ] Copying Sdram info from 2 to 3 set
[   0.1935 ] Packing sdram param for instance[0]
[   0.1936 ] Packing sdram param for instance[1]
[   0.1937 ] Packing sdram param for instance[2]
[   0.1938 ] Packing sdram param for instance[3]

[   0.1939 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3489-1000-a00.cfg 
[   0.1940 ] Appending platform config data of size :- 2952

[   0.1941 ] Parsing config file :mobile_scr.cfg 
[   0.1942 ] Appending platform config data of size :- 12240

[   0.1950 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3489-1000-a00.cfg 
[   0.1951 ] Appending platform config data of size :- 24
[   0.1951 ] 
[   0.1951 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3489-1000-a00.cfg 
[   0.1951 ] Appending platform config data of size :- 744
[   0.1951 ] 
[   0.1951 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3489-1000-a00.cfg 
[   0.1951 ] Appending platform config data of size :- 64
[   0.1951 ] 
[   0.1951 ] Parsing config file :tegra186-mb1-bct-prod-storm-p3489-1000-a00.cfg 
[   0.1951 ] Appending platform config data of size :- 2132
[   0.1951 ] 
[   0.1951 ] Updating mb1-bct with firmware information
[   0.1957 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatefwinfo flash.xml.bin
[   0.1961 ] MB1-BCT version: 0xf
[   0.1963 ] 
[   0.1963 ] Updating mb1-bct with storage information
[   0.1968 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_cold_boot_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   0.1976 ] MB1-BCT version: 0xf
[   0.1979 ] 
[   0.1985 ] tegrahost_v2 --chip 0x18 --align mb1_cold_boot_bct_MB1.bct
[   0.1990 ] 
[   0.1994 ] tegrahost_v2 --appendsigheader mb1_cold_boot_bct_MB1.bct zerosbk
[   0.2000 ] 
[   0.2006 ] tegrasign_v2 --key None --list mb1_cold_boot_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   0.2013 ] Assuming zero filled SBK key
[   0.2022 ] 
[   0.2029 ] tegrahost_v2 --updatesigheader mb1_cold_boot_bct_MB1_sigheader.bct.encrypt mb1_cold_boot_bct_MB1_sigheader.bct.hash zerosbk
[   0.2034 ] 
[   0.2034 ] Generating recovery mb1-bct
[   0.2038 ] tegrabct_v2 --chip 0x18 0 --mb1bct mb1_bct.cfg --sdram jetson-tx2i-sol-redundant-live.cfg --misc tegra186-mb1-bct-misc-si-l4t.cfg --scr minimal_scr.cfg --pinmux tegra186-mb1-bct-pinmux-quill-p3489-1000-a00.cfg --pmc tegra186-mb1-bct-pad-quill-p3489-1000-a00.cfg --pmic tegra186-mb1-bct-pmic-quill-p3489-1000-a00.cfg --brcommand tegra186-mb1-bct-bootrom-quill-p3489-1000-a00.cfg --prod tegra186-mb1-bct-prod-storm-p3489-1000-a00.cfg
[   0.2043 ] MB1-BCT version: 0xf
[   0.2043 ] Copying Sdram info from 1 to 2 set
[   0.2132 ] Copying Sdram info from 2 to 3 set
[   0.2134 ] Packing sdram param for instance[0]
[   0.2135 ] Packing sdram param for instance[1]
[   0.2136 ] Packing sdram param for instance[2]
[   0.2137 ] Packing sdram param for instance[3]

[   0.2138 ] Parsing config file :tegra186-mb1-bct-pinmux-quill-p3489-1000-a00.cfg 
[   0.2141 ] Appending platform config data of size :- 2952

[   0.2142 ] Parsing config file :minimal_scr.cfg 
[   0.2143 ] Appending platform config data of size :- 12240

[   0.2156 ] Parsing config file :tegra186-mb1-bct-pad-quill-p3489-1000-a00.cfg 
[   0.2159 ] Appending platform config data of size :- 24
[   0.2161 ] 
[   0.2161 ] Parsing config file :tegra186-mb1-bct-pmic-quill-p3489-1000-a00.cfg 
[   0.2161 ] Appending platform config data of size :- 744
[   0.2161 ] 
[   0.2161 ] Parsing config file :tegra186-mb1-bct-bootrom-quill-p3489-1000-a00.cfg 
[   0.2161 ] Appending platform config data of size :- 64
[   0.2161 ] 
[   0.2161 ] Parsing config file :tegra186-mb1-bct-prod-storm-p3489-1000-a00.cfg 
[   0.2161 ] Appending platform config data of size :- 2132
[   0.2161 ] 
[   0.2161 ] Updating mb1-bct with firmware information
[   0.2172 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatefwinfo flash.xml.bin
[   0.2183 ] MB1-BCT version: 0xf
[   0.2186 ] 
[   0.2186 ] Updating mb1-bct with storage information
[   0.2196 ] tegrabct_v2 --chip 0x18 --mb1bct mb1_bct_MB1.bct --updatestorageinfo flash.xml.bin
[   0.2205 ] MB1-BCT version: 0xf
[   0.2210 ] 
[   0.2221 ] tegrahost_v2 --chip 0x18 --align mb1_bct_MB1.bct
[   0.2231 ] 
[   0.2241 ] tegrahost_v2 --appendsigheader mb1_bct_MB1.bct zerosbk
[   0.2252 ] 
[   0.2265 ] tegrasign_v2 --key None --list mb1_bct_MB1_sigheader.bct_list.xml --pubkeyhash pub_key.key
[   0.2274 ] Assuming zero filled SBK key
[   0.2292 ] 
[   0.2307 ] tegrahost_v2 --updatesigheader mb1_bct_MB1_sigheader.bct.encrypt mb1_bct_MB1_sigheader.bct.hash zerosbk
[   0.2320 ] 
[   0.2321 ] Copying signatures
[   0.2332 ] tegrahost_v2 --chip 0x18 0 --partitionlayout flash.xml.bin --updatesig images_list_signed.xml
[   0.2482 ] 
[   0.2482 ] Boot Rom communication
[   0.2490 ] tegrarcm_v2 --chip 0x18 0 --rcm rcm_list_signed.xml
[   0.2496 ] BootRom is not running
[   5.2937 ] 
[   6.2983 ] tegrarcm_v2 --isapplet
[   6.3006 ] Applet version 01.00.0000
[   6.3770 ] 
[   6.3771 ] Sending BCTs
[   6.3796 ] tegrarcm_v2 --download bct_bootrom br_bct_BR.bct --download bct_mb1 mb1_bct_MB1_sigheader.bct.encrypt
[   6.3815 ] Applet version 01.00.0000
[   6.4771 ] Sending bct_bootrom
[   6.4773 ] [................................................] 100%
[   6.4790 ] Sending bct_mb1
[   6.4798 ] [................................................] 100%
[  15.7131 ] 
[  15.7132 ] Generating blob
[  15.7159 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery_cpu.bin
[  15.7179 ] 
[  15.7195 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery_cpu.bin zerosbk
[  15.7218 ] 
[  15.7234 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_cpu_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  15.7247 ] Assuming zero filled SBK key
[  15.7314 ] 
[  15.7325 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_cpu_sigheader.bin.encrypt blob_nvtboot_recovery_cpu_sigheader.bin.hash zerosbk
[  15.7347 ] 
[  15.7364 ] tegrahost_v2 --chip 0x18 --align blob_nvtboot_recovery.bin
[  15.7378 ] 
[  15.7391 ] tegrahost_v2 --appendsigheader blob_nvtboot_recovery.bin zerosbk
[  15.7408 ] 
[  15.7424 ] tegrasign_v2 --key None --list blob_nvtboot_recovery_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  15.7438 ] Assuming zero filled SBK key
[  15.7476 ] 
[  15.7494 ] tegrahost_v2 --updatesigheader blob_nvtboot_recovery_sigheader.bin.encrypt blob_nvtboot_recovery_sigheader.bin.hash zerosbk
[  15.7511 ] 
[  15.7523 ] tegrahost_v2 --chip 0x18 --align blob_preboot_d15_prod_cr.bin
[  15.7533 ] 
[  15.7543 ] tegrahost_v2 --appendsigheader blob_preboot_d15_prod_cr.bin zerosbk
[  15.7552 ] 
[  15.7561 ] tegrasign_v2 --key None --list blob_preboot_d15_prod_cr_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  15.7566 ] Assuming zero filled SBK key
[  15.7578 ] 
[  15.7586 ] tegrahost_v2 --updatesigheader blob_preboot_d15_prod_cr_sigheader.bin.encrypt blob_preboot_d15_prod_cr_sigheader.bin.hash zerosbk
[  15.7593 ] 
[  15.7599 ] tegrahost_v2 --chip 0x18 --align blob_mce_mts_d15_prod_cr.bin
[  15.7605 ] 
[  15.7610 ] tegrahost_v2 --appendsigheader blob_mce_mts_d15_prod_cr.bin zerosbk
[  15.7637 ] 
[  15.7643 ] tegrasign_v2 --key None --list blob_mce_mts_d15_prod_cr_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  15.7649 ] Assuming zero filled SBK key
[  15.7940 ] 
[  15.7950 ] tegrahost_v2 --updatesigheader blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt blob_mce_mts_d15_prod_cr_sigheader.bin.hash zerosbk
[  15.7975 ] 
[  15.7983 ] tegrahost_v2 --chip 0x18 --align blob_bpmp.bin
[  15.7990 ] 
[  15.7995 ] tegrahost_v2 --appendsigheader blob_bpmp.bin zerosbk
[  15.8007 ] 
[  15.8014 ] tegrasign_v2 --key None --list blob_bpmp_sigheader.bin_list.xml --pubkeyhash pub_key.key
[  15.8021 ] Assuming zero filled SBK key
[  15.8103 ] 
[  15.8115 ] tegrahost_v2 --updatesigheader blob_bpmp_sigheader.bin.encrypt blob_bpmp_sigheader.bin.hash zerosbk
[  15.8130 ] 
[  15.8140 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1.dtb
[  15.8149 ] 
[  15.8156 ] tegrahost_v2 --appendsigheader blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1.dtb zerosbk
[  15.8166 ] 
[  15.8176 ] tegrasign_v2 --key None --list blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[  15.8184 ] Assuming zero filled SBK key
[  15.8202 ] 
[  15.8212 ] tegrahost_v2 --updatesigheader blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1_sigheader.dtb.encrypt blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1_sigheader.dtb.hash zerosbk
[  15.8222 ] 
[  15.8231 ] tegrahost_v2 --chip 0x18 --align blob_tos-trusty.img
[  15.8239 ] 
[  15.8248 ] tegrahost_v2 --appendsigheader blob_tos-trusty.img zerosbk
[  15.8263 ] 
[  15.8274 ] tegrasign_v2 --key None --list blob_tos-trusty_sigheader.img_list.xml --pubkeyhash pub_key.key
[  15.8284 ] Assuming zero filled SBK key
[  15.8375 ] 
[  15.8384 ] tegrahost_v2 --updatesigheader blob_tos-trusty_sigheader.img.encrypt blob_tos-trusty_sigheader.img.hash zerosbk
[  15.8397 ] 
[  15.8404 ] tegrahost_v2 --chip 0x18 --align blob_eks.img
[  15.8411 ] 
[  15.8418 ] tegrahost_v2 --appendsigheader blob_eks.img zerosbk
[  15.8425 ] 
[  15.8431 ] tegrasign_v2 --key None --list blob_eks_sigheader.img_list.xml --pubkeyhash pub_key.key
[  15.8437 ] Assuming zero filled SBK key
[  15.8438 ] 
[  15.8443 ] tegrahost_v2 --updatesigheader blob_eks_sigheader.img.encrypt blob_eks_sigheader.img.hash zerosbk
[  15.8448 ] 
[  15.8455 ] tegrahost_v2 --chip 0x18 --align blob_tegra186-quill-p3489-1000-a00-00-ucm1.dtb
[  15.8462 ] 
[  15.8468 ] tegrahost_v2 --appendsigheader blob_tegra186-quill-p3489-1000-a00-00-ucm1.dtb zerosbk
[  15.8481 ] 
[  15.8487 ] tegrasign_v2 --key None --list blob_tegra186-quill-p3489-1000-a00-00-ucm1_sigheader.dtb_list.xml --pubkeyhash pub_key.key
[  15.8493 ] Assuming zero filled SBK key
[  15.8545 ] 
[  15.8554 ] tegrahost_v2 --updatesigheader blob_tegra186-quill-p3489-1000-a00-00-ucm1_sigheader.dtb.encrypt blob_tegra186-quill-p3489-1000-a00-00-ucm1_sigheader.dtb.hash zerosbk
[  15.8564 ] 
[  15.8571 ] tegrahost_v2 --chip 0x18 --generateblob blob.xml blob.bin
[  15.8577 ] number of images in blob are 9
[  15.8578 ] blobsize is 3744280
[  15.8578 ] Added binary blob_nvtboot_recovery_cpu_sigheader.bin.encrypt of size 220096
[  15.8589 ] Added binary blob_nvtboot_recovery_sigheader.bin.encrypt of size 89776
[  15.8590 ] Added binary blob_preboot_d15_prod_cr_sigheader.bin.encrypt of size 63104
[  15.8592 ] Added binary blob_mce_mts_d15_prod_cr_sigheader.bin.encrypt of size 2082144
[  15.8597 ] Added binary blob_bpmp_sigheader.bin.encrypt of size 533904
[  15.8600 ] Added binary blob_tegra186-a02-bpmp-storm-p3489-a00-00-ta795sa-ucm1_sigheader.dtb.encrypt of size 76080
[  15.8602 ] Added binary blob_tos-trusty_sigheader.img.encrypt of size 313152
[  15.8603 ] Added binary blob_eks_sigheader.img.encrypt of size 1440
[  15.8604 ] Added binary blob_tegra186-quill-p3489-1000-a00-00-ucm1_sigheader.dtb.encrypt of size 364432
[  15.8614 ] 
[  15.8615 ] Sending bootloader and pre-requisite binaries
[  15.8621 ] tegrarcm_v2 --download blob blob.bin
[  15.8628 ] Applet version 01.00.0000
[  15.9373 ] Sending blob
[  15.9374 ] [................................................] 100%
[  16.4026 ] 
[  16.4050 ] tegrarcm_v2 --boot recovery
[  16.4067 ] Applet version 01.00.0000
[  16.4824 ] 
[  17.4855 ] tegrarcm_v2 --isapplet
[  17.4872 ] USB communication failed.Check if device is in recovery
[  17.9890 ] 
[  17.9915 ] tegradevflash_v2 --iscpubl
[  17.9935 ] Bootloader version 01.00.0000
[  18.0273 ] Bootloader version 01.00.0000
[  18.0287 ] 
[  18.0288 ] Retrieving storage infomation
[  18.0302 ] tegrarcm_v2 --oem platformdetails storage storage_info.bin
[  18.0315 ] Applet is not running on device. Continue with Bootloader
[  18.1302 ] 
[  18.1319 ] tegradevflash_v2 --oem platformdetails storage storage_info.bin
[  18.1334 ] Bootloader version 01.00.0000
[  18.1794 ] Saved platform info in storage_info.bin
[  18.1843 ] 
[  18.1844 ] Flashing the device
[  18.1862 ] tegraparser_v2 --storageinfo storage_info.bin --generategpt --pt flash.xml.bin
[  18.1884 ] 
[  18.1898 ] tegradevflash_v2 --pt flash.xml.bin --create
[  18.1909 ] Bootloader version 01.00.0000
[  18.2247 ] Erasing sdmmc_boot: 3 ......... [Done]
[  18.2313 ] Writing partition secondary_gpt with gpt_secondary_0_3.bin
[  18.2316 ] [................................................] 100%

[  18.2828 ] Erasing sdmmc_user: 3 ......... [Done]
[  19.7452 ] Writing partition master_boot_record with mbr_1_3.bin
[  19.7458 ] [................................................] 100%
[  19.7497 ] Writing partition primary_gpt with gpt_primary_1_3.bin
[  19.7515 ] [................................................] 100%
[  19.7566 ] Writing partition secondary_gpt with gpt_secondary_1_3.bin
[  19.7653 ] [................................................] 100%

[  19.7771 ] Writing partition mb1 with mb1_prod.bin.encrypt
[  19.7773 ] [................................................] 100%
[  19.7849 ] Writing partition mb1_b with mb1_prod.bin.encrypt
[  19.8079 ] [................................................] 100%
[  19.8153 ] Writing partition dram-ecc-fw with dram-ecc_sigheader.bin.encrypt
[  19.8402 ] [................................................] 100%
[  19.8465 ] Writing partition badpage-fw with badpage_sigheader.bin.encrypt
[  19.8808 ] [................................................] 100%
[  19.8860 ] Writing partition badpage-fw_b with badpage_sigheader.bin.encrypt
[  19.9426 ] [................................................] 100%
[  19.9474 ] Writing partition spe-fw with spe_sigheader.bin.encrypt
[  20.0031 ] [................................................] 100%
[  20.0110 ] Writing partition spe-fw_b with spe_sigheader.bin.encrypt
[  20.0693 ] [................................................] 100%
[  20.0771 ] Writing partition mb2 with nvtboot_sigheader.bin.encrypt
[  20.1089 ] [................................................] 100%
[  20.1168 ] Writing partition mb2_b with nvtboot_sigheader.bin.encrypt
[  20.1588 ] [................................................] 100%
[  20.1664 ] Writing partition mts-preboot with preboot_d15_prod_cr_sigheader.bin.encrypt
[  20.2125 ] [................................................] 100%
[  20.2200 ] Writing partition mts-preboot_b with preboot_d15_prod_cr_sigheader.bin.encrypt
[  20.2747 ] [................................................] 100%
[  20.2818 ] Writing partition SMD with slot_metadata.bin
[  20.3387 ] [................................................] 100%
[  20.3433 ] Writing partition SMD_b with slot_metadata.bin
[  20.3495 ] [................................................] 100%
[  20.3546 ] Writing partition VER_b with jetson-tx2i-sol-redundant-live_bootblob_ver.txt
[  20.3571 ] [................................................] 100%
[  20.3613 ] Writing partition VER with jetson-tx2i-sol-redundant-live_bootblob_ver.txt
[  20.4139 ] [................................................] 100%
[  20.4177 ] Writing partition master_boot_record with mbr_1_3.bin
[  20.4253 ] [................................................] 100%
[  20.4294 ] Writing partition APP with core-image-sol-dev.img
[  20.4311 ] [................................................] 100%
[ 156.2659 ] Writing partition APP_b with core-image-sol-dev.img
[ 156.3328 ] [................................................] 100%
[ 291.5631 ] Writing partition APP_c with core-image-sol-dev.img
[ 291.6308 ] [................................................] 100%
[ 427.3432 ] File to be written cannot be of zero size, pFileName=dummy.ext4.img
[ 427.4084 ] 
Error: Return value 10
Command tegradevflash_v2 --pt flash.xml.bin --create
pdlloyd commented 2 years ago

Additionally, I build against the zeus-l4t-r32.3.1-kernel-tmr branch

pdlloyd commented 2 years ago

As a test, I went into flash.xml.in and straight up deleted these lines:

        <partition name="CONFIG" type="data">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 1000000000 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> dummy.ext4.img </filename>
            <description> Nonvolatile partition to be mounted at /config from /dev/mmcblk0p4.</description>
        </partition>
        <partition name="DATA" type="data">
            <allocation_policy> sequential </allocation_policy>
            <filesystem_type> basic </filesystem_type>
            <size> 15000000000 </size>
            <file_system_attribute> 0 </file_system_attribute>
            <allocation_attribute> 0x8 </allocation_attribute>
            <percent_reserved> 0 </percent_reserved>
            <filename> dummy.ext4.img </filename>
            <description> Nonvolatile partition to be mounted at /data from /dev/mmcblk0p5.</description>
        </partition>

This allowed ./doflash.sh to successfully finish, but when booting, I received the following errors from U-Boot:

  TMRing file #3 of size 0
  Finding mmc device 0
  Initializing mmc device 0
  Reading from mmc
  1 blocks read: OK
  1 blocks read: OK
  1 blocks read: OK
  1 blocks read: OK
  1 blocks read: OK
  1 blocks read: OK
  loaded files with hashes
  none of the hashes were correct. storing tmr result at 0xa0000000

I'm guessing that this is because it's trying to check the hash for the wrong partition because of the modification to flash.xml.in. The next thing I'm going to try is creating a 1000000000 byte file with dd called dummy.ext4.img and formatting it with mkfs.ext4.

pdlloyd commented 2 years ago

Alright! Creating the dummy partition with dd if=/dev/zero of=dummy.ext4.img && mkfs.ext4 dummy.ext4.img let the doflash.sh script complete. I'm still not able to get through the bootloader, however:

Bad Linux ARM64 Image magic!
meta-sol ref 8e54ab013a4a34a8d5bf901e00131f3bf7581f30
TMRing info files
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
Reading info for filesizes
TMRing file #1 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
TMRing file #2 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
TMRing file #3 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
Hit any key to stop autoboot:  0
pdlloyd commented 2 years ago

And for reference, this is the output from the serial console from reset to the autoboot loop:

Welcome to MB2(TBoot-BPMP)(version: 01.00.160913-t186-M-00.00-mobile-7d3edb9d)
[0000.347] I> bit @ 0xd480000
[0000.350] I> Boot-device: eMMC
[0000.358] I> sdmmc bdev is already initialized
[0000.362] I> pmic: reset reason (nverc)        : 0x80
[0000.394] I> Found 18 partitions in SDMMC_BOOT (instance 3)
[0000.413] I> Found 37 partitions in SDMMC_USER (instance 3)
[0000.419] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.424] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.429] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.434] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.439] I> OEM carveouts init scrub in progress...
[0000.515] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.520] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.525] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x10
[0000.530] I> MB2 check ECC error: EMC_INTSTATUS_0: 0x0
[0000.535] I> Mb2 SDRAM scrub successful
[0000.539] I> A/B: bin_type (16) slot 0
[0000.542] I> Loading partition bpmp-fw at 0xd7800000
[0000.547] I> Reading two headers - addr:0xd7800000 blocks:1
[0000.553] I> Addr: 0xd7800000, start-block: 55307352, num_blocks: 1
[0000.578] I> Binary(16) of size 533504 is loaded @ 0xd7800000
[0000.583] I> A/B: bin_type (17) slot 0
[0000.587] I> Loading partition bpmp-fw-dtb at 0xd79f0000
[0000.592] I> Reading two headers - addr:0xd79f0000 blocks:1
[0000.598] I> Addr: 0xd79f0000, start-block: 55309768, num_blocks: 1
[0000.617] I> Binary(17) of size 75680 is loaded @ 0xd79ed600
[0000.652] I> Loading SCE-FW ...
[0000.655] I> A/B: bin_type (12) slot 0
[0000.658] I> Loading partition sce-fw at 0xd7300000
[0000.663] I> Reading two headers - addr:0xd7300000 blocks:1
[0000.669] I> Addr: 0xd7300000, start-block: 55313864, num_blocks: 1
[0000.688] I> Binary(12) of size 125168 is loaded @ 0xd7300000
[0000.693] I> Init SCE
[0000.696] I> Loading APE-FW ...
[0000.699] I> A/B: bin_type (11) slot 0
[0000.702] I> Loading partition adsp-fw at 0xd7400000
[0000.707] I> Reading two headers - addr:0xd7400000 blocks:1
[0000.713] I> Addr: 0xd7400000, start-block: 55290968, num_blocks: 1
[0000.732] I> Binary(11) of size 107808 is loaded @ 0xd7400000
[0000.738] I> Copy BTCM section
[0000.741] I> A/B: bin_type (13) slot 0
[0000.744] I> Loading partition cpu-bootloader at 0x96000000
[0000.750] I> Reading two headers - addr:0x96000000 blocks:1
[0000.755] I> Addr: 0x96000000, start-block: 55270488, num_blocks: 1
[0000.777] I> Binary(13) of size 283728 is loaded @ 0x96000000
[0000.782] I> A/B: bin_type (20) slot 0
[0000.786] I> Loading partition bootloader-dtb at 0x8520f400
[0000.791] I> Reading two headers - addr:0x8520f400 blocks:1
[0000.797] I> Addr: 0x8520f400, start-block: 55272536, num_blocks: 1
[0000.819] I> Binary(20) of size 364032 is loaded @ 0x8520f400
[0000.825] I> A/B: bin_type (14) slot 0
[0000.829] I> Loading partition secure-os at 0x8530f600
[0000.834] I> Reading two headers - addr:0x8530f600 blocks:1
[0000.839] I> Addr: 0x8530f600, start-block: 55274584, num_blocks: 1
[0000.861] I> Binary(14) of size 312752 is loaded @ 0x8530f600
[0000.868] I> TOS boot-params @ 0x85000000
[0000.872] I> TOS params prepared
[0000.875] I> Loading EKS ...
[0000.878] I> A/B: bin_type (15) slot 0
[0000.882] I> Loading partition eks at 0x8590f800
[0000.886] I> Reading two headers - addr:0x8590f800 blocks:1
[0000.892] I> Addr: 0x8590f800, start-block: 55286872, num_blocks: 1
[0000.910] I> Binary(15) of size 1040 is loaded @ 0x8590f800
[0000.916] I> EKB detected (length: 0x400) @ 0x8590f800
[0000.921] I> Copied encrypted keys
[0000.925] I> boot profiler @ 0x235844000
[0000.928] I> boot profiler for TOS @ 0x235844000
[0000.933] I> Unhalting SCE
[0000.936] I> Primary Memory Start:80000000 Size:70000000
[0000.941] I> Extended Memory Start:f0110000 Size:1456f0000
[0000.948] I> MB2(TBoot-BPMP) done

NOTICE:  BL31: v1.3(release):23b153a63
NOTICE:  BL31: Built : 22:43:09, Dec  9 2019
ipc-unittest-main: 1519: Welcome to IPC unittest!!!
ipc-unittest-main: 1531: waiting forever
ipc-unittest-srv: 329: Init unittest services!!!
keystore-demo: 141: Hello world from keystore-demo app
keystore-demo: 207: main: EKB contents match expected value
exit called, thread 0xffffffffea87ad58, name trusty_app_2_7d18fc60-e9fc-11e8
platform_bootstrap_epilog: trusty bootstrap complete
[0001.152] I> Welcome to Cboot
[0001.155] I> Cboot Version: t186-c3c778fb
[0001.159] I> CPU-BL Params @ 0x235800000
[0001.163] I> Dram Scrub in progress
[0001.806] I> DRAM Scrub Successful
[0001.809] I>  0) Base:0x00000000 Size:0x00000000
[0001.814] I>  1) Base:0x237f00000 Size:0x00100000
[0001.818] I>  2) Base:0x237e00000 Size:0x00100000
[0001.823] I>  3) Base:0x237d00000 Size:0x00100000
[0001.827] I>  4) Base:0x237c00000 Size:0x00100000
[0001.832] I>  5) Base:0x237b00000 Size:0x00100000
[0001.837] I>  6) Base:0x237800000 Size:0x00200000
[0001.841] I>  7) Base:0x237400000 Size:0x00400000
[0001.846] I>  8) Base:0x237a00000 Size:0x00100000
[0001.850] I>  9) Base:0x237300000 Size:0x00100000
[0001.855] I> 10) Base:0x236800000 Size:0x00800000
[0001.859] I> 11) Base:0x30000000 Size:0x00040000
[0001.864] I> 12) Base:0xf0000000 Size:0x00100000
[0001.868] I> 13) Base:0x30040000 Size:0x00001000
[0001.872] I> 14) Base:0x30048000 Size:0x00001000
[0001.877] I> 15) Base:0x30049000 Size:0x00001000
[0001.881] I> 16) Base:0x3004a000 Size:0x00001000
[0001.886] I> 17) Base:0x3004b000 Size:0x00001000
[0001.890] I> 18) Base:0x3004c000 Size:0x00001000
[0001.895] I> 19) Base:0x3004d000 Size:0x00001000
[0001.899] I> 20) Base:0x3004e000 Size:0x00001000
[0001.903] I> 21) Base:0x3004f000 Size:0x00001000
[0001.908] I> 22) Base:0x00000000 Size:0x00000000
[0001.912] I> 23) Base:0xf0100000 Size:0x00010000
[0001.917] I> 24) Base:0x00000000 Size:0x00000000
[0001.921] I> 25) Base:0x00000000 Size:0x00000000
[0001.926] I> 26) Base:0x00000000 Size:0x00000000
[0001.930] I> 27) Base:0x00000000 Size:0x00000000
[0001.934] I> 28) Base:0x84400000 Size:0x00400000
[0001.939] I> 29) Base:0x30000000 Size:0x00010000
[0001.943] I> 30) Base:0x238000000 Size:0x08000000
[0001.948] I> 31) Base:0x00000000 Size:0x00000000
[0001.952] I> 32) Base:0x236000000 Size:0x00600000
[0001.957] I> 33) Base:0x80000000 Size:0x70000000
[0001.961] I> 34) Base:0xf0110000 Size:0x1456f0000
[0001.966] I> 35) Base:0x00000000 Size:0x00000000
[0001.970] I> 36) Base:0x00000000 Size:0x00000000
[0001.975] I> 37) Base:0x2372e0000 Size:0x00020000
[0001.979] I> 38) Base:0x84000000 Size:0x00400000
[0001.983] I> 39) Base:0x96000000 Size:0x02000000
[0001.988] I> 40) Base:0x85000000 Size:0x01200000
[0001.992] I> 41) Base:0x235800000 Size:0x00500000
[0001.997] I> 42) Base:0x00000000 Size:0x00000000
[0002.001] I> 43) Base:0x00000000 Size:0x00000000
[0002.006] GIC-SPI Target CPU: 4
[0002.009] Interrupts Init done
[0002.012] calling constructors
[0002.015] initializing heap
[0002.018] initializing threads
[0002.021] initializing timers
[0002.024] creating bootstrap completion thread
[0002.029] top of bootstrap2()
[0002.032] CPU: ARM Cortex A57
[0002.035] CPU: MIDR: 0x411FD073, MPIDR: 0x80000100
[0002.040] initializing platform
[0002.044] I> Bl_dtb @0x8520f400
[0002.047] I> gpio framework initialized
[0002.053] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio' driver
[0002.063] I> tegrabl_gpio_driver_register: register 'nvidia,tegra186-gpio-aon' driver
[0002.071] I> GPIO framework and drivers are initialized.
[0002.076] I> Boot-device: eMMC
[0002.083] I> sdmmc bdev is already initialized
[0002.113] I> Found 18 partitions in SDMMC_BOOT (instance 3)
[0002.131] I> Found 37 partitions in SDMMC_USER (instance 3)
[0002.136] W> opt-in fuse is not set, skip fuse_burning
[0002.141] I> Reserved memory at 0xfbe00000 for U-Boot relocation
[0002.147] I> A/B: bin_type (21) slot 0
[0002.151] I> Loading partition kernel-dtb at 0x80000000 from device(0x1)
[0002.168] I> Kernel_dtb @0x80000000
[0002.171] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xee
[0002.181] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0002.188] I> tegrabl_tca9539_init: i2c bus: 0, slave addr: 0xe8
[0002.197] I> tegrabl_gpio_driver_register: register 'tca9539_gpio_driver' driver
[0002.208] I> fixed regulator driver initialized
[0002.240] I> register 'maxim' power off handle
[0002.246] I> virtual i2c enabled
[0002.250] I> registered 'maxim,max77620' pmic
[0002.254] I> tegrabl_gpio_driver_register: register 'max77620-gpio' driver
[0002.267] I> Find /i2c@c250000's alias i2c7
[0002.271] I> Reading eeprom i2c=7 address=0x50
[0002.300] I> Device at /i2c@c250000:0x50
[0002.304] I> Reading eeprom i2c=7 address=0x57
[0002.333] I> Device at /i2c@c250000:0x57
[0002.337] I> Find /i2c@c240000's alias i2c1
[0002.341] I> Reading eeprom i2c=1 address=0x51
[0002.346] E> I2C: slave not found in slaves.
[0002.350] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0002.358] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.364] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.374] E> eeprom: Retry to read I2C slave device.
[0002.378] E> I2C: slave not found in slaves.
[0002.383] E> I2C: Could not write 0 bytes to slave: 0x00a2 with repeat start true.
[0002.390] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.396] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa2 at 0x00000000 via instance 1.
[0002.406] E> eeprom: Failed to read I2C slave device
[0002.410] I> Eeprom read failed 0x3526070d
[0002.415] I> Find /i2c@3160000's alias i2c0
[0002.419] I> Reading eeprom i2c=0 address=0x50
[0002.423] E> I2C: slave not found in slaves.
[0002.427] E> I2C: Could not write 0 bytes to slave: 0x00a0 with repeat start true.
[0002.435] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.441] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa0 at 0x00000000 via instance 0.
[0002.450] E> eeprom: Failed to read I2C slave device
[0002.455] I> Eeprom read failed 0x3526070d
[0002.460] I> Find /i2c@3180000's alias i2c2
[0002.464] I> Reading eeprom i2c=2 address=0x54
[0002.468] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.475] E> I2C: slave not found in slaves.
[0002.479] E> I2C: Could not write 0 bytes to slave: 0x00a8 with repeat start true.
[0002.486] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.492] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xa8 at 0x00000000 via instance 2.
[0002.502] E> eeprom: Failed to read I2C slave device
[0002.507] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.512] I> Eeprom read failed 0x00000000
[0002.516] I> Reading eeprom i2c=2 address=0x57
[0002.520] I> Enabling gpio chip_id = 2, gpio pin = 9
[0002.526] E> I2C: slave not found in slaves.
[0002.530] E> I2C: Could not write 0 bytes to slave: 0x00ae with repeat start true.
[0002.537] E> I2C_DEV: Failed to send register address 0x00000000.
[0002.543] E> I2C_DEV: Could not read 256 registers of size 1 from slave 0xae at 0x00000000 via instance 2.
[0002.553] E> eeprom: Failed to read I2C slave device
[0002.557] I> Disabling gpio chip_id = 2, gpio pin = 9
[0002.563] I> Eeprom read failed 0x00000000
[0002.567] I> create_pm_ids: id: 3489-0000-300-K, len: 15
[0002.572] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-co3
[0002.583] I> create_pm_ids: id: 2597-0000-501-D, len: 15
[0002.588] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-co3
[0002.622] I> enabling 'vdd-hdmi' regulator
[0002.638] I> regulator 'vdd-hdmi' already enabled
[0002.642] I> hdmi cable connected
[0002.651] I> setting 'vdd-pex-1v00' regulator to 1000000 micro volts
[0002.663] I> setting 'vdd-1v8' regulator to 1800000 micro volts
[0002.671] E> cannot find any other nvdisp nodes
[0002.693] I> edid read success
[0002.708] I> edid read success
[0002.711] I> width = 640, height = 480, frequency = 25174825
[0002.716] I> width = 1920, height = 1080, frequency = 148500000
[0002.722] I> width = 1920, height = 540, frequency = 74250000
[0002.728] I> width = 720, height = 480, frequency = 26973026
[0002.733] I> width = 1280, height = 720, frequency = 74175824
[0002.739] I> width = 1920, height = 1080, frequency = 148351648
[0002.744] I> width = 720, height = 576, frequency = 26973026
[0002.750] I> width = 1280, height = 720, frequency = 74175824
[0002.755] I> width = 1920, height = 1080, frequency = 148351648
[0002.761] I> Best mode Width = 1920, Height = 1080, freq = 148351648
[0002.771] I> hdmi_enable, starting HDMI initialisation
[0002.779] I> hdmi_enable, HDMI initialisation complete
[0002.792] initializing target
[0002.795] calling apps_init()
[0002.798] starting app kernel_boot_app
[0002.820] I> found decompressor handler: lz4-legacy
[0002.825] I> decompressing BMP blob ...
[0002.835] I> Kernel type = Normal
[0002.838] I> Loading partition kernel-bootctrl at 0xa8000000 from device(0x1)
[0002.852] W> tegrabl_get_kernel_bootctrl: magic number(0x00000000) is invalid
[0002.859] W> tegrabl_get_kernel_bootctrl: use default dummy boot control data
[0002.866] I> ########## Fixed storage boot ##########
[0002.871] I> Loading kernel from partition ...
[0002.875] I> A/B: bin_type (24) slot 0
[0002.891] I> Boot image size read from image header: f4ac8
[0002.896] I> Boot image load address: 0x0x80400000
[0002.901] I> Loading partition kernel at 0x80400000 from device(0x1)
[0003.861] I> Validate kernel ...
[0003.864] I> T18x: Authenticate kernel (bin_type 24), max size 0x4000000
[0003.872] I> kernel-dtb is already loaded
[0003.875] I> Validate kernel-dtb ...
[0003.879] I> T18x: Authenticate kernel-dtb (bin_type 21), max size 0x100000
[0003.886] I> Checking boot.img header magic ... [0003.891] I> [OK]
[0003.892] I> Kernel hdr @0x80400000
[0003.896] I> Kernel dtb @0x80000000
[0003.899] I> decompressor handler not found
[0003.903] I> Copying kernel image (484979 bytes) from 0x80400800 to 0x80800000 ... [0003.910] I> Done
[0003.912] I> Move ramdisk (len: 0) from 0x80477000 to 0x94830000
[0003.920] I> Updated bpmp info to DTB
[0003.925] I> Ramdisk: Base: 0x94830000; Size: 0x0
[0003.930] I> Updated initrd info to DTB
[0003.933] W> WARN: Fail to override "console=none" in commandline
[0003.939] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0003.946] E> tegrabl_linuxboot_add_disp_param, du 1 failed to get display params
[0003.954] I> disabled_core_mask: 0xffffff0c
[0003.958] I> Active slot suffix: 
[0003.961] I> add_boot_slot_suffix: slot_suffix = 
[0003.965] I> Linux Cmdline: console=ttyS0,115200 console=tty0 OS=l4t fbcon=map:0 video=tegrafb no_console_ 
[0004.002] I> Updated bootarg info to DTB
[0004.006] I> eeprom_get_mac_addr: MAC (type: 0): 00:ff:ff:ff:ff:ff
[0004.012] I> eeprom_get_mac_addr: MAC (type: 1): 00:ff:ff:ff:ff:ff
[0004.018] I> eeprom_get_mac_addr: MAC (type: 2): 00:04:4b:ab:f9:95
[0004.025] E> Found no plugin manager ids in source DT
[0004.030] W> Add plugin manager ids from board info
[0004.034] E> "plugin-manager" doesn't exist, creating
[0004.039] E> "ids" doesn't exist, creating
[0004.043] E> "connection" doesn't exist, creating
[0004.048] E> "configs" doesn't exist, creating
[0004.052] I> create_pm_ids: id: 3489-0000-300-K, len: 15
[0004.057] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-co3
[0004.068] I> create_pm_ids: id: 2597-0000-501-D, len: 15
[0004.073] I> config: mem-type:00,power-config:00,misc-config:00,modem-config:00,touch-config:00,display-co3
[0004.084] I> Adding plugin-manager/ids/3489-0000-300=/i2c@c250000:module@0x50
[0004.091] E> "i2c@c250000" doesn't exist, creating
[0004.096] E> "module@0x50" doesn't exist, creating
[0004.101] I> Adding plugin-manager/ids/2597-0000-501=/i2c@c250000:module@0x57
[0004.108] E> "module@0x57" doesn't exist, creating
[0004.115] I> Adding plugin-manager/ids/3489-0000-300-K
[0004.122] I> Adding plugin-manager/configs/3489-mem-type 00
[0004.128] I> Adding plugin-manager/configs/3489-power-config 00
[0004.133] I> Adding plugin-manager/configs/3489-misc-config 00
[0004.139] I> Adding plugin-manager/configs/3489-modem-config 00
[0004.145] I> Adding plugin-manager/configs/3489-touch-config 00
[0004.151] I> Adding plugin-manager/configs/3489-display-config 00
[0004.157] I> Adding plugin-manager/cvm
[0004.161] E> "chip-id" doesn't exist, creating
[0004.166] I> Adding plugin-manager/chip-id/A02P
[0004.170] E> "odm-data" doesn't exist, creating
[0004.175] I> Adding /chosen/plugin-manager/odm-data
[0004.184] I> added [base:0x80000000, size:0x70000000] to /memory
[0004.190] I> added [base:0xf0200000, size:0x145600000] to /memory
[0004.196] I> added [base:0x235e00000, size:0x200000] to /memory
[0004.202] I> added [base:0x236600000, size:0x200000] to /memory
[0004.208] I> added [base:0x237000000, size:0x200000] to /memory
[0004.213] I> Updated memory info to DTB
[0004.218] E> add_disp_param: failed to get display params for du=1
[0004.226] E> "reset" doesn't exist, creating
[0004.230] E> "pmc-reset-reason" doesn't exist, creating
[0004.235] E> "pmic-reset-reason" doesn't exist, creating
[0004.242] I> Adding ecid(00000001643d78411400000019008380) to DT
[0004.247] I> disabled_core_mask: 0xffffff0c
[0004.260] I> Add serial number:0320218172240 as DT property
[0004.269] I> Plugin-manager override starting
[0004.275] I> node /plugin-manager/fragement@0 matches
[0004.285] I> node /plugin-manager/fragement@4 matches
[0004.326] I> node /plugin-manager/fragment-p3310-c00-camera matches
[0004.352] I> Disable plugin-manager status in FDT
[0004.357] I> Plugin-manager override finished successfully
[0004.362] I> tegrabl_load_kernel_and_dtb: Done
[0004.406] I> Kernel EP: 0x80800000, DTB: 0x80000000

U-Boot 2016.07 (Sep 28 2022 - 03:50:32 +0000)

TEGRA186
Model: NVIDIA P2771-0000-500
DRAM:  6.8 GiB
MC:   Tegra SD/MMC: 0, Tegra SD/MMC: 2
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet@2490000
meta-sol ref 8e54ab013a4a34a8d5bf901e00131f3bf7581f30
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
TMRing info files
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
hash for original file was correct
Reading info for filesizes
TMRing file #1 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
TMRing file #2 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
TMRing file #3 of size 0
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
1 blocks read: OK
loaded files with hashes
none of the hashes were correct. storing tmr result at 0xa0000000
Hit any key to stop autoboot:  0 
Bad Linux ARM64 Image magic!
meta-sol ref 8e54ab013a4a34a8d5bf901e00131f3bf7581f30
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
TMRing info files
Finding mmc device 0
Initializing mmc device 0
Reading from mmc
1 blocks read: OK
1 blocks read: OK
...
pdlloyd commented 2 years ago

Closing since the issue is no longer about dummy.ex4.img.

TLDR: Run dd if=/dev/zero of=dummy.ext4.img && mkfs.ext4 dummy.ext4.img in the directory containing doflash.sh.

pdlloyd commented 2 years ago

After looking around the other branches, it looks like @lancesimms pushed this fix in the zeus-l4t-r32.3.1-kernel-tmr-lance-mod branch at https://github.com/SOL-Space-Operating-Linux/meta-sol/commit/7977c787c819b7f4a2f5c334d29d1903e4ec9a20. Can this be merged into zeus-l4t-r32.3.1-kernel-tmr?