[LINUX] Build an Ultra96v2 development environment on Docker 1

I bought Ultra96v2 the other day and tried to build an environment for Linux and Xilinx. So I will write an article on Qiita for the first time in a while. Articles will be updated from time to time. The plan is to install Docker on Ubuntu20.04LTS and build a Xilinx development environment on it.

Purchase

I purchased the following from AVNET.

No. Avnet Part No Explanation
1 AES-ULTRA96-V2-G Ultra96 V2 board body.
2 AES-ACC-U96-JTAG It is a JTAG board. USB serial connection is possible.
3 The shipping cost is about 600 yen.

In addition, the following is required at a minimum.

In my case, DC12V is taken out from my USB PD using USB-PD_Adapter and connected directly to the φ1.7 plug. did. qiita.jpg The XH2 pin connector of the 12V power cable shown above has a red and black electric wire at Sengoku Densho It is on sale so you should use it. However, red is ** plus ** </ font> and black is ** minus **, so remove the contact with a thin awl and reverse it. The plug of the AC adapter is Center Plus. 無題.png

In addition, Ultra96 basic course: Unboxing and First Ultra96 required Things Please refer to.

Opening ceremony

When it arrives, check the contents and do L-Chika for the time being. Ultra96 Basic Course: L Chika Edition etc. was helpful. .. There was also a Xilinx license registration form in the box. However, I haven't registered yet because I don't know where to use it.

Ultra96V2 environment construction preliminary survey

We aim to create a circuit from C language using Xilinx's high-level synthesis tool Vitis and run it on Ultra96 V2. For the time being, I looked up the preceding information and summarized it.

Impressions: I can feel the premonition that it seems to be very difficult.

Description of Ultra96 V2 development equipment

  • ** Development host **: A 10-year-old personal computer with Ubuntu 20.04 installed. For reference, the specifications are that the Core2Quad machine is equipped with 16GBytes memory, 512GBytes SSD and 10TBytes HDD. Now it's a weak computer. I am using it headless.
  • ** Ultra96V2 **: This is the target.
  • ** PC **: It is a normal PC with Windows 10 installed. It is used for remote desktop connection to the development host and serial connection & Ethernet connection from MobaXterm to Ultra96V2.

The environment can be built only on the development host. However, it is more convenient to access the development host or target side from Windows 10 via remote desktop or SSH connection, so it is divided. I also considered WSL2, but I was disappointed because it could not coexist with VMWare on the personal computer.

Install Ubuntu 20.04

Install Ubuntu on your development host. Until the installation of RDP, connect the keyboard, mouse and monitor to the development host and operate. I used Ubuntu Desktop Japanese Remix Ubuntu20.04. ** Filename **: ubuntu-ja-20.04-desktop-amd64.iso After installation, make the initial settings from the GUI.

  • Upper right ▽ Settings → Date and time → Time zone (O) JST (Japan, Tokyo)
  • Upper right ▽ Settings → Region and Language → Format (F) Japan
  • Top left activity → Search U → Software update
  • Right-click on the desktop → open on the terminal

Click the + icon in the upper left of the opened terminal (gnome-terminal) to open a tab window. Close with CTRL-D. The Linux version was below.

bash


$uname-a
Linux ubuntu 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Then enter U in Search from the activity at the top left of the screen to open the software update. Wait for this update to finish. If you are asked to restart, it will restart.

SSH Server installation

apt


$sudo apt install -y openssh-server

RDP installation

Install xrdp while referring to 621st Ubuntu 20.04 Using xrdp with LTS. After installation

  • Upper right ▽ Settings → Region and languages → Manage installed languages

Please apply Japanese to the whole system. Apply the regional format to the whole as well. The red circle button in the figure below. 無題.png If you do not do this, the date may be set to September when connecting to Remote Desktop.

無題.png

Finally, for confirmation, make a remote desktop connection from your Windows 10 computer to your Ubuntu development host. Make sure you can open the device by date, left sidebar, right mouse click. Then log out of the GUI. After that, it can be operated by remote connection. Remove the keyboard, video, and mouse from the development host and move to headless operation.

Docker installation

Put Docker on the development host.

docker_install1


sudo apt install -y curl
curl https://get.docker.com > install.sh

Just in case, check the contents of install.sh. Install requires administrator privileges. If OK

docker_install2


chmod +x install.sh
./install.sh
sudo usermod -aG docker $USER

Install with. The sudo function allows you to execute another command with sudo without a password for 5 minutes by default.

to be continued

Recommended Posts

Build an Ultra96v2 development environment on Docker 1
Build Unity development environment on docker
Build an environment with Docker on AWS
[First team development ②] Build an environment with Docker
Build a PureScript development environment with Docker
Build a Java development environment on Mac
Build Java 8 development environment on AWS Cloud9
Build Redmine code reading environment on Docker
Build a simple Docker + Django development environment
[App development 0.5] [Node.js express Docker] Build an environment for Node.js Express MongoDB using Docker
Build an ASP.net Core Web API environment on Docker (VSCode) Part 1
Build an ASP.NET Core Web API environment on Docker (VSCode) Part 2
Build a development environment for Docker + Rails6 + Postgresql
Build a WordPress development environment quickly with Docker
[Java] Build Java development environment on Ubuntu & check execution
Build Apache / Tomcat development environment on Cent OS 7
Build a simple Docker Compose + Django development environment
Build a Laravel environment on an AWS instance
[Ruby on Rails] Let's build an environment on mac
Build a development environment for Docker, java, vscode
[Rails] How to build an environment with Docker
Build debug environment on container --Build local development environment for Rails tutorial with Docker-
Build an environment of "API development + API verification using Swagger UI" with Docker
How to build a Ruby on Rails development environment with Docker (Rails 6.x)
How to build a Ruby on Rails development environment with Docker (Rails 5.x)
Build Java development environment with VS Code on Mac
WSL2 + VSCode + Docker development environment
Build a Ruby on Rails development environment on AWS Cloud9
Docker the development environment of Ruby on Rails project
[App development 1] [Node.js express Docker] Build an environment for Node.js Express MongoDB (mongoose) using Docker [December 2020]
Build Docker + Laravel PHP + Vue.js development environment in 5 minutes
Build docker environment with WSL
Build Java development environment with WSL2 Docker VS Code
[Docker] Build an Apache container on EC2 using dockerfile
Build a development environment to create Ruby on Jets + React apps with Docker
Try to build a Java development environment using Docker
I tried to build an environment using Docker (beginner)
Install Ubuntu 20.04 in virtual box on windows10 and build a development environment using docker
Build Couchbase local environment with Docker
Build a Node.js environment with Docker
Build PlantUML environment with VSCode + Docker
Build environment with vue.js + rails + docker
Build Rails environment with Docker Compose
Build Clang x VSCode on Docker (1)
Build Java development environment (for Mac)
Build a XAMPP environment on Ubuntu
Rails on Docker environment construction procedure
Build jooby development environment with Eclipse
Build docker + laravel environment with laradock
Install Java development environment on Mac
Build Go development environment with WSL2 + Docker Desktop + VSCode (Remote --Containers)
Ruby on Rails development environment construction with Docker + VSCode (Remote Container)
I tried to build an http2 development environment with Eclipse + Tomcat
Build a development environment where Ruby on Rails breakpoints work on Windows
Build a browser test environment using Capybara in the Docker development environment
Build a development environment for Django + MySQL + nginx with Docker Compose
Steps to build a Ruby on Rails development environment with Vagrant
Laravel development environment construction with Docker (Mac)
Sapper × Go (echo) × Docker development environment construction
[Docker] Building an environment to use Hugo
Java development environment construction memo on Mac