Hardware Reference
In-Depth Information
Chapter 5
Linux Console
The Raspbian Linux console is configured (or assumed) by the kernel command line. See
the console option described in Chapter 2.
Available Consoles
The list of consoles is available through the /proc/consoles pseudo file:
$ cat /proc/consoles
tty1 −WU (EC p ) 4:1
ttyAMA0 −W− (E p ) 204:64
The organization and flags displayed are described in Tables 5-1 and 5-2 . The major
and minor numbers are confirmed in the following example session output:
$ ls −l /dev/tty1 /dev/ttyAMA0
crw−rw−−−− 1 root tty 4, 1 Jan 21 00:06 /dev/tty1
crw−rw−−−− 1 root tty 204, 64 Jan 21 00:06 /dev/ttyAMA0
Table 5-1. /proc/consoles Fields
Field
Parameter
Example
Description
1
device
tty1
/dev/tty1
2
operations
-WU-
R = read
W = write
U = unblank
3
flags
(EC p )
See flags in Table 5-2
4
major:minor
4:1
Device major/minor
 
 
Search WWH ::




Custom Search