Skip to content

Commit

Permalink
GS/embedded: update SD mount path; remove XILINX_XRT env setup (#268)
Browse files Browse the repository at this point in the history
* GS/embedded: update SD mount path; remove XILINX_XRT env setup

* Remove XILINX_XRT env setup for embedded application run time
  • Loading branch information
imrickysu authored Aug 4, 2022
1 parent 7409ea3 commit aaaf045
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 15 deletions.
13 changes: 5 additions & 8 deletions Getting_Started/Vitis/Part4-embedded_platform.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ This command will launch software emulation, start the Xilinx Quick Emulation (Q
Once Linux has finished booting, enter the following commands from within the QEMU environment to run the example program:

```bash
cd /media/sd-mmcblk0p1
export XILINX_XRT=/usr
cd /run/media/mmcblk0p1
export XCL_EMULATION_MODE=sw_emu
./app.exe
```
Expand All @@ -138,7 +137,7 @@ If you look at the directory contents for the `zcu104/sw_emu` directory you shou
These files and reports are the results of the build and run process targeting the software emulation build. You will be taking a closer look at some of these files in Part 5 of this tutorial. To examine these files later, you must retrieve them from the QEMU environment and copy them into your local system. You can do this using the `scp` command as described in [Running Emulation on an Embedded Processor Platform](https://docs.xilinx.com/r/en-US/ug1393-vitis-application-acceleration/Running-Emulation-on-an-Embedded-Processor-Platform), for example:

```bash
scp -P 1440 [email protected]:/media/sd-mmcblk0p1/xrt.run_summary ./xrt.run_summary
scp -P 1440 [email protected]:/run/media/mmcblk0p1/xrt.run_summary ./xrt.run_summary
```

Press Ctrl+a+x to exit QEMU and return to your bash shell.
Expand Down Expand Up @@ -177,8 +176,7 @@ Building for hardware emulation takes more time than for software emulation, but
Once Linux has finished booting, enter the following commands at the QEMU command prompt to run the example program:

```bash
cd /media/sd-mmcblk0p1
export XILINX_XRT=/usr
cd /run/media/mmcblk0p1
export XCL_EMULATION_MODE=hw_emu
./app.exe
```
Expand All @@ -188,7 +186,7 @@ You should see messages that say TEST PASSED indicating that the run completed s
Running the application in the QEMU generates some report files during the run. These files and reports are the results of the run process targeting the software emulation build. You will be taking a closer look at some of these files in Part 5 of this tutorial. To examine these files later, you must retrieve them from the QEMU environment and copy them into your local system. You can do this using the `scp` command as described in [Running Emulation on an Embedded Processor Platform](https://docs.xilinx.com/r/en-US/ug1393-vitis-application-acceleration/Running-Emulation-on-an-Embedded-Processor-Platform), for example:

```bash
scp -P 1440 [email protected]:/media/sd-mmcblk0p1/xrt.run_summary ./xrt.run_summary
scp -P 1440 [email protected]:/run/media/mmcblk0p1/xrt.run_summary ./xrt.run_summary
```

Press Ctrl+a x to exit QEMU and return to your bash shell.
Expand Down Expand Up @@ -223,8 +221,7 @@ Building for hardware targets can take a couple of hours, or more significant ti
After the build process completes, copy the `sd_card` directory to an SD card and plug it into the platform and boot until you see the Linux prompt. At that point, enter the following commands to run the accelerated application on the Embedded Processor platform:

```bash
cd /media/sd-mmcblk0p1
export XILINX_XRT=/usr
cd /run/media/mmcblk0p1
./app.exe
```

Expand Down
3 changes: 0 additions & 3 deletions Getting_Started/Vitis/example/zcu102/run_hw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
mount /dev/mmcblk0p1 /mnt
cd /mnt

export XILINX_XRT=/usr
export XILINX_VITIS=/mnt

./app.exe

echo "INFO: press Ctrl+a x to exit qemu"
Expand Down
2 changes: 0 additions & 2 deletions Getting_Started/Vitis/example/zcu102/run_hw_emu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
mount /dev/mmcblk0p1 /mnt
cd /mnt

export XILINX_XRT=/usr
export XILINX_VITIS=/mnt
export XCL_EMULATION_MODE=hw_emu

./app.exe
Expand Down
2 changes: 0 additions & 2 deletions Getting_Started/Vitis/example/zcu102/run_sw_emu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
mount /dev/mmcblk0p1 /mnt
cd /mnt

export XILINX_XRT=/usr
export XILINX_VITIS=/mnt
export XCL_EMULATION_MODE=sw_emu

./app.exe
Expand Down

0 comments on commit aaaf045

Please sign in to comment.