Firefly开源社区

标题: aio-rv1126-debian.mk 编译串口485不可用 [打印本页]

作者: lixueliang    时间: 2022-5-11 19:13
标题: aio-rv1126-debian.mk 编译串口485不可用
我使用的是RV1126-JD4的核心板+底板
文件系统debain10
根据https://dev.t-firefly.com/thread-118473-1-1.html的回复
选用aio-rv1126-debian.mk编译内核
发现串口232及串口485不可用,
会报类似下列错误(内核启动打印见附件):
    set divisor fail, quot:13 != dll,dlh:0



使用官网aio-rv1126-jd4-BE-45.mk 编译的kernel,串口232及串口485可用

请问我使用的板子是否应使用aio-rv1126-debian.mk,或该配置需做哪些调整
才能正确配置串口。


期待回复,多谢!


tchip_askquestions

aio-rv1126-debian.mk.log

65.46 KB, 下载次数: 0, 下载积分: 灯泡 -1 , 经验 -1


作者: lixueliang    时间: 2022-5-12 14:07
尝试了三组波特率,打印如下:
root@firefly:~# busybox stty -F /dev/ttyS1 ispeed 4000000 ospeed 4000000 cs8
[ 2252.578798] ttyS1 set divisor fail, quot:1 != dll,dlh:0
[ 2252.579009] sclk_uart1_fracdiv p_rate(480000000) is low than rate(64000000)*20, use integer or half-div
[ 2252.579051] sclk_uart1_fracdiv p_rate(480000000) is lorwo ot@firefly:~# han rate(64000000)*20, use integer or half-div
[ 2252.579129] sclk_uart1_fracdiv p_rate(1188000000) is low than rate(65280000)*20, use integer or half-div
[ 2252.579167] dw-apb-uart ff410000.serial: set rate:64000000, but get rate:62526316
[ 2252.579197] ttyS1 set divisor fail, quot:1 != dll,dlh:0

root@firefly:~# busybox stty -F /dev/ttyS1 ispeed 1500000 ospeed 1500000 cs8
[ 2289.215985] sclk_uart1_fracdiv p_rate(1188000000) is low than rate(64000000)*20, use integer or half-div
[ 2289.216029] sclk_uart1_fracdiv p_rate(1188000000)root@firefly:~#  is low than rate(65280000)*20, use integer or half-div
[ 2289.216044] dw-apb-uart ff410000.serial: set rate:64000000, but get rate:62526316
[ 2289.216061] ttyS1 set divisor fail, quot:1 != dll,dlh:0
[ 2289.216182] ttyS1 set divisor fail, quot:1 != dll,dlh:0

root@firefly:~# busybox stty -F /dev/ttyS1 ispeed 115200 ospeed 115200 cs8
[ 2318.945134] ttyS1 set divisor fail, quot:1 != dll,dlh:0
[ 2318.945310] ttyS1 set divisor fail, quot:13 != dll,dlh:0

请问是否是驱动不匹配导致?合适的驱动哪里获得
作者: lixueliang    时间: 2022-5-13 11:13
捋了一遍驱动代码,虽然有告警打印,但不影响基本的收发使用。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1