[DEV][KERNEL] How to enable menuconfig in duos kernel development - Galaxy Y Duos S6102 Android Development

long story short. there are some missing files from duos kernel source. the "make menuconfig" won't work even if you have installed ncurses libs. this files is the missing files required to enable menuconfig. simply put all the content into /script/kconfig.
http://www.mediafire.com/download.php?y9z26eqpu8bzd0t
enjoy.
EDIT: a lil gift for sgy duos user. this is a kernel for duos
http://d-h.st/hfZ
rename it to boot.img then install it as usual. I made this kernel just to test the source code. the feature is same with kuro kernel in sgy dev forum. since its just a test stuff there won't be any update for this kernel. credit goes to sgyd12, nitubhaskar, for being the tester for this kernel and manorajan2050 for the ramdisk file.

kurotsugi said:
long story short. there are some missing files from duos kernel source. the "make menuconfig" won't work even if you have installed ncurses libs. this files is the missing files required to enable menuconfig. simply put all the content into /script/kconfig.
enjoy.
Click to expand...
Click to collapse
Woow... Great.. :good:
Thanks bro...
This will helpfully in the development of the kernel..
But i don't understand how to make new kernel..

Thanks this helps.. for once I can see how menu config looks at least..
hit thanks button for help! YOU hit if I helped.. I will hit if you helped!
Sent from my GT-S6102

Thanks for that bro!

So everyone not use menuconfig to build duos kernel mmm awesome coz its hard to me

savie said:
So everyone not use menuconfig to build duos kernel mmm awesome coz its hard to me
Click to expand...
Click to collapse
Well i used to make changes in sgy kernel using menuconfig and then compare the config files of sgy and sgyd. I added the changed things in sgyd config

savie said:
So everyone not use menuconfig to build duos kernel mmm awesome coz its hard to me
Click to expand...
Click to collapse
Yup.. if i didnt understand something i was using make config and use "?" For that particular option.. after reading ctrl+c.. now I have to understand how to config nurses 5.9 so that I can try this...
hit thanks button for help! YOU hit if I helped.. I will hit if you helped!
Sent from my GT-S6102

can anybody provide a mirror?

Some Fix
Today i installed ubuntu(VM Image) in my Mac-Pc
When i Try make menuconfig Found This Error
Code:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
if Any One Get This Type Error Its Normal......
Just install ncurses (no need to install all package )
Install Command
Code:
sudo apt-get install libncurses5-dev
if u log-in in Root
Code:
apt-get install libncurses5-dev
Hope This useful For All My Friend.................:good::good:

manoranjan2050 said:
Today i installed ubuntu(VM Image) in my Mac-Pc
When i Try make menuconfig Found This Error
Code:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
if Any One Get This Type Error Its Normal......
Just install ncurses (no need to install all package )
Install Command
Code:
sudo apt-get install libncurses5-dev
if u log-in in Root
Code:
apt-get install libncurses5-dev
Hope This useful For All My Friend.................:good::good:
Click to expand...
Click to collapse
I knew this.. read somewhere and had file before I started with kernel.. but it seemed it was not needed as our menu problem..
You are a bit late friend.. I mean thanks really.. but if only you had posted this before... because I downloaded ncurses-5.9.tar.gz file then tried manually.. and it was a headache.. ./configure.. make or make install make sources.. tried these but got errors.. then did sudo apt-get install ncurses.. it said no such repo package found.. then i bugged savie and kurotsugi for help
Kurotsugi helped me yesterday and installed it.. now you also helped others..
hit thanks button! If above post helps you..

Thanks very much for that

Related

[Experimental] Tatto htc kernel 2.6.29 with backport bfs 313...

This is first try for backporting bfs 313 to tattoo htc kernel 2.6.29.
I have created a boot.img for flashing (see attachment). I test it
and i get from linpack benc 2.34Mf/sec. I don't know any other
bencmark programs to test it.
You can try yourself. Some features may not work:
(wifi is the one - i ll compile the wlan.ko module later
and tattoo-hack.ko needs compile too).
UPDATE
In this later boot image wifi and tattoo-hack.ko modules works.
(Just change compile with make LOCALVERSION=-gf922713).
COMPILE HOW TO
Steps for compile you own kernel 2.6.29 with bfs 313:
Code:
1. Get toolchains from CodeSourcery ([url]http://www.codesourcery.com/gnu_toolchains/arm/download.html[/url])
2. Get kernel source code for tattoo from [url]http://member.america.htc.com/download/RomCode/Source_and_Binaries/click-656120.tar.gz[/url]
3. Deploy toolchains and uncompress kernel source in dir "kernel_msm-htc"
4. Apply the attached patch (in compile_tattoo_htc_with_bfs.zip) :
patch -p1 < htc_tattoo_kernel_2.6.29_apply_bfs_313.patch
5. Decommpress the attached config.gz (in compile_tattoo_htc_with_bfs.zip) in kernel_msm-htc-bfs and rename it as .config:
$ gunzip config.gz
$ mv config .config
6. Run "make LOCALVERSION=-gf922713" and wait the compile to finish.
7. Check zImage is created and the size is nearly same as the official htc kernel
$ ls -l arch/arm/boot/zImage
8. Use zImage to create the boot image you want (read for instructions at other posts).
USING ONLY THE PATCH patch_htc_tattoo_kernel_2.6.29_bfs_313.zip
Code:
If you don't want to use my config (as described in step 5) you must patch
the sources with the patch_htc_tattoo_kernel_2.6.29_bfs_313.zip.
Remember when configuring the kernel (make menuconfig or xconfig)
to say y to:
CONFIG_SCHED_BFS=y
and say n (or not set) to:
other SCHEDS.....
CONFIG_DEBUG_SPINLOCK_SLEEP=n
That's it...
That's for now..
cya
What is bfs 313?
Read here:
http://ck.kolivas.org/patches/bfs/bfs-faq.txt
cya
I read the faq and this could be epic.
How to and patch submitted...see first post...
cya
can't really get it to work
got it working now, had made some mods giving problems with the patch
Could this new kernel improve battery life maybe, like those on N1?
no!
this is a cpu scheduler which sets the priority of the apps (foreground & background)
what u are thinking of is undervolting, at the time im lokking a bit further into that.
i found one thing giving a little better battery, when u use the conservative cpu scaling i found a way to make it change frequency faster, giving a little better battery
ralle.gade said:
got it working now, had made some mods giving problems with the patch
Click to expand...
Click to collapse
Hi,
Please post any mods you make at the forum to test them.
Give back to the community..
thanx
segway
Just backported BFS 316 any one interested?
sureeeeeeee
any of you who knows how to compile the wlan.ko for tattoo??
when i do it the normal way through mydroid/system/wlan/ti/sta_dk_4_0_4_32
it gives me errors
rm -f ./libestadrv.a
make -C /root/Kernel-cooker/kernel_msm-htc-finished M=`pwd` ARCH=arm CROSS_COMPILE=arm-eabi- modules
make[1]: Går til katalog '/root/Kernel-cooker/kernel_msm-htc-finished'
CC [M] /root/mydroid/system/wlan/ti/sta_dk_4_0_4_32/./common/src/core/data_ctrl/Tx/MsduList.o
as: unrecognized option '-EL'
make[2]: *** [/root/mydroid/system/wlan/ti/sta_dk_4_0_4_32/./common/src/core/data_ctrl/Tx/MsduList.o] Fejl 1
make[1]: *** [_module_/root/mydroid/system/wlan/ti/sta_dk_4_0_4_32] Fejl 2
make[1]: Forlader katalog '/root/Kernel-cooker/kernel_msm-htc-finished'
make: *** [libestadrv.a] Fejl 2
what do u use?
forget it i found the problem (again) sry for posting
ralle.gade said:
Just backported BFS 316 any one interested?
Click to expand...
Click to collapse
Please post the patches.....
to test it out.
thnx
they are already attached in ralle.gade's first post dude
TheSSJ said:
they are already attached in ralle.gade's first post dude
Click to expand...
Click to collapse
read my friend ... the first post is mine ;P
I want the patch for bfs-316...
cya
segway_
Okay, it seems I became too old now
Sorry segway_, didn't want to give your achievements to someone else ^^
TheSSJ said:
Okay, it seems I became too old now
Sorry segway_, didn't want to give your achievements to someone else ^^
Click to expand...
Click to collapse
I don't care about that. All the credits must go to kolivas.
But the basic idea is to take and give back to the opensource
community..... so still waiting for the bfs-316 patches...
segway
i can give you the files but dunno how to make it to a patch

[Tool] BlendMIUI Speed-Porting Software [V04.7] [Add NEO V][Fully working Auto-Flash]

Since I don't have much time to keep on updating my BlendMIUI so I decided to writte a program to give you guys the chance to build BlendMIUI for your own with latest MIUI sources in just few minutes!
Q:What is BlendMIUI Speed-Porting Software For XPERIA 2011
Ans:This is a short program trying to help you guys to build your own BlendMIUI rom for Xperia 2011 in just few minutes.
Q:How to use it?
Unlock Bootloader first!
1.Download BMSPS(BlendMIUI Speed-Porting Software) then unpack it to anywhere you like(Windows environment).Btw,you should install JAVA SE JRE first or it won't works because it needs JAVA environment to sign the rom.You can goto oracle.com/java to download the latest Java SE JRE.
2.Download latest MIUI rom for Desire HD from miui.us(or anywhere you want).
3.Rename the rom you just downloaded as MIUI.zip then put it into BMSPS/MIUI_DHD_ROM directory.(Do not rename it as MIUI.zip.zip!)
4.Run BMSPS_luancher.exe to start.
5.Do as follows then it will automatically create update.zip under the BMSPS directory.
Then you have two choices:
=>Help youself:
6.Put the update.zip rom to your SD-card.
7.Flash BlendMIUI kernel(I have put it into \BlendMIUI-kernel directory) or DooMKernel for MIUI.
8.Use CWM-recovery to flash the update.zip rom.
=>Use Auto-Flash Function
You don't need to do anything on your phone,it will help you to do all works automatically and boot into the new system!
Features:
1.Support Devices: Xperia Arc,Xperia Arc S,Xperia NEO,Xperia NEO V,Xperia Ray.
2.Latest CM7.2.0 rebuilted sources as base.
3.Automatically port MIUI for your device then output unpdate.zip and sign the rom to let you flash it into your device directly.
4.Your choice Function (addons)
5.Fully working Auto-Flash Function
P.S: CM7 sources and kernel for XPERIA RAY are come from bheremans.
Changelog for Version 02:
1.Add moded Packageinstall to let you chose where you would like to install your apps including SD-card.
2.Fixed function to remind you to install java-jre if update.zip is not created.
3.Small changes.
Changelog for Version 03:
1.Fixed PackageInstaller and Torch FC problem when using the ROM from www.miui.com as base.
2.Automatically recognize MIUI version (Depends on the MIUI rom you use) and change Build version for porting rom.
3.Add "Your Choice" function to help you customize your own BlendMIUI rom(BlendUI,DSPManager,Tweaks,Audios from SE).
4.[For DEVs] Whole-New Source code:More easy to read,more easy to add new language(I mean the BMSPS itself) and new functions.
Changelog for Version 04:
1.Disable echoing information for better display.
2.Fixes and improve performance of BMSPS.
3.Add "Auto-Flash" function to help you flash BlendMIUI automatically
Changelog for Version 04.3:
1.Add Xperia Ray ST18i support(All sources for Xperia Ray are come from bheremans).
2.Fixed Auto-Flash function.
3.Fixed ADB Detective bug which cause the software stuck at entering into Auto-Flash function when you input "yes".
Changelog for Version 04.7:
1.Add Xperia Neo V support.
2.Fully working Auto-Flash function (You don't need to do anything on your phone now until it boots into the new system.BMSPS will help you to do everything automatically.)
3.Some small changes
WARNING:This is not an update-package and you'd better delete all old files if you have installed early version of BMSPS.
Make sure you have unlocked bootloader before using this tool.Baseband 56 is recommanded.
Download links:
BMSPS V04.7: http://www.mediafire.com/?4xxna5rim6txmmn
Latest Source Code @ github.com/JasonStein
[Credit]
Bheremans,Eamars,FXP,DooMloRd,enzo...
Please report bugs with screenshots!
Great...!!!
Only one question...!!! What about the kernel...???
great tool !
Now everyone can make his own personal miUI !
thanks man
adiktz said:
Great...!!!
Only one question...!!! What about the kernel...???
Click to expand...
Click to collapse
here is what he said for the kernel.
7.Flash BlendMIUI kernel(I have put it into \BlendMIUI-kernel directory) or DooMKernel for MIUI.
Click to expand...
Click to collapse
Sounds so cool! thanks
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Wow! So nice of you guy.
Sent from my LT15i using XDA App
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
Sure,go ahead,it would be much convenient to Linux users.
Btw I have updated my latest sources on github and I will keep on adding more functions to BMSPS.
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
Btw you can compiled it for Linux and pack whole things into an package like what I did and give me the download link so that I can attach it to my post.
crimilde said:
Just tried it for 1.11.18 and it works perfectly, a million thanks!
EDIT:
Because I'm lazy and I don't wanna boot into Win7 each time (I just have it for gaming), I compiled the BMSPS_launcher for use on my Fedora installation. I thought I'd upload it here, if anyone else using Linux wants to give it a try.
You just need the zip and unzip packages installed, in addition to the pre-requisites mentioned by Jason.
I attached the modified source file and the binaries for 32 and 64-bit installations.
@Jason: I hope this is fine with you. If not, let me know and I'll remove them. Thanks again for all your work.
Click to expand...
Click to collapse
I have checked your file,there is a mistake:
Code:
if( Device==1 )
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
should be:
Code:
if( Device==1 || Device==2)
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
Cuz LT15i & LT18i share most files
WOW really thanks i just updated my BlendMIUI it works like a charm !
thank you soo much
Edit: Thanks for adding DSPManager !! ^_^
it works soo great on my ARC !!
JasonStein said:
I have checked your file,there is a mistake:
Code:
if( Device==1 )
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
should be:
Code:
if( Device==1 || Device==2)
{
chdir("DATA/LT15i/");
system("zip -r -u ../../temp.zip *");
}
Cuz LT15i & LT18i share most files
Click to expand...
Click to collapse
Ooops, you're right, I must've deleted it by mistake. Thanks for pointing it out!
I'll recompile the thing tomorrow morning and send you the package.
Sent from my LT15i using xda premium
Is there any way to edit this rom to something we want like which APKS are installed and default launcher that kinda stuff?
this is great. it would be accelent if i could chose the language that i whant to install instead of english(not in the cmd window, but for the ROM itself).
can you make a feature for this? only then you will not only be A king you will be THE king.
@Jason: Ok so I've compiled the v2 you posted for Linux 32bit/64bit and archived the whole thing:
EDIT: Reuploaded
http://www.mediafire.com/?9uemvociipaopnn
PS - the source code is attached to the post for your reference. I commented out the Windows-specific lines (instead of deleting them) and put the Linux version below for an easier comparison.
Just one thing, I noticed that even if the update.zip was properly signed and created, the program would still display "5. Failed!" but then clear the screen and show that update.zip was successfully created...
I added an extra condition like below in the Show_Progress function and now it's fine:
Code:
if( i==5 && Step==5 && Out_Check()==0 ) printf("Failed!\n");
crimilde said:
@Jason: Ok so I've compiled the v2 you posted for Linux 32bit/64bit and archived the whole thing:
http://www.mediafire.com/?8vz0xxpyq69afo3
PS - the source code is attached to the post for your reference. I commented out the Windows-specific lines (instead of deleting them) and put the Linux version below for an easier comparison.
Just one thing, I noticed that even if the update.zip was properly signed and created, the program would still display "5. Failed!" but then clear the screen and show that update.zip was successfully created...
I added an extra condition like below in the Show_Progress function and now it's fine:
Code:
if( i==5 && Step==5 && Out_Check()==0 ) printf("Failed!\n");
Click to expand...
Click to collapse
Yes,I made a little mistake:
Code:
void Sign_Rom()
{
Show_Progress(4);
system("java -jar signapk.jar testkey.x509.pem testkey.pk8 temp.zip update.zip");
system("del temp.zip");
Show_Progress(5); // Delete this line!!!
}
Code:
Show_Progress(5);
shouldn't be there.Just remove this line and it will be fine.
I will keep on updating my source code to add more useful functions to give you more choices and let it become not only a speed-porting software but also an MIUI rom customization tool.The early version of BMSPS is quite short with some basic functions and it's not written in a standard way.I'm going to do some changes and if you like to contribute to it,you can always fork my source code and add your own things including some useful functions and I will be appreciate.
P.S:
I will release next version of BMSPS with some useful functions before MIUI 1.11.25 released.
JasonStein said:
Yes,I made a little mistake:
Code:
void Sign_Rom()
{
Show_Progress(4);
system("java -jar signapk.jar testkey.x509.pem testkey.pk8 temp.zip update.zip");
system("del temp.zip");
Show_Progress(5); // Delete this line!!!
}
Code:
Show_Progress(5);
shouldn't be there.Just remove this line and it will be fine.
Click to expand...
Click to collapse
Yeah, you're right, it's better to just remove that line instead of adding an extra condition. I'm reuploading now and I'll update the link in my post above once it's done.
crimilde said:
Yeah, you're right, it's better to just remove that line instead of adding an extra condition. I'm reuploading now and I'll update the link in my post above once it's done.
Click to expand...
Click to collapse
And it's done.
Thanks. Updated the MIUI to the latest version. This is so awesome

error building kernel

Hi guys first of all HI TO EVERYBODY!!!!
I'm new to this forum and hope you will help me....
I recently bought a brand new phone, an LG-P990.
I would like to build my personal rom and kernel so I followed this guide
http://forum.xda-dev...d.php?t=1104523
and all went ok but when I saw that there were not any kernel source code in it I decided also to follow the following
http://wiki.cyanogen...nel_from_source
but when I finally launch the compilation with:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
after few minutes I have the following error message:
http://pastebin.com/z5udP72j
how to fix it???
thank you in advance,
Matteo
84matte84 said:
Hi guys first of all HI TO EVERYBODY!!!!
I'm new to this forum and hope you will help me....
I recently bought a brand new phone, an LG-P990.
I would like to build my personal rom and kernel so I followed this guide
http://forum.xda-dev...d.php?t=1104523
and all went ok but when I saw that there were not any kernel source code in it I decided also to follow the following
http://wiki.cyanogen...nel_from_source
but when I finally launch the compilation with:
make ARCH=arm CROSS_COMPILE=$CCOMPILER -j`grep 'processor' /proc/cpuinfo | wc -l`
after few minutes I have the following error message:
http://pastebin.com/z5udP72j
how to fix it???
thank you in advance,
Matteo
Click to expand...
Click to collapse
what is the definition of the $CCOMPILER ?
vadonka said:
what is the definition of the $CCOMPILER ?
Click to expand...
Click to collapse
as stated in the guide...the CCOMPILER is
CCOMPILER=${HOME}/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
Try compile with another toolchain? Linaro?
Sent from my LG-P990 using XDA App
fajarep said:
Try compile with another toolchain? Linaro?
Click to expand...
Click to collapse
why not....but how to do that????
if you have a recent version of ubunut/debian try this:
apt-get update
apt-get install gcc-arm-linux-gnueabi
then define the CCOMPILER like this:
CCOMPILER=arm-linux-gnueabi-
fajarep said:
Try compile with another toolchain? Linaro?
Click to expand...
Click to collapse
I tried with
CCOMPILER="/home/matteo/android/system/prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-
but I have another error now
drivers/mmc/host/sdhci.c: In function 'sdhci_suspend_host':
drivers/mmc/host/sdhci.c:1652: error: too few arguments to function 'mmc_suspend_host'
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
what to do now??? changing toolchain until find a working one?
vadonka said:
if you have a recent version of ubunut/debian try this:
apt-get update
apt-get install gcc-arm-linux-gnueabi
then define the CCOMPILER like this:
CCOMPILER=arm-linux-gnueabi-
Click to expand...
Click to collapse
same error with gnueabi
drivers/mmc/host/sdhci.c: In function ‘sdhci_suspend_host’:
drivers/mmc/host/sdhci.c:1652:2: error: too few arguments to function ‘mmc_suspend_host’
include/linux/mmc/host.h:285:12: note: declared here
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
84matte84 said:
same error with gnueabi
drivers/mmc/host/sdhci.c: In function ‘sdhci_suspend_host’:
drivers/mmc/host/sdhci.c:1652:2: error: too few arguments to function ‘mmc_suspend_host’
include/linux/mmc/host.h:285:12: note: declared here
make[3]: *** [drivers/mmc/host/sdhci.o] Error 1
make[2]: *** [drivers/mmc/host] Error 2
make[1]: *** [drivers/mmc] Error 2
make: *** [drivers] Error 2
Click to expand...
Click to collapse
what kernel source you have?
vadonka said:
what kernel source you have?
Click to expand...
Click to collapse
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
84matte84 said:
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
Click to expand...
Click to collapse
Is note the same as the device because my device has a
2.6.32.49-cyanogenmode kernel...
84matte84 said:
following the guide I pulled the kernel from the device...
however in the .config I have the following
"Linux/arm 2.6.37.6 Kernel Configuration"
So i think 2.6.37.6
Click to expand...
Click to collapse
how can you pulled the kernel source from the device?
Are you have the cyanogenmod source? or miui or else?
i suggest that pull the latest cm kernel from the cyanogenmod github.
vadonka said:
how can you pulled the kernel source from the device?
Are you have the cyanogenmod source? or miui or else?
i suggest that pull the latest cm kernel from the cyanogenmod github.
Click to expand...
Click to collapse
Sorry I did not pulled the kernel source but the kernel config as suggested in the tutorial...
I'm working with cyanogenmod source following the cyanogenmod wiki tutorial here
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
84matte84 said:
Sorry I did not pulled the kernel source but the kernel config as suggested in the tutorial...
I'm working with cyanogenmod source following the cyanogenmod wiki tutorial here
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source
Click to expand...
Click to collapse
apt-get update
apt-get install git
git clone git://github.com/CyanogenMod/lge-kernel-star.git
then try with this source
vadonka said:
apt-get update
apt-get install git
git clone git://github.com/CyanogenMod/lge-kernel-star.git
then try with this source
Click to expand...
Click to collapse
this time the kernel compile without problems...now how to load it in the phone? Can I continue following the cyanogenmod wiki???
thank you for your help...
84matte84 said:
this time the kernel compile without problems...now how to load it in the phone? Can I continue following the cyanogenmod wiki???
thank you for your help...
Click to expand...
Click to collapse
I'm sorry if im raw, but why you deal with this? if you dont make any change in the kernel source just use the precompiled cm7 kernel.
im not exactly understand your motive.
vadonka said:
I'm sorry if im raw, but why you deal with this? if you dont make any change in the kernel source just use the precompiled cm7 kernel.
im not exactly understand your motive.
Click to expand...
Click to collapse
This is my first step...for now I need to build an unchanged source and load it on my phone....after when I will able to load a compiled kernel in the phone correctly I will need to modify it...for my university studies...
but because of is the first time I'm asking you the correct steps because I don't want to brik the phone
84matte84 said:
but because of is the first time I'm asking you the correct steps because I don't want to brik the phone
Click to expand...
Click to collapse
i understand.
in that case the kernel zimage in the "/arch/arm/boot" directory.
you also need to copy all file what have the ".ko" extension (modules)
you need to write a kernel installer cwm script, or use someone else script.
you can use my script: https://github.com/vadonka/kernel-installer
if you have some linux shell scripting knowledge you will understand this

[Q] Kernel compiling

Hello everyone, I'm a noob that want try to learn something more about Android.
I'm trying to compile the Optimus-prime kernel of Demetris, but I'm stuck on an error during compile session.
My steps:
1) git init -u git://github.com/Ntemis/lge-kernel-p880
2) downloaded NDK from google http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86.tar.bz2
(I'm using Slackware 14.1 32 bit)
3) I've used as baseconfig this one : cyanogenmod_x3_defconfig
4) then as toolchain :
Code:
export CROSS_COMPILE=~/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-
5)finally I did
Code:
make -j2 ARCH=arm SUBARCH=arm
Now the error:
Code:
CC arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.o
arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.c:58:27: fatal error: board-lge-nfc.h: No such file or directory
compilation terminated.
make[2]: *** [arch/arm/mach-tegra/lge/x3/board-x3-i2c-dev.o] Errore 1
make[1]: *** [arch/arm/mach-tegra/lge/x3] Errore 2
make: *** [arch/arm/mach-tegra] Errore 2
The include file board-lge-nfc.h is present in the same folder of board-x3-i2c-dev.c
Where is the error?
are you sure the cross compile path points to the correct directory?
try using doomlord toolchain, kernel compiling is quite tricky and most toolchains give errors
Poi se vuoi se ne parla in pvt
Rudjgaard said:
are you sure the cross compile path points to the correct directory?
try using doomlord toolchain, kernel compiling is quite tricky and most toolchains give errors
Poi se vuoi se ne parla in pvt
Click to expand...
Click to collapse
Hi,
I have only the official NDK on my machine. Anyway I'll try also that doomlord toolchain
Thx for the hint. :good:
I've tried DoomLord's toolchain,but I have the same problem.
So I've tried to download Iodak's sources and I'm been able to compile it without any problem.
Is there a problem with Optimus Prime sources?Is there some special trick?
Well, I've found a solution....
It looks like there is some problem with include path.I've moved the "board-lge-nfc.h" file inside the include folder in the main root of the kernel sources and it worked.
Now I'm stuck with tspdrv. Same story: missing files when they are there instead. I did the same trick with another include file and it worked again, but now I have other missing files.
I'm sure there is something wrong in my setup/sources ...
bilbo75 said:
Well, I've found a solution....
It looks like there is some problem with include path.I've moved the "board-lge-nfc.h" file inside the include folder in the main root of the kernel sources and it worked.
Now I'm stuck with tspdrv. Same story: missing files when they are there instead. I did the same trick with another include file and it worked again, but now I have other missing files.
I'm sure there is something wrong in my setup/sources ...
Click to expand...
Click to collapse
Simply just cherry-pick this commit and you'll be fine
https://github.com/laufersteppenwolf/lge-kernel-p880/commit/c2e57252398ded9520beb9382f538da53f9a0199
I think this will help you
https://github.com/iodak/LG_X3_P880_v20a/commit/6f2086454d537c6f49038f36d6eeddbe4adcd70a
Also look at other commits on this page when you get into problems.
https://github.com/iodak/LG_X3_P880_v20a/commits/master?page=9
Sent from my LG-P880 using xda app-developers app
Wow! Thanks you very much for your help guys! :highfive:
Now I have to study cherry-picking
bilbo75 said:
Wow! Thanks you very much for your help guys! :highfive:
Now I have to study cherry-picking
Click to expand...
Click to collapse
One of the best ( if not the best) git(hub) tuts on xda: http://forum.xda-developers.com/showthread.php?t=1877040
everything's covered, and even git noobs ( such as I am ) can easily understand it
You have to:
git fetch https://iodak/LG_X3_P880_20a
Then wait for a while
Then git cherry-pick 6f2086454d537c6f49038f36d6eeddbe4adcd70a
Commit that you want.
Sent from my LG-P880 using xda app-developers app
I'm amazed from your kindness guys!
A big thanks again! :victory:

CM11 Kenel compiling trouble !!

Hi. i have tried to compile cm11 kernel by using kernel source from http://github.com/cm-nokia-x2 and gcc toolchain 4.8 from here http://github.com/huyparody/gcc_linaro
i get config.gz from /proc/
and renamed it to ara_defconfig
and when i:
make ara_defconfig
make
after a few minute, it show me a error:
CC drivers/input/touchscreen/cyttsp4_device_access.o
drivers/input/touchscreen/cyttsp4_device_access.c: In function 'cyttsp4_grpdata_store_touch_params':
drivers/input/touchscreen/cyttsp4_device_access.c:1447:19: warning: 'rc3' may be used uninitialized in this function [-Wuninitialized]
error, forbidden warning: cyttsp4_device_access.c:1447
make[3]: *** [drivers/input/touchscreen/cyttsp4_device_access.o] Error 1
make[2]: *** [drivers/input/touchscreen] Error 2
make[1]: *** [drivers/input] Error 2
make: *** [drivers] Error 2
[email protected]:~/android/kernel/nokia/msm8610$
Click to expand...
Click to collapse
how to solve it!! thanks much
kaotd99 said:
how to solve it!! thanks much
Click to expand...
Click to collapse
Hello,
Use toolchain from CyanogenMod prebuilt repo, here is link: github.com/CyanogenMod/android_prebuilt/tree/cm-11.0/linux-x86/toolchain/arm-eabi-4.4.3
You also don't need to copy config from /proc, it is included in source at arch/arm/configs/msm8610-nokia-defconfig.
zombah said:
Hello,
Use toolchain from CyanogenMod prebuilt repo, here is link: github.com/CyanogenMod/android_prebuilt/tree/cm-11.0/linux-x86/toolchain/arm-eabi-4.4.3
You also don't need to copy config from /proc, it is included in source at arch/arm/configs/msm8610-nokia-defconfig.
Click to expand...
Click to collapse
thanks dev
oh god... i got new error:
i type:
export PATH=/home/kaotd/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-eabi-
and:
[email protected]:/home/kaotd/android/kernel/nokia/msm8610# make msm8610-nokia_defconfig
#
# configuration written to .config
#
[email protected]:/home/kaotd/android/kernel/nokia/msm8610# make
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CC kernel/bounds.s
kernel/bounds.c:1: error: bad value (cortex-a7) for -mtune= switch
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2
[email protected]:/home/kaotd/android/kernel/nokia/msm8610#
Click to expand...
Click to collapse
can you help me ? thanks.... because im a newbie and sorry about that
kaotd99 said:
can you help me ? thanks.... because im a newbie and sorry about that
Click to expand...
Click to collapse
Hello,
Ahh yep, i forgot switch to memcpy optimizations, here is correct link to newer toolchain android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
zombah said:
Hello,
Ahh yep, i forgot switch to memcpy optimizations, here is correct link to newer toolchain android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
Click to expand...
Click to collapse
thanks.. i will try and report to you later!! thanks again
@zombah hi again. i was compiled a kernel( zImage )
now i have "Kernel: arch/arm/boot/zImage is ready"
so how can i compare it with boot.img ?
Hello,
If you wont use inline kernel building inside CyanogenMod, you probably need to unpack boot.img content replace kernel and then pack boot.img again with replaced kernel. Remember that it is dangerous if your kernel is not bootable, you'll stuck to recovery only boot and if your recovery also lost only unbricking will help.
Use CyanogenMod mkbootimg.c/unpackbootimg.c for that, here is repo github.com/CyanogenMod/android_system_core/tree/cm-11.0/mkbootimg
Here is how to compile them separatly of whole system:
Code:
gcc -o mkbootimg mkbootimg.c ../libmincrypt/sha.c -I../include
gcc -o unpackbootimg unpackbootimg.c ../libmincrypt/sha.c -I../include
you'll need to download dependencies also.
zombah said:
Hello,
If you wont use inline kernel building inside CyanogenMod, you probably need to unpack boot.img content replace kernel and then pack boot.img again with replaced kernel. Remember that it is dangerous if your kernel is not bootable, you'll stuck to recovery only boot and if your recovery also lost only unbricking will help.
Use CyanogenMod mkbootimg.c/unpackbootimg.c for that, here is repo github.com/CyanogenMod/android_system_core/tree/cm-11.0/mkbootimg
Here is how to compile them separatly of whole system:
Code:
gcc -o mkbootimg mkbootimg.c ../libmincrypt/sha.c -I../include
gcc -o unpackbootimg unpackbootimg.c ../libmincrypt/sha.c -I../include
you'll need to download dependencies also.
Click to expand...
Click to collapse
thanks much
can you tell me which file contain OverClock number of nokia x2 ? and which kernelPatch i can apply with this kernel ?
Hello,
I don't know, i'm not interested in overclocking and never investigated this question.
And i don't recommend you to play with overclocking without deep embedded development skills, it is very easy to kill your device with wrong power modifiers.
i'm understand, thanks for your suggestion.
not about nokia x2ds but can i ask you a question?
-can i make a kernel source for a mtk device ? because i have a mtk china phone which not have kernel source from manufacturer !
kaotd99 said:
i'm understand, thanks for your suggestion.
not about nokia x2ds but can i ask you a question?
-can i make a kernel source for a mtk device ? because i have a mtk china phone which not have kernel source from manufacturer !
Click to expand...
Click to collapse
Hello,
Sure it is possible, why not. But you need at least serial/uart console on device, otherwise how you will debug kernel boot problems?
zombah said:
Hello,
Sure it is possible, why not. But you need at least serial/uart console on device, otherwise how you will debug kernel boot problems?
Click to expand...
Click to collapse
thanks... now i'm trying to port double-tap to wake feature from Nokia Stock Kernel. There is any suggestion ?? Thanks
i'm trying to add this: https://github.com/ryanaepple/android_kernel_motoe/commit/080003bc8e61349bf7c8da00fa6923f3c84d1927
and being stuck at editing synaptics_dsx_i2c.c and synaptics_dsx_i2c.h
can you tell me which files is Touchscreen driver of nokia x2 ?? i think it is synaptics_i2c_rmi4.c/.h
kaotd99 said:
can you tell me which files is Touchscreen driver of nokia x2 ?? i think it is synaptics_i2c_rmi4.c/.h
Click to expand...
Click to collapse
Hello,
Nokia X2 have Cypress TMA4XX touchscreen, driver location is drivers/input/touchscreen/cyttsp4*

Categories

Resources