Loading...
hi3516d v300访问串口1时内核报错
fengsheng  发布于 06/28 23:54
浏览 12
大家好,最近调试Hi3516d v300的板子,发现访问/dev/ttyAMA1时,内核报错,
dts已经配置了Uart1,引脚复用也修改为了uart1的tx和rx
大家帮看看,有没有遇到过这个问题的,谢谢!

open tty: /dev/ttyAMA1  bitRate: 115200

------------[ cut here ]------------

WARNING: CPU: 1 PID: 1176 at drivers/tty/serial/serial_core.c:440 uart_get_baud_rate+0xf4/0x158

Modules linked in: hi_mipi_rx(O) hi3516cv500_acodec(PO) hi3516cv500_adec(PO) hi3516cv500_aenc(PO) hi3516cv500_ao(PO) hi3516cv500_ai(PO) hi3516cv500_aio(PO) hi3516cv500_hdmi(PO) hi_sensor_i2c(O) hi_pwm(O) hi3516cv500_nnie(PO) hi3516cv500_ive(PO) hi3516cv500_vdec(PO) hi3516cv500_vfmw(PO) hi3516cv500_jpegd(PO) hi3516cv500_jpege(PO) hi3516cv500_h265e(PO) hi3516cv500_h264e(PO) hi3516cv500_vedu(PO) hi3516cv500_chnl(PO) hi3516cv500_venc(PO) hi3516cv500_rc(PO) hifb(O) hi3516cv500_vo(PO) hi3516cv500_vpss(PO) hi3516cv500_vi(PO) hi3516cv500_isp(PO) hi3516cv500_dis(PO) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO) hi3516cv500_tde(O) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_tzasc(PO) hi_osal(O) sys_config(O)

CPU: 1 PID: 1176 Comm: comtool Tainted: P           O    4.9.37 #6

Hardware name: Generic DT based system

Backtrace:

[] (dump_backtrace) from [] (show_stack+0x18/0x1c)

r7:00000009 r6:600d0013 r5:00000000 r4:c05bc0f4

[] (show_stack) from [] (dump_stack+0x8c/0xa0)

[] (dump_stack) from [] (__warn+0xec/0x104)

r7:00000009 r6:c0515e88 r5:00000000 r4:00000000

[] (__warn) from [] (warn_slowpath_null+0x28/0x30)

r9:00000000 r8:00000000 r7:ffffeff0 r6:00000000 r5:c68beeb8 r4:00000002

[] (warn_slowpath_null) from [] (uart_get_baud_rate+0xf4/0x158)

[] (uart_get_baud_rate) from [] (pl011_set_termios+0x50/0x344)

r10:c68bee00 r9:0cc00041 r8:c68beeb8 r7:c68bee00 r6:c68bee00 r5:00000000

r4:c6922610 r3:00000000

[] (pl011_set_termios) from [] (uart_change_speed+0x38/0xf0)

r9:0cc00041 r8:00000000 r7:c68bee00 r6:c68bee00 r5:c69040fc r4:c6922610

[] (uart_change_speed) from [] (uart_startup.part.3+0xb0/0x148)

r7:c68bee00 r6:00000000 r5:c69040fc r4:c6922610

[] (uart_startup.part.3) from [] (uart_port_activate+0x58/0x64)

r9:0cc00041 r8:c5fec000 r7:c6904190 r6:c5f9fd80 r5:c68bee00 r4:c69040fc

[] (uart_port_activate) from [] (tty_port_open+0x94/0xd8)

[] (tty_port_open) from [] (uart_open+0x38/0x40)

r9:0cc00041 r8:c5fec000 r7:c05f92a8 r6:c0490c9c r5:c68c2780 r4:c5f9fd80

[] (uart_open) from [] (tty_open+0xdc/0x6ac)

[] (tty_open) from [] (chrdev_open+0xcc/0x188)

r10:c5fedf5c r9:c691a740 r8:c5f9fd80 r7:c6884650 r6:00000000 r5:c691a740

r4:c0490d14

[] (chrdev_open) from [] (do_dentry_open.constprop.3+0x204/0x30c)

r9:00000902 r8:c5fedea8 r7:c00f18cc r6:c5f9fd88 r5:c6884650 r4:c5f9fd80

[] (do_dentry_open.constprop.3) from [] (vfs_open+0x48/0x78)

r9:00000902 r8:c5fedea8 r7:00000000 r6:c6410660 r5:c5f9fd80 r4:c5fedea8

[] (vfs_open) from [] (path_openat+0x344/0xf3c)

r5:00000000 r4:00000000

[] (path_openat) from [] (do_filp_open+0x6c/0xd0)

r10:00000000 r9:c5fec000 r8:c000fa44 r7:00000001 r6:c5fedf5c r5:c5fedea8

r4:00000004

[] (do_filp_open) from [] (do_sys_open+0x11c/0x1cc)

r7:fffff000 r6:c5b28000 r5:ffffff9c r4:00000004

[] (do_sys_open) from [] (SyS_open+0x20/0x24)

r9:c5fec000 r8:c000fa44 r7:00000005 r6:be804bb8 r5:00047f70 r4:00047f18

[] (SyS_open) from [] (ret_fast_syscall+0x0/0x34)

---[ end trace 1a5befffcb78f888 ]---

open /dev/ttyAMA1 OK!

------------[ cut here ]------------

WARNING: CPU: 1 PID: 1176 at drivers/tty/serial/serial_core.c:440 uart_get_baud_rate+0xf4/0x158

Modules linked in: hi_mipi_rx(O) hi3516cv500_acodec(PO) hi3516cv500_adec(PO) hi3516cv500_aenc(PO) hi3516cv500_ao(PO) hi3516cv500_ai(PO) hi3516cv500_aio(PO) hi3516cv500_hdmi(PO) hi_sensor_i2c(O) hi_pwm(O) hi3516cv500_nnie(PO) hi3516cv500_ive(PO) hi3516cv500_vdec(PO) hi3516cv500_vfmw(PO) hi3516cv500_jpegd(PO) hi3516cv500_jpege(PO) hi3516cv500_h265e(PO) hi3516cv500_h264e(PO) hi3516cv500_vedu(PO) hi3516cv500_chnl(PO) hi3516cv500_venc(PO) hi3516cv500_rc(PO) hifb(O) hi3516cv500_vo(PO) hi3516cv500_vpss(PO) hi3516cv500_vi(PO) hi3516cv500_isp(PO) hi3516cv500_dis(PO) hi3516cv500_vgs(PO) hi3516cv500_gdc(PO) hi3516cv500_rgn(PO) hi3516cv500_tde(O) hi3516cv500_sys(PO) hi3516cv500_base(PO) hi_tzasc(PO) hi_osal(O) sys_config(O)

CPU: 1 PID: 1176 Comm: comtool Tainted: P        W  O    4.9.37 #6

Hardware name: Generic DT based system

Backtrace:

[] (dump_backtrace) from [] (show_stack+0x18/0x1c)

r7:00000009 r6:600e0013 r5:00000000 r4:c05bc0f4

[] (show_stack) from [] (dump_stack+0x8c/0xa0)

[] (dump_stack) from [] (__warn+0xec/0x104)

r7:00000009 r6:c0515e88 r5:00000000 r4:00000000

[] (__warn) from [] (warn_slowpath_null+0x28/0x30)

r9:00000000 r8:00000000 r7:ffffeff0 r6:0000000
收藏0
0个回答
内容存在敏感词
添加附件:文件小于20M 文件格式必须为doc,docx,xls,xlsx,pdf,ppt,pptx,txt,zip,rar,tar,7z
上传
文件格式必须为doc,docx,xls,xlsx,pdf,ppt,pptx,txt,zip,rar,tar,7z
确定要删除此文章、专栏、评论吗?
确定
取消

详细的问题描述有助于平台快速解决问题

屏幕截图
问题描述