*.ko files

General discussion and feedback on development topics

*.ko files

Postby khoa1111 » Fri May 06, 2011 3:09 pm

Hi,

I have another question about .ko files (seems to be a stupid question but I have to ask to continue :? )
After compilation, there are some *.ko files. Copy these files into Jetdroid partition and edit init.rc and these will work ? Am I right ?

Thanks in advance

khoa1111
Looking for Gold design Jet cover case.
PM me if wanna transfer this.


Image
User avatar
khoa1111
Dev Team
Dev Team
 
Posts: 120
Joined: Wed Jan 26, 2011 7:48 am
Location: VietNam

Advertisement

Re: *.ko files

Postby MadRocker » Sat May 07, 2011 7:16 am

.ko = modules so copy them to modules folder then edit init.rc and either add each by name that you want to load or
insmod /system/lib/modules/*.ko
or force load a specific one or all.

insmod --help
Force load should be insmod -fkr check the --help output and adjust.

You can use a 2.6.29 kernel and 2.6.3* modules provided you did not select the is kernel "make menuconfig" page option that make a specific kernel name + number for both kernel and modules. It should still work but would complain this is not from the same number kernel if you added this specific numbering option.

Then build the modules / .ko files in 2.6.3* and force load or make your 2.6.29 kernel with the same name of the modules as modules in 2.6.3* so dhd.ko is modules in both 2.6.29 and in 2.6.3* kernel config + the problems something like this can cause.

You will have to play around with these and other options to find what works best for you.

Even if you have a good kernel and 1 good modules it does not mean that it would work correctly on the hardware so only add 1 "bluetooth" and nothing else and compare to your original that has zero modules then remove last tested modules and add 2nd module for "gps" test and compare.

Take notes and finally add all good modules or 2 at a time until you have a bunch of good working together with each other.
Notes are based on speed. responsiveness during booting and after booting and delays after loading and a few others you can think of. Try to keep everything else the same do not make 5 changes in 5 different places and expect it to work, 1 at a time is best.

I think you get the idea of how to get the most from the modules and the kernel form this above.

Hope this helps.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: *.ko files

Postby khoa1111 » Sat May 07, 2011 10:20 am

Thank you very much Madrocker. I tried to build a kernel with I9000's camera inside the zImage but I got plenty of problem (differnces in library, variable...) and I'm not good enough at this to solve these. So I think about load built module.

khoa1111 :)
Looking for Gold design Jet cover case.
PM me if wanna transfer this.


Image
User avatar
khoa1111
Dev Team
Dev Team
 
Posts: 120
Joined: Wed Jan 26, 2011 7:48 am
Location: VietNam

Re: *.ko files

Postby Carlos_Manuel » Sat May 07, 2011 5:49 pm

How I can edit Zimage(s) ?
Do I need edit Zimage(s) on windows or Ubuntu...?
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland

Re: *.ko files

Postby Carlos_Manuel » Sat May 07, 2011 5:54 pm

MadRocker wrote:.ko = modules so copy them to modules folder then edit init.rc and either add each by name that you want to load or
insmod /system/lib/modules/*.ko
or force load a specific one or all...



I wrote into my init.rc: insmod /modules/*.ko ... <---- Is it work if I add it like that?
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland

Re: *.ko files

Postby khoa1111 » Sat May 07, 2011 5:58 pm

Hi Carlos,

To build zImage, you should have a bit of C, C++ programming language. Then you better see this http://www.jetdroid.org/forum/viewtopic.php?f=43&t=683 and this http://www.jetdroid.org/forum/viewforum.php?f=18

khoa1111
Looking for Gold design Jet cover case.
PM me if wanna transfer this.


Image
User avatar
khoa1111
Dev Team
Dev Team
 
Posts: 120
Joined: Wed Jan 26, 2011 7:48 am
Location: VietNam

Re: *.ko files

Postby Carlos_Manuel » Sat May 07, 2011 6:29 pm

khoa1111 wrote:Hi Carlos,

To build zImage, you should have a bit of C, C++ programming language. Then you better see this http://www.jetdroid.org/forum/viewtopic.php?f=43&t=683 and this http://www.jetdroid.org/forum/viewforum.php?f=18

khoa1111


Hi!
ok, Thank You.. :)
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland

Re: *.ko files

Postby Carlos_Manuel » Sat May 07, 2011 6:34 pm

khoa1111 wrote:Hi Carlos,

To build zImage, you should have a bit of C, C++ programming language. Then you better see this http://www.jetdroid.org/forum/viewtopic.php?f=43&t=683 and this http://www.jetdroid.org/forum/viewforum.php?f=18

khoa1111


Hi!
ok, Thank You.. :)
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland

Re: *.ko files

Postby MadRocker » Sun May 08, 2011 1:44 am

Hi Carlos.

zImage:
Edit zImage = no, build new = yes. There is many options and it is good to check my typing / info against other guide on the internet to make sure the commands is correct, sometimes I type front memory and either left or right or both sides of my brains runs on 8 projects so I make spelling / command mistakes.

Example:
insmod --option other options path-to-files-where-modules-is
insmod -fkr /system/lib/modules/*.ko
insmod /system/lib/modules/*.ko

Default 2.6.29 JetKernel: "google code -> jetdroid -> wiki -> development"
zImage = the kernel source files and build a kernel then this will create a zImage in .../JetKernel/arch/arm/boot and you copy this to the ext3 sdcard.
The kernel build.sh script will also make modules for you. Just check as the build.sh will use the default jet_android_defconfig to build from .../JetKernel/arch/arm/config folder so even if you make changes it will use the default and overwrite the change .config file.

Newby Kernel post:
http://www.jetdroid.org/forum/viewtopic.php?f=18&t=357
You can also use the newby Kernel post I made some time ago with make ARCH=arm ..../.../gcc.../bin zImage as in the guide.

Alternative kernels:
You can also use one of the other kernels and then use alternative config files to build with like the m910 or O2Droid kernel but that is very tricky for a zImage that would work with s8000, only build the modules in >2.6.3* kernels and build the zImage in KB jet kernel.

Build - test - notes = repeat:
Same as with any other files 1 change then build then test if okay make notes = good then add 2nd change, build test if good make notes of change = good ... and repeat until it break / does not work.

Archive / backup:
Make sure you have a clean copy of the kernel files if you need to delete the old maybe broken kernel and then use the copy to start from beginning , also make every 15 changes a backup copy if the 15th build was good so you only have to go back a few steps and not start from zero with the kernel.

Other info for kernel building in Linux:
You will get good info on kernels and kernel building from most linux help websites, gentoo or other source code based distro's has very good info as well / well detailed.

Hope this helps.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: *.ko files

Postby Carlos_Manuel » Sun May 08, 2011 10:38 am

Hi MadRocker

Ok, Thank You for help... :)
JétDroid ROMs, stuff... http://code.google.com/p/android-for-jet/
My YT Channel: http://www.youtube.com/user/CarlosJacksonHD
Github: manumanfred
XDA-Devs: Carlos_Manuel

Galaxy Nexus:
ROM: My own ROM 'Dreams', (KTU84P) KitKat 4.4.4
User avatar
Carlos_Manuel
Dev Team
Dev Team
 
Posts: 883
Joined: Tue Mar 29, 2011 11:50 am
Location: Estonia / Finland


Return to Development Discussion / Feedback

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron