美文网首页
PetaLinux安装及使用

PetaLinux安装及使用

作者: HMLAB | 来源:发表于2018-02-26 17:44 被阅读0次

    Description/说明

    PetaLinux版本:2016.4

    操作系统版本:Ubuntu 17.10

    参考文件来源:UG1144

    Introduction/介绍

    PetaLinux is an Embedded Linux System Development Kit specifically targeting FPGA-based System-on-Chip designs. This guide helps the reader to familiarize with the tool enabling overall usage of PetaLinux.

    PetaLinux是专门针对基于FPGA进行嵌入式Linux系统设计的开发套件。本指南帮助读者熟悉该工具的整体使用。

    Installation/安装

    Installation Requirements/安装需求

    PetaLinux requires a number of standard development tools and libraries to be installed on your Linux host workstation.

    PetaLinux需要在Linux主机工作站上安装许多标准的开发工具和库。比如python dos2unix ip gawk xvfb-run gcc git make...等,详见资料UG1144,只有按照要求安装好这些开发工具和库后,后面安装才不会出现问题,这里给出安装命令。

    $ sudo dpkg-reconfigure bash

    $ sudo apt install chrpath socat autoconf libtool git texinfo gcc-multilib libsdl1.2-dev libglib2.0-dev xvfb libssl-dev libncurses5-dev zlib1g:i386

    Installation Steps/安装步骤

    You can download PetaLinux installer from PetaLinux Downloads.

    第一步下载PetaLinux 2016.4(根据你的Vivado版本进行下载,此处以2016.4为例)安装包,到官网登录你的Xilinx账号进行下载,下载文件大小8G以上。

    1. 将下载好的文件petalinux-v2016.4-final-installer.run放到Linux系统的工作目录里面

    2. 给文件增加可执行权限:$ chmod 777 petalinux-v2016.4-final-installer.run

    3. 打开文件进行安装:$ ./petalinux-v2016.4-final-installer.run /home/user/Xilinx/petalinx

    这里将petalinx安装到了目录:/home/user/Xilinx/petalinx里面,安装过程中需要按键盘q,然后按y进行协议许可确认。

    Environment Setup/环境配置

    $ source /home/user/Xilinx/petalinx/settings.sh

    $ echo $PETALINUX

    进行环境配置需要运行上面的命令,之后运行下面一句命令,如果打印出你的petalinux安装目录出来,表示安装成功。(在系统重启后需要重新运行第一条命令进行环境配置)

    如果在上面步骤中有任何报错,请检查Installation Requirements/安装需求里面的开发工具和库是否已经安装,只有在输入命令后打印出下面所示的文字时才不缺少开发工具和库,否则请根据所使用的操作系统安装(不要根据打印出的缺少的名称安装,找到UG1144表格中的名称安装)。

    PetaLinux environment set to ' /home/user/Xilinx/petalinx '

    INFO: Checking free disk space

    INFO: Checking installed tools

    INFO: Checking installed development libraries

    INFO: Checking network and other services

    WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide"

    for its impact and solution

    Use/使用

    创建一个工程 

    petalinux-create -t project --template zynq --name test_proj

    导入硬件配置文件 

    $ petalinux-config --get-hw-description=~/Desktop

    未完,请等待更新...

    相关文章

      网友评论

          本文标题:PetaLinux安装及使用

          本文链接:https://www.haomeiwen.com/subject/olnyxftx.html