Skip to contentSkip to conversation

Zaurus BlueZ kernel packages for ROM v3.10

Bluez-devel Stephen Crane 4 participants 22 messages Jun 6, 2003 – Jul 2, 2003 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,
I don't want to preempt the official packager of the Zaurus BlueZ distribution but I couldn't wait for Sharp to get around to distributing the kernel source and needed to try out BlueZ on the new ROM.

So I built BlueZ kernel modules from a vanilla 2.4.18 plus Marcel's 2.4.18-mh6 patch-set and a bit of tweaking to the 2.4.6 kernel config file.

Quoted 1 line
Quoted 1 line

From cursory testing, they seem to be ok: bluecard_cs is successfully

loaded and the latest versions of hciconfig, hcitool and sdptool all work fine. (However YMMV, no warranty, don't blame me if your Z catches fire, etc.)

I've uploaded them to our anonymous ftp area, along with the PCMCIA configuration files, bluetooth and bluetooth.conf. Get them from ftp://rococosoft.com/pub/zaurus

Installation:
* unpack the tar-ball in the /home/root/modules/2.4.18-rmk7-pxa3-embedix directory
* run depmod -ae
* install bluetooth and bluetooth.conf in /etc/pcmcia
* run /etc/rc.d/init.d/pcmcia restart

Cheers,
Steve

Signature · 13 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#1 lore raw

Hi Stephen,

Quoted 17 lines

I don't want to preempt the official packager of the Zaurus BlueZ distribution but I couldn't wait for Sharp to get around to distributing the kernel source and needed to try out BlueZ on the new ROM.

So I built BlueZ kernel modules from a vanilla 2.4.18 plus Marcel's 2.4.18-mh6 patch-set and a bit of tweaking to the 2.4.6 kernel config file.

Quoted 1 line

From cursory testing, they seem to be ok: bluecard_cs is successfully

loaded and the latest versions of hciconfig, hcitool and sdptool all work fine. (However YMMV, no warranty, don't blame me if your Z catches fire, etc.)

I've uploaded them to our anonymous ftp area, along with the PCMCIA configuration files, bluetooth and bluetooth.conf. Get them from ftp://rococosoft.com/pub/zaurus

Quoted 6 lines

Installation:
* unpack the tar-ball in the /home/root/modules/2.4.18-rmk7-pxa3-embedix directory
* run depmod -ae
* install bluetooth and bluetooth.conf in /etc/pcmcia
* run /etc/rc.d/init.d/pcmcia restart

the current Zaurus packages are done by Joseph Ecker and the kernel modules are based on the deprecated bluez-kernel-2.3 package. It seems that it is really time to have up-to-date kernel modules for the Zaurus. Frist I don't like Joseph last choise to put the userspace tools and the kernel modules into one big package. I like to see the kernel stuff seperated from the userspace tools. However I have no Zaurus, so I can't help with that. But some time ago I put some scripts in the BlueZ kernel CVS repository which makes it possible to compile and install the Bluetooth modules outside the kernel source. Maybe you should take a look at it and provide some easy to install ipk packages.

The OpenZaurus project will use a 2.4.19 in future and hopefully they include my patch. Do anyone have details about this.

Regards

Marcel

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#2 lore raw

Hi Marcel,

Quoted 6 lines · Marcel Holtmann

the current Zaurus packages are done by Joseph Ecker and the kernel modules are based on the deprecated bluez-kernel-2.3 package. It seems that it is really time to have up-to-date kernel modules for the Zaurus. Frist I don't like Joseph last choise to put the userspace tools and the kernel modules into one big package. I like to see the kernel stuff seperated from the userspace tools.

Yeah me too. Particularly because it's much easier to build the user-space tools with a cross-compiler.

Quoted 5 lines

However I have no Zaurus, so I can't
help with that. But some time ago I put some scripts in the BlueZ kernel CVS repository which makes it possible to compile and install the Bluetooth modules outside the kernel source. Maybe you should take a look at it and provide some easy to install ipk packages.

I will think about doing this if I get some time. For now, I have uploaded the latest basic user-space binaries separately to ftp://rococosoft.com/pub/zaurus with instructions for installing them in the right places. It would not be too hard to write packaging scripts for them --- indeed this is something anyone could do using the ipkg-build script; volunteers?

Quoted 2 lines

The OpenZaurus project will use a 2.4.19 in future and hopefully they include my patch. Do anyone have details about this.

We only have 2 Zauruses here (one with the older Sharp ROM and the other with the new one) so I can't try OpenZaurus :-(

Steve

Signature · 2 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)
#3 lore raw
Quoted 5 lines
Quoted 2 lines

kernel modules into one big package. I like to see the kernel stuff seperated from the userspace tools.

Yeah me too. Particularly because it's much easier to build the user-space tools with a cross-compiler.

Not in this release.

Quoted 6 lines

I will think about doing this if I get some time. For now, I have uploaded the latest basic user-space binaries separately to ftp://rococosoft.com/pub/zaurus with instructions for installing them in the right places. It would not be too hard to write packaging scripts for them --- indeed this is something anyone could do using the ipkg-build script; volunteers?

I did it : http://fichiers.xgarreau.org/zaurus/bluez_2.4.18_arm.ipk

It installs the files in the right directories, make the symlinks, try to guess what card it is and bring device up.

Please keep me informed of new builds so that i keep the package up to date.

BR

Signature · 2 lines
Xavier Garreau
http://www.xgarreau.org/
#4 lore raw
Quoted 1 line

Subject: Re: [Bluez-devel] [ANN] Zaurus BlueZ kernel packages for ROM

v3.10

Just remember : plug in the card before installing the ipk or the card won't be recognized ;-)

Signature · 14 lines
Xavier Garreau
http://www.xgarreau.org/




-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#5 lore raw
In reply to Xavier Garreau

Hi,

I'm working towards easy Bluetooth on the Zaurus. I have a bluez GUI tool and qtopia dialer plugin in the works.

However, getting bluez installed was never easy. In the past, I was using the ipks available at bluez.sf.net, which were never very complete.

Today, I sought to remedy this, and tried cross compiling modules and the libs/utilities. I ran into a heap of trouble, and then discovered this thread. I'm glad someone else is looking into this stuff too. :)

My original goal was to get this working with kernel 2.4.6, but I'm not sure how realistic that is. I didn't know about the new sharp ROM until today, which I have now installed. I guess it is acceptable to work with this as a target, and considering it comes with kernel 2.4.18, it should make a lot of things easier.

Xavier's package looks good. The only flaw I think is that it does not set up /etc/bluetooth.

I'd like to see some secrets shared. Could Steve or Xavier respond to me here or on the list, so that we can make something more official?

-Justin

Quoted 15 lines · Xavier Garreau
Quoted 5 lines
Quoted 2 lines

kernel modules into one big package. I like to see the kernel stuff seperated from the userspace tools.

Yeah me too. Particularly because it's much easier to build the user-space tools with a cross-compiler.

Not in this release.

Quoted 6 lines

I will think about doing this if I get some time. For now, I have uploaded the latest basic user-space binaries separately to ftp://rococosoft.com/pub/zaurus with instructions for installing them in the right places. It would not be too hard to write packaging scripts for them --- indeed this is something anyone could do using the ipkg-build script; volunteers?

Quoted 7 lines

I did it : http://fichiers.xgarreau.org/zaurus/bluez_2.4.18_arm.ipk

It installs the files in the right directories, make the symlinks, try to guess what card it is and bring device up.

Please keep me informed of new builds so that i keep the package up to date.

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#6 lore raw

Ok, I thought of a few more things, so to jumpstart the discussion I'll say them now:

Quoted 2 lines
Quoted 2 lines

It installs the files in the right directories, make the symlinks, try to guess what card it is and bring device up.

First, what is this about card detection during ipk install? I didn't have a problem with that (I inserted my card after install), and IMO there should be no such detection in the installer if there is.

Second, rfcomm is missing.

Third, the /dev nodes are not created. When they are, ensure that they can survive a reboot.

For the future, I think hcid should be run on install and on future bootups, as it is required to do anything useful. I'm not sure about sdpd though (i admit i'm not up on what sdp does, can someone shed some light if this is needed?). Whatever daemons are run should have proper pid accounting in /var, so that front-ends can access them. For instance, my GUI that modifies /etc/bluetooth/hcid.conf will need a way to find hcid's pid so it can send HUP.

Then also pin handling: There should be a /usr/bin/bluepin that does the following:
- check to see if Qtopia is up.
- if not, echo ERR.
- else, call my qt btpin program (let's assume it is /usr/bin/btpin)

This way the pin should properly work even during the moment where hcid is running but qtopia is not fully booted yet.

I think this should do it. Am I missing anything?

By the way, you may see my GUI package here:

http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

It is rather old, but works. Unfortunately, it seems the dialer part does not work on the new Sharp ROM. Argh, I'll have to fix this ..

-Justin

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#7 lore raw
Quoted 1 line

Subject: Re: [Bluez-devel] [ANN] Zaurus BlueZ kernel packages for ROM

v3.10

I'm still interrested in packaging bluez core, libs and apps for the zaurus. When all is compiled and ready to work, i'll make another package.

I thought card detection during ipk install was a good thing to be done, if i'm the only one wanting it, it can be removed...

I'll put rfcomm and bluepin, as soon as they are available.

Quoted 1 line

Third, the /dev nodes are not created. When they are, ensure that they

can

Quoted 1 line

survive a reboot.

That's true...

Quoted 2 lines

By the way, you may see my GUI package here:
http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

This can be added in the utils package. I think we need a kernel package, a libs package and a utils package. But it can be further discussed...

BR,

Signature · 14 lines
Xavier Garreau
http://www.xgarreau.org/



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#8 lore raw
Quoted 5 lines
Quoted 2 lines

By the way, you may see my GUI package here:
http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

This can be added in the utils package. I think we need a kernel package, a libs package and a utils package. But it can be further discussed...

What I'd like is to have an official "zaurus bluetooth" CVS for all of this stuff, that can be periodically sync'ed with bluez. Then we can generate packages however we wish. Personally, I just want one package that has everything. A newbie should be able to install the "Zaurus Bluetooth package" and be up and running, without touching the command line.

I'm willing to create builds too, as soon as I can figure out how to actually do it. It seems I'm able to build the libs / utils by hand (running arm-linux-gcc on each file and taking what i need. can't seem to use autotools correctly ...), but I've had no luck with building kernel modules (they just crash when used). What is your secret? Got any URLs?

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

-Justin

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#9 lore raw
Quoted 1 line

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card

cannot

Quoted 1 line

survive a suspend. Turning off / on the Zaurus, or simply running

"cardctl

Quoted 2 lines

suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing

to

Quoted 2 lines

hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

This bug happens with every PC Card | CF Card I've tested.

BR

Signature · 14 lines
Xavier Garreau
http://www.xgarreau.org/



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#10 lore raw

Max, Marcel, can you comment on this bug? I'd like to get to the bottom of it.

-Justin

Quoted 11 lines · Xavier Garreau
Quoted 1 line

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card

cannot

Quoted 1 line

survive a suspend. Turning off / on the Zaurus, or simply running

"cardctl

Quoted 2 lines

suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing

Quoted 8 lines

to

Quoted 2 lines

hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

This bug happens with every PC Card | CF Card I've tested.

BR

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#11 lore raw
In reply to Justin Karneges

Justin,
You can cross-compile the user-space parts of BlueZ as follows:

export CC=arm-linux-gcc
export LD=arm-linux-ld
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib
export PATH=/opt/Embedix/tools/bin:$PATH
./configure --prefix=/opt/Embedix/tools/arm-linux --host=arm-linux make

(This is how I do it anyway.)

Quoted 11 lines · Justin Karneges
Quoted 5 lines
Quoted 2 lines

By the way, you may see my GUI package here:
http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

This can be added in the utils package. I think we need a kernel package, a libs package and a utils package. But it can be further discussed...

What I'd like is to have an official "zaurus bluetooth" CVS for all of this stuff, that can be periodically sync'ed with bluez. Then we can generate packages however we wish. Personally, I just want one package that has everything. A newbie should be able to install the "Zaurus Bluetooth package" and be up and running, without touching the command line.

I disagree about the need for an official Zaurus CVS. We can put the scripts to build the Zaurus packages in the normal place (as is done for the rpm spec files).

Quoted 12 lines

I'm willing to create builds too, as soon as I can figure out how to actually do it. It seems I'm able to build the libs / utils by hand (running arm-linux-gcc on each file and taking what i need. can't seem to use autotools correctly ...), but I've had no luck with building kernel modules (they just crash when used). What is your secret? Got any URLs?

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

Signature · 14 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#12 lore raw

Excellent, Stephen. :)

What about the kernel modules? By the way, is dtl1_cs meant to be separated from the kernel? I didn't see it in 2.4.18 even after applying patch-2.4.18-mh7.

-Justin

Quoted 28 lines · Stephen Crane

Justin,
You can cross-compile the user-space parts of BlueZ as follows:

export CC=arm-linux-gcc
export LD=arm-linux-ld
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib
export PATH=/opt/Embedix/tools/bin:$PATH
./configure --prefix=/opt/Embedix/tools/arm-linux --host=arm-linux make

(This is how I do it anyway.)

Quoted 7 lines · Justin Karneges
Quoted 6 lines
Quoted 2 lines

By the way, you may see my GUI package here:
http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

This can be added in the utils package. I think we need a kernel package, a libs package and a utils package. But it can be further discussed...

Quoted 6 lines

What I'd like is to have an official "zaurus bluetooth" CVS for all of this stuff, that can be periodically sync'ed with bluez. Then we can generate packages however we wish. Personally, I just want one package that has everything. A newbie should be able to install the "Zaurus Bluetooth package" and be up and running, without touching the command line.

Quoted 17 lines

I disagree about the need for an official Zaurus CVS. We can put the scripts to build the Zaurus packages in the normal place (as is done for the rpm spec files).

Quoted 13 lines

I'm willing to create builds too, as soon as I can figure out how to actually do it. It seems I'm able to build the libs / utils by hand (running arm-linux-gcc on each file and taking what i need. can't seem to use autotools correctly ...), but I've had no luck with building kernel modules (they just crash when used). What is your secret? Got any URLs?

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#13 lore raw

See http://www.holtmann.org/linux/bluetooth/dtl1.html

It was only merged in 2.4.20 and 2.5.30. Perhaps Marcel needs to provide it in his BlueZ patch for 2.4.18 and 2.4.19?

Quoted 65 lines · Justin Karneges

Excellent, Stephen. :)

What about the kernel modules? By the way, is dtl1_cs meant to be separated from the kernel? I didn't see it in 2.4.18 even after applying patch-2.4.18-mh7.

-Justin

Quoted 28 lines · Stephen Crane

Justin,
You can cross-compile the user-space parts of BlueZ as follows:

export CC=arm-linux-gcc
export LD=arm-linux-ld
export NM=arm-linux-nm
export RANLIB=arm-linux-ranlib
export PATH=/opt/Embedix/tools/bin:$PATH
./configure --prefix=/opt/Embedix/tools/arm-linux --host=arm-linux make

(This is how I do it anyway.)

Quoted 7 lines · Justin Karneges
Quoted 6 lines
Quoted 2 lines

By the way, you may see my GUI package here:
http://www.affinix.com/~justin/zaurus-bluetooth-0.6.tar.gz

This can be added in the utils package. I think we need a kernel package, a libs package and a utils package. But it can be further discussed...

Quoted 6 lines

What I'd like is to have an official "zaurus bluetooth" CVS for all of this stuff, that can be periodically sync'ed with bluez. Then we can generate packages however we wish. Personally, I just want one package that has everything. A newbie should be able to install the "Zaurus Bluetooth package" and be up and running, without touching the command line.

Quoted 17 lines

I disagree about the need for an official Zaurus CVS. We can put the scripts to build the Zaurus packages in the normal place (as is done for the rpm spec files).

Quoted 13 lines

I'm willing to create builds too, as soon as I can figure out how to actually do it. It seems I'm able to build the libs / utils by hand (running arm-linux-gcc on each file and taking what i need. can't seem to use autotools correctly ...), but I've had no luck with building kernel modules (they just crash when used). What is your secret? Got any URLs?

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

Signature · 2 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)
#15 lore raw
In reply to Justin Karneges
Quoted 1 line · Justin Karneges

What about the kernel modules?

Well I have a sort of heath-robinson setup here which works (but I'm not recommending it). If you have the bandwidth, download this:

ftp://rococosoft.com/pub/zaurus/linux-2.4.18-pxa3-embedix.tar.bz2

It is a kludged-together source tree which can't build the kernel (but manages the modules we're interested).

You can get fairly recent binaries from that site as well (they're the ones which Xavier used, AFAIR).

Steve

Signature · 14 lines
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
[email protected] +353-1-6601315 (ext 209)



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
#16 lore raw
In reply to Justin Karneges

Hi Justin,

Quoted 5 lines

What I'd like is to have an official "zaurus bluetooth" CVS for all of this stuff, that can be periodically sync'ed with bluez. Then we can generate packages however we wish. Personally, I just want one package that has everything. A newbie should be able to install the "Zaurus Bluetooth package" and be up and running, without touching the command line.

the two big parts with BlueZ are the kernel modules and the userspace stuff. The kernel stuff is the essential and the most problematic part. And I think that we should have a package which only contains the BlueZ kernel modules. Maybe we need different builds from the same source for Sharp Kernel 2.4.6, 2.4.18 and OpenZaurus Kernel 2.4.18, 2.4.19.

I don't have a Zaurus, so I can't help here. Who wants to volunteer for the Zaurus kernel package maintainer?

The BlueZ CVS module "kernel" contains a build system for building the BlueZ kernel modules outside a kernel source tree. I am willing to extend this as needed.

Quoted 6 lines

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

This is a known problem, but I don't have a Zaurus and so I can't test it. On my development machine is this working without any problems.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#14 lore raw
In reply to Stephen Crane

Hi,

Quoted 1 line

See http://www.holtmann.org/linux/bluetooth/dtl1.html

this package is not longer maintained, because the driver is part of the official kernel and it is also part of my kernel patches.

Quoted 2 lines

It was only merged in 2.4.20 and 2.5.30. Perhaps Marcel needs to provide it in his BlueZ patch for 2.4.18 and 2.4.19?

The dtl1_cs driver was in these patches from the beginning. Look at the changelog and search for "Support for Nokia Bluetooth cards".

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#17 lore raw
In reply to Marcel Holtmann
Quoted 5 lines

the two big parts with BlueZ are the kernel modules and the userspace stuff. The kernel stuff is the essential and the most problematic part. And I think that we should have a package which only contains the BlueZ kernel modules. Maybe we need different builds from the same source for Sharp Kernel 2.4.6, 2.4.18 and OpenZaurus Kernel 2.4.18, 2.4.19.

This would be nice, if indeed we can support this on 2.4.6. Although, I believe the earlier Sharp ROM has similar suspending issues related to cardmgr (this is what Max told me in January). For bluetooth to work reliably here, we may need to offer a cardmgr upgrade.

Quoted 2 lines

I don't have a Zaurus, so I can't help here. Who wants to volunteer for the Zaurus kernel package maintainer?

I would like to volunteer for this, when I get a build setup working (I will try Stephen's soon).

Quoted 3 lines

The BlueZ CVS module "kernel" contains a build system for building the BlueZ kernel modules outside a kernel source tree. I am willing to extend this as needed.

What extensions do you suppose are needed?

Quoted 9 lines
Quoted 6 lines

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

This is a known problem, but I don't have a Zaurus and so I can't test it. On my development machine is this working without any problems.

Do you have any hint about where it may be? Maybe the Zaurus does not send appropriate signals to the driver that it is shutting down? I'd like to look into this, but I need some direction first. For instance, if it affects all drivers, not just dtl1_cs, then either all drivers have the same "bug", or the bug is in the bluez core, right?

What is significant about cardctl suspend? This will break the driver also, and perhaps it easier to look into this than the full pda suspend.

-Justin

#18 lore raw

Hi Justin,

Quoted 10 lines
Quoted 5 lines

the two big parts with BlueZ are the kernel modules and the userspace stuff. The kernel stuff is the essential and the most problematic part. And I think that we should have a package which only contains the BlueZ kernel modules. Maybe we need different builds from the same source for Sharp Kernel 2.4.6, 2.4.18 and OpenZaurus Kernel 2.4.18, 2.4.19.

This would be nice, if indeed we can support this on 2.4.6. Although, I believe the earlier Sharp ROM has similar suspending issues related to cardmgr (this is what Max told me in January). For bluetooth to work reliably here, we may need to offer a cardmgr upgrade.

let us first get a BlueZ kernel package, before we talk about updating or replacing other daemons or tools.

Quoted 5 lines
Quoted 2 lines

I don't have a Zaurus, so I can't help here. Who wants to volunteer for the Zaurus kernel package maintainer?

I would like to volunteer for this, when I get a build setup working (I will try Stephen's soon).

Ok.

Quoted 5 lines
Quoted 3 lines

The BlueZ CVS module "kernel" contains a build system for building the BlueZ kernel modules outside a kernel source tree. I am willing to extend this as needed.

What extensions do you suppose are needed?

I hope that you don't need any extensions. Have you tried it?

Quoted 10 lines
Quoted 9 lines
Quoted 6 lines

Also, I think I found a bug in dtl1_cs and/or bluez itself: the card cannot survive a suspend. Turning off / on the Zaurus, or simply running "cardctl suspend ; cardctl resume" will leave the driver in an unusable state. Running "cardctl eject ; cardctl insert" fixes the problem. I'm willing to hack on the driver and remedy this, if I could just figure out how to cross-compile the modules...

This is a known problem, but I don't have a Zaurus and so I can't test it. On my development machine is this working without any problems.

Quoted 8 lines

Do you have any hint about where it may be? Maybe the Zaurus does not send appropriate signals to the driver that it is shutting down? I'd like to look into this, but I need some direction first. For instance, if it affects all drivers, not just dtl1_cs, then either all drivers have the same "bug", or the bug is in the bluez core, right?

What is significant about cardctl suspend? This will break the driver also, and perhaps it easier to look into this than the full pda suspend.

As I know, that happen to all cards with a special driver (dtl1_cs and bluecard_cs) and I don't know why.

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#19 lore raw
Quoted 5 lines · Marcel Holtmann
Quoted 2 lines

What is significant about cardctl suspend? This will break the driver also, and perhaps it easier to look into this than the full pda suspend.

As I know, that happen to all cards with a special driver (dtl1_cs and bluecard_cs) and I don't know why.

As soon as I am able to build the modules, is there any way I can help you assist in debugging this? Maybe I can sprinkle some printfs around the suspend-handling code or elsewhere, and we can track down at what point the driver fails?

-Justin

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#20 lore raw
In reply to Justin Karneges
Quoted 1 line

Do you have any hint about where it may be? Maybe the Zaurus does not

send

Quoted 1 line

appropriate signals to the driver that it is shutting down? I'd like to

look

Quoted 1 line

into this, but I need some direction first. For instance, if it affects

all

Quoted 2 lines

drivers, not just dtl1_cs, then either all drivers have the same "bug", or the bug is in the bluez core, right?

Laptops are affected as well, at least those using bc3c_cs...

BR

Signature · 1 line
Xavier Garreau
#21 lore raw

Hi Xavier,

Quoted 10 lines
Quoted 1 line

Do you have any hint about where it may be? Maybe the Zaurus does not

send

Quoted 1 line

appropriate signals to the driver that it is shutting down? I'd like to

look

Quoted 1 line

into this, but I need some direction first. For instance, if it affects

all

Quoted 2 lines

drivers, not just dtl1_cs, then either all drivers have the same "bug", or the bug is in the bluez core, right?

Laptops are affected as well, at least those using bc3c_cs...

the bt3c_cs is another story due the needed firmware load :(

Regards

Marcel

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel