Build the Ubuntu development environment for the MINI2440 Development Board

Source: Internet
Author: User
1 Introduction for embedded development, the most commonly used tool for debugging the Development Board is the serial port and network port. This article mainly introduces how to install and set the serial port software (minicom and kermit) to connect to the MINI2440 Development Board in the Ubuntu system. This document assumes that you have installed Ubuntu on your computer. Generally, no serial port interface is configured on the motherboard for most laptops. We can purchase USB port-to-serial interface on the Internet. There are many types of USB port-to-serial interfaces on the Internet. You can choose a suitable one based on the price.

1 Introduction

For embedded development, the most commonly used tool for debugging the Development Board is the serial port and network port. This article mainly introduces how to install and set the serial port software (minicom and kermit) to connect to the MINI2440 Development Board in Ubuntu. This document assumes that you have installed Ubuntu on your computer.

Generally, no serial port interface is configured on the motherboard for most laptops. We can purchase USB port-to-serial interface on the Internet. There are many types of USB port-to-serial interfaces on the Internet. You can choose a suitable one based on the price. Here we use a USB adapter based on the PL2303 chip.

2 connect to the MINI2440 Development Board

After plugging the USB serial port adapter into the Development Board and computer, run the dmesg command on the terminal to check that the USB port has been recognized by the PC, as shown in:

We can see that the serial port device we connect to is ttyUSB0. You can run the ls-l/dev/ttyUSB * command to view the relevant information. So far, we have successfully connected the serial port to the Ubuntu system. Here by the way, when I use USB to Serial port in Windows, first download an installation PL-2302 USB Serial Driver from the Internet, install the Driver, can be used normally, the Linux kernel already supports PL2303 chip, so you do not need to install it on your own. The following describes how to use minicom and kermit.

3. Install and set minicom

By default, the mini-com software is not installed in Ubuntu, so we need to install mini-com first. You can use the apt-get command to install mini-com, as shown in:

After the installation is complete, run the minicom-s command to perform some initial configuration, as shown below:

As shown in the parameter settings, you must set the Hardware Flow Control to None. At first, the serial port cannot be connected because this item is not set.

Save setup as dfl and exit. Enter The minicom command again. You can see that the MINI2440 Development Board has been successfully connected, as shown in.

Now, we have installed minicom and configured it successfully. You can use minicom. The following section describes how to install and use Kermit.

4. Installation and Use of Kermit

Minicom is the most commonly used serial port software, but it is not very stable. Therefore, we do not recommend minicom in Uboot official documents, but kermit (ckermit version is used here ), this section describes how to use kermit. Kermit is not installed by default in Ubuntu. We can use sudo apt-get install ckermit to install kermit, as shown in:

After kermit is installed, you need to set kermit before using kermit. Vi/etc/kermit/kermrc, add the following configuration options:

Now we have successfully configured kermit. on terminal, enter the kermit command, enter the kermit program, and then enter connect to the serial port, as shown in:

In this way, we have successfully connected to the MINI2440 development board. If you need to switch back to kermit, press Ctrl + \, and then press c to jump back.

5. Summary

This article describes how to use the minicom and kermit serial port software to connect to the MINI2440 Development Board in Ubuntu. The virtual machine is not used in the experiment environment in this article, which may be different in the virtual machine environment, and ttyUSB0 is used for serial port settings here, please make appropriate adjustments according to your own environment.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.