Hyper-V上のUbuntu 18.04 LTSにsshサーバを導入しWindows10からアクセスする
環境
手順
以下コマンドを入力
$ sudo apt -y install openssh-server
インストール後以下のコマンドを入力し、IPアドレスを確認する。
今回の場合は172.17.159.71がUbuntuのIPアドレスである。
$ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether 00:15:5d:7f:02:00 brd ff:ff:ff:ff:ff:ff inet 172.17.159.71/28 brd 172.17.159.79 scope global dynamic noprefixroute eth0 valid_lft 86191sec preferred_lft 86191sec inet6 fe80::4a1d:bb:bbaf:1331/64 scope link noprefixroute valid_lft forever preferred_lft forever
PowerShellから以下のコマンドで接続出来れば正しく設定できている。
> ssh ユーザ名@IPアドレス
Zybo Z7にてVivadoでのブロックデザイン検証時にPS DDR interfaces might fail when entering negative DQS skew values.という重大警告が表示される
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