[android-kernel] Re: Flashing Kernel Image

2010-02-18 Thread Chew Esmero
odules in the Android Developer > Phone? > In emulator it can be done through the adb shell. But suppose I have a > module for Android, how can I this module in the developer > phone? > > Thanks In Advance, > Perumal > > On Feb 17, 10:18 am, Chew Esmero wrote: > > &g

[android-kernel] Re: Flashing Kernel Image

2010-02-16 Thread Chew Esmero
what I did to speed up development was, instead of building the source everytime (1.5 hrs in my pc), I'll just make another boot.img with my compiled kernel. boot.img contains the boot header, kernel image, ramdisk, and other stuff. To make the new boot.img, issue the "mkbootimg --cmdline 'no_conso

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Chew Esmero
d, it is displaying the date and time the code > is built. Is there any way to get the current date and time? > > Thanks In Advance, > Perumal > > On Jan 19, 10:54 am, Greg KH wrote: > > On Mon, Jan 18, 2010 at 6:34 PM, Chew Esmero wrote: > > > you can use the__

[android-kernel] Re: Date&Time in LKM

2010-01-18 Thread Chew Esmero
you can use the __DATE__ & __TIME__ macro. On Jan 19, 10:23 am, perumal316 wrote: > Hi, > > Currently I am writing a loadable kernel module. I want to printk the > current date and time. Is it possible? When I searched the net I only > found one explaining about do_gettimeofday() but it is not pr

[android-kernel] Re: how install boot.img in emulator?

2010-01-14 Thread Chew Esmero
Yes, it is. But not the boot.img file. There's no boot.img in emulator. Only kernel. You can replace the 'kernel-qemu' file in your platform/images directory with your new kernel. Or you can also specify the -kernel option when you invoke the emulator. (i.e. emulator -avd ... -kernel ...) On Jan

[android-kernel] Re: how do I load the new compiled kernel on my android dev phone 2 (htc)?

2010-01-12 Thread Chew Esmero
question is how can i flash the boot.img & system.img & > userdata.img to my devphone ? > > On Jan 7, 7:13 am, Chew Esmero wrote: > > > > > Hi, > > > You can replace the 'kernel' file in /vendor/htc/sapphire-open/ > > with your kernel

[android-kernel] Re: Loading modules at boot-time.

2010-01-07 Thread Chew Esmero
th Android-x86 1.6 (donut) > source, and I've found several versions of init.rc located in the sub- > folders. Could you point me in the right direction please :) > > On Jan 6, 10:15 pm, Chew Esmero wrote: > > > > > Modify init.rc and add "insmod /.ko" >

[android-kernel] Re: how do I load the new compiled kernel on my android dev phone 2 (htc)?

2010-01-06 Thread Chew Esmero
Hi, You can replace the 'kernel' file in /vendor/htc/sapphire-open/ with your kernel and rebuild source. The kernel will be packaged inside boot.img together with the ramdisk. You can also unpack boot.img itself and replace the kernel then repack boot.img. Then flash boot.img to your devphone. H

[android-kernel] Re: Loading modules at boot-time.

2010-01-06 Thread Chew Esmero
Modify init.rc and add "insmod /.ko" without the "". Usually modules are copied to system/lib/modules/... Hope this can help. On Jan 6, 11:07 am, o0110o wrote: > How do I load certain modules at boot-time when there is no /etc/ > modules.conf? > I apologize in advance for my inexperience, and I w

[android-kernel] Error in function driver configuration

2009-11-26 Thread Chew Esmero
Hello guys, I've been trying to figure out why is this. I have a function driver based on adb driver. The code was working fine with my first dev phone1 (2.6.29). Unfortunately, the phone was damaged (hw?) & I've got a new dev phone1 replacement. I made some updating (repo sync) but I can't rememb

[android-kernel] Re: Loadable Kernel Module

2009-11-05 Thread Chew Esmero
modules. i keep on getting "rmmod: delete_module > failed (errno 38)" error message. Any idea what is causing this? My > exit portion of the code is similar to those I tried in Linux. It > works fine in Linux. > > Regards, > Perumal > > On Oct 30, 12:59 pm, Chew Esm

[android-kernel] Re: Loadable Kernel Module

2009-10-29 Thread Chew Esmero
No problem. Happy coding. =) On Oct 30, 12:45 pm, Chew Esmero wrote: > Oh, sorry. Didn't get it right. > > Terminal emulator in Android has no root privileges unfortunately. May > I ask why would you do it in terminal emulator when you can do it in > adb (already root)? >

[android-kernel] Re: How to compile a module to Android Dev Phone 1

2009-10-29 Thread Chew Esmero
Hi, Errors like that would go down to the reason that your module was not built using the kernel currently running on you dev phone. Though I was only able to do such things with 2.6.27 and 2.6.29 kernel, I still think it would apply to 2.6.25. Did you replace the kernel in your phone with your d

[android-kernel] Re: Compiling Android Kernel

2009-10-29 Thread Chew Esmero
Of course you can. If your planning to play with the real device (i.e. ADP1), you can download the android-msm-2.6.29 kernel source. If only in emulator, you can download the android-goldfish-2.6.29 kernel source. On Oct 25, 8:35 pm, looking for a flat to live in wrote: > Hi all, > > I need to k

[android-kernel] Re: Loadable Kernel Module

2009-10-29 Thread Chew Esmero
hell, it should also work within the > terminal emulator but not sure why it is not working. Is there any way > to verify I have root access in terminal emulator? > > Regards, > Perumal > > On Oct 30, 12:10 pm, Chew Esmero wrote: > > > > > Hi Perumal, > >

[android-kernel] Re: USB Function Driver Documentation.

2009-10-29 Thread Chew Esmero
Hi, This is unfortunate news. We are currently working on a project based on the function framework (2.6.29). Detailed designs are already in place. Will function framework be totally removed in future kernels? On Oct 30, 12:22 pm, Mike Lockwood wrote: > There is no documentation other than the

[android-kernel] Re: Loadable Kernel Module

2009-10-29 Thread Chew Esmero
> Compiled the kernel with your instructions to ARCH and CROSS_COMPILE and > > have no problem, but when i try to compile the module it givesthe error: > > - entering directory /home/acker/goldfish/kernel > > - no rule to process the target "modules" > > > an

[android-kernel] Re: Loadable Kernel Module

2009-10-29 Thread Chew Esmero
By the way, I'm using SDK 1.5 and android-goldfish-2.6.27. I also tested android-goldfish-2.6.29 and still ok. Haven't tried the with 1.6 but I think it's still applicable. On Oct 29, 4:16 pm, Chew Esmero wrote: > Only "Enable loadable module support". I think you

[android-kernel] Re: Loadable Kernel Module

2009-10-29 Thread Chew Esmero
> > > > Thanks,Yes, now it can be loaded when the emulator is booted with the > > > new kernel. > > > But must I always build the module against my new kernel and boot with > > > the new kernel to load a new module? > > > Is it possible to insmod , simi

[android-kernel] Re: Loadable Kernel Module

2009-10-28 Thread Chew Esmero
d,operation not permitted" error messages. > > Regards, > Perumal > > On Oct 20, 9:06 pm, Chew Esmero wrote: > > > > > Did you build the module against your new kernel? (i.e. ARCH=arm > > KERNEL_DIR=/kernel make). I've encountered that > > err

[android-kernel] Re: Loadable Kernel Module

2009-10-20 Thread Chew Esmero
Did you build the module against your new kernel? (i.e. ARCH=arm KERNEL_DIR=/kernel make). I've encountered that error message before and it seems that the booted kernel still do not allow "Enable Loadable Module" .config support. Are you sure emulator is booted with the new kernel? (i.e. emulator