WSLでPetaLinux 2019.2をインストールする
環境
準備
依存パッケージ群のインストール
$ sudo dpkg --add-architecture i386 $ sudo apt update $ sudo apt install build-essential python diffstat chrpath socat xterm autoconf libtool unzip texinfo zlib1g-dev gcc-multilib libncurses5-dev zlib1g:i386
インストール先ディレクトリの作成
$ sudo install -o $LOGNAME -g $LOGNAME -d /opt/pkg/petalinux/2019.2
インストール
petalinux-v2019.2-final-installer.runを実行する
$ bash ./petalinux-v2019.2-final-installer.run /opt/pkg/petalinux/2019.2 INFO: Checking installation environment requirements... 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 INFO: Checking installer checksum... INFO: Extracting PetaLinux installer... LICENSE AGREEMENTS PetaLinux SDK contains software from a number of sources. Please review the following licenses and indicate your acceptance of each to continue. You do not have to accept the licenses, however if you do not then you may not use PetaLinux SDK. Use PgUp/PgDn to navigate the license viewer, and press 'q' to close Press Enter to display the license agreements Do you accept Xilinx End User License Agreement? [y/N] > y Do you accept Webtalk Terms and Conditions? [y/N] > y Do you accept Third Party End User License Agreement? [y/N] > y INFO: Installing PetaLinux... INFO: Checking PetaLinux installer integrity... INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/2019.2/." INFO: Installing aarch64 Yocto SDK to "/opt/pkg/petalinux/2019.2/./components/yocto/source/aarch64"... INFO: Installing arm Yocto SDK to "/opt/pkg/petalinux/2019.2/./components/yocto/source/arm"... INFO: Installing microblaze_full Yocto SDK to "/opt/pkg/petalinux/2019.2/./components/yocto/source/microblaze_full"... INFO: Installing microblaze_lite Yocto SDK to "/opt/pkg/petalinux/2019.2/./components/yocto/source/microblaze_lite"... INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/2019.2/.
PetaLinux作業環境を設定する
$ source /opt/pkg/petalinux/2019.2/settings.sh PetaLinux environment set to '/opt/pkg/petalinux/2019.2' WARNING: /bin/sh is not bash! bash is PetaLinux recommended shell. Please set your default shell to bash. 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
パスが正しく設定されていることを確認する
$ echo $PETALINUX /opt/pkg/petalinux/2019.2