m_iidas’s blog

日々学習

Hyper-V上のUbuntu 18.04 LTSにsshサーバを導入しWindows10からアクセスする

環境

手順

以下コマンドを入力

$ sudo apt -y install openssh-server

インストール後以下のコマンドを入力し、IPアドレスを確認する。
今回の場合は172.17.159.71がUbuntuIPアドレスである。

$ 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.という重大警告が表示される

環境

  • Vivado 2019.2
  • Zybo Z7-10

問題

ブロックデザイン検証時に以下画像に示す重大警告「PS DDR interfaces might fail when entering negative DQS skew values.」が表示される。

f:id:m_iidas:20191225211222p:plain
エラーメッセージ

解決方法

以下画像に示すように、DDR Configuration内のDQS to Clock Delayの設定を変更する。
Digilentによれば、キャリブレーションアルゴリズムは負の値を指定したとしても、0を指定した場合と同じ動作を行うため設定変更による問題は無いようである。

f:id:m_iidas:20191225212514p:plain
デフォルト設定
f:id:m_iidas:20191225212517p:plain
設定変更後

参考

reference.digilentinc.com

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

参考

https://japan.xilinx.com/support/documentation/sw_manuals_j/xilinx2019_2/ug1144-petalinux-tools-reference-guide.pdf