LoginSignup
6
6

More than 3 years have passed since last update.

PetaLinuxToolsのインストール

Posted at

0. 概要

一般にXilinx社製のFPGAをSoCで動作させる場合、PetaLinuxというSoC上で起動するLinuxを使用することが多い。このPetaLinuxのIMG等を構築するためのツールのインストール方法について説明したいと思う。

1. インストール方法

以下のURLからPetaLinuxインストーラーをダウンロードする。
https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html

image.png

半日位かかるので覚悟が必要。

関連ライブラリのインストール

必要なライブラリを以下のようにインストールする

$ sudo apt-get install tofrodos gawk xvfb git libncurses5-dev tftpd zlib1g-dev zlib1g-dev:i386 libssl-dev flex bison chrpath socat autoconf libtool texinfo gcc-multilib libsdl1.2-dev libglib2.0-dev screen pax

インストール

次にインストール先のフォルダを作成

$ sudo mkdir -p /opt/petalinux
$ sudo chown -R USER_NAME:USER_GROUP /opt/petalinux

インストールを開始

$ chmod 777 /petalinux-v2019.2-final-installer.run
$ ./petalinux-v2019.2-final-installer.run /opt/petalinux/

インストール中にいくつかAgreementが出てくるのでそれらを全てYESにする。

環境変数の設定

インストール後、環境変数を設定する

$ cd /opt/petalinux/
$ source settings.sh

不要な機能のOFF

Agreementにも出てくるが自動で使用情報等を送信する機能があるので、オフにしておく。

petalinux-util --webtalk off
6
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6