Okay, this is a easy one. But first of all, I found a lot of questions
posted on this group are actually fairly basic and not specifically
related to Android kernel, you may find better chance to get those
questions answered and more instantly on other Linux kernel
development forum.

Back to the question, it did find your file, except somehow either
your module_init function didn't return 0 (for correct initialization)
instead it returned -ENOENT, which was why insmod printed out that
"not found" message, or are you sure you have cross-compiled your
module with proper toolchain? Regarding your question about
limitation, no I'm not aware of any.

Cheers,
Rong


On Mar 4, 11:12 am, "Apurva Jaiswal." <[email protected]>
wrote:
> I followed the steps in the forum 
> (http://www.schaeuffelhut.de/wordpress/?p=237&cpage=1#comment-384) to get
> the linux kernel source and and cross compile my module. The kernel version
> of the google nexus one is exactly the same as in the forum. I initially
> tested with my test module hello-1.ko which got installed on the android
> device successfully. But when I am installing my module ec.ko on the
> android device using insmod, I get the following error.
>
>  apurva@apurva-Inspiron-1464:~/RA/MultFlowSync_Ahmad/thesiscode_final/android_ec/ec$
> adb shell
>
> $ cd sdcard/data/ec
>
> $ ls
>
> ec.ko
>
> $ su
>
> # insmod ec.ko
>
> insmod: init_module 'ec.ko' failed (No such file or directory)
>
> #
>
>  It is clear that the file ec.ko is present. But I am not sure why it is
> not picking the file. I did the same thing for hello-1.ko and it gets
> insmod pretty fine. There is no permission issue, and ec.ko gets the same
> permission as was obtained by hello-1.ko.
>
>  Now this bring me to the question, Are there certain limitations of a
> kernel module in an android device because this module gets insmod in
> Ubuntu. Next action for me is to go for a hit and trial method and check
> what lines in ec.c is causing the problem. Meanwhile if you some
> suggestion, please let me know.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel

Reply via email to