[android-kernel] Android 2.1, HTC Legend, native Bluetooth client

2010-04-19 Thread Rafał Grzybowski
I'm trying to create native Bluetooth client library for Android 2.1/ HTC Legend and cannot get device working. The API hci_get_route (NULL) returns ENODEV. Also when trying to use socket API, socket could be opened, but HCIGETDEVLIST returns 0 as number of devices (hci_dev_list_req.dev_num) and th

[android-kernel] Re: Kernel module deployment

2010-03-31 Thread Rafał Grzybowski
On 31 Mar, 17:01, Pavan Savoy wrote: > Can't you point your lib/app to use external/bluetooth/bluez/common/uinput.h > ? > > 2010/3/31 Rafał Grzybowski > > > > > > > During make APP=app_name uinput.h is searched in: > >  - /build/platforms//arch-arm/us

[android-kernel] Re: Kernel module deployment

2010-03-31 Thread Rafał Grzybowski
-fixed/linux/uinput.h So there is nothing related to android kernel or platform. I simple copied uinput from Android glassfish kernel sources into the first directory and now it's compiling. But I'm not sure it's a good solution to copy the file by myself. On Mar 31, 8:44 am, Rafał Gr

[android-kernel] Re: Kernel module deployment

2010-03-30 Thread Rafał Grzybowski
devices -> User level ... > > 2010/3/30 Rafał Grzybowski > > > > > > > One more thing. I'm trying to compile sample uinput library with > > Android NDK but it cannot find linux/uinput.h > > What should be done? Kernel recompile with CONFIG_INPUT_UINPUT

[android-kernel] Re: Kernel module deployment

2010-03-30 Thread Rafał Grzybowski
ou would > only need to write an application, instead of the driver. > > 2010/3/30 Rafał Grzybowski > > > :( I need to write an application that reads some data from Bluetooth > > SPP connection and sends it as keystrokes to the Android. I thought > >

[android-kernel] Re: Kernel module deployment

2010-03-30 Thread Rafał Grzybowski
Thank you for your help :) On Mar 30, 11:11 pm, Pavan Savoy wrote: > do like the avrcp does (and some HIDs), use UINPUT subsystem, then you would > only need to write an application, instead of the driver. > > 2010/3/30 Rafał Grzybowski > > > :( I need to write an applic

[android-kernel] Re: Kernel module deployment

2010-03-30 Thread Rafał Grzybowski
:( I need to write an application that reads some data from Bluetooth SPP connection and sends it as keystrokes to the Android. I thought writing kernel driver is a good idea. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel To un

[android-kernel] Kernel module deployment

2010-03-30 Thread Rafał Grzybowski
Hello there, I'd like to know how to deploy kernel modules to the regular android device (not rooted)? With NDK I can deploy native libraries but how about modules? Thank you for your help. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/andro

[android-kernel] Re: Kernel module development

2010-03-26 Thread Rafał Grzybowski
e" this data as keystrokes. Thank you. On Feb 27, 6:45 pm, Alberto Panizzo wrote: > On sab, 2010-02-27 at 04:57 -0800, Rafał Grzybowski wrote: > > > Thank you all for the help. > > > -- > > unsubscribe: android-kernel+unsubscr...@googlegroups.com > > website:h

[android-kernel] How to compile evtest for Android

2010-03-11 Thread Rafał Grzybowski
How can I compile evtest for Android? I cannot make android headers get working :( I've tried: arm-eabi-gcc -o evtest evtest.c and makeARCH=arm CROSS_COMPILE=arm-eabi- -C /mnt/sda6/mydroid/ kernel SUBDIRS=/home/grzybek/devel/kernel/evtest evtest -- unsubscribe: android-kernel+unsubs

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
Thank you all for the help. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
Goldfish works, my dummy module also. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
-show-kernel shows nothing for my kernel. For AVD created with UI the output is quite verbose. Is it possible that the problem caused by wrong branch taken (eclair) instead of goldfish? On Feb 27, 12:33 pm, Alberto Panizzo wrote: > On sab, 2010-02-27 at 02:51 -0800, Rafał Grzybowski wr

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
ormally do when working with ./android UI. On Feb 27, 11:41 am, Giuseppe Calderaro wrote: > On Sat, Feb 27, 2010 at 12:35:42AM -0800, Rafał Grzybowski wrote: > > Exactly, but does it mean "real" devices don't support modules? > > No. Modules are a kernel thing to lo

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
Exactly, but does it mean "real" devices don't support modules? I mean, I have taken kernel configuration from Android 2.1 emulator. On Feb 27, 2:07 am, Giuseppe Calderaro wrote: > On Fri, Feb 26, 2010 at 12:39:20PM -0800, Rafał Grzybowski wrote: > > CC /home/grz

[android-kernel] Re: Kernel module development

2010-02-26 Thread Rafał Grzybowski
2 Module source is simple: #include #include MODULE_LICENSE("Dual BSD/GPL"); static int hello_init (void) { printk (KERN_ALERT "Hello, world\n"); return 0; } static void hello_exit (void) { printk (KERN_ALERT "Goodbye, cruel world\n"); } module_init

[android-kernel] Re: Kernel module development

2010-02-26 Thread Rafał Grzybowski
Now I got your words :) The kernel to build against should be pulled from AVD or taken from some repo prebuilt folder? And where can I find the headers? On Feb 24, 6:48 pm, Giuseppe Calderaro wrote: > > I'd like to learn how to write kernel modules for Android. And I don't > > know how to start.

[android-kernel] Re: Kernel module development

2010-02-25 Thread Rafał Grzybowski
_TARGET}-as" > > > export LD="${CROSS_TARGET}-ld" > > > export RANLIB="${CROSS_TARGET}-ranlib" > > > export READELF="${CROSS_TARGET}-readelf" > > > export STRIP="${CROSS_TARGET}-strip" and then make -C /usr/src/android

[android-kernel] Re: Kernel module development

2010-02-25 Thread Rafał Grzybowski
Which kernel version: kernel/linux-2.6.git, kernel/msm.git or kernel/ tegra.git? On 25 Lut, 11:15, Giuseppe Calderaro wrote: > > I need a kernel from android platform or kernel sources? I've > > "downloaded" android sources on my Ubuntu. What is the next step. > > You can find the kernel here:htt

[android-kernel] Re: Kernel module development

2010-02-25 Thread Rafał Grzybowski
causes my confusion. Thank you. On Feb 25, 11:22 am, Alberto Panizzo wrote: > Hi Rafał, > > On gio, 2010-02-25 at 00:06 -0800, Rafał Grzybowski wrote: > > > I need a kernel from android platform or kernel sources? I've > > "downloaded" android sources > &g

[android-kernel] Re: Kernel module development

2010-02-25 Thread Rafał Grzybowski
> > The android kernel is linux kernel. You need a compiler/cross-compiler > depending on which arch you're running android and the kernel you're running > on the android platform. > Just building the module against the running kernel should be enough. > > --

[android-kernel] Kernel module development

2010-02-24 Thread Rafał Grzybowski
dummy hello world kernel module for Ubuntu (an example from Linux Device Drivers, Third Edition) and it works. Now I'd like to do the same for Android - I hope it's possible at all.Where should I start? Getting sources from source.android.com (which project, all of them). How to build