Using minicom based serial debugging Hikey

Source: Internet
Author: User

While debugging through the ADB shell is convenient, there are times when you have to use a serial port for debugging, such as testing suspend to ram, the ADB service is turned off.

In the minicom, you can also enter the shell to operate.

First step : If Minicom is not installed, install minicom serial port software:

sudo apt-get update
sudo apt-get install minicom

The second step : Check the serial device, enter "Ls/dev/tty", quickly double-click the "tab" key. You can view the USB to serial port device ttyUSB0.

Step three : Set the serial port parameters, select "Serial Port Setup", set the serial device "/DEV/TTYUSB0", set the baud rate, data bit, parity bit and stop bit: 115200 N81.

sudo minicom–s

Fourth Step : Select "Save Setup as DFL" as the default setting, and then select "Exit" to exit the settings.

Fifth Step: If you need to save the screen content, open capture on/off.

Sixth step: Save the file in ~/minicom.cap, you can use Gedit to open the browsing.

Using minicom based serial debugging Hikey

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.