2007-06-03 14:44:43

by 01flipstar

[permalink] [raw]
Subject: [Bluez-users] bluez-utils on old kernel

Hello everybody,

I'm trying to add bluetooth support to my arm based NAS which runs on
a 2.6.10 Kernel.

I compiled the bluez-libs and utils (3.11) but hcitool dev won't
show any devices and when I exec hciconfig I get

icybox / # /system/overlay/apps/bluez-utils/sbin/hciconfig
hci0: Type: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN INIT RUNNING
RX bytes:0 acl:0 sco:0 events:0 errors:0
TX bytes:0 acl:0 sco:0 commands:0 errors:0

so I think the device is somehow active but I can't nether reset nor
do anything usefull with the bw-dongel.

I then tried to apply the latest kernelpatch to the 2.6.10 kernel
which gives lots of errors

bash-2.05b# patch -p1 < patches/patch-2.6.21-mh1
patching file drivers/bluetooth/hci_ldisc.c
Hunk #1 succeeded at 306 (offset -1 lines).
Hunk #2 FAILED at 474.
1 out of 2 hunks FAILED -- saving rejects to file
drivers/bluetooth/hci_ldisc.c.rej
patching file drivers/bluetooth/hci_uart.h
Hunk #1 succeeded at 31 (offset 3 lines).
patching file drivers/bluetooth/hci_usb.c
Hunk #1 FAILED at 114.
Hunk #2 FAILED at 148.
2 out of 2 hunks FAILED -- saving rejects to file
drivers/bluetooth/hci_usb.c.rej
patching file include/net/bluetooth/l2cap.h
Hunk #1 succeeded at 141 (offset 12 lines).
Hunk #2 succeeded at 215 with fuzz 1 (offset -2 lines).
patching file Makefile
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej
patching file net/bluetooth/hci_conn.c
Hunk #1 succeeded at 73 (offset 1 line).
Hunk #2 succeeded at 93 with fuzz 2 (offset -14 lines).
Hunk #4 succeeded at 306 (offset -42 lines).
Hunk #5 FAILED at 326.
Hunk #7 FAILED at 423.
Hunk #8 FAILED at 452.
3 out of 8 hunks FAILED -- saving rejects to file
net/bluetooth/hci_conn.c.rej
patching file net/bluetooth/hci_core.c
Hunk #1 succeeded at 203 (offset -13 lines).
Hunk #3 FAILED at 853.
Hunk #4 succeeded at 1006 (offset -28 lines).
Hunk #5 succeeded at 1061 (offset 1 line).
Hunk #6 succeeded at 1047 (offset -28 lines).
Hunk #7 succeeded at 1141 (offset 1 line).
1 out of 7 hunks FAILED -- saving rejects to file
net/bluetooth/hci_core.c.rej
patching file net/bluetooth/hci_event.c
Hunk #1 FAILED at 783.
Hunk #2 FAILED at 793.
.
.
.

My question is: is it possoble to upgrade the kernel (bluetooth) step by
step because a jump from 2.6.10 to 2.6.21 is quite big i guess.
Or do i make something else wrong?

Thanks for your help.

bye
Philipp

_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2007-06-04 15:43:01

by Voni Hakau

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils on old kernel

On 6/3/07, [email protected] <[email protected]> wrote:
> I'm trying to add bluetooth support to my arm based NAS which runs on
> a 2.6.10 Kernel.
>
> I compiled the bluez-libs and utils (3.11) but hcitool dev won't
> show any devices and when I exec hciconfig I get

I did the same. I have utils 3.11 on 2.6.10. it is not vanilla 2.6.10 though -
it is from embedded distribution, but things seems to work.

just my 2 cents.

voni.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2007-06-04 15:23:32

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] bluez-utils on old kernel

Hi Phillip,

> I'm trying to add bluetooth support to my arm based NAS which runs on
> a 2.6.10 Kernel.
>
> I compiled the bluez-libs and utils (3.11) but hcitool dev won't
> show any devices and when I exec hciconfig I get
>
> icybox / # /system/overlay/apps/bluez-utils/sbin/hciconfig
> hci0: Type: USB
> BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
> DOWN INIT RUNNING
> RX bytes:0 acl:0 sco:0 events:0 errors:0
> TX bytes:0 acl:0 sco:0 commands:0 errors:0
>
> so I think the device is somehow active but I can't nether reset nor
> do anything usefull with the bw-dongel.

I have no idea what went wrong, but it looks like an init issue and is
maybe actually a kernel bug that we already fixed.

> I then tried to apply the latest kernelpatch to the 2.6.10 kernel
> which gives lots of errors

This will never work. The patch has 2.6.21 in its name and that means it
only applied to 2.6.21 source code.

> My question is: is it possoble to upgrade the kernel (bluetooth) step by
> step because a jump from 2.6.10 to 2.6.21 is quite big i guess.
> Or do i make something else wrong?

Upgrading the kernel to 2.6.21 is easier. It might be possible to
backport all the Bluetooth patches, but that takes time and I would
personally charge a lot for doing that.

Regards

Marcel



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users