Bug 10456 - busybox stty unable to set UART baud rate to 1Mbps
Summary: busybox stty unable to set UART baud rate to 1Mbps
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 11:47 UTC by Maik
Modified: 2017-10-27 14:20 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maik 2017-10-25 11:47:52 UTC
We noticed on a buidroot generated image using busybox-tools that the command stty (from busybus) supports only a limited UART baud rate (see [1] or [2]).

We did a lot of checks (see [1] or [2]) and the result was that the stty (busybox) command was the problem. To conform this we installed the coreutils including stty (coreutils). With stty (busybox) a baud rate of 1000000 bps failed including faster baud rates, but with stty (coreutils) it was no problem at all.


To test new stty (busybox) versions feel free to instruct me.


[1]:
http://forum.fs-net.de/index.php/Thread/4203-UART-interfaces-refuse-to-set-baudrate-to-1-Mbps/#post14236

[2]:
https://community.nxp.com/thread/461993

busybox version: v1.24.2
Comment 1 Denys Vlasenko 2017-10-27 14:20:06 UTC
See speed_table.c -
speeds up to B4000000 are supported since 1.26.x, if they are defined by the toolchain.