util-linux/sys-utils
Karel Zak 726f69e29c Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
..
Makefile Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
README.MAKEDEV Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
README.setserial Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
arch.1 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
arch.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
chroot.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
chroot.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
clock.8 Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
clock.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ctrlaltdel.8 Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
ctrlaltdel.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
cytune.8 Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
cytune.c Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
dmesg.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
dmesg.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipc.info Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipc.texi Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipcrm.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipcrm.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipcs.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ipcs.c Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
kbdrate.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
kbdrate.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
lpcntl.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
lpcntl.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
ramsize.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
rdev.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
rdev.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
readprofile.1 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
readprofile.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
renice.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
renice.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
rootflags.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
setserial.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
setserial.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
setsid.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
setsid.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
sln.c Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
swapdev.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
sync.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00
sync.S Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
tunelp.8 Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
tunelp.c Imported from util-linux-2.5 tarball. 2006-12-07 00:25:33 +01:00
vidmode.8 Imported from util-linux-2.2 tarball. 2006-12-07 00:25:32 +01:00

README.setserial

setserial Version 2.10

Setserial is a program which allows you to look at and change various
attributes of a serial device, including its port, its IRQ, and other
serial port options.

Starting with Linux 0.99 pl10, only the COM1-4 ports are configured,
using the default IRQ of 4 and 3.  So, if you have any other serial
ports provided by other boards (such as an AST Fourport), or if COM3-4
have been a non-standard IRQ so that you can use time simultaneously
with COM1-2, you *must* use this program in order to configure those
serial ports.

The simplest way to configure the serial ports is to copy the provided
rc.serial file to /etc/rc.serial, and then add to /etc/rc the lines:

if [ -f /etc/rc.serial ]; then
sh /etc/rc.serial
fi

Take a look at /etc/rc.serial; it was written to be relatively easy to
modify, and you may need to modify it so that it works best in your
environment.


-------------------------------------------------------

Here is setserial's command line syntax:

usage: ./setserial [-abgqvVW] serial-device [cmd1 [arg]] [cmd2] ... 

Available options:
	-a		Display all possible information about the port
	-b		Display boot-time level of information
	-q		Quiet flag
	-v		Verbose flag

	-g		Get and display the serial information of all
				serial ports on the machine
	-V		Display the current Version and then exit

	-W		Do wild interrupt initialization and then exit

Available commands: (* = Takes an argument)
		(^ = can be preceded by a '^' to turn off the option)
	* port		set the I/O port
	* irq		set the interrupt
	* uart		set UART type (none, 8250, 16450, 16550, 16550A
	* baud_base	set base baud rate (CLOCK_FREQ / 16)
	* divisor	set the custom divisor (see spd_custom)
	^ fourport	configure the port as an AST Fourport
	  autoconfigure	automatically configure the serial port
	^ auto_irq	try to determine irq during autoconfiguration
	^ skip_test	skip UART test during autoconfiguration

	^ sak		set the break key as the Secure Attention Key
	^ session_lockout	Lock out callout port across different sessions
	^ pgrp_lockout	Lock out callout port across different process groups
	^ split_termios	Use separate termios for callout and dailin lines
	^ hup_notify	Notify a process blocked on opening a dialin line
				when a process has finished using a callout
				line by returning EAGAIN to the open.
	^ callout_nohup Don't hangup the tty if carrier detect drops on a 
				callout line.

	  spd_hi	use 56kb instead of 38.4kb
	  spd_vhi	use 115kb instead of 38.4kb
	  spd_cust	use the custom divisor to set the speed at 38.4kb
				(baud rate = baud_base / custom_divisor)
	  spd_normal	use 38.4kb when a buad rate of 38.4kb is selected

Use a leading '0x' for hex numbers.
CAUTION: Using an invalid port can lock up your machine!