Original URL: http://blog.csdn.net/liaoxinmeng/article/details/5004743First of all:1. Neither the terminal nor the console is the concept of personal computers, but the concept of a small, medium-sized mainframe computer shared by many people.A host, even a lot of terminals, the terminal for the host to provide a human-computer interface, everyone through the terminal using the host resources. The terminal has two kinds of character dumb terminal and
devices.========================================================== ==========================================1. Serial Port TerminalThe device name is/dev/ttysn (here n is numbers 0, 1, 2, 3 .....)2. Pseudo Terminal (Pty)A Pseudo Terminal is a terminal formed by remote logon. Its console control file is in the/dev/PTS directory.The name is from 0, 1, 2, 3, 4 ...... Continue laterYou can echo "okok">/dev/pt
As an embedded product, the company uses the ARM kernel and Linux operating system (not uClinux ). My recent work is to mount a previously prepared module (via serial port for communication) to the system, and control a series of work of this module through serial port, and require
Into a separate driver (not controlled by an application ). I also want to familiarize myself with the development method of th
menu-based console, the first thing is to print out the menu, and the cycle of printing, the first thought is to use printf to print the menu information. Code:Above is the uboot information, according to the user's options to execute the corresponding function function, through switch to select the implementation. Above is a menu-shaped frame.In the implementation of the menu-based
Installation Configuration minicom--------------------------------------------------
#
lsmod | grep usbserial(If you use the serial port directly, but do not use USB to switch serial device, this step can be skipped)
If there is usbserial, the system supports USB to the serial port.
Install minicom (fedora comes with
Development Board model: friendly micro2440 (with a 7-inch screen -- awesome !)
Bootload: Vivi
System: Linux (The Development Board comes with 2.6.29)
Reference: http://www.100ask.net/showtopic.aspx? Forumid = 2 topicid = 15 go = next
Http://www.linuxforum.net/forum/showflat.php? Cat = board = embedded number = 606916 page = view = SB = O = fpart = 1 Vc = 1
Due to work needs, I studied how to release the debug serial port on the Develop
way the previous hardware. For example, in Linux, you can switch six virtual terminals with ALT+F1 ~ F6, which is the reason why this is called "Virtual terminal", as it is the six terminal equipment in the computer which was used by many people. Of course, today's Linux can also be connected to a real terminal via a serial line.1. Pseudo TerminalThe pseudo terminal is also called the analog terminal, the
Using a serial port terminal as the Linux console, you can remove the need for additional keyboards, display cards, and monitors, and use the Linux host as an embedded black box for any purpose. It is not difficult to connect a serial port terminal to a computer's serial port. You can refer to the Linux howto document
Author: gauss (posting) Source: www.linuxforum.net
Using a serial port terminal as the Linux console, you can remove the need for additional keyboards, display cards, and monitors, and use the Linux host as an embedded black box for any purpose. It is not difficult to connect a serial port terminal to a computer's serial
Author: gauss (resend) Source: www.linuxforum.net uses a serial port terminal as the Linux console, eliminating the need for additional keyboards, display cards, and monitors, while Linux hosts can be used as an embedded black box for any purpose. It is not difficult to connect the serial port terminal to the computer's seria
Article Title: how to direct the LINUX console to a serial port terminal. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Using a serial port terminal as the Linux console, you can
Turn from: Sina @walkantPart Four serial interface UART and consoleDetailed reference: http://dev.ardupilot.com/wiki/learning-ardupilot-uarts-and-the-console/UART is very important for debugging output, digital transmission, GPS module and so on.1, 5 UARTA total of 5 UART are defined, and their uses are:
The uarta– serial terminal, usually a micro USB in
*/BreakNewcon->flags |= con_enabled;Newcon->index = c->index;if (i = = Selected_console) {Newcon->flags |= Con_consdev;Preferred_console = Selected_console;}Break}if (Newcon->flags Con_printbuffer) {//The BUF information is printed only if Con_printbuffer is set/** Console_unlock (); Would print out the buffered messages* For us.*/Raw_spin_lock_irqsave (logbuf_lock, flags);Console_seq = Syslog_seq;Console_idx = Syslog_idx;Console_prev = Syslog_prev;Raw_spin_unlock_irqrestore (logbuf_lock, flag
Console classification1. Menu-based console, select menu to execute command2. Analytic console to execute commands by entering commandsprintf (), scanf () function porting1. function with variable parameter2. Printing information to the serial port3. The key is to convert the argument to a string, and the correlation f
Console is on a serial deviceNo further output will appear on this output deviceOn the screen, the black screen shows that the console is on a serial device no further output will appear on this output device keyboard and mouse does not respond. Telnet connection should be OK, this problem was discovered when I used KV
Linux kernel print data to serial console issuesOriginal source: Http://i.cnblogs.com/EditPosts.aspx?opt=11. View the current console's print levelCat/proc/sys/kernel/printk4 4 1 7Where the first "4" represents the print level of the kernel print function PRINTK, only information that is higher than his level can be printed on the console, with 0-3 levels of info
display serial baud rate and other information:Stty-f/dev/ttyths2-a #dev/TTYTHS2 for the selected port numberparameter settings:Stty-f/dev/ttyths2 ispeed 115200 ospeed 115200 cs8Configure the baud rate 115200 data 8bit, generally set these two parameters can be, if the display data garbled, may also need to set other parameters, use man to view Stty other settings options.Send serial data:Echo 123>/DEV/TTYT
.
Compilation successful again.Since this modification only for the u-boot.bin, there is no impact on the u-boot-spl.bin, so you can just burn the u-boot.bin to the SD card fanArea 32.
Well, after transplantation for so long, the console can finally see the effect. Try the basic U-boot command:
After so many days, the results have finally been achieved, and the subsequent things have been improved on this basis. I put this version of the code here:
1 2.1 Recovery Console login password
If the user sets a console logon password that is missing, you can recover by using the Skip Profile startup feature in the Boot menu.
(1) using the configuration cable to connect the computer's serial port to the console port of the H3C series
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.