- Linux Device Driver Development Cookbook
- Rodolfo Giometti
- 346字
- 2021-06-24 13:54:06
Serial and network connections
In this book, I'm mainly going to use two different kinds of connections to interact with the embedded kit: the serial console, and an SSH terminal and Ethernet connection.
The serial console, implemented over a USB connection, is mainly used to manage the system from the command line. It's largely used for monitoring the system, and especially for taking control of kernel messages.
An SSH terminal is quite similar to the serial console, even if is not exactly the same (for example, kernel messages do not automatically appear on a Terminal), but it can be used in the same manner as a serial console to give commands and edit files from the command line.
In the chapters, I'm going to use a Terminal on the serial console or over an SSH connection to give the most of the commands and configuration settings needed to implement all the prototypes explained in this book.
To get access to the serial console from your host PC, you can use the minicon command, as follows:
$ minicom -o -D /dev/ttyUSB0
However, in Chapter 1 , Installing the Development System, these aspects are explained and you should not worry about them. Note also that on some systems, you may need root privileges to get access to the /dev/ttyUSB0 device. In this case, you can fix this issue or by using the sudo command or, better, by properly adding your system's user to the right group by using the following command:
$ sudo adduser $LOGNAME dialout
Then log out and log back in again, and you should be able to access the serial devices without any problem.
To get access to the SSH Terminal, you can use Ethernet connection. It is used mainly to download files from the host PC or the internet and can be established by connecting an Ethernet cable to the embedded kit's Ethernet port, and then configuring the port accordingly to the reader's LAN settings (see all the instructions in Chapter 1 , Installing the Development System).
- Mobile-first Bootstrap
- Puppet實戰
- 阿里云數字新基建系列:云原生操作系統Kubernetes
- SharePoint 2013 應用開發實戰
- Alfresco 4 Enterprise Content Management Implementation
- RESS Essentials
- 移動應用UI設計模式(第2版)
- Red Hat Enterprise Linux 6.4網絡操作系統詳解
- Cassandra 3.x High Availability(Second Edition)
- 鴻蒙HarmonyOS手機應用開發實戰
- Linux集群之美
- Docker容器技術與運維
- 再也不踩坑的kubernetes實戰指南
- Mastering Eclipse Plug-in Development
- Python機器學習系統構建(原書第3版)