Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Nov 2011 12:11:36 +0100
From:      "C. P. Ghost" <cpghost@cordula.ws>
To:        saeedeh motlagh <saeedeh.motlagh@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: changing baud rate without recompiling
Message-ID:  <CADGWnjWVvARQiLnv7GWYTBCOMGuR1o9=7SGex7DVoNq9hKpR%2BQ@mail.gmail.com>
In-Reply-To: <CAN%2BS=WCnTLq08TWpu=1d1QS9wkbi8Ur8NWy9rwJeO2eq=jwWTQ@mail.gmail.com>
References:  <CAN%2BS=WCnTLq08TWpu=1d1QS9wkbi8Ur8NWy9rwJeO2eq=jwWTQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Nov 9, 2011 at 10:11 AM, saeedeh motlagh
<saeedeh.motlagh@gmail.com> wrote:
> - change the baud rate in /etc/ttys file

(...)

> when i use =A0"stty -f /dev/ttyu0.init 115200" the baud rate for
> ttyu0.init change to 115200. after that i use "kill -1 1" in order to
> reinitialize devices but nothing happened and the baud rate for ttyu0
> is still 9600.

Are you sure you really updated /etc/ttys correctly?
  ttyu0   "/usr/libexec/getty std.115200"   dialup  on secure

What does 'ps ax | grep getty' say? Something like this:
   1416  u0  Is+    0:00.24 /usr/libexec/getty std.9600 ttyu0
or like this:
   1416  u0  Is+    0:00.24 /usr/libexec/getty std.115200 ttyu0

Then, check that std.115200 is indeed in /etc/gettytab.

Save for getty, I don't know what would reset the speed
to 9600... Maybe some weird setting in /etc/login.conf?

-cpghost.

--=20
Cordula's Web. http://www.cordula.ws/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGWnjWVvARQiLnv7GWYTBCOMGuR1o9=7SGex7DVoNq9hKpR%2BQ>