Files
u-boot/doc/develop/pics/spl_after_reloc.svg
Anshul Dalal 0e4fad5f41 doc: memory: fix encodings for spl layout diagrams
The commit 284ef1bbce ("doc: memory: Add documentation for system
RAM") added documentation for U-Boot's memory usage along with diagrams
showcasing the SPL's memory usage. Although the SVGs for the diagrams
were improperly encoded.

Therefore, this patch fixes the older SVGs with one's with better
encoding and reduced size created using inkscape[1].

[1]: https://inkscape.org/

Reported-by: Alexander Dahl <ada@thorsis.com>
Fixes: 284ef1bbce ("doc: memory: Add documentation for system RAM")
Signed-off-by: Anshul Dalal <anshuld@ti.com>
2025-09-27 09:11:54 +02:00

294 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="380mm"
height="220.00002mm"
viewBox="0 0 380 220.00001"
version="1.1"
id="svg1"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs1">
<marker
style="overflow:visible"
id="ArrowWide"
refX="0"
refY="0"
orient="auto-start-reverse"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
preserveAspectRatio="xMidYMid">
<path
style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt"
d="M 3,-3 0,0 3,3"
transform="rotate(180,0.125,0)"
id="path17" />
</marker>
<marker
style="overflow:visible"
id="ArrowWide-7"
refX="0"
refY="0"
orient="auto-start-reverse"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
preserveAspectRatio="xMidYMid">
<path
style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt"
d="M 3,-3 0,0 3,3"
transform="rotate(180,0.125,0)"
id="path17-6" />
</marker>
<marker
style="overflow:visible"
id="ArrowWide-4"
refX="0"
refY="0"
orient="auto-start-reverse"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
preserveAspectRatio="xMidYMid">
<path
style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt"
d="M 3,-3 0,0 3,3"
transform="rotate(180,0.125,0)"
id="path17-5" />
</marker>
<marker
style="overflow:visible"
id="ArrowWide-7-7"
refX="0"
refY="0"
orient="auto-start-reverse"
markerWidth="1"
markerHeight="1"
viewBox="0 0 1 1"
preserveAspectRatio="xMidYMid">
<path
style="fill:none;stroke:context-stroke;stroke-width:1;stroke-linecap:butt"
d="M 3,-3 0,0 3,3"
transform="rotate(180,0.125,0)"
id="path17-6-5" />
</marker>
</defs>
<g
id="layer1">
<rect
style="fill:#f5f5f5;fill-opacity:1;stroke:#000000;stroke-width:0.102829"
id="rect1"
width="120.22357"
height="11.25714"
x="108.27887"
y="13.343743" />
<rect
style="fill:#f5f5f5;fill-opacity:1;stroke:#000000;stroke-width:0.258189"
id="rect1-3"
width="120.06821"
height="71.061607"
x="108.35654"
y="40.234959" />
<rect
style="fill:#f5f5f5;fill-opacity:1;stroke:#000000;stroke-width:0.160376"
id="rect1-3-1"
width="120.16603"
height="27.395666"
x="108.30757"
y="135.95316" />
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.396875;stroke-dasharray:0.396875, 0.79375;stroke-dashoffset:0"
d="M 108.22745,24.652298 V 40.105865"
id="path1" />
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.493071;stroke-dasharray:0.493071, 0.986141;stroke-dashoffset:0"
d="m 108.42588,112.02018 v 23.85279"
id="path1-8" />
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.397;stroke-dasharray:0.397, 0.794;stroke-dashoffset:0;stroke-opacity:1"
d="M 228.55385,40.105865 V 24.652298"
id="path4" />
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.396999;stroke-dasharray:0.396999, 0.793998;stroke-dashoffset:0;stroke-opacity:1"
d="m 108.22739,163.429 v 28.76427"
id="path5" />
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.396999;stroke-dasharray:0.396999, 0.793999;stroke-dashoffset:0;stroke-opacity:1"
d="m 228.55379,163.429 v 28.76427"
id="path6" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7.05556px;font-family:'Adwaita Sans';-inkscape-font-specification:'Adwaita Sans';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#dbe4f4;stroke:#000000;stroke-width:0.197;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
x="124.06213"
y="202.25839"
id="text6"><tspan
id="tspan6"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:7.05556px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.197;stroke-dasharray:none;stroke-opacity:1"
x="124.06213"
y="202.25839">DRAM SPL after relocation</tspan></text>
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.197;stroke-dasharray:none;stroke-opacity:1"
d="M 228.75235,68.336237 H 108.42589"
id="path7" />
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.197;stroke-dasharray:none;stroke-opacity:1"
d="M 228.55388,83.195287 H 108.22742"
id="path7-2" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="138.99493"
y="57.933369"
id="text7"><tspan
id="tspan7"
style="stroke-width:0;stroke-dasharray:none"
x="138.99493"
y="57.933369">Heap (simple_malloc)</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="151.29668"
y="77.783203"
id="text8"><tspan
id="tspan8"
style="stroke-width:0;stroke-dasharray:none"
x="151.29668"
y="77.783203">Global Data</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="159.15149"
y="99.138878"
id="text9"><tspan
id="tspan9"
style="stroke-width:0;stroke-dasharray:none"
x="159.15149"
y="99.138878">Stack</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="153.44983"
y="152.0687"
id="text10"><tspan
id="tspan10"
style="stroke-width:0;stroke-dasharray:none"
x="153.44983"
y="152.0687">SPL BSS</tspan></text>
<g
id="page1"
transform="matrix(-3.4335249,0,0,3.575147,1039.0016,-257.0954)"
style="stroke-width:0.225862;stroke-dasharray:none">
<path
d="m 233.5203,84.778064 c 0,-0.47821 0.31084,-1.24334 1.61395,-1.32702 0.0598,-0.01196 0.1076,-0.05978 0.1076,-0.13151 0,-0.13151 -0.0956,-0.13151 -0.22715,-0.13151 -1.19552,0 -2.28344,0.60972 -2.29539,1.4944 v 2.72578 c 0,0.46625 0,0.84882 -0.47821,1.24334 -0.41843,0.3467 -0.87273,0.37061 -1.13574,0.38256 -0.0598,0.01196 -0.10759,0.05978 -0.10759,0.13151 0,0.11955 0.0717,0.11955 0.19127,0.1315 0.78905,0.04783 1.36289,0.47821 1.4944,1.06401 0.0359,0.13151 0.0359,0.15542 0.0359,0.58581 v 2.36712 c 0,0.50212 0,0.88468 0.57384,1.33898 0.46626,0.35866 1.2553,0.49016 1.72155,0.49016 0.13151,0 0.22715,0 0.22715,-0.1315 0,-0.11956 -0.0717,-0.11956 -0.19129,-0.13151 -0.75317,-0.04782 -1.33897,-0.43039 -1.49439,-1.0401 -0.0359,-0.1076 -0.0359,-0.13151 -0.0359,-0.56189 v -2.51059 c 0,-0.54994 -0.0956,-0.75318 -0.4782,-1.13574 -0.25106,-0.25106 -0.59776,-0.37061 -0.93251,-0.46625 0.98033,-0.27497 1.41071,-0.82491 1.41071,-1.51831 z"
id="use1"
style="stroke-width:0.225862;stroke-dasharray:none" />
</g>
<g
id="page1-3"
transform="matrix(-3.4335249,0,0,2.353113,1039.0015,-60.165775)"
style="stroke-width:0.225862;stroke-dasharray:none">
<path
d="m 233.5203,84.778064 c 0,-0.47821 0.31084,-1.24334 1.61395,-1.32702 0.0598,-0.01196 0.1076,-0.05978 0.1076,-0.13151 0,-0.13151 -0.0956,-0.13151 -0.22715,-0.13151 -1.19552,0 -2.28344,0.60972 -2.29539,1.4944 v 2.72578 c 0,0.46625 0,0.84882 -0.47821,1.24334 -0.41843,0.3467 -0.87273,0.37061 -1.13574,0.38256 -0.0598,0.01196 -0.10759,0.05978 -0.10759,0.13151 0,0.11955 0.0717,0.11955 0.19127,0.1315 0.78905,0.04783 1.36289,0.47821 1.4944,1.06401 0.0359,0.13151 0.0359,0.15542 0.0359,0.58581 v 2.36712 c 0,0.50212 0,0.88468 0.57384,1.33898 0.46626,0.35866 1.2553,0.49016 1.72155,0.49016 0.13151,0 0.22715,0 0.22715,-0.1315 0,-0.11956 -0.0717,-0.11956 -0.19129,-0.13151 -0.75317,-0.04782 -1.33897,-0.43039 -1.49439,-1.0401 -0.0359,-0.1076 -0.0359,-0.13151 -0.0359,-0.56189 v -2.51059 c 0,-0.54994 -0.0956,-0.75318 -0.4782,-1.13574 -0.25106,-0.25106 -0.59776,-0.37061 -0.93251,-0.46625 0.98033,-0.27497 1.41071,-0.82491 1.41071,-1.51831 z"
id="use1-6"
style="stroke-width:0.225862;stroke-dasharray:none" />
</g>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="18.482538"
y="69.614975"
id="text11"><tspan
id="tspan11"
style="stroke-width:0;stroke-dasharray:none"
x="18.482538"
y="69.614975">gd, gd-&gt;start_addr_sp</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="11.63583"
y="84.586922"
id="text12"><tspan
style="stroke-width:0"
x="11.63583"
y="84.586922"
id="tspan13">CONFIG_SPL_STACK_R_ADDR</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="4.8624992"
y="137.3631"
id="text15"><tspan
id="tspan15"
style="stroke-width:0"
x="4.8624992"
y="137.3631">CONFIG_SPL_BSS_START_ADDR</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="246.8654"
y="63.174892"
id="text15-1"><tspan
style="font-size:5.64444px;stroke-width:0"
x="246.8654"
y="63.174892"
id="tspan19">CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN</tspan></text>
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="96.962616"
y="13.224601"
id="text16"><tspan
id="tspan16"
style="stroke-width:0"
x="96.962616"
y="13.224601">0x0</tspan></text>
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#ArrowWide)"
d="M 90.397754,83.096787 H 107.84461"
id="path16" />
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#ArrowWide-7)"
d="M 90.397754,68.260822 H 107.84461"
id="path16-9" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="37.407318"
y="41.483105"
id="text11-6"><tspan
id="tspan11-2"
style="stroke-width:0;stroke-dasharray:none"
x="37.407318"
y="41.483105">gd-&gt;malloc_base</tspan><tspan
style="stroke-width:0;stroke-dasharray:none"
x="37.407318"
y="48.538654"
id="tspan2" /></text>
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#ArrowWide-7-7)"
d="M 90.397755,40.105865 H 107.84461"
id="path16-9-9" />
<path
style="fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0.4;stroke-dasharray:none;stroke-opacity:1;marker-end:url(#ArrowWide-4)"
d="M 90.596121,135.87296 H 108.04298"
id="path16-4" />
<text
xml:space="preserve"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.64444px;font-family:'Source Code Pro';-inkscape-font-specification:'Source Code Pro';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#000307;fill-opacity:1;stroke:#000000;stroke-width:0;stroke-dasharray:none;stroke-opacity:1"
x="248.23688"
y="151.14113"
id="text22"><tspan
id="tspan22"
style="stroke-width:0"
x="248.23688"
y="151.14113">CONFIG_SPL_BSS_MAX_SIZE</tspan></text>
<path
style="fill:#dbe4f4;stroke:#000000;stroke-width:0.498731;stroke-dasharray:0.498731, 0.997463;stroke-dashoffset:0"
d="m 228.55384,111.46932 v 24.40365"
id="path1-4" />
</g>
</svg>