Hi Paul,

Paul Romero wrote:
The speed of the console--/dev/ttyS0, is hardcoded to 19200
baud in the 2.4.x kernel.  This means that fcntl() and similar
calls can not be used to change the speed.

No, that is not correct.

The _default_ speed is hard coded. And that is only used
on system startup - as the initial setting.

Once the system/driver is operational the usual serial port
mechanisms (via ioctl's, etc) can be used. Note that
you cannot set serial port speed with fcntl().

As Erwin pointed out you can ofcourse change this default
on the boot command line too.

Regards
Greg


You can quickly grasp the problem if you search for
CONSOLE_BAUD_RATE in the file
linux-2.4.x/drivers/char/mcfserial.c. I believe that
is the only file that needs to be modified to make
the speed of ttyS0 configurable like other ttys ?
Is that correct ?

More importantly, has someone already made the ttyS0
speed configurable, and if so, where can one obtain the
relevant code ?

Note: I am using UC Linux release 2.4.27 with the 2.4.x kernel
on an M5249C3.

Best Regards,

Paul R.


--
Paul Romero

RCOM Communications Software

Phone/Fax: (510)339-2628
E-Mail: [EMAIL PROTECTED]





--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to