Skip to contentSkip to conversation

Simple serial fix for idiots at the lilo prompt.

PATCH New Roger Gammans 1 participant 1 message Mar 11, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Simple serial fix for idiots at the lilo prompt.

Hi

If you don't pay attention (yeah, I know) Its easy to write kernel commond lines like 'console=ttyS0, console=.., etc'

The lack of a baud rate after the comma causes the kernel to panic. The patch below will cause the kernel in treat the non-existant baud rate specifier as the default without panicing.

char/serial.c renamed from linux-2.2+lvm/drivers/char/serial.c +4 -0
@@ -3490,6 +3490,10 @@
 		case 9600:
 		default:
 			cflag |= B9600;
+			/*
+			 * Set this to a sane value to prevent a divide error
+			 */
+			baud  = 9600;
 			break;
 	}
 	switch(bits) {

TTFN

Signature · 4 lines
Roger
     Think of the mess on the carpet. Sensible people do all their
     demon-summoning in the garage, which you can just hose down afterwards.
        --     [email protected]