public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Unable to get hciattach to work...
@ 2004-04-21 14:47 Michael Frey
  2004-04-21 14:57 ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Frey @ 2004-04-21 14:47 UTC (permalink / raw)
  To: BlueZ Mailing List

I just recently upgraded my kernel from 2.4.18 to 2.4.20 and am trying 
to get my bluetooth module to work.  I have been using bluez with great 
success with my 2.4.18 kernel but no luck with 2.4.20.

When I issue the hciattach command here is what I get.
./hciattach /dev/ttyS1 bcsp 115200
BlueZ HCI UART driver ver 2.0 Copyright (C) 2000,2001 Qualcomm Inc
Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
insmod: Note: /etc/modules.conf is more recent than 
/lib/modules/2.4.20_mvl31-dbpxa2xx/modules.dep
Can't set device: Protocol not supported
Can't initialize device: Illegal seek
root@(none):/opt/bluetooth# lsmod
Module                  Size  Used by    Tainted: P
hci_uart                5444   0  (autoclean)
bluez                  34672   1  (autoclean) [hci_uart]
spectrum_cs            75772   1
orinoco                33716   0  [spectrum_cs]
hermes                  4408   0  [spectrum_cs orinoco]
ide-cs                  3572   1
ds                      7472   2  [spectrum_cs ide-cs]
pxa_cs                  9296   2
pcmcia_core            34672   0  [spectrum_cs ide-cs ds pxa_cs]


How do I go about debugging this?  I am using the kernel modules that 
are in the kernel tree.

Thanks,
Michael Frey



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 14:47 [Bluez-devel] Unable to get hciattach to work Michael Frey
@ 2004-04-21 14:57 ` Marcel Holtmann
  2004-04-21 15:06   ` Michael Frey
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-04-21 14:57 UTC (permalink / raw)
  To: Michael Frey; +Cc: BlueZ Mailing List

Hi Michael,

> I just recently upgraded my kernel from 2.4.18 to 2.4.20 and am trying 
> to get my bluetooth module to work.  I have been using bluez with great 
> success with my 2.4.18 kernel but no luck with 2.4.20.
> 
> When I issue the hciattach command here is what I get.
> ./hciattach /dev/ttyS1 bcsp 115200
> BlueZ HCI UART driver ver 2.0 Copyright (C) 2000,2001 Qualcomm Inc
> Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
> insmod: Note: /etc/modules.conf is more recent than 
> /lib/modules/2.4.20_mvl31-dbpxa2xx/modules.dep
> Can't set device: Protocol not supported
> Can't initialize device: Illegal seek
> root@(none):/opt/bluetooth# lsmod
> Module                  Size  Used by    Tainted: P
> hci_uart                5444   0  (autoclean)
> bluez                  34672   1  (autoclean) [hci_uart]
> spectrum_cs            75772   1
> orinoco                33716   0  [spectrum_cs]
> hermes                  4408   0  [spectrum_cs orinoco]
> ide-cs                  3572   1
> ds                      7472   2  [spectrum_cs ide-cs]
> pxa_cs                  9296   2
> pcmcia_core            34672   0  [spectrum_cs ide-cs ds pxa_cs]
> 
> 
> How do I go about debugging this?  I am using the kernel modules that 
> are in the kernel tree.

the plain vanilla 2.4.20 don't includes BCSP support. If you got the
2.4.18 working with BCSP you must have used a patched kernel.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 14:57 ` Marcel Holtmann
@ 2004-04-21 15:06   ` Michael Frey
  2004-04-21 15:09     ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Frey @ 2004-04-21 15:06 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Marcel,

Yes, I used the bluez-kernel-2.3.tgz release for my 2.4.18 kernel.  I 
tried downloading the latest 2.4.20 patch and I get many rejected 
hunks.  That's why I am just using the modules that come with the 
kernel tree.
Is there a standalone kernel package like there was in the past and 
just use them and not the ones in the kernel tree?

Michael

On Apr 21, 2004, at 10:57 AM, Marcel Holtmann wrote:

> Hi Michael,
>
>> I just recently upgraded my kernel from 2.4.18 to 2.4.20 and am trying
>> to get my bluetooth module to work.  I have been using bluez with 
>> great
>> success with my 2.4.18 kernel but no luck with 2.4.20.
>>
>> When I issue the hciattach command here is what I get.
>> ./hciattach /dev/ttyS1 bcsp 115200
>> BlueZ HCI UART driver ver 2.0 Copyright (C) 2000,2001 Qualcomm Inc
>> Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
>> insmod: Note: /etc/modules.conf is more recent than
>> /lib/modules/2.4.20_mvl31-dbpxa2xx/modules.dep
>> Can't set device: Protocol not supported
>> Can't initialize device: Illegal seek
>> root@(none):/opt/bluetooth# lsmod
>> Module                  Size  Used by    Tainted: P
>> hci_uart                5444   0  (autoclean)
>> bluez                  34672   1  (autoclean) [hci_uart]
>> spectrum_cs            75772   1
>> orinoco                33716   0  [spectrum_cs]
>> hermes                  4408   0  [spectrum_cs orinoco]
>> ide-cs                  3572   1
>> ds                      7472   2  [spectrum_cs ide-cs]
>> pxa_cs                  9296   2
>> pcmcia_core            34672   0  [spectrum_cs ide-cs ds pxa_cs]
>>
>>
>> How do I go about debugging this?  I am using the kernel modules that
>> are in the kernel tree.
>
> the plain vanilla 2.4.20 don't includes BCSP support. If you got the
> 2.4.18 working with BCSP you must have used a patched kernel.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 15:06   ` Michael Frey
@ 2004-04-21 15:09     ` Marcel Holtmann
  2004-04-21 15:44       ` Michael Frey
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-04-21 15:09 UTC (permalink / raw)
  To: Michael Frey; +Cc: BlueZ Mailing List

Hi Michael,

> Yes, I used the bluez-kernel-2.3.tgz release for my 2.4.18 kernel.  I 
> tried downloading the latest 2.4.20 patch and I get many rejected 
> hunks.  That's why I am just using the modules that come with the 
> kernel tree.
> Is there a standalone kernel package like there was in the past and 
> just use them and not the ones in the kernel tree?

there is no seperate package anymore. However the CVS contains a
framework with that it might be possible to build the Bluetooth modules
outside the kernel.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 15:09     ` Marcel Holtmann
@ 2004-04-21 15:44       ` Michael Frey
  2004-04-21 15:50         ` Marcel Holtmann
  0 siblings, 1 reply; 7+ messages in thread
From: Michael Frey @ 2004-04-21 15:44 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Marcel,

Ok -- I was able to patch my kernel -- fixing up by hand any rejects 
but I get the following when trying to build the bluez modules.
core.c: In function `bnep_session':
core.c:463: error: structure has no member named `nice'
core.c: In function `bnep_add_connection':

any idea on this one?

Michael

On Apr 21, 2004, at 11:09 AM, Marcel Holtmann wrote:

> Hi Michael,
>
>> Yes, I used the bluez-kernel-2.3.tgz release for my 2.4.18 kernel.  I
>> tried downloading the latest 2.4.20 patch and I get many rejected
>> hunks.  That's why I am just using the modules that come with the
>> kernel tree.
>> Is there a standalone kernel package like there was in the past and
>> just use them and not the ones in the kernel tree?
>
> there is no seperate package anymore. However the CVS contains a
> framework with that it might be possible to build the Bluetooth modules
> outside the kernel.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 15:44       ` Michael Frey
@ 2004-04-21 15:50         ` Marcel Holtmann
  2004-04-21 16:47           ` Michael Frey
  0 siblings, 1 reply; 7+ messages in thread
From: Marcel Holtmann @ 2004-04-21 15:50 UTC (permalink / raw)
  To: Michael Frey; +Cc: BlueZ Mailing List

Hi Michael,

> Ok -- I was able to patch my kernel -- fixing up by hand any rejects 
> but I get the following when trying to build the bluez modules.
> core.c: In function `bnep_session':
> core.c:463: error: structure has no member named `nice'
> core.c: In function `bnep_add_connection':

then your kernel includes another backport, because this is a 2.6
feature only. Replace the line with

	set_user_nice(current, -15);

and see if that helps.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Bluez-devel] Unable to get hciattach to work...
  2004-04-21 15:50         ` Marcel Holtmann
@ 2004-04-21 16:47           ` Michael Frey
  0 siblings, 0 replies; 7+ messages in thread
From: Michael Frey @ 2004-04-21 16:47 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: BlueZ Mailing List

Marcel,

nice!!!  That did it.

Up and running.

Thanks for your help

Michael
On Apr 21, 2004, at 11:50 AM, Marcel Holtmann wrote:

> Hi Michael,
>
>> Ok -- I was able to patch my kernel -- fixing up by hand any rejects
>> but I get the following when trying to build the bluez modules.
>> core.c: In function `bnep_session':
>> core.c:463: error: structure has no member named `nice'
>> core.c: In function `bnep_add_connection':
>
> then your kernel includes another backport, because this is a 2.6
> feature only. Replace the line with
>
> 	set_user_nice(current, -15);
>
> and see if that helps.
>
> Regards
>
> Marcel
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-04-21 16:47 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-21 14:47 [Bluez-devel] Unable to get hciattach to work Michael Frey
2004-04-21 14:57 ` Marcel Holtmann
2004-04-21 15:06   ` Michael Frey
2004-04-21 15:09     ` Marcel Holtmann
2004-04-21 15:44       ` Michael Frey
2004-04-21 15:50         ` Marcel Holtmann
2004-04-21 16:47           ` Michael Frey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox