Using insmod on android emulator console

727 views
Skip to first unread message

shilpa

unread,
Jun 3, 2008, 7:10:27 AM6/3/08
to Android Internals
Hi,

I am Shilpa.I am working on android emulator and the related stuff.
have written a simple "hello world" kernel module.I am compiling this
kernel module using ARM cross compiler and I have created a makefile
which assists the compilation once i give the "make" command.
Now, I am able to successfully compile the kernel module producing
the .ko file. I would like to copy this into android emulator and
execute from the same.Hence for the same purpose I have initially
pushed the file into the emulator using the adb command.
inside the emulator console, when I give the command as insmod
hello.ko it produces me this kind of message.
"insmod: init_module 'hello.ko' failed (Function not implemented)"

Hence I was curious to know if we can insert modules on android
emulator console?
Can you pls provide me some inputs regarding the same?

Thanks,
Shilpa

bladesharp

unread,
Jul 31, 2008, 5:00:01 AM7/31/08
to Android Internals
Hi

Am also looking for the same thing...

Thanks


On Jun 3, 4:10 pm, shilpa <shilu72...@gmail.com> wrote:
> Hi,
>
> I am Shilpa.I am working on android emulator and the related stuff.
> have written a simple "hello world" kernel module.I am compiling this
> kernel module using ARM cross compiler and I have created a makefile
> which assists the compilation once i give the "make" command.
> Now, I am able to successfully compile the kernel module producing
> the .ko file. I would like to copy this into android emulator and
> execute from the same.Hence for the same purpose I have initially
> pushed the file into the emulator using the adb command.
> inside the emulatorconsole, when I give the command as insmod

Anil Sasidharan

unread,
Aug 2, 2008, 1:55:02 AM8/2/08
to android-...@googlegroups.com
Hi,

You cannot insmod a module unless you have a custom kernel
with "Enable Loadable module support" option turned-on for Android
emulator. The default kernel image for the emulator shipped as part of
SDK does not support "dynamic loadable modules" and hence you would
encounter the error "Function not implemented"

Warm Regards,
Anil

Reply all
Reply to author
Forward
0 new messages