Created
September 24, 2023 11:08
-
-
Save uditkumarti/5d08c34442235ad270cfa863792ebcdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lmb_add seqeunce | |
1) First 0xfdea0320 - 0xffffffff is requested and this is being added at rgn[0] | |
2) Next 0x9e800000-0xa47fffff is requested, this is being added at rgn[0] and rgn[0] of step 1 is shifted to rgn[1] | |
3) next 0xfcea0000 - FCEA4000 is requested, this is being added to rgn[1], and rgn[1] of step [2] shifted to rgn[2]. | |
reserved[0] [0x9e800000-0xa47fffff], 0x06000000 bytes flags: 4 | |
reserved[1] [0xfcea0000-0xFCEA4000], 0x00004000 bytes flags: 0 | |
reserved[2] [0xfdea0320-0xffffffff], 0x0215fce0 bytes flags: 0 | |
^^ How lpm_dump looks after after step 3 | |
4) next 0xFCEA4000 to 0xffffffff is requested, Since this coalesced with rgn[1], So at below this is being added | |
https://elixir.bootlin.com/u-boot/latest/source/lib/lmb.c#L272 | |
5) Next we check with next range (https://elixir.bootlin.com/u-boot/latest/source/lib/lmb.c#L281) but this check fails because both | |
rgn has different base. | |
6) Ideally at step 5) we should check for overlap between next rng and this rng | |
U-Boot SPL 2023.10-rc4-00057-g4cb31a9f35 (Sep 24 2023 - 15:37:54 +0530) | |
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
Trying to boot from MMC2 | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Loading Environment from nowhere... OK | |
Starting ATF on ARM64 core... | |
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty | |
NOTICE: BL31: Built : 00:42:57, Jan 13 2023 | |
I/TC: | |
I/TC: OP-TEE version: 3.20.0 (gcc version 11.3.0 (GCC)) #1 Fri Jan 20 15:42:54 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 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
I/TC: HUK Initialized | |
I/TC: Activated SA2UL device | |
I/TC: Fixing SA2UL firewall owner for GP 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.10-rc4-00057-g4cb31a9f35 (Sep 24 2023 - 15:38:01 +0530) | |
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
Detected: J7X-BASE-CPB rev E3 | |
Detected: J7X-VSC8514-ETH rev E2 | |
error getting GPIO lookup name: -22 | |
Trying to boot from MMC2 | |
am654_sdhci mmc@4fb0000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19 | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
U-Boot 2023.10-rc4-00057-g4cb31a9f35 (Sep 24 2023 - 15:38:01 +0530) | |
SoC: J7200 SR2.0 GP | |
Model: Texas Instruments K3 J7200 SoC | |
Board: J7200X-PM2-SOM rev E7 | |
DRAM: 4 GiB | |
Core: 84 devices, 32 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: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 | |
Detected: J7X-BASE-CPB rev E3 | |
Detected: J7X-VSC8514-ETH rev E2 | |
Net: eth0: ethernet@46000000port@1 | |
Hit any key to stop autoboot: 0 | |
=> bdinfo | |
boot_params = 0x0000000000000000 | |
DRAM bank = 0x0000000000000000 | |
-> start = 0x0000000080000000 | |
-> size = 0x0000000080000000 | |
DRAM bank = 0x0000000000000001 | |
-> start = 0x0000000880000000 | |
-> size = 0x0000000080000000 | |
flashstart = 0x0000000000000000 | |
flashsize = 0x0000000000000000 | |
flashoffset = 0x0000000000000000 | |
baudrate = 115200 bps | |
relocaddr = 0x00000000ffed3000 | |
reloc off = 0x000000007f6d3000 | |
Build = 64-bit | |
current eth = ethernet@46000000port@1 | |
ethaddr = f4:84:4c:fc:28:0b | |
IP addr = <NULL> | |
fdt_blob = 0x00000000fdea4930 | |
new_fdt = 0x00000000fdea4930 | |
fdt_size = 0x000000000000e480 | |
lmb_dump_all: | |
memory.cnt = 0x2 / max = 0x10 | |
memory[0] [0x80000000-0xffffffff], 0x80000000 bytes flags: 0 | |
memory[1] [0x880000000-0x8ffffffff], 0x80000000 bytes flags: 0 | |
reserved.cnt = 0x4 / max = 0x10 | |
reserved[0] [0x9e800000-0xa47fffff], 0x06000000 bytes flags: 4 | |
reserved[1] [0xfcea0000-0xffffffff], 0x03160000 bytes flags: 0 | |
reserved[2] [0xfdea0320-0xffffffff], 0x0215fce0 bytes flags: 0 | |
reserved[3] [0x880000000-0x8ffffffff], 0x80000000 bytes flags: 0 | |
devicetree = separate | |
serial addr = 0x0000000002800000 | |
width = 0x0000000000000000 | |
shift = 0x0000000000000002 | |
offset = 0x0000000000000000 | |
clock = 0x0000000002dc6c00 | |
arch_number = 0x0000000000000000 | |
TLB addr = 0x00000000ffff0000 | |
irq_sp = 0x00000000fdea4920 | |
sp start = 0x00000000fdea4920 | |
Early malloc usage: 29d8 / 8000 | |
Logs with patch | |
U-Boot SPL 2023.10-rc4-00057-g4cb31a9f35-dirty (Sep 24 2023 - 16:06:33 +0530) | |
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
Trying to boot from MMC2 | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Loading Environment from nowhere... OK | |
Starting ATF on ARM64 core... | |
NOTICE: BL31: v2.8(release):v2.8-226-g2fcd408bb3-dirty | |
NOTICE: BL31: Built : 00:42:57, Jan 13 2023 | |
I/TC: | |
I/TC: OP-TEE version: 3.20.0 (gcc version 11.3.0 (GCC)) #1 Fri Jan 20 15:42:54 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 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
I/TC: HUK Initialized | |
I/TC: Activated SA2UL device | |
I/TC: Fixing SA2UL firewall owner for GP 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.10-rc4-00057-g4cb31a9f35-dirty (Sep 24 2023 - 16:06:41 +0530) | |
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.6--v09.00.06 (Kool Koala)') | |
Detected: J7X-BASE-CPB rev E3 | |
Detected: J7X-VSC8514-ETH rev E2 | |
error getting GPIO lookup name: -22 | |
Trying to boot from MMC2 | |
am654_sdhci mmc@4fb0000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19 | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted | |
U-Boot 2023.10-rc4-00057-g4cb31a9f35-dirty (Sep 24 2023 - 16:06:41 +0530) | |
SoC: J7200 SR2.0 GP | |
Model: Texas Instruments K3 J7200 SoC | |
Board: J7200X-PM2-SOM rev E7 | |
DRAM: 4 GiB | |
Core: 84 devices, 32 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: 0x6BA02102 cpsw_ver: 0x6BA82102 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000 | |
Detected: J7X-BASE-CPB rev E3 | |
Detected: J7X-VSC8514-ETH rev E2 | |
Net: eth0: ethernet@46000000port@1 | |
Hit any key to stop autoboot: 0 | |
=> | |
=> | |
=> | |
=> bdinfo | |
boot_params = 0x0000000000000000 | |
DRAM bank = 0x0000000000000000 | |
-> start = 0x0000000080000000 | |
-> size = 0x0000000080000000 | |
DRAM bank = 0x0000000000000001 | |
-> start = 0x0000000880000000 | |
-> size = 0x0000000080000000 | |
flashstart = 0x0000000000000000 | |
flashsize = 0x0000000000000000 | |
flashoffset = 0x0000000000000000 | |
baudrate = 115200 bps | |
relocaddr = 0x00000000ffed3000 | |
reloc off = 0x000000007f6d3000 | |
Build = 64-bit | |
current eth = ethernet@46000000port@1 | |
ethaddr = f4:84:4c:fc:28:0b | |
IP addr = <NULL> | |
fdt_blob = 0x00000000fdea49d0 | |
new_fdt = 0x00000000fdea49d0 | |
fdt_size = 0x000000000000e3e0 | |
lmb_dump_all: | |
memory.cnt = 0x2 / max = 0x10 | |
memory[0] [0x80000000-0xffffffff], 0x80000000 bytes flags: 0 | |
memory[1] [0x880000000-0x8ffffffff], 0x80000000 bytes flags: 0 | |
reserved.cnt = 0x3 / max = 0x10 | |
reserved[0] [0x9e800000-0xa47fffff], 0x06000000 bytes flags: 4 | |
reserved[1] [0xfcea0000-0xffffffff], 0x03160000 bytes flags: 0 | |
reserved[2] [0x880000000-0x8ffffffff], 0x80000000 bytes flags: 0 | |
devicetree = separate | |
serial addr = 0x0000000002800000 | |
width = 0x0000000000000000 | |
shift = 0x0000000000000002 | |
offset = 0x0000000000000000 | |
clock = 0x0000000002dc6c00 | |
arch_number = 0x0000000000000000 | |
TLB addr = 0x00000000ffff0000 | |
irq_sp = 0x00000000fdea49c0 | |
sp start = 0x00000000fdea49c0 | |
Early malloc usage: 29d8 / 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment