Skip to content

Instantly share code, notes, and snippets.

@manorit2001
Created May 25, 2023 05:49
Show Gist options
  • Save manorit2001/3c49cfc19bf937783efb75fd4cddc58f to your computer and use it in GitHub Desktop.
Save manorit2001/3c49cfc19bf937783efb75fd4cddc58f to your computer and use it in GitHub Desktop.
fitimage booting poc without uboot key
U-Boot SPL 2023.07-rc2-00146-g8276643a4964 (May 24 2023 - 14:36:58 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.5-22-g46459 (Chill Capybara')
ESM init failed: -19
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
Authentication passed
Authentication passed
Starting ATF on ARM64 core...
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty
NOTICE: BL31: Built : 15:49:10, Jan 24 2023
I/TC:
I/TC: OP-TEE version: 3.20.0 (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 Tue Feb 21 18:20:19 UTC 2023 aarch64
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.5-22-g46459 (Chill Capybara')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot
U-Boot SPL 2023.07-rc2-00146-g8276643a4964 (May 24 2023 - 14:37:05 +0530)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.5-22-g46459 (Chill Capybara')
Detected: J7X-BASE-CPB rev A
Detected: J7X-VSC8514-ETH rev E2
Trying to boot from MMC2
Authentication passed
Authentication passed
U-Boot 2023.07-rc2-00146-g8276643a4964 (May 24 2023 - 14:37:05 +0530)
SoC: J721E SRUnknown Revision EMU
Model: Texas Instruments K3 J721E SoC
Board: J721EX-PM2-SOM rev A
DRAM: 4 GiB
Core: 123 devices, 34 uclasses, devicetree: separate
Flash: 0 Bytes
MMC: mmc@4f80000: 0, mmc@4fb0000: 1
Loading Environment from nowhere... OK
In: serial@2800000
Out: serial@2800000
Err: serial@2800000
am65_cpsw_nuss ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
Detected: J7X-BASE-CPB rev A
Detected: J7X-VSC8514-ETH rev E2
cdns,sierra serdes@5000000: sierra probed
Net: eth0: ethernet@46000000port@1
Hit any key to stop autoboot: 0
=>
=> printenv bootcmd_ti_mmc
bootcmd_ti_mmc=run findfdt; run envboot; run init_${boot}; run main_cpsw0_qsgmii_phyinit; run boot_rprocs; if test ${boot_fit} -eq 1; then run get_fit_${boot}; run get_overlaystring; run r
un_fit; else; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern; fi;
=> run findfdt; run envboot; run init_${boot}; run main_cpsw0_qsgmii_phyinit; run boot_rprocs;
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
Failed to load 'boot.scr'
574 bytes read in 21 ms (26.4 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
=> run get_fit_${boot}; run get_overlaystring;
8478138 bytes read in 197 ms (41 MiB/s)
=> iminfo 0x90000000
## Checking Image at 90000000 ...
FIT image found
FIT description: Kernel fitImage for Arago/6.1.26+gitAUTOINC+30bcc25e7c/j721e-hs-evm
Image 0 (kernel-1)
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x900000f4
Data Size: 8247561 Bytes = 7.9 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80008000
Entry Point: 0x80008000
Hash algo: sha256
Hash value: 0ee13f3ca077caa784657395863403bf4747eea6c7dba2660c93bf8afea46786
Image 1 (fdt-ti_k3-j721e-common-proc-board.dtb)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x907ddb24
Data Size: 103178 Bytes = 100.8 KiB
Architecture: AArch64
Load Address: 0x83000000
Hash algo: sha256
Hash value: 814157af2da12da256fe0080806985d2a1ae3ad9159af2604b60767124937f20
Image 2 (fdt-ti_k3-j721e-sk.dtb)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x907f6f20
Data Size: 97420 Bytes = 95.1 KiB
Architecture: AArch64
Load Address: 0x83000000
Hash algo: sha256
Hash value: 80a66413a0bcbf358f765593aeb304bd607402dd628178677cbfa9dd2cd711e2
Image 3 (fdt-ti_k3-j721e-evm-quad-port-eth-exp.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x9080ecb0
Data Size: 4285 Bytes = 4.2 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: fba3e8dcd4c67768344991e338b08156817c50fb6f2c93f30eff66a501fc470e
Image 4 (fdt-ti_k3-j721e-evm-csi2-ov5640.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x9080fe70
Data Size: 1626 Bytes = 1.6 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: 1a5530509ca7bbee8e8e054a0c5442bdcff25300926f75adabbe40a6a4417e97
Image 5 (fdt-ti_k3-j721e-sk-csi2-ov5640.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x908105c8
Data Size: 2324 Bytes = 2.3 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: bbbefbb3d8920b6b9baf924bb4e6472da2f23a3dac882049e42330a5bee33002
Image 6 (fdt-ti_k3-j721e-evm-virt-mac-client.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x90810fe0
Data Size: 3410 Bytes = 3.3 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: e3aaa1131998fc2cd41313fd062a81f9f4f143b3adfb816932941100ddc131b0
Image 7 (fdt-ti_k3-j721e-sk-csi2-rpi-imx219.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x90811e34
Data Size: 4216 Bytes = 4.1 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: 2a9e19b208001b7007e2958645d46250d6c0fb8b5ad50c044209d01360b92559
Image 8 (fdt-ti_k3-j721e-evm-fusion.dtbo)
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x90812fa4
Data Size: 2988 Bytes = 2.9 KiB
Architecture: AArch64
Load Address: 0x83080000
Hash algo: sha256
Hash value: 18ae48ad6c04709e52f046df2bbfa64aae300a96667d39e043edd2c0032f4cc8
Default Configuration: 'conf-ti_k3-j721e-common-proc-board.dtb'
Configuration 0 (conf-ti_k3-j721e-common-proc-board.dtb)
Description: 1 Linux kernel, FDT blob
Kernel: kernel-1
FDT: fdt-ti_k3-j721e-common-proc-board.dtb
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 4113518e0eda3d2544fa8fde1070141251c276518a613206a5e74d464e314c0f8a1b64770115b564ccb11f3d768145361d9768a4e5d683610d0f1a0871a45ea453b0897d2e9f792a56007f357c98a38bda2083a66
334249e31208bcb79bf77bc8b382a2ded677922bb0fa139580060ba3d18c213711667c907a2f1965adc6994fc40b43d32f717a99c266f12fda2829e622de4879375c4b6b834f6d40acd31fd43f2f2f78fac4d7f47e8fa344fe2e331329e0
db33b71dd4d4c9875960fe2bf32bb2dca0d11e6394d32514b4c7e7a47e99870e49f0110745ee5c141096e0c3891e9b7cd6b61621022444acea37f9e35ae3f179dfa2b7e80f1c3ff5f9e0189c43c
Configuration 1 (conf-ti_k3-j721e-sk.dtb)
Description: 0 Linux kernel, FDT blob
Kernel: kernel-1
FDT: fdt-ti_k3-j721e-sk.dtb
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 72bde422c3b27275f264f85b90c2389d3a38452aea8aac2d20b069365fd5afbfa098f8c99fe622f21c28c441fa16dc4ae86846581a544d6323a2d4bcb57b010e32efde3f002c31c6c1c42a47f82df01be2c0ca269
4731e26a6eb7735d419c8484a9c4845036ea4fc52d8ecd896d9990d5418af18eb9b477bd1a3b29a524b574d7d3754801c438d6cd590951100364683c83854375245aff00ea9b9b9dba0262225d21dd1d73b955bacc95a82b683756a8e088
e50b7d28b9f1ef91fd47bccaeb3d8979b40ebe107fb0345e03983ad50f9cce7f523b2693f63f1c3349a5bfd467c84ee9945f3fae23d0450b1a681750b3db316c3be4edbbbf9e5ea96555cd8231e
Configuration 2 (conf-ti_k3-j721e-evm-quad-port-eth-exp.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-evm-quad-port-eth-exp.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 25b93e7cb7529b143719411245dacd8a81c05fe8aaf5b309797b073b376164e811193b5b21ce1c1bd9326de35fa847ddc8bd5b332d169dc0a833e23a3860a36c3a7ee9b48287504083d4e5bf9ce873452ff8f0d26
e19f011c0edcd7345064e7feb162810fb83bf19fe2abe9d2fcfdd369f587e03205c7381f3846bfc5c143c165e842849100b10b9c9c74d567c7ecd54a20ae415de861c09cb7027c44fb482a16ccae4167496899133822205d89bf8ae4d716
0e961cbd2719a32ab1510f3e787551c095c6bd0f35f075b3ccceefc4ad595b922da3cd2122de60c3c43934f7845ec75017f2bf1391912a72a1baac449da11f2ac8bee97dd5789a6c5945fdcadbe
Configuration 3 (conf-ti_k3-j721e-evm-csi2-ov5640.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-evm-csi2-ov5640.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 7edef3106da480110ef0976231873109e042333258894811ed6344ea48dc14de5bdafdda302dae2e847b61cfd6cf4ec915ea50db51811fc13e58b985d1ddb130ce56c14f26396a4325395131740f4c046ec82a9a2
a4e313c9f92858c686e37e7098da327dfb9be6068392cbbfae7e44ad06c51745c8b452f256db694e8af838c292a7e17a190a96b7b9033877152a50ba7107afcd1fd5924b58bb8853af46d19f15041f0a6c1dafa6b50f9c88ce1a4ed7fcc9
107634677632c03c40cd6c300d2377ef77a128d88f466703846ec3764b8dbfc971b460edb26e26bf537e133cb0d0dac55cf43ef4192128cf547567a850aeb9ffbc4b9e9a6c11a6ba05ce40b6a03
Configuration 4 (conf-ti_k3-j721e-sk-csi2-ov5640.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-sk-csi2-ov5640.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 7b465ef08f708d8cf504df21c7afc3cd059d1683ca78295688f98b4c40b5f85411bb87c224280929e1bc85509575575688732e4af1be422a2b10e08a8546e41bbacb21a8b3d847c8020a181fcbb5ab678732f9bb9
f38faa5c0118bdf8286d3aab1166de4c5984942c144d4a3d0d953c746f970f39ea3c04b4ae306611cc212be51b46c016492e7230d36e2c1d4cd99c788e2e0f91ea65aedc1410271fd0b44329ed2ba3d378342c50efe4cedfcc69e3e5e88e
efae970ba1bc98561e30ac507ed7d7f03cddf1738fb92a0868834b7ef16b4f56e298f0899555b9278f9e040e25a736754b48149b9e8626093d4ea78a1785f57881116f91b496d0f83acc96de1d2
Configuration 5 (conf-ti_k3-j721e-evm-virt-mac-client.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-evm-virt-mac-client.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 1ebe69bb85c077f51e906d4421b3d149dfc3c41df27e3279ea4bfbd149bcb7396a7af8ec2c77eb994aa9f2fb641c3fef84f011d9732818801a32a6dc02efa6a51630ff9f9b525afb9b7ecd3b67de941eef7c463f7
8f3e215038f96d2f0b03bb86d00a9436aaba719898d9a9fe3c8e3b54ed009f180dc23e3605a7927e64e861b9203fb1c74ad8d0dfdadbe1ea4395ed2d96c2a1098378616666bd9661bd01909f507b151a74bb296e9c339fc2871bc81938a9
729786d492408e606bb09f4569619609bc733c4edbc69585eae58b96becace10c76588a2c50047c8635c0717f211942b233e3d8b5b7f3b15f3d70aed84737ab97c85044c2b0835c6e488d1a3115
Configuration 6 (conf-ti_k3-j721e-sk-csi2-rpi-imx219.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-sk-csi2-rpi-imx219.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 9f8b3dffe888717901ceca03c9e474158fd0cb12baf9ce1b753db3cb01bd970393ce700e7893063398a43f15b8fdbc42aeb25af8247915412f6c5fc46ab38e1bb74b83abb8d37991c3c57b1a67759f943225fb227
910211d35df9b60c94da2090ae56a605ea66d13899c4790df03d2a4708821edf9fdfc42d13987e7553daa7b66c5ee90579617bf5c843f28b38754310e99754b944b5700712957b5b40125e1c19bc7a6e5b989e4ef002a6dabb2333a20567
61bea7be2ce36856ec6456908c798f6a0473248fa39e965c8646a1f44d121e661737fab880b736cd4e2f2c550c464f1a19a8fb3102902beb6ab13745ca880d4bd74b34c66ff330335ba091f4d2f
Configuration 7 (conf-ti_k3-j721e-evm-fusion.dtbo)
Description: 0 FDT blob
Kernel: unavailable
FDT: fdt-ti_k3-j721e-evm-fusion.dtbo
Hash algo: sha256
Hash value: unavailable
Sign algo: sha256,rsa2048:uboot-sign-key
Sign padding: pkcs-1.5
Sign value: 599a824227fc31876daa81300245d0b8449fee1047057fa5e3902ba4372ef071aae831918d6ee967ad7201cf5f84539891543aa5eb70e02da0dc60b86b0e8fafd7e7ed05cc3db88c25ceffc10a3beddf5d1d73d35
cda6e50438106b51f90542f961162fc671561db913c0bb668243ce0a18371bd135f5b07cf189b46df729f33418fcb97f2b139dc17f2f81055643c8117cb88d98c24273ed1a68ffc402d39849efe838229c22e6664bf70fc60d722b220bad
5084c8dd41be227c661256aab3a950804db9fd276edf442d89116a434922d47af86cb3088fd70cd456fcc12ec1594b2ab332bbcb6d1730aa5573741e8df258e51dd8a3578b4b81fe185ce15daa2
## Checking hash(es) for FIT Image at 90000000 ...
Hash(es) for Image 0 (kernel-1): sha256+
Hash(es) for Image 1 (fdt-ti_k3-j721e-common-proc-board.dtb): sha256+
Hash(es) for Image 2 (fdt-ti_k3-j721e-sk.dtb): sha256+
Hash(es) for Image 3 (fdt-ti_k3-j721e-evm-quad-port-eth-exp.dtbo): sha256+
Hash(es) for Image 4 (fdt-ti_k3-j721e-evm-csi2-ov5640.dtbo): sha256+
Hash(es) for Image 5 (fdt-ti_k3-j721e-sk-csi2-ov5640.dtbo): sha256+
Hash(es) for Image 6 (fdt-ti_k3-j721e-evm-virt-mac-client.dtbo): sha256+
Hash(es) for Image 7 (fdt-ti_k3-j721e-sk-csi2-rpi-imx219.dtbo): sha256+
Hash(es) for Image 8 (fdt-ti_k3-j721e-evm-fusion.dtbo): sha256+
=> run run_fit
name_fit_config=conf-ti_k3-j721e-common-proc-board.dtb
## Loading kernel from FIT Image at 90000000 ...
Using 'conf-ti_k3-j721e-common-proc-board.dtb' configuration
Verifying Hash Integrity ... OK
Trying 'kernel-1' kernel subimage
Description: Linux kernel
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x900000f4
Data Size: 8247561 Bytes = 7.9 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80008000
Entry Point: 0x80008000
Hash algo: sha256
Hash value: 0ee13f3ca077caa784657395863403bf4747eea6c7dba2660c93bf8afea46786
Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 90000000 ...
Using 'conf-ti_k3-j721e-common-proc-board.dtb' configuration
Verifying Hash Integrity ... OK
Trying 'fdt-ti_k3-j721e-common-proc-board.dtb' fdt subimage
Description: Flattened Device Tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x907ddb24
Data Size: 103178 Bytes = 100.8 KiB
Architecture: AArch64
Load Address: 0x83000000
Hash algo: sha256
Hash value: 814157af2da12da256fe0080806985d2a1ae3ad9159af2604b60767124937f20
Verifying Hash Integrity ... sha256+ OK
Loading fdt from 0x907ddb24 to 0x83000000
Booting using the fdt blob at 0x83000000
Working FDT set to 83000000
Uncompressing Kernel Image
Loading Device Tree to 000000008ffe3000, end 000000008ffff309 ... OK
Working FDT set to 8ffe3000
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
[ 0.000000] Linux version 6.1.26-g30bcc25e7c (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Mon May 22 14:16:59 UTC 2023
[ 0.000000] Machine model: Texas Instruments J721e EVM
[ 0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[ 0.000000] printk: bootconsole [ns16550a0] enabled
[ 0.000000] efi: UEFI not found.
[ 0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[ 0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment