Kernel module compilation doing it wrong.

124 views
Skip to first unread message

Zulfikar Barodawala

unread,
May 21, 2013, 9:21:01 AM5/21/13
to andro...@googlegroups.com
Hi,

 I think I am doing the kernel module compilation wrong, i have followed the customize kernel guide at android-x86.org , where it states to create kernel modules use

make kernel TARGET_PRODUCT=generic_x86. I have the .config ready with version magic set up to match the already loaded android 4.04. 

 the above command only creates .bin and .fw files and do not see .ko's anywhere in the directory , even does show it. 

Hey guys some one please help me here. I am just not able to figure out what I am doing wrong, maybe a fresh mind would be able to help me solve it.

 Compiling for Sony Vaio VGN-UX17GP , where I need the cam / sound modules.  

In a normal linux environment it was like make modules / make modules_install.

But if I do make iso_img TARGET_PRODUCT=generic_x86 then I get the iso as well as the modules.

Maybe I am going at this wrongly. I am not interested in all modules, and have also tried compiling single modules but does not work.


Mayday mayday.


bubb...@gmail.com

unread,
May 21, 2013, 10:15:05 AM5/21/13
to andro...@googlegroups.com
I have never been able to get it to work cleanly either.
I have always resorted to the make dist clean procedure and compiled everything all the time.
Then I would just copy the modules or kernel that I need from out/target/product/x86/kernel...
I think the generic_x86 tag has changed recently too.
look in ~/android-x86/kernel/config for the correct config name. this is what the build mechanism uses in lieu
of ~/android_x86/kernel/.config. If you have a .config then it needs to be removed.
 
hope this helps. If youy find the correct way to compile kernel mods conveniently please let me know.

Zulfikar Barodawala

unread,
May 21, 2013, 11:30:01 AM5/21/13
to android-x86
Hi,

 I have done distclean removed system folder in fact even removed "out" and recreated the whole thing.

As I said earlier if I use "make iso_img TARGET_PRODUCT=generic_x86" it compiles perfectly, the problem is if I load these modules in android it gives me "unknown symbol in module or invalid parameter" I have run depmod and the three modules are sitting perfectly in there home.  If I load the same modules under Ubuntu (where I am compiling the kernel for android) they load up perfectly. My version magic is set correctly.  All three modules "sony-laptop / videodev / meye" have this issue. 


 Hmm you are you copying the kernel image too android ? 

Yes it is .config 


Regards.

--
You received this message because you are subscribed to a topic in the Google Groups "Android-x86" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-x86/8452aumdU-k/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to android-x86...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-x86?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Zulfikar Barodawala

unread,
May 23, 2013, 3:18:07 AM5/23/13
to andro...@googlegroups.com
 I am going to try compiling with the ARM translator and then upload the "system" folder and change grub with a new entry.

Zulfikar Barodawala

unread,
May 24, 2013, 4:40:08 PM5/24/13
to andro...@googlegroups.com
Fellows, made a big mistake, I dropped the UMPC and it has broken my USB connector which is a single cable and connected to the HDD too , but the HDD is working and so is my installed android. So now I am stuck with out USB and cannot use CF or SD to boot from as the BIOS does not allow that. 

 I just need information on where do I put these files which I have compiled.

initrd.img

data (folder)

ramdisk.img

system (folder)

I know that i can use these from the grub menu but where exactly should I put these files and folders. I have currently copied them to /SDcard on the current android. As in linux It's much simpler to put up the kernel but in android i am stuck.

Even after setting the version magic to match the installed kernel i get unknown symbol errors and looks like the installed android kernel does not allow unloading modules and probably also not loading.  and there is no config.gz in /proc.

I just need to check if my compiled modules really work with the hardware especially the sound and camera.

I have also copied the iso image in /SDcard/Download.  

Can anyone here help me out please.

Thnx.
Reply all
Reply to author
Forward
0 new messages