# Zynq MPSoC Boot Apps
Generate and install boot apps for the Zynq MPSoC device.
The scripts in this directory generate the following products:
- First Stage Bootloader (fsbl)
- Platform Management Unit Firmware (pmufw)
- Device tree blob (system.dtb)
- BOOT.bin file
You can think of this tool as a much lighter and less ~~bloated~~ feature-rich
version of PetaLinux. This tool is not meant to hold your hand and do everything
for you the way PetaLinux does, but rather enables you to use the command line
to do many of the steps typically done in the Xilinx SDK GUI.
## Prerequisites
Before using this tool you must first have created your hardware description
file in Vivado. This is done by creating a block design in Vivado with the Zynq
IP and selecting `File` > `Export Hardware` after compiling the bitstream. Make
sure you check the "Include bitstream" box. Once you have generated your
hardware description file, you can copy it into this directory.
In order to generate the BOOT.bin file you must also have built [U-Boot] and the
[ARM Trusted Firmware (ATF)] separately. These are not included in this
repository because of their size and because they are often tailored for
individual needs. Once you have built U-Boot and ATF, copy the `u-boot.elf` and
`bl31.elf` files into this directory's `build` directory (you can create it if
it does not already exist).
## Usage
Simply drop your hardware description file (.hdf) into this directory and run
$ make
You can set the version of the device tree generator to be used with the `VER`
variable:
$ make VER=2018.3
It is recommended to use the same version as the version of Vivado you used to
create your design.
## Install to SD card
To install the output products to your SD card's boot partition, mount the
partition to a location on your host computer (e.g. `/media/sd/boot`) and run
$ sudo make INSTALL_DIR=/media/sd/boot install
replacing `/media/sd/boot` with your actual mount point.
[U-Boot]: https://github.com/Xilinx/u-boot-xlnx
[ARM Trusted Firmware (ATF)]: https://github.com/Xilinx/arm-trusted-firmware.git
## Example
Below is an example of using this tool from start to finish with a design
created in Vivado 2018.3. **This is an example and file names and invocations
may change for your own needs**.
Start in your home directory.
```console
$ cd ~
```
Clone all required repositories.
```console
$ git clone https://github.com/Xilinx/u-boot-xlnx
$ git clone https://github.com/Xilinx/arm-trusted-firmware
$ git clone https://github.com/gpanders/zynqmp-boot-apps
```
Source the setup script provided with your SDK installation.
```console
$ source /opt/Xilinx/SDK/2018.3/settings64.sh
$ export CROSS_COMPILE="aarch64-linux-gnu-"
```
Build U-Boot. Be sure to checkout the tag corresponding to your version of
Vivado.
```console
$ cd ~/u-boot-xlnx
$ git checkout tags/xilinx-v2018.3
$ make xilinx_zynqmp_zcu102_rev1_0_defconfig
$ make -j8
```
Build the ARM Trusted Firmware. Again, checkout the correct tag.
```console
$ cd ~/arm-trusted-firmware
$ git checkout tags/xilinx-v2018.3
$ make PLAT=zynqmp -j8 all
```
Navigate to this repository and copy all required files.
```console
$ cd ~/zynqmp-boot-apps
$ cp /path/to/hdf_file.hdf .
$ mkdir build
$ cp ~/u-boot-xlnx/u-boot.elf ~/arm-trusted-firmware/build/zynqmp/release/bl31/bl31.elf build/
```
Mount your SD card's boot partition.
```console
$ sudo mkdir -p /media/sd/boot
$ sudo mount /dev/sdc1 /media/sd/boot
```
Make and install the boot files.
```console
$ make VER=2018.3
$ sudo make INSTALL_DIR=/media/sd/boot install
```
为ZynqMPSoC设备生成和安装引导应用程序_Makefile_Tcl_下载.zip
版权申诉
11 浏览量
2023-04-29
22:30:03
上传
评论
收藏 4KB ZIP 举报
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
最新资源
- Python 程序语言设计模式思路-行为型模式:职责链模式:将请求从一个处理者传递到下一个处理者
- 9241703124789646.16健身系统2.apk
- postgresql-16.3-1-windows-x64.exe
- Python 程序语言设计模式思路-结构型模式:装饰器讲解及利用Python装饰器模式实现高效日志记录和性能测试
- 基于YOLOv5和DeepSORT的多目标跟踪仿真与记录
- Python 程序语言设计模式思路-创建型模式:原型模式:通过复制现有对象来创建新对象,面向对象编程
- 卸载软件geek卸载软件geek
- Python 程序语言设计模式思路-创建型模式:单例模式,确保一个类的唯一实例(装饰器)面向对象编程、继承
- skywalking-plugins.jar skywalking-alarm.jar
- 独栋别墅图纸D020-两层-10.00&11.00米- 施工图.dwg
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈