Bug 10456

Summary: busybox stty unable to set UART baud rate to 1Mbps
Product: Busybox Reporter: Maik <maik.brenke>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.