All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] Kernel Modules for ARM
@ 2006-06-27  5:42 Mayank Batra
  2006-06-27  7:37 ` Marcel Holtmann
  0 siblings, 1 reply; 8+ messages in thread
From: Mayank Batra @ 2006-06-27  5:42 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 599 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 855 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  5:42 [Bluez-devel] Kernel Modules for ARM Mayank Batra
@ 2006-06-27  7:37 ` Marcel Holtmann
  2006-06-27  8:26   ` Mayank Batra
  0 siblings, 1 reply; 8+ messages in thread
From: Marcel Holtmann @ 2006-06-27  7:37 UTC (permalink / raw)
  To: BlueZ development

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

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  7:37 ` Marcel Holtmann
@ 2006-06-27  8:26   ` Mayank Batra
  2006-06-27  8:32     ` Mayank Batra
                       ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Mayank Batra @ 2006-06-27  8:26 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 733 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1154 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  8:26   ` Mayank Batra
@ 2006-06-27  8:32     ` Mayank Batra
  2006-06-27  8:48       ` Marcel Holtmann
  2006-06-27  8:47     ` Marcel Holtmann
  2006-06-27  9:56     ` Peter Wippich
  2 siblings, 1 reply; 8+ messages in thread
From: Mayank Batra @ 2006-06-27  8:32 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 729 bytes --]

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?
>

[-- Attachment #1.2: Type: text/html, Size: 1243 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  8:26   ` Mayank Batra
  2006-06-27  8:32     ` Mayank Batra
@ 2006-06-27  8:47     ` Marcel Holtmann
  2006-06-27  9:56     ` Peter Wippich
  2 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2006-06-27  8:47 UTC (permalink / raw)
  To: BlueZ development

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

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  8:32     ` Mayank Batra
@ 2006-06-27  8:48       ` Marcel Holtmann
  0 siblings, 0 replies; 8+ messages in thread
From: Marcel Holtmann @ 2006-06-27  8:48 UTC (permalink / raw)
  To: BlueZ development

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

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  8:26   ` Mayank Batra
  2006-06-27  8:32     ` Mayank Batra
  2006-06-27  8:47     ` Marcel Holtmann
@ 2006-06-27  9:56     ` Peter Wippich
  2006-06-27 10:47       ` Mayank Batra
  2 siblings, 1 reply; 8+ messages in thread
From: Peter Wippich @ 2006-06-27  9:56 UTC (permalink / raw)
  To: BlueZ development


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

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

* Re: [Bluez-devel] Kernel Modules for ARM
  2006-06-27  9:56     ` Peter Wippich
@ 2006-06-27 10:47       ` Mayank Batra
  0 siblings, 0 replies; 8+ messages in thread
From: Mayank Batra @ 2006-06-27 10:47 UTC (permalink / raw)
  To: BlueZ development


[-- Attachment #1.1: Type: text/plain, Size: 1305 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2021 bytes --]

[-- Attachment #2: Type: text/plain, Size: 299 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2006-06-27 10:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27  5:42 [Bluez-devel] Kernel Modules for ARM Mayank Batra
2006-06-27  7:37 ` Marcel Holtmann
2006-06-27  8:26   ` Mayank Batra
2006-06-27  8:32     ` Mayank Batra
2006-06-27  8:48       ` Marcel Holtmann
2006-06-27  8:47     ` Marcel Holtmann
2006-06-27  9:56     ` Peter Wippich
2006-06-27 10:47       ` Mayank Batra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.