diff options
| author | Sandeep Gundlupet Raju <sandeep.gundlupet-raju@amd.com> | 2024-03-24 14:58:14 -0600 |
|---|---|---|
| committer | Mark Hatle <mark.hatle@amd.com> | 2024-03-27 14:05:34 -0500 |
| commit | 3a12cf3c927ac016b9dc288d441e68e504d74830 (patch) | |
| tree | ff788376ebf19c328625c48a11206349a785091c /docs | |
| parent | 3a8be46414f736269db4a6abb2b89f4a4e79640d (diff) | |
| download | meta-xilinx-3a12cf3c927ac016b9dc288d441e68e504d74830.tar.gz | |
README.booting.zynqmp.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.zynqmp.md | 57 |
1 files changed, 51 insertions, 6 deletions
diff --git a/docs/README.booting.zynqmp.md b/docs/README.booting.zynqmp.md index 80e6d5ae..3b73dbbb 100644 --- a/docs/README.booting.zynqmp.md +++ b/docs/README.booting.zynqmp.md | |||
| @@ -54,6 +54,10 @@ Deploying the images can be done in two methods. | |||
| 54 | 54 | ||
| 55 | #### Using devtool boot-jtag script | 55 | #### Using devtool boot-jtag script |
| 56 | 56 | ||
| 57 | > **Note:** For Xen boot flow boot-jtag script doesn't include loading xen, kernel | ||
| 58 | > and root filesystem, This step needs to be done manually as mentioned in XSDB | ||
| 59 | > or TFTP method below. | ||
| 60 | |||
| 57 | 1. Run devtool command to generate the boot-jtag.tcl script. | 61 | 1. Run devtool command to generate the boot-jtag.tcl script. |
| 58 | ``` | 62 | ``` |
| 59 | $ devtool boot-jtag --help | 63 | $ devtool boot-jtag --help |
| @@ -151,6 +155,8 @@ Load the images into the target DDR/PL DRR load address i.e., | |||
| 151 | 155 | ||
| 152 | Below example uses base DDR address as 0x0 which matches in vivado address editor. | 156 | Below example uses base DDR address as 0x0 which matches in vivado address editor. |
| 153 | 157 | ||
| 158 | 1. **Linux** | ||
| 159 | |||
| 154 | | Image Type | Base DDR Address | Image Offset | Load Address in DDR | | 160 | | Image Type | Base DDR Address | Image Offset | Load Address in DDR | |
| 155 | |--------------------|------------------|--------------|---------------------| | 161 | |--------------------|------------------|--------------|---------------------| |
| 156 | | Kernel | 0x0 | 0x200000 | 0x200000 | | 162 | | Kernel | 0x0 | 0x200000 | 0x200000 | |
| @@ -158,6 +164,15 @@ Below example uses base DDR address as 0x0 which matches in vivado address edito | |||
| 158 | | Rootfs | 0x0 | 0x04000000 | 0x4000000 | | 164 | | Rootfs | 0x0 | 0x04000000 | 0x4000000 | |
| 159 | | U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | | 165 | | U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | |
| 160 | 166 | ||
| 167 | 2. **Xen** | ||
| 168 | |||
| 169 | | Image Type | Base DDR Address | Image Offset | Load Address in DDR | | ||
| 170 | |--------------------|------------------|--------------|---------------------| | ||
| 171 | | Kernel | 0x0 | 0xE00000 | 0xE00000 | | ||
| 172 | | Device Tree | 0x0 | 0xC000000 | 0xc000000 | | ||
| 173 | | Rootfs | 0x0 | 0x02600000 | 0x02600000 | | ||
| 174 | | U-boot boot script | 0x0 | 0x20000000 | 0x20000000 | | ||
| 175 | |||
| 161 | > **Note:** | 176 | > **Note:** |
| 162 | > 1. `<target-image>` refers to core-image-minimal or petalinux-image-minimal | 177 | > 1. `<target-image>` refers to core-image-minimal or petalinux-image-minimal |
| 163 | > 2. For pxeboot boot create a symlink for `<target-image>-${MACHINE}-${DATETIME}.cpio.gz.u-boot` | 178 | > 2. For pxeboot boot create a symlink for `<target-image>-${MACHINE}-${DATETIME}.cpio.gz.u-boot` |
| @@ -178,12 +193,23 @@ xsdb% stop | |||
| 178 | ``` | 193 | ``` |
| 179 | 2. Using the `dow` command to load the images into the target DDR/PL DDR load | 194 | 2. Using the `dow` command to load the images into the target DDR/PL DDR load |
| 180 | address. | 195 | address. |
| 181 | ``` | 196 | |
| 182 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000 | 197 | * Linux XSDB |
| 183 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0x100000 | 198 | ``` |
| 184 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000 | 199 | xsdb% targets -set -nocase -filter {name =~ "*A53*#0"} |
| 185 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 | 200 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000 |
| 186 | ``` | 201 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0x100000 |
| 202 | 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 | ||
| 204 | ``` | ||
| 205 | * Xen XSDB | ||
| 206 | ``` | ||
| 207 | xsdb% targets -set -nocase -filter {name =~ "*A53*#0"} | ||
| 208 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0xE00000 | ||
| 209 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0xc000000 | ||
| 210 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz 0x02600000 | ||
| 211 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 | ||
| 212 | ``` | ||
| 187 | 213 | ||
| 188 | ###### Using TFTP | 214 | ###### Using TFTP |
| 189 | 215 | ||
| @@ -216,10 +242,29 @@ xsdb% con | |||
| 216 | xsdb% exit | 242 | xsdb% exit |
| 217 | ``` | 243 | ``` |
| 218 | 3. In the target Serial Terminal, from U-Boot prompt run `boot` command. | 244 | 3. In the target Serial Terminal, from U-Boot prompt run `boot` command. |
| 245 | |||
| 246 | * Linux boot | ||
| 219 | ``` | 247 | ``` |
| 220 | U-Boot> boot | 248 | U-Boot> boot |
| 221 | ``` | 249 | ``` |
| 222 | 250 | ||
| 251 | * XEN JTAG boot | ||
| 252 | |||
| 253 | * XSDB | ||
| 254 | > **Note:** You need to calculate the Kernel(kernel_size) and ramdisk(ramdisk_size) | ||
| 255 | > image size manually from `${DEPLOY_DIR_IMAGE}` directory. For example if your | ||
| 256 | > kernel size is 24269312 bytes you need to convert to hex 0x1725200 and use it. | ||
| 257 | ``` | ||
| 258 | U-Boot> setenv kernel_size <filesize> | ||
| 259 | U-Boot> setenv ramdisk_size <filesize> | ||
| 260 | U-Boot> boot | ||
| 261 | ``` | ||
| 262 | |||
| 263 | * TFTP | ||
| 264 | ``` | ||
| 265 | U-Boot> boot | ||
| 266 | ``` | ||
| 267 | |||
| 223 | ## Booting from SD | 268 | ## Booting from SD |
| 224 | 269 | ||
| 225 | 1. Load the SD card into the ZCU102 board in the J100 SD slot. | 270 | 1. Load the SD card into the ZCU102 board in the J100 SD slot. |
