Eurotech ZEUS Bedienungsanleitung Seite 15

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 72
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 14
Arcom Embedded Linux Technical Manual Configuring AEL
Configuring a port on an additional serial board
You may have added further serial ports to your processor, for example using an Arcom
AIM104-COM4 or third party serial board. If so, you can use the above commands to
configure any of the unused serial ports. Simply choose a free serial port /dev/ttySn and
configure it as described above, in accordance with the settings you have configured on
the peripheral board itself. Consult the peripheral board's documentation for details.
Automatically loading the serial port configuration on boot
At boot time the contents of the file /etc/serial.conf are parsed and the serial ports are
configured accordingly. Each line of the file starts with the name of a device and is
followed by one or more options that are passed to setserial.
For example, to set the irq of COM1 to 7, add the following to /etc/serial.conf:
/dev/ttyS0 irq 7
You can also generate a configuration line using the –G switch to setserial to generate
an entry representing the current state of a port. For example, the following command
appends an entry for /dev/ttyS1 to the configuration file:
# setserial –G /dev/ttyS1 >> /etc/serial.conf
Removing login session from ttyS0
The default installation of AEL is configured to run a login session on ttyS0 (COM1).
This can cause problems if your application wants to use ttyS0, as the two conflict. This
often manifests as the serial port changing baud rate at unusual times.
Before removing all login sessions, either:
Ensure you have some other way of logging into the system, such as via
SSH (with a known IP address) or a local console.
-or-
Be prepared to boot to single user mode, as described on page 22
.
To remove the serial login session, edit /etc/inittab and comment out the following line
by placing a # character at the start:
T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100
Then signal init to reload its configuration by entering:
# telinit q
If you wish you can add another login session on a different serial port by adding lines
as follows:
Tn:23:respawn:/sbin/getty –L ttySn 115200 vt100
(Where n is the number of the serial port to use.)
The Tn identifier must be unique within the entire file. Using T and the serial
port number accomplishes this.
© 2006 Arcom Issue G 15
Seitenansicht 14
1 2 ... 10 11 12 13 14 15 16 17 18 19 20 ... 71 72

Kommentare zu diesen Handbüchern

Keine Kommentare