UART2 No Rx data with Android R10.4 worked perfectly on R9.2! What happened?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART2 No Rx data with Android R10.4 worked perfectly on R9.2! What happened?

跳至解决方案
2,592 次查看
mbp
Contributor V

Updated from R9.2 to R10.4 on Mx51-BBG system.  Used UART2 (ttymxc1) for serial communication to proprietary HW.  Tx works fine but absolutely no Rx. 

Analysis indicates that ttymxc1 is now owned by gps - where in 9.2 it was bluetooth, not sure this means diddly-squat.  mx51_babbage.c file calls correct IOMUX from all I can see.

Not sure if this is a Kernel or Android issue or some service is grabbing the incoming data so my app sees nothing....

Been beating on this for several days :smileyconfused: and hope that someone out there has encountered a similar issue and could point the way.

HELP!  

thanks :smileyhappy:

标签 (2)
1 解答
2,324 次查看
mbp
Contributor V

Solved! 

...required an iomux definition tweak in the Kernel.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,325 次查看
mbp
Contributor V

Solved! 

...required an iomux definition tweak in the Kernel.

0 项奖励
回复
2,324 次查看
normancheung
Contributor III

Mike,

Could you please share what is the IOMUX tweak?  I am running ito the same problem.

Thanks,

Norm

0 项奖励
回复
2,324 次查看
mbp
Contributor V

Norman,

Without booting my Linux system, I believe this is the patch.  LEt me know if it doesn't fix it.

In ../arch/arm/plat-mxc/include/mach/iomux-mx51.h:

-  #define _MX51_PAD_UART2_TXD__UART2_TXD IOMUX_PAD(0x62c, 0x23c, 0, 0x09ec, 3, 0)

+ #define _MX51_PAD_UART2_TXD__UART2_TXD IOMUX_PAD(0x62c, 0x23c, 0, 0x0000, 0, 0)

Mike