Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set up and brush the machine in the development of Jetson TX1

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

The editor today takes you to understand how to set up and brush the computer in Jetson TX1 development. The knowledge points in this article are introduced in great detail. Friends who feel helpful can browse the content of the article together with the editor, hoping to help more friends who want to solve this problem to find the answer to the problem. Let's follow the editor to learn more about "how to set up and brush the machine in Jetson TX1 development".

PC platform (Host): virtual machine Ubuntu14.04

Embedded platform (Target): Jeston TX1

I. Open-box testing

Jetson TX1 is the GPU development board of Nvidia, which has the world's advanced embedded visual computing system, providing high performance, new technology and excellent development platform. Although TX2 is available and can be bought, just to be on the safe side, buy a TX1 to try the water first and upgrade later. The packaging of TX1 is quite exquisite:

First to a family photo, you can see that Jetson TX1 includes: a development board, WIFI antenna, power adapter (in the designated Taobao buy, lack of sockets now, need to buy their own), Micro USB cable (for download), USB-OTG cable.

We need to buy our own extra socket cable, as shown in the following figure:

In addition to these, for convenience, you also need to prepare a mouse, keyboard, and monitor. According to Taobao sellers, the display needs to be a 2K screen and use HDMI signal output. Previously, my display from VGA to HDMI could not be displayed properly. So I bought a big monitor. I feel a little extravagant. The boot effect is as follows:

After turning on the computer, I felt very kind when I saw the command line. After the system starts, you need to log in to the operating system, the user name and password are ubuntu, after logging in. You need to follow the prompts, and the installation interface is displayed with the following commands:

Cd ~ / NVIDIA-INSTALLsudo. / install.shsudo reboot now

After restarting the computer, we can see the UI interface of the ubuntu system. Jetson TX1 factory default system and additional packages are relatively old, the deployment of the latest development package can make full use of hardware performance, which is conducive to our in-depth learning and development. So we need to brush the machine and brush on the latest Jetpack. At the time of writing this note, the latest Jetpack version is Jetpack3.0. Therefore, we will take the Jetpack3.0 brush machine as an example to explain how to brush the machine.

Start brushing the machine

Before brushing the machine, we first need to prepare a ubuntu host, which is used to download Jestpack and burn uboot, root file system and development packages for the development department. Therefore, before brushing the machine, you need to build a ubuntu host. Officially, the version of the host is ubuntu14.04 or ubuntu16.04, and the blogger uses the virtual machine ubuntu14.04. Of course, there is no problem with using a PC.

1. Update the source of the host

Before installing Jetpack, it is recommended to update the source of the host Ubuntu system so that the dependent libraries can be installed smoothly when installing Jetpack. The instructions are as follows:

Sudo cp / etc/apt/sources.list / etc/apt/sources.list.baksudo vim / etc/apt/sources.list

The purpose of the above copy operation is to back up the sources.list file to prevent it from being unable to reply after misoperation. Comment out the original content with the "#" symbol, and then add the following at the end of the file (the Ali source I use, which can be selected as appropriate):

Deb http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main multiverse restricted universedeb-src http://mirrors .aliyun.com / ubuntu/ trusty-backports main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main multiverse restricted universedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main multiverse restricted universe

After saving the file using wq, update it with the following command:

Sudo apt-get updatesudo apt-get upgrade

2.Jetpack3.0 download

URL: https://developer.nvidia.com/embedded/jetpack

To download this Jetpack3.0, you need to use an Nvidia account. If not, you can use email to apply for one, and then download it. After downloading, create a new Jetpack folder under the home directory and copy the downloaded files to this folder:

Mkdir ~ / Jetpackcp ~ / download / JetPack-L4T-3.0-linux-x64.run ~ / Jetpack

3. Install Jetpack

Before running the file, you need to grant permissions to the file, and then run it, with the following command:

Cd ~ / Jetpacksudo chmod + x JetPack-L4T-3.0-linux-x64.runsudo. / JetPack-L4T-3.0-linux-x64.run

After running, the following prompt box appears, and click okay.

After that, we will go to the installation interface, Next all the way.

You can see the installation configuration installation directory as follows:

When choosing the development environment, we choose TX1. If the development board in hand is TX2, we can choose TX2.

After choosing the development environment, we entered the component manager interface. Continue to click next, as shown in the following figure:

Then, you need to agree to the various terms, check Accept All, and then click Accept.

After that, we enter the download interface, at this time, we need to connect to the Internet. Here, I have to complain that it cost me more than 5G to install these things. I can't afford to spend money on the campus network.

After downloading the installation package, click the OK button to begin the installation:

Then we begin the installation. At this point, we wait patiently and can have a cup of coffee to suppress the surprise:

After installation, click Next, and we can proceed to the next step, brush the machine:

4. Brush machine

Before brushing the machine, you need to connect the network cable of the host and the development board to a router. I don't know if the wireless network is possible. For security reasons, I chose the following mode: (this is the way to connect when you brush the machine later)

Here, we can choose the default network card:

Click Next to begin the installation:

After clicking Next, the Post Installation interface appears. At this point, we need to connect the development board to the computer and prepare to brush the machine, as follows:

Disconnect the power supply to ensure that the development board is in the state of power off and shutdown

Connect to the router with a network cable, or plug in the mouse and keyboard

Connect the development board to the computer with the Micro USB cable (similar to an Android phone). If you are using a virtual machine host, you need to find the Nvidia device in the virtual machine-removable device, and then choose to connect to the virtual machine and disconnect from the host computer.

Turn on the AC and press the power key to power on

Press the rec key for a long time, then click the resume key, and then release the rect key after 2s, when the development board is in forced recovery mode.

After completing the above steps, we also need to check whether the development board is properly connected to the computer. When the terminal enters the lsusb command, you can see some lists. As long as you find that there is Nvidia Corp in it, it means that the connection is correct. The results of my examination are as follows:

You can see that the NVidia Crop device is connected properly.

After the above steps are confirmed, click enter in the post installation interface to start the brushing process. The interface is as follows:

After a while of installation, you will be prompted to press RESET to restart the TX1 development board. If the Ubuntu GUI interface appears after TX1 restart, the system has been installed. Next you need to install components such as CUDA, OpenCV, and so on. Before pressing Enter to continue the installation, you need to make sure that the TX1 is connected to the external network. If the campus network needs to log in to the gateway, log in the gateway before continuing, because when installing the components, you need to install some dependent libraries, which can only be done if there is an external network. After pressing Enter to continue, a prompt will appear to determine the IP address of TX1. After manually entering the IP address of TX1, press enter to continue. Wait a moment, the following dialog box will appear:

Enter Device IP Address, which is the IP address you determined earlier, and my IP is 219.216.roomroom.address *. User Name and Password are both ubuntu. After filling in, press Next to continue, and after all the Next, enter the Post Installation interface again to install the components. At this time, use the SSH remote service without the download line. As shown in the following figure:

After installation, the program automatically closes the Post Installation window, returns to the following interface, and clicks Finish to complete the installation. At this point, the system and components have been installed.

5. test

After installing the system and components, we can do a simple test to see if the components we installed work well, taking CUDA as an example. We can run the officially provided Samples directly. The example is saved at the following location:

/ home/ubuntu/NVIDIA_CUDA-_Samples

Go to the following directory and run oceanFFT:

The running result is as follows, which indicates that CUDA is installed successfully:

6. Installation of individual components

One of the features of Jetpack: you can install any components for Jetson devices separately without brushing the machine. The method is actually very simple:

Similar to the image above, the things under Host-Ubuntu need not be installed as long as they have been installed once on the Ubuntu host. Target-Jeston TX1 is the component to be installed into TX1. If you set File System and OS to no action, you will not brush the operating system, just install the following components. Depending on the requirements, we can choose the components we want to install and, of course, pay attention to their dependencies. Click Next after selection, and the following interface will appear:

After proceeding to the next step, a dialog box will appear to fill in the TX information:

Enter Device IP Address, and my IP is 219.216. Please. Please *. You can view it using ifconfig in the TX1 terminal. User Name and Password are both ubuntu.

The next step is the same as before. After entering the Post Installation interface, just wait patiently. Here we use SSH remote service, which does not need a data line. Wait a while and install it. Please do not operate the development board during the installation process. The following is a screenshot of just starting to copy the CUDA component:

Thank you for your reading, the above is the whole content of "how to set up and brush the machine in Jetson TX1 development". Friends who learn to learn to do it quickly. I believe that the editor will certainly bring you better quality articles. Thank you for your support to the website!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report