Skip to content

Instantly share code, notes, and snippets.

@NikMJain
Created July 28, 2023 08:23
Show Gist options
  • Save NikMJain/aca198ae77b6f1855459bc8fbdd683df to your computer and use it in GitHub Desktop.
Save NikMJain/aca198ae77b6f1855459bc8fbdd683df to your computer and use it in GitHub Desktop.
Case1: Using same memory layout across SPL and U-boot proper
U-Boot 2023.10-rc1-00025-gab796a810d-dirty (Jul 28 2023 - 13:44:28 +0530)
initcall: 000000008081c8ac
U-Boot code: 80800000 -> 808A77F0 BSS: -> 808B1E20
initcall: 000000008081c754
initcall: 000000008081ca58
initcall: 0000000080802e74
SoC: AM62X SR1.0 GP
initcall: 000000008081d35c
Model: Texas Instruments AM625 SK
initcall: 000000008081ca50
initcall: 000000008081ca30
DRAM: initcall: 0000000080802fa0
initcall: 000000008081cf14
Monitor len: 000B1E20
Ram size: 80000000
Ram top: 100000000
initcall: 000000008081c720
initcall: 0000000080802e04
initcall: 000000008081c9a8
###########################
SPL frame buffer address 0xff700000, u-boot frame buffer address 0xff700000
new reloc address is 0xff700000
###########################
initcall: 000000008081cb64
initcall: 000000008081c844
Reserving 711k for U-Boot at: ff64e000
initcall: 000000008081cb94
Reserving 4220k for malloc() at: ff22f000
initcall: 000000008081c948
Reserving 152 Bytes for Board Info at: ff22ef60
initcall: 000000008081cbcc
Reserving 480 Bytes for Global Data at: ff22ed80
initcall: 000000008081cc0c
Reserving 51232 Bytes for FDT at: ff222560
initcall: 000000008081cb6c
initcall: 000000008081c734
initcall: 000000008081cb84
initcall: 000000008081cf8c
initcall: 0000000080802fa4
initcall: 000000008081cc80
RAM Configuration:
Bank #0: 80000000 2 GiB
Bank #1: 0 0 Bytes
DRAM: 2 GiB
initcall: 000000008081cfa0
initcall: 000000008081c820
New Stack Pointer is: ff221ff0
initcall: 000000008081c75c
initcall: 000000008081cb74
initcall: 000000008081c8e0
Copying bloblist from 0000000080d00000 to 00000000ff222000, size 400
initcall: 000000008081c7a0
Relocation Offset is: 7ee4e000
Relocating to ff64e000, new gd at ff22ed80, sp at ff221ff0
initcall: 000000008081cb8c
initcall: 000000008081cb4c
Core: 55 devices, 23 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=>
Case2: Using different layout across SPL and U-boot proper
U-Boot 2023.10-rc1-00025-gab796a810d-dirty (Jul 28 2023 - 13:50:03 +0530)
initcall: 000000008081c8ac
U-Boot code: 80800000 -> 808A77F0 BSS: -> 808B1E20
initcall: 000000008081c754
initcall: 000000008081ca58
initcall: 0000000080802e74
SoC: AM62X SR1.0 GP
initcall: 000000008081d35c
Model: Texas Instruments AM625 SK
initcall: 000000008081ca50
initcall: 000000008081ca30
DRAM: initcall: 0000000080802fa0
initcall: 000000008081cf14
Monitor len: 000B1E20
Ram size: 80000000
Ram top: 100000000
initcall: 000000008081c720
initcall: 0000000080802e04
initcall: 000000008081c9a8
##########################
SPL frame buffer address 0xdf700000, u-boot frame buffer address 0xff6f0000
##########################
initcall: 000000008081cb64
initcall: 000000008081c844
Reserving 711k for U-Boot at: fff3e000
initcall: 000000008081cb94
Reserving 4220k for malloc() at: ffb1f000
initcall: 000000008081c948
Reserving 152 Bytes for Board Info at: ffb1ef60
initcall: 000000008081cbcc
Reserving 480 Bytes for Global Data at: ffb1ed80
initcall: 000000008081cc0c
Reserving 51232 Bytes for FDT at: ffb12560
initcall: 000000008081cb6c
initcall: 000000008081c734
initcall: 000000008081cb84
initcall: 000000008081cf8c
initcall: 0000000080802fa4
initcall: 000000008081cc80
RAM Configuration:
Bank #0: 80000000 2 GiB
Bank #1: 0 0 Bytes
DRAM: 2 GiB
initcall: 000000008081cfa0
initcall: 000000008081c820
New Stack Pointer is: ffb11ff0
initcall: 000000008081c75c
initcall: 000000008081cb74
initcall: 000000008081c8e0
Copying bloblist from 0000000080d00000 to 00000000ffb12000, size 400
initcall: 000000008081c7a0
Relocation Offset is: 7f73e000
Relocating to fff3e000, new gd at ffb1ed80, sp at ffb11ff0
initcall: 000000008081cb8c
initcall: 000000008081cb4c
Core: 55 devices, 23 uclasses, devicetree: separate
MMC: mmc@fa10000: 0, mmc@fa00000: 1, mmc@fa20000: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
Net: eth0: ethernet@8000000port@1
Hit any key to stop autoboot: 0
=>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment