Linux upgrade from 4.9.67 to 5.4.3 - UART TTY driver to TI Bluetooth device stopped working

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Linux upgrade from 4.9.67 to 5.4.3 - UART TTY driver to TI Bluetooth device stopped working

595件の閲覧回数
trondsandvik
Contributor I

We are using the WL1837MOD module from TI connected to an iMX7D.

After upgrading from Linux 4.9.67 to 5.4.3, the WLAN function is still working but not the BT part.

We are using this command to start and set up the BT part:

hciattach -p /dev/ttymxc2 texas 

I have assigned the UART signals to a logic analyzer and can confirm they are operating exactly the same way as for the 4.9.67 kernel. Hence I suspec it is the TTY stack that for some reason does not provide the data coming rom the UART interface to the WL1837 module.

I have made some debugging in the source code for hciattach; and found that not a single byte is read out of /dev/ttymxc2.

I put a break in the first read call - it will never return. It is in hciattach.c in the yellow line below:

int read_hci_event(int fd, unsigned char* buf, int size)
{
int remain, r;
int count = 0;

if (size <= 0)
return -1;

/* The first byte identifies the packet type. For HCI event packets, it
* should be 0x04, so we read until we get to the 0x04. */
while (1) {
r = read(fd, buf, 1);

The reason for upgrading Linux is for an upcoming release using WoWlan. This issue is the main and only  blocking factor now.

Please guide me to how to precede debugging to resolve this issue.

Thanks,
Trond

ラベル(2)
0 件の賞賛
2 返答(返信)

590件の閲覧回数
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello trondsandvik,

The kernel are not supported by nxp, and the bluetooth is neither, you have to change to 5.10.35 kernel or go with your vendor and as for the driver.

Regards

 

0 件の賞賛

575件の閲覧回数
trondsandvik
Contributor I
0 件の賞賛