l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2002 Jan 04 15:12

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] complete serial console success! (was: Re: minicom help)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] complete serial console success! (was: Re: minicom help)



On Fri, Jan 04, 2002 at 11:07:54AM -0800, Henry House wrote:
> Okay, I finally have it :-). Steps:
> 
> 6. Reboot and pat yourself on the back if all went according to plan :-).

Excellent work Henry.  A few items that might be gotchas for some.

If you're using lilo, you'll need a recent lilo, else the ctrl-break will
'lock up' lilo.  potato's won't work, woody's lilo will.  You'll still
boot up fine, but won't be able to type in alternate boot commands like
"single" or "emergency".

Second, currently potato using sysvinit has a bug in the tty port handling
where CREAD is unset [1].  This means if you try a "single" or "emergency"
bootup, OR if your on boot fsck's fail, you won't be able to login.

You can add CREAD to the sysvinit program yourself (I can produce a patch
if desired), upgrade to sysvinit from woody, or create a sulogin wrapper
that sets CREAD yourself [2].

Third, you'll want to remove /etc/ioctl.save in most cases the first
serial boot, since it is the default TTY IOCTL sysvinit uses if present,
and may have a 38400 baud rate from your tty0 boot in it.

There is a linux serial console howto that mentions many of these items...
it might be another good resource to link too.


[1]
It's not really a sysvinit but, but sysvinit is the right place to fix it.
Early in 2.4.x the kernel changed the default tty settings, and sysvinit
needs to be updated to work properly with kernels 2.4.3 or so and up.


[2]
# mv /sbin/sulogin /sbin/sulogin.elf
# cat > /sbin/sulogin
#! /bin/sh

/bin/stty CREAD
exec /sbin/sulogin.elf "$@"
<ctrl-d>
# chmod 755 /sbin/sulogin
# # test it!
# /sbin/sulogin /dev/tty10
# # see if you can login to console at F-10
# note that ugprading sysvinit will overwrite your shell script

-- 
Ted Deppner
http://www.psyber.com/~ted/
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.