diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.booting.versal.md | 82 |
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 | |||
| 60 | 1. Run devtool command to generate the boot-jtag.tcl script. | 64 | 1. 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 | ||
| 126 | Below example uses base DDR address as 0x0 which matches in vivado address editor. | 130 | Below example uses base DDR address as 0x0 which matches in vivado address editor. |
| 127 | 131 | ||
| 132 | 1. **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 | ||
| 141 | 2. **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 | ``` |
| 153 | 2. Using the `dow` command to load the images into the target DDR/PL DDR load | 168 | 2. Using the `dow` command to load the images into the target DDR/PL DDR load |
| 154 | address. | 169 | address. |
| 155 | ``` | 170 | |
| 156 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000 | 171 | * Linux XSDB |
| 157 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/system.dtb 0x1000 | 172 | ``` |
| 158 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/core-image-minimal-${MACHINE}.cpio.gz.u-boot 0x4000000 | 173 | xsdb% targets -set -nocase -filter {name =~ "*A72*#0"} |
| 159 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/boot.scr 0x20000000 | 174 | xsdb% dow -data ${DEPLOY_DIR_IMAGE}/Image 0x200000 |
| 160 | xsdb% 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> | |||
| 170 | Versal> set ipaddr <board ip> | 195 | Versal> set ipaddr <board ip> |
| 171 | ``` | 196 | ``` |
| 172 | 3. Load the images to DDR address. | 197 | 3. Load the images to DDR address. |
| 173 | ``` | ||
| 174 | U-Boot> tftpboot 0x200000 Image | ||
| 175 | U-Boot> tftpboot 0x1000 system.dtb | ||
| 176 | U-Boot> tftpboot 0x4000000 core-image-minimal-${MACHINE}.cpio.gz.u-boot | ||
| 177 | U-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 | ||
| 182 | Once the images are loaded continue the execution. | 219 | Once the images are loaded continue the execution. |
| @@ -191,10 +228,29 @@ xsdb% con | |||
| 191 | xsdb% exit | 228 | xsdb% exit |
| 192 | ``` | 229 | ``` |
| 193 | 3. In the target Serial Terminal, from U-Boot prompt run `boot` command. | 230 | 3. In the target Serial Terminal, from U-Boot prompt run `boot` command. |
| 231 | |||
| 232 | * Linux boot | ||
| 194 | ``` | 233 | ``` |
| 195 | U-Boot> boot | 234 | U-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 | ||
| 200 | 1. Load the SD card into the VCK190 board in the J302 SD slot. | 256 | 1. Load the SD card into the VCK190 board in the J302 SD slot. |
