summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-03-28 12:33:42 -0600
committerMark Hatle <mark.hatle@amd.com>2024-03-28 15:47:18 -0500
commit5cdfefedec4f0ffba024489e13c9034dd5814da6 (patch)
treef7357ead0e63520e93b367177cbe4a0ce5ae006b
parent4c33e04ce9d3ea075c0012747fe8658d21c95109 (diff)
downloadmeta-xilinx-5cdfefedec4f0ffba024489e13c9034dd5814da6.tar.gz
README.booting.zynqmp.md: Add missing xen jtag boot steps
1. Add missing xen jtag boot steps. 2. Add info on how to calculate zynqmp xen image offset for JTAG boot. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
-rw-r--r--docs/README.booting.zynqmp.md52
1 files changed, 38 insertions, 14 deletions
diff --git a/docs/README.booting.zynqmp.md b/docs/README.booting.zynqmp.md
index 3b73dbbb..44e6f2b7 100644
--- a/docs/README.booting.zynqmp.md
+++ b/docs/README.booting.zynqmp.md
@@ -132,7 +132,10 @@ xsdb% rst -processor -clear-registers
132xsdb% dow ${DEPLOY_DIR_IMAGE}/zynqmp_fsbl.elf 132xsdb% dow ${DEPLOY_DIR_IMAGE}/zynqmp_fsbl.elf
133xsdb% con 133xsdb% con
134``` 134```
1357. Now download TF-A, U-boot.elf and Device tree to APU and execute. 1357. Now download TF-A, U-boot.elf and Device tree blob to APU and execute.
136
137> **Note:** For Xen boot system.dtb load address will vary, see below table.
138
136``` 139```
137xsdb% stop 140xsdb% stop
138xsdb% dow ${DEPLOY_DIR_IMAGE}/bl31.elf 141xsdb% dow ${DEPLOY_DIR_IMAGE}/bl31.elf
@@ -159,18 +162,24 @@ Below example uses base DDR address as 0x0 which matches in vivado address edito
159 162
160| Image Type | Base DDR Address | Image Offset | Load Address in DDR | 163| Image Type | Base DDR Address | Image Offset | Load Address in DDR |
161|--------------------|------------------|--------------|---------------------| 164|--------------------|------------------|--------------|---------------------|
162| Kernel | 0x0 | 0x200000 | 0x200000 | 165| Linux Kernel | 0x0 | 0x200000 | 0x200000 |
163| Device Tree | 0x0 | 0x1000 | 0x1000 | 166| Device Tree Blob | 0x0 | 0x100000 | 0x100000 |
164| Rootfs | 0x0 | 0x04000000 | 0x4000000 | 167| Rootfs | 0x0 | 0x04000000 | 0x4000000 |
165| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | 168| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 |
166 169
1672. **Xen** 1702. **Xen**
168 171
172> **Note:** Xen, Rootfs and Device Tree image offset is calculated as shown below.
173> * `Xen Rootfs = Base DDR Address + Linux Kernel Image Offset(0xE00000) + Size of Linux Kernel Image`
174> * `Xen Kernel = Base DDR Address + Xen Rootfs Image Offset (Ex: 0x2600000) + Size of Xen Rootfs`
175> * `Device Tree Blob = Base DDR Address + Xen Kernel Image Offset (Ex: 0xBA00000) + Size of Device Tree Blob`
176
169| Image Type | Base DDR Address | Image Offset | Load Address in DDR | 177| Image Type | Base DDR Address | Image Offset | Load Address in DDR |
170|--------------------|------------------|--------------|---------------------| 178|--------------------|------------------|--------------|---------------------|
171| Kernel | 0x0 | 0xE00000 | 0xE00000 | 179| Linux Kernel | 0x0 | 0xE00000 | 0xE00000 |
172| Device Tree | 0x0 | 0xC000000 | 0xc000000 | 180| Xen Rootfs | 0x0 | 0x2600000 | 0x2600000 |
173| Rootfs | 0x0 | 0x02600000 | 0x02600000 | 181| Xen Kernel | 0x0 | 0xBA00000 | 0xBA00000 |
182| Device Tree Blob | 0x0 | 0xC000000 | 0xC000000 |
174| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | 183| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 |
175 184
176> **Note:** 185> **Note:**
@@ -202,12 +211,14 @@ xsdb% stop
202 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000 211 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000
203 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 212 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000
204 ``` 213 ```
214
205 * Xen XSDB 215 * Xen XSDB
206 ``` 216 ```
207 xsdb% targets -set -nocase -filter {name =~ "*A53*#0"} 217 xsdb% targets -set -nocase -filter {name =~ "*A53*#0"}
208 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0xE00000 218 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0xE00000
209 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0xc000000 219 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz 0x2600000
210 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz 0x02600000 220 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/xen 0xBA00000
221 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0xC000000
211 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 222 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000
212 ``` 223 ```
213 224
@@ -221,13 +232,26 @@ ZynqMP> set serverip <host-server-ip-address>
221ZynqMP> set ipaddr <board-ip-address> 232ZynqMP> set ipaddr <board-ip-address>
222``` 233```
2233. Load the images to DDR address. 2343. Load the images to DDR address.
224```
225U-Boot> tftpboot 0x200000 Image
226U-Boot> tftpboot 0x100000 system.dtb
227U-Boot> tftpboot 0x4000000 core-image-minimal-${MACHINE}.cpio.gz.u-boot
228U-Boot> tftpboot 0x20000000 boot.scr
229 235
230``` 236 * Linux TFTP
237 ```
238 U-Boot> tftpboot 0x200000 Image
239 U-Boot> tftpboot 0x100000 system.dtb
240 U-Boot> tftpboot 0x4000000 core-image-minimal-${MACHINE}.cpio.gz.u-boot
241 U-Boot> tftpboot 0x20000000 boot.scr
242 ```
243
244 * Xen TFTP
245 ```
246 U-Boot> tftpboot 0xE00000 Image
247 U-Boot> setenv kernel_size 0x$filesize
248 U-Boot> tftpboot 0x2600000 core-image-minimal-${MACHINE}.cpio.gz
249 U-Boot> setenv ramdisk_size 0x$filesize
250 U-Boot> tftpboot 0xBA00000 xen
251 U-Boot> tftpboot 0xC000000 system.dtb
252 U-Boot> tftpboot 0x20000000 boot.scr
253 ```
254
231##### Booting Linux 255##### Booting Linux
232 256
233Once the images are loaded continue the execution. 257Once the images are loaded continue the execution.