From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606270347r35dd5e23i1b98fa6225008d5d@mail.gmail.com> Date: Tue, 27 Jun 2006 16:17:45 +0530 From: "Mayank Batra" To: "BlueZ development" In-Reply-To: MIME-Version: 1.0 References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============0022482344==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============0022482344== Content-Type: multipart/alternative; boundary="----=_Part_24993_11690813.1151405265175" ------=_Part_24993_11690813.1151405265175 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Peter, On 6/27/06, Peter Wippich wrote: > > > Have you tried to compile the kernel Modules as build in ?? This avoids > all possible module path problems and stuff in the first place. I've just recompiled my kernel, and now I am able to get the kernel modules for BlueZ. I also would recommend using a 2.6 kernel. We do not have any problems > with it (at least not with the BlueZ part). Ok...I'll try...but not now Below is my build script for cross compiling bluez libs and utils. Maybe > this helps. > TARGET is set to arm-linux and XPREFIX is the path to the target device > root on the build machine. Maybe this helps. > > Ciao, > > Peter Thanks a lot for this script. But I've already cross-compiled the bluez-libs and blue-utils. Anyways, I'll keep them with me for reference later on. Actually, I almost did the steps written in the script. So, its good to have them in a script. Another problem that I am facing now is that when I do hcitool scan, I find no devices whereas there are a lot of devices in the surroundings. Another strange thing is that sdptool browse actually shows the services present on the remote devices. Also, if I register any service using sdptool, I can see it from a remote device. Any suggestion? Marcel? Thanks. Regards, Mayank ------=_Part_24993_11690813.1151405265175 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Peter,

On 6/27/06, Peter Wippich <pewi@gw-instruments.de> wrote:

Have you tried to compile the kernel Modules as build in ?? This avoids
all possible module path problems and stuff in the first place.
 
I've just recompiled my kernel, and now I am able to get the kernel modules for BlueZ.

I also would recommend using a 2.6 kernel. We do not have any problems
with it (at least not with the BlueZ part).
 
Ok...I'll try...but not now

Below is my build script for cross compiling bluez libs and utils. Maybe
this helps.
TARGET is set to arm-linux and XPREFIX is the path to the target device
root on the build machine. Maybe this helps.

Ciao,

Peter
 
Thanks a lot for this script. But I've already cross-compiled the bluez-libs and blue-utils. Anyways, I'll keep them with me for reference later on. Actually, I almost did the steps written in the script. So, its good to have them in a script.

Another problem that I am facing now is that when I do hcitool scan, I find no devices whereas there are a lot of devices in the surroundings.
Another strange thing is that sdptool browse actually shows the services present on the remote devices.
Also, if I register any service using sdptool, I can see it from a remote device.
Any suggestion? Marcel?
 
Thanks.
 
Regards,
Mayank
------=_Part_24993_11690813.1151405265175-- --===============0022482344== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --===============0022482344== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============0022482344==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 27 Jun 2006 11:56:53 +0200 (CEST) From: Peter Wippich To: BlueZ development In-Reply-To: <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> Message-ID: References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> MIME-Version: 1.0 Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Manyak, > I already have a 2.4.21 kernel running, but I cannot see any of the kernel > modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the directory > /lib/modules/kernel. > > So does that mean that my kernel was compiled without Bluetooth support? > - If yes, is there any way with which I can enable Bluetooth support? (Will > I have to recompile the kernel?) > - Or can I directly apply some patch by which I can get those kernel > modules? Have you tried to compile the kernel Modules as build in ?? This avoids all possible module path problems and stuff in the first place. I also would recommend using a 2.6 kernel. We do not have any problems with it (at least not with the BlueZ part). Below is my build script for cross compiling bluez libs and utils. Maybe this helps. TARGET is set to arm-linux and XPREFIX is the path to the target device root on the build machine. Maybe this helps. Ciao, Peter #!/bin/sh # build bluez libs / tools for WPC export BUILD_ARCH=arm . build-config.env #export target cross tools export AR="$TARGET-ar" export LD="$TARGET-ld" export CC="$TARGET-gcc" export GCC="$TARGET-gcc" export LINUX_DIR=$PWD/$KERNEL_SRC # configure and make bluez libs pushd bluez/bluez-libs-2.25 ./configure --host=$TARGET --build=i686-pc-linux-gnu \ --with-kernel=$LINUX_DIR \ --libdir=/lib --includedir=/include make echo echo "Installing Bluez Libs in $XPREFIX" echo make install DESTDIR=$XPREFIX popd # configure and make bluez utils # export PKG_CONFIG_PATH="$XPREFIX/lib/pkgconfig" pushd bluez/bluez-utils-2.25 ./configure --enable-bccmd --prefix=$XPREFIX --host=$TARGET --build=i686-pc-linux-gnu \ --with-kernel=$LINUX_DIR \ --libdir=$XPREFIX/lib --includedir=$XPREFIX/include # --sysconfdir=/etc # --without-glib # can't figure out how to get this right .......... so... echo "#undef CONFIGDIR" >> config.h echo "#define CONFIGDIR \"/etc/bluetooth\"" >> config.h make make install popd | Peter Wippich Voice: +49 30 46776411 | | G&W Instruments GmbH fax: +49 30 46776419 | | Gustav-Meyer-Allee 25, Geb. 12 Email: pewi@gw-instruments.de | | D-13355 Berlin / Germany | Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <6297d67c0606270132y66c2569ag25c063415a432d09@mail.gmail.com> References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> <6297d67c0606270132y66c2569ag25c063415a432d09@mail.gmail.com> Date: Tue, 27 Jun 2006 10:48:43 +0200 Message-Id: <1151398123.25011.12.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Mayank, > One more question: > The kernel patches that are there at your site > http://www.holtmann.org/linux/kernel/ > are they for i386 or ARM? > Because my kernel is for ARM, can I apply those patches? these patches are only changing the source code and i386, ARM and other kernels are compiled from the same source. Regards Marcel Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> Date: Tue, 27 Jun 2006 10:47:48 +0200 Message-Id: <1151398068.25011.10.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Mayank, > I already have a 2.4.21 kernel running, but I cannot see any of the > kernel modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the > directory /lib/modules/kernel. > > So does that mean that my kernel was compiled without Bluetooth > support? > - If yes, is there any way with which I can enable Bluetooth support? > (Will I have to recompile the kernel?) > - Or can I directly apply some patch by which I can get those kernel > modules? you will have to re-compile the kernel if no additional kernel modules package is available. Regards Marcel Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606270132y66c2569ag25c063415a432d09@mail.gmail.com> Date: Tue, 27 Jun 2006 14:02:11 +0530 From: "Mayank Batra" To: "BlueZ development" In-Reply-To: <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> MIME-Version: 1.0 References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1662496304==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1662496304== Content-Type: multipart/alternative; boundary="----=_Part_22446_28898949.1151397131292" ------=_Part_22446_28898949.1151397131292 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel, One more question: The kernel patches that are there at your site http://www.holtmann.org/linux/kernel/ are they for i386 or ARM? Because my kernel is for ARM, can I apply those patches? Thanks. Regards, Mayank On 6/27/06, Mayank Batra wrote: > > I already have a 2.4.21 kernel running, but I cannot see any of the > kernel modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the directory > /lib/modules/kernel. > > So does that mean that my kernel was compiled without Bluetooth support? > - If yes, is there any way with which I can enable Bluetooth support? > (Will I have to recompile the kernel?) > - Or can I directly apply some patch by which I can get those kernel > modules? > ------=_Part_22446_28898949.1151397131292 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi Marcel,
 
One more question:
The kernel patches that are there at your site http://www.holtmann.org/linux/kernel/
are they for i386 or ARM?
Because my kernel is for ARM, can I apply those patches?
 
Thanks.
Regards,
Mayank

 
On 6/27/06, Mayank Batra <mayankbatra@gmail.com> wrote:
I already have a 2.4.21 kernel running, but I cannot see any of the kernel modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the directory /lib/modules/kernel.
 
So does that mean that my kernel was compiled without Bluetooth support?
- If yes, is there any way with which I can enable Bluetooth support? (Will I have to recompile the kernel?)
- Or can I directly apply some patch by which I can get those kernel modules?
------=_Part_22446_28898949.1151397131292-- --===============1662496304== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --===============1662496304== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1662496304==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606270126k2217235fwbc7fd3b56b1007dc@mail.gmail.com> Date: Tue, 27 Jun 2006 13:56:19 +0530 From: "Mayank Batra" To: "BlueZ development" In-Reply-To: <1151393851.25011.7.camel@localhost> MIME-Version: 1.0 References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> <1151393851.25011.7.camel@localhost> Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1699850044==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1699850044== Content-Type: multipart/alternative; boundary="----=_Part_22290_27111281.1151396779371" ------=_Part_22290_27111281.1151396779371 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel, On 6/27/06, Marcel Holtmann wrote: > > the kernel modules for BlueZ are part of the Linux kernel. Pick a recent > kernel and you get all of them. And you should really go ahead with a > 2.6 kernel. It is worth any initial trouble. I already have a 2.4.21 kernel running, but I cannot see any of the kernel modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the directory /lib/modules/kernel. So does that mean that my kernel was compiled without Bluetooth support? - If yes, is there any way with which I can enable Bluetooth support? (Will I have to recompile the kernel?) - Or can I directly apply some patch by which I can get those kernel modules? Kindly advise. Thanks. Regards, Mayank ------=_Part_22290_27111281.1151396779371 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Marcel,

On 6/27/06, Marcel Holtmann <marcel@holtmann.org> wrote:
the kernel modules for BlueZ are part of the Linux kernel. Pick a recent
kernel and you get all of them. And you should really go ahead with a
2.6 kernel. It is worth any initial trouble.
 
I already have a 2.4.21 kernel running, but I cannot see any of the kernel modules for BlueZ, e.g. bluez.o, l2cap.o, rfcomm.o in the directory /lib/modules/kernel.
 
So does that mean that my kernel was compiled without Bluetooth support?
- If yes, is there any way with which I can enable Bluetooth support? (Will I have to recompile the kernel?)
- Or can I directly apply some patch by which I can get those kernel modules?
 
Kindly advise.
 
Thanks.
Regards,
Mayank

 
------=_Part_22290_27111281.1151396779371-- --===============1699850044== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --===============1699850044== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1699850044==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Marcel Holtmann To: BlueZ development In-Reply-To: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> References: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> Date: Tue, 27 Jun 2006 09:37:31 +0200 Message-Id: <1151393851.25011.7.camel@localhost> Mime-Version: 1.0 Subject: Re: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net Hi Mayank, > I am successfully able to cross-compile bluez-libs-2.25 and > bluez-utils-2.25 for ARM. > > But I feel that the kernel modules (like bluez.o, l2cap.o, rfcomm.o > etc) have not been built for ARM. (Or if they have been built > somewhere, but I can't find them) > > So, if I say insmod bluez on my target, it says: > > # insmod bluez > Using /lib/modules/kernel/bluez.o > insmod: ELF file not for this architecture > insmod: Could not load the module: Bad address > > I have the feeling that the bluez.o is not an ELF file and it was not > generated during the cross compile. the kernel modules for BlueZ are part of the Linux kernel. Pick a recent kernel and you get all of them. And you should really go ahead with a 2.6 kernel. It is worth any initial trouble. Regards Marcel Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <6297d67c0606262242q11b6e769r15a48f1edffaa759@mail.gmail.com> Date: Tue, 27 Jun 2006 11:12:20 +0530 From: "Mayank Batra" To: "BlueZ development" MIME-Version: 1.0 Subject: [Bluez-devel] Kernel Modules for ARM Reply-To: BlueZ development List-Id: BlueZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1114047369==" Sender: bluez-devel-bounces@lists.sourceforge.net Errors-To: bluez-devel-bounces@lists.sourceforge.net --===============1114047369== Content-Type: multipart/alternative; boundary="----=_Part_19888_19295860.1151386940215" ------=_Part_19888_19295860.1151386940215 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I am successfully able to cross-compile bluez-libs-2.25 and bluez-utils-2.25for ARM. But I feel that the kernel modules (like bluez.o, l2cap.o, rfcomm.o etc) have not been built for ARM. (Or if they have been built somewhere, but I can't find them) So, if I say insmod bluez on my target, it says: # insmod bluez Using /lib/modules/kernel/bluez.o insmod: ELF file not for this architecture insmod: Could not load the module: Bad address I have the feeling that the bluez.o is not an ELF file and it was not generated during the cross compile. Please help me out. Thanks. Regards, Mayank ------=_Part_19888_19295860.1151386940215 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
Hi,
 
I am successfully able to cross-compile bluez-libs-2.25 and bluez-utils-2.25 for ARM.
 
But I feel that the kernel modules (like bluez.o, l2cap.o, rfcomm.o etc) have not been built for ARM. (Or if they have been built somewhere, but I can't find them)
 
So, if I say insmod bluez on my target, it says:
 
# insmod bluez
Using /lib/modules/kernel/bluez.o
insmod: ELF file not for this architecture
insmod: Could not load the module: Bad address
 
I have the feeling that the bluez.o is not an ELF file and it was not generated during the cross compile.
 
Please help me out.
 
Thanks.
 
Regards,
Mayank
------=_Part_19888_19295860.1151386940215-- --===============1114047369== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 --===============1114047369== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel --===============1114047369==--