summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorSandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com>2024-03-24 14:58:13 -0600
committerMark Hatle <mark.hatle@amd.com>2024-03-27 14:05:34 -0500
commit3a8be46414f736269db4a6abb2b89f4a4e79640d (patch)
treebf62020cabda468f0f5ec0ee92ad2a5b11d9042b /docs
parent649019443aa939dd6a761e1dec26af32f83a4b72 (diff)
downloadmeta-xilinx-3a8be46414f736269db4a6abb2b89f4a4e79640d.tar.gz
README.booting.versal.md: Update xen jtag boot instructions
Update xen jtag boot instruction using TFTP or XSDB tools. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/README.booting.versal.md82
1 files changed, 69 insertions, 13 deletions
diff --git a/docs/README.booting.versal.md b/docs/README.booting.versal.md
index ef817bf3..4f673689 100644
--- a/docs/README.booting.versal.md
+++ b/docs/README.booting.versal.md
@@ -57,6 +57,10 @@ Deploying the images can be done in two methods.
57 57
58#### Using devtool boot-jtag script 58#### Using devtool boot-jtag script
59 59
60> **Note:** For Xen boot flow boot-jtag script doesn't include loading xen, kernel
61> and root filesystem, This step needs to be done manually as mentioned in XSDB
62> or TFTP method below.
63
601. Run devtool command to generate the boot-jtag.tcl script. 641. Run devtool command to generate the boot-jtag.tcl script.
61``` 65```
62$ devtool boot-jtag --help 66$ devtool boot-jtag --help
@@ -125,6 +129,8 @@ Load the images into the target DDR/PL DRR load address i.e.,
125 129
126Below example uses base DDR address as 0x0 which matches in vivado address editor. 130Below example uses base DDR address as 0x0 which matches in vivado address editor.
127 131
1321. **Linux**
133
128| Image Type | Base DDR Address | Image Offset | Load Address in DDR | 134| Image Type | Base DDR Address | Image Offset | Load Address in DDR |
129|--------------------|------------------|--------------|---------------------| 135|--------------------|------------------|--------------|---------------------|
130| Kernel | 0x0 | 0x200000 | 0x200000 | 136| Kernel | 0x0 | 0x200000 | 0x200000 |
@@ -132,6 +138,15 @@ Below example uses base DDR address as 0x0 which matches in vivado address edito
132| Rootfs | 0x0 | 0x4000000 | 0x4000000 | 138| Rootfs | 0x0 | 0x4000000 | 0x4000000 |
133| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | 139| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 |
134 140
1412. **Xen**
142
143| Image Type | Base DDR Address | Image Offset | Load Address in DDR |
144|--------------------|------------------|--------------|---------------------|
145| Kernel | 0x0 | 0xE00000 | 0xE00000 |
146| Device Tree | 0x0 | 0xC000000 | 0xc000000 |
147| Rootfs | 0x0 | 0x02600000 | 0x02600000 |
148| U-boot boot script | 0x0 | 0x20000000 | 0x20000000 |
149
135> **Note:** 150> **Note:**
136> 1. `<target-image>` refers to core-image-minimal or petalinux-image-minimal 151> 1. `<target-image>` refers to core-image-minimal or petalinux-image-minimal
137> 2. For pxeboot boot create a symlink for `<target-image>-${MACHINE}-${DATETIME}.cpio.gz.u-boot` 152> 2. For pxeboot boot create a symlink for `<target-image>-${MACHINE}-${DATETIME}.cpio.gz.u-boot`
@@ -152,13 +167,23 @@ xsdb% stop
152``` 167```
1532. Using the `dow` command to load the images into the target DDR/PL DDR load 1682. Using the `dow` command to load the images into the target DDR/PL DDR load
154 address. 169 address.
155``` 170
156xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000 171 * Linux XSDB
157xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0x1000 172 ```
158xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000 173 xsdb% targets -set -nocase -filter {name =~ "*A72*#0"}
159xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 174 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000
160xsdb% targets -set -nocase -filter {name =~ "*A72*#0"} 175 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0x1000
161``` 176 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000
177 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000
178 ```
179 * Xen XSDB
180 ```
181 xsdb% targets -set -nocase -filter {name =~ "*A72*#0"}
182 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0xE00000
183 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0xc000000
184 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz 0x02600000
185 xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000
186 ```
162 187
163###### Using TFTP 188###### Using TFTP
164 189
@@ -170,13 +195,25 @@ Versal> set serverip <server ip>
170Versal> set ipaddr <board ip> 195Versal> set ipaddr <board ip>
171``` 196```
1723. Load the images to DDR address. 1973. Load the images to DDR address.
173```
174U-Boot> tftpboot 0x200000 Image
175U-Boot> tftpboot 0x1000 system.dtb
176U-Boot> tftpboot 0x4000000 core-image-minimal-${MACHINE}.cpio.gz.u-boot
177U-Boot> tftpboot 0x20000000 boot.scr
178 198
179``` 199 * Linux TFTP
200 ```
201 U-Boot> tftpboot 0x200000 Image
202 U-Boot> tftpboot 0x1000 system.dtb
203 U-Boot> tftpboot 0x4000000 core-image-minimal-${MACHINE}.cpio.gz.u-boot
204 U-Boot> tftpboot 0x20000000 boot.scr
205 ```
206
207 * Xen TFTP
208 ```
209 U-Boot> tftpboot 0xE00000 Image
210 U-Boot> setenv kernel_size 0x$filesize
211 U-Boot> tftpboot 0xc000000 system.dtb
212 U-Boot> tftpboot 0x02600000 core-image-minimal-${MACHINE}.cpio.gz
213 U-Boot> setenv ramdisk_size 0x$filesize
214 U-Boot> tftpboot 0x20000000 boot.scr
215 ```
216
180##### Booting Linux 217##### Booting Linux
181 218
182Once the images are loaded continue the execution. 219Once the images are loaded continue the execution.
@@ -191,10 +228,29 @@ xsdb% con
191xsdb% exit 228xsdb% exit
192``` 229```
1933. In the target Serial Terminal, from U-Boot prompt run `boot` command. 2303. In the target Serial Terminal, from U-Boot prompt run `boot` command.
231
232* Linux boot
194``` 233```
195U-Boot> boot 234U-Boot> boot
196``` 235```
197 236
237* XEN JTAG boot
238
239 * XSDB
240 > **Note:** You need to calculate the Kernel(kernel_size) and ramdisk(ramdisk_size)
241 > image size manually from `${DEPLOY_DIR_IMAGE}` directory. For example if your
242 > kernel size is 24269312 bytes you need to convert to hex 0x1725200 and use it.
243 ```
244 U-Boot> setenv kernel_size <filesize>
245 U-Boot> setenv ramdisk_size <filesize>
246 U-Boot> boot
247 ```
248
249 * TFTP
250 ```
251 U-Boot> boot
252 ```
253
198## Booting from SD 254## Booting from SD
199 255
2001. Load the SD card into the VCK190 board in the J302 SD slot. 2561. Load the SD card into the VCK190 board in the J302 SD slot.