Tuesday, July 26, 2011

Baudrate issue in Beagleboard Xm

While working with Beagleboard Xm I faced a strange issue related to baud rate.
My setup:
   1. Beagle Board Xm
   2. Acer 4930 Laptop
   3. 5v,3Amps supply for Beagleboard
   4. USB to serial converter. [Detected as /dev/ttyUSB0 - minicom is used on host side]
The issue:
  1. Getting jumbled characters in u-boot menu at times
  2. This continues even if the kernel is up.
Solution:
For u-boot:
Change the current baudrate "setenv baudrate 19200"
Change the baudrate in minicom "CTRL A,Z; O; Serial Port Setup; E; B(Require times for 19200)"
For seeing the kernel messages:
Before booting the kernel set the proper bootargs to be passed.
"setenv bootargs console=ttyS2,19200n8"
NOTE: The kernel boot-up messages could be seen; but the login prompt is not seen due to the issue. Here change back minicom(host side) baud rate to 115200.
Now the login prompt could be seen; but the jumbled character issue would be there.
Still login using the required credentials.
After logging in:
Use the shell command to change baudrate of required serial port
"stty -F /dev/ttyS2 speed 19200"

No comments: