Re: [Bluez-devel] BCSP not working

Carlos AM
2004-08-18T14:00:24Z

Hi

The machine is an arm running uclinux. I used the linux kernel version
2.4.22 and bluez-2.7. Yesterday I patched the kernel with this patch:

http://www.holtmann.org/linux/kernel/patch-2.4.22-mh7.gz

And got the following kernel log:

<3>bcsp_recv: Out-of-order packet arrived, got 1 expected 0
<3>bcsp_recv: Out-of-order packet arrived, got 1 expected 0
<4>Warning: kfree_skb passed an skb still on a list (from 00093a14).
<2>kernel BUG at skbuff.c:319!
(hanged)

The only difference with the last kernel messages was:
"<3>bcsp_recv: Short BCSP packet" that didn't appear anymore.
According to the kernel patch changelog this is normal.

I execute the following script to start all the bluetooth stuff:
------------------------------------------------------------
#!/bin/sh
/bluez/hcid -n &
/bluez/bluezmain hciattach -n /dev/tts/2 csr 115200 &
/bluez/bluezmain hciconfig hci0 up
/bluez/sdpd -n &
/bluez/bluezmain sdptool add sp
#my own program
/bluez/rfcomm-server 1
------------------------------------------------------------
I used "-n" because the uclinux fork call does not behave as normal linux.
The uclinux hangs in hciattach.

I successfully executed this script with the same bluetooth hardware in a Linux 2.6 PC with bluez 2.7.
Everything worked fine.

Regards.
Carlos.

> > These messages appear on the kernel log when I am using BCSP:
> >
> > <3>bcsp_recv: Out-of-order packet arrived, got 1 expected 0
> > <3>bcsp_recv: Checksum failed: computed b237 received 0000
> > <4>Warning: kfree_skb passed an skb still on a list (from 000f77a4).
> > <2>kernel BUG at skbuff.c:319!
> > <3>bcsp_recv: Short BCSP packet
> >
> > Then the computer hangs.
> >
> > I enabled "Send CRC with every hci packet" in the kernel and in the
> > bluetooth device.
>
> I asked for more information not some extra text. What kernel version
> are using, what library version, what tools. What hardware, what command
> for reproducing etc. Is there an oops?
>
> Regards
>
> Marcel