For earlier kernels see the article by Francesco Conti in issue 36 of Linux Journal published in April 1997.
This article included some patches for the kernel, which have been extended in the notes below to use a broader range of serial port speeds.
Choose to use the serial console by adding a couple of #defines at the start of /usr/src/linux/drivers/char/console.c:
Alternatively, to use ttyS1 use these lines:
and change 0x0c to one of the values in Table 10-1.
Table 10-1. IBM-PC/AT serial port bit rates and their bit-clock divisors
Bit Rate | Divisor |
---|---|
115200bps | 0x01 |
57600bps | 0x02 |
38400bps | 0x03 |
19200bps | 0x06 |
9600bps | 0x0c |
4800bps | 0x18 |
2400bps | 0x30 |
1200bps | 0x60 |