The later Linux 2.2 kernels use the same build parameters and parameter syntax as the Linux version 2.4 kernels.
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:
The kernel assumes a serial link speed of 9600bps. If you are using a differing bit rate then find these two lines:
and change 0x0c to one of the values in Table 10-1.