Re: [android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-08-26 Thread Vince Pascuzzi
Ok, no problem. I will give you some assistance tomorrow. Sorry, all, for not "replying to all". Vince On 2010-08-26 9:44 PM, "John Koshi" wrote: Hi Vince, Since the Makefile found in /kernel/ is used for the build of a module, just as in Linux, that must be the correct path in the make comma

Re: [android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-08-26 Thread John Koshi
Hi Vince, Since the Makefile found in /kernel/ is used for the build of a module, just as in Linux, that must be the correct path in the make command line. I had not done the configuration and a "make oldconfig" of the kernel I had downloaded (I''ll be using the pre-built kernel's config file from

Re: [android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-08-25 Thread John Koshi
Thanks, Vince. Another question - do I still need to source build/envsetup.sh before building the driver as discussed? regards, John On Wed, Aug 25, 2010 at 8:32 AM, Vince Pascuzzi wrote: > John, > > Sorry about that. I am pretty sure (without checking my notes), that it > should be /kernel wi

Re: [android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-08-24 Thread John Koshi
Hi Vince, In this module build description that you gave, in the line segment: make -C /android/kernel/directory where is "directory" from the root of the source tree that is downloaded? I was expecting a directory with the kernel headers under /kernel, but don't see one. What should "directory"

[android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-07-16 Thread sws-vinpa
Building a module for Android is trivial (if you've done it before for Linux). >From the directory from which your module source is: # CROSS_COMPILE=arm-eabi- ARCH=arm make -C /android/kernel/directory M= $PWD modules Note that the CROSS_COMPILE will only work as above if your Android toolchain

Re: [android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-07-09 Thread yenchengwang
hi, I think what the nature lover want is a sensor hardware module~just like the sensors_qemu.c in the development/emulator/sensors ~~ or u can get the htc_sensors.c on the android's git server. 2010/7/9 tungsys > Hi, > > I have a bit confuse about what you are doing : port an i2c dr

[android-porting] Re: Porting an existing Linux device driver to the Android platform

2010-07-09 Thread tungsys
Hi, I have a bit confuse about what you are doing : port an i2c driver to Android platform ? Android kernel is based on Linux kernel, so there is nothing difference with the driver layer . I thought you need do the driver for Linux kernel first and then apply the Android patch to your kernel . Tu