[android-kernel] Re: Kernel module development

2010-03-26 Thread Rafał Grzybowski
Hello again, Another problem to solve. How to deploy such kernel module into regular (not rooted) Android. Is it possible at all? I've written simple Bluetooth Java client application that reads some ASCII data from another Bluetooth enabled device. And I'd like to "virtualize" this data as keystr

[android-kernel] Re: Kernel module development

2010-03-02 Thread MaheshSharma
How about creating a HOW-TO wiki ? I will try and make one. On Feb 27, 10: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:http://groups.go

Re: [android-kernel] Re: Kernel module development

2010-02-27 Thread Alberto Panizzo
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: http://groups.google.com/group/android-kernel Well done! It's your start! Cheers, -- Alberto! Be Persistent!

[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 wrote: > > >

Re: [android-kernel] Re: Kernel module development

2010-02-27 Thread Alberto Panizzo
On sab, 2010-02-27 at 02:51 -0800, Rafał Grzybowski wrote: > ./emulator -kernel /mnt/sda6/mydroid/kernel/arch/arm/boot/zImage - > system /mnt/sda6/mydroid/platform/out/target/product/generic/ > system.img -ramdisk /mnt/sda6/mydroid/platform/out/target/product/ > generic/ramdisk.img -data /mnt/sda6/

[android-kernel] Re: Kernel module development

2010-02-27 Thread Rafał Grzybowski
One more thing (I hope the last one). I'm trying to start emulator with my kernel using this: ./emulator -kernel /mnt/sda6/mydroid/kernel/arch/arm/boot/zImage - system /mnt/sda6/mydroid/platform/out/target/product/generic/ system.img -ramdisk /mnt/sda6/mydroid/platform/out/target/product/ generic/

Re: [android-kernel] Re: Kernel module development

2010-02-27 Thread Giuseppe Calderaro
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 load/unload dynamically the features you may need. G -- Giuseppe Calderaro Com

[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/grzybek/devel/kernel/driver/he

Re: [android-kernel] Re: Kernel module development

2010-02-26 Thread Giuseppe Calderaro
On Fri, Feb 26, 2010 at 12:39:20PM -0800, Rafał Grzybowski wrote: > CC /home/grzybek/devel/kernel/driver/hello.mod.o > /home/grzybek/devel/kernel/driver/hello.mod.c:8: error: variable > '__this_module' has initializer but incomplete type Module support in the kernel you built is not enabled

[android-kernel] Re: Kernel module development

2010-02-26 Thread Rafał Grzybowski
Ok, I've build a kernel. At least no errors seen. Now when I try to build my module with the folloring Makefile: obj-m := hello.o #KDIR := /usr/src/linux-headers-2.6.31-19-generic KDIR := $(ANDROID_KERNEL_HOME) PWD := $(shell pwd) default: $(MAKE) ARCH=arm CROSS_COMPILE=arm-eabi- -C $(KDIR

[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
What then? Should I build android platform or maybe prebuild binaries will be enough? Must I build the kernel before building module driver? Setting cross compiler options like below: > > > export > > > CROSSTOOLS=/usr/src/android/prebuilt/linux-x86/toolchain/arm-eabi-4.3.1 > > > export PATH=$CRO

[android-kernel] Re: Kernel module development

2010-02-25 Thread Chih-Wei
kernel/common.git, of course. On 2月26日, 上午6時41分, Rafał Grzybowski wrote: > Which kernel version: kernel/linux-2.6.git, kernel/msm.git or kernel/ > tegra.git? > -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel

[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

Re: [android-kernel] Re: Kernel module development

2010-02-25 Thread Giuseppe Calderaro
> > I've cloned entire platform on my Ubuntu, typed make yesterday and > it's still compiling I can suppose you're building the platform, not the kernel then... > But probably the output will be for i386 since no arch was specified, > right? > When you type make a small box appears to tell you

[android-kernel] Re: Kernel module development

2010-02-25 Thread Rafał Grzybowski
I'm not planning to port android on the new platform. My customer has asked to support his android application on Eclair. The application is Bluetooth HID keyboard (no SPP) and works great on previous versions. But it's broken on 2.1. And the problem is (I don't know how this could be), he doesn't

Re: [android-kernel] Re: Kernel module development

2010-02-25 Thread Alberto Panizzo
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 > on my Ubuntu. What is the next step. Simple "make" would make a deal? > Should I change the arch for this. > What's the result of

Re: [android-kernel] Re: Kernel module development

2010-02-25 Thread Giuseppe Calderaro
> > 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: http://android.git.kernel.org/ kernel source code is not downloaded (afaik) when you download platform source code. You will need a

[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. > > --