Hi there
I have korean optimus1
I can change kernel...
I want to fix touchbug
I tried P500's touchbug source..
but it has error
How can I fix touchbug?
I add two files
one is a touchscreen file (mcs6000_ts.c)
another is has error file when I add a lagfix source (lg diag keypress.c)
this is error message when I make
arch/arm/mach-msm/built-in.o : In function 'LGF_KeyPress' "
/home/user/Downloads/kernel/arch/arm/mach-msm/lge/lg_diag_keypress.c:164: undefined reference to 'Send_Touch'
make: ***[.tmp_vmlinux1] Error 1
When you fix files
please send file to '[email protected]'
Just flash dercaveman kernel from lg p500 android development room then youre good to go
Sent from my LG-P500 using XDA Premium App
sondw said:
Hi there
I have korean optimus1
I can change kernel...
I want to fix touchbug
I tried P500's touchbug source..
but it has error
How can I fix touchbug?
I add two files
one is a touchscreen file (mcs6000_ts.c)
another is has error file when I add a lagfix source (lg diag keypress.c)
this is error message when I make
arch/arm/mach-msm/built-in.o : In function 'LGF_KeyPress' "
/home/user/Downloads/kernel/arch/arm/mach-msm/lge/lg_diag_keypress.c:164: undefined reference to 'Send_Touch'
make: ***[.tmp_vmlinux1] Error 1
When you fix files
please send file to '[email protected]'
Click to expand...
Click to collapse
i think u shoud try this too provided my mik http://forum.xda-developers.com/showthread.php?t=929941
sondw said:
Hi there
I have korean optimus1
I can change kernel...
I want to fix touchbug
I tried P500's touchbug source..
but it has error
How can I fix touchbug?
I add two files
one is a touchscreen file (mcs6000_ts.c)
another is has error file when I add a lagfix source (lg diag keypress.c)
this is error message when I make
arch/arm/mach-msm/built-in.o : In function 'LGF_KeyPress' "
/home/user/Downloads/kernel/arch/arm/mach-msm/lge/lg_diag_keypress.c:164: undefined reference to 'Send_Touch'
make: ***[.tmp_vmlinux1] Error 1
When you fix files
please send file to '[email protected]'
Click to expand...
Click to collapse
thanks
I solve it
Related
Hello everyone. I have just started taking interest in the android world and have started to learn how to compile kernels.
I own a SAMSUNG GALAXY S2 I9100G.
I have downloaded the aosp kernel source for my mobile from the cyanogenmod's github.
And followed guides to compile.
(i was able to compile a stock kernel but am having problems in compilling an aosp kernel )
I follow these commands:-
1. Make cyanogenmod_i9100g_defconfig
2. Make menuconfig
3. Make -j4
And this is the error i get
Code:
/home/incarnation95/Downloads/arm-2011.03/bin/arm-none-eabi-ld: cannot open linker script file /arch/arm/mach-omap2/sec_omap.lds: No such file or directory
make[1]: *** [arch/arm/mach-omap2/mailbox_mach.o] Error 1
make: *** [arch/arm/mach-omap2] Error 2
Can anyone help mr figure out where the problem might be?
I did search 4-5 times before posting here but didnt find any solution.
Thanks in advance
Was chatting with incarnation95 offline, on resolving this issue, so here's for the benefit of others facing this same problem .
Go and open up the Makefile.sec , for my case the absolute path was :
/home/currway/kernelmod/fuss132/arch/arm/mach-omap2# vi Makefile.sec
In the content , find this line below and edit it to have the absolute path instead , so that sec_omap.lds can be references correctly:
dflags-$(CONFIG_MACH_OMAP4_SAMSUNG) += \
-T /home/currway/kernelmod/fuss132/arch/arm/mach-omap2/sec_omap.lds
Hello all,
I am trying to port Cyanogendmod 10.1 to a new device - Hyundai T7S.(smdk4412 based).
I have successfully compiled CWM recovery image and it work good on the tablet.
But when I try to build the whole ROM I receive the following errors:
android-dev/cm10.1/out/target/product/t7s/system/app/Exchange2.apk
frameworks/base/core/java/android/app/admin/DeviceAdminInfo.java:411: error 101: Unresolved link/see tag "#USES_POLICY_ENFORCE_MMAC" in android.app.admin.DeviceAdminInfo
frameworks/base/core/java/android/app/admin/DeviceAdminInfo.java:411: error 101: Unresolved link/see tag "#USES_POLICY_ENFORCE_SELINUX" in android.app.admin.DeviceAdminInfo
DroidDoc took 251 sec. to write docs to /home/steals/android-dev/cm10.1/out/target/common/docs/doc-comment-check
make: *** [/home/steals/android-dev/cm10.1/out/target/common/docs/doc-comment-check-timestamp] Error 45
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
I've tried to find some solutions, but haven't found anything.
Could you please help me to resolve the errors?
Thanks.
The error is fixed by adding '$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)' into device configuration file.
steals said:
The error is fixed by adding '$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)' into device configuration file.
Click to expand...
Click to collapse
Hi I'm trying to compile cm 10.1 for another phone, samsung galaxy mini 2, but I get that same error. I used the solution you describe but didn't work. Did you found that solution yourself, or found another forum/thread/whetever that this is discussed? If so, could you poin it to me, because google searching gave me nothing:/
Hi,
I'm trying to build a CM11 ROM for Xperia U just for learning. My PC is a SAMSUNG N150 which has Lubuntu 13.10 Saucy Salamander running on it, I have set it up to compile Android ROMs following this guide , next I've followed munjeni's guide to build a CM11 ROM for Xperia Go but using this repo of CM11 for Xperia U instead of munjeni's one for Xperia Go. When I reach the last step (make otapackage, or in other words, build the ROM) it seems everything is going OK during the process, but after 8 hours working it stops and says:
Code:
make: *** [/home/alberto/cm11/out/target/product/kumquat/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] Error 1
And when I check $OUT directory there's no .zip package.
I think that "Error 1" can be related to these errors:
Code:
bootable/recovery/extendedcommands.c:567:96: error: 'BOARD_VOLD_SDCARD_VOLUME_INT' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:567:96: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/extendedcommands.c:567:126: error: 'BOARD_UMS_LUNFILE' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:569:96: error: 'BOARD_VOLD_SDCARD_VOLUME_EXT' undeclared (first use in this function)
But I don't know how to fix the errors and get a complete build, so I need the help of any developer.
Thank You
Garcia98 said:
Hi,
I'm trying to build a CM11 ROM for Xperia U just for learning. My PC is a SAMSUNG N150 which has Lubuntu 13.10 Saucy Salamander running on it, I have set it up to compile Android ROMs following this guide , next I've followed munjeni's guide to build a CM11 ROM for Xperia Go but using this repo of CM11 for Xperia U instead of munjeni's one for Xperia Go. When I reach the last step (make otapackage, or in other words, build the ROM) it seems everything is going OK during the process, but after 8 hours working it stops and says:
Code:
make: *** [/home/alberto/cm11/out/target/product/kumquat/obj/EXECUTABLES/recovery_intermediates/extendedcommands.o] Error 1
And when I check $OUT directory there's no .zip package.
I think that "Error 1" can be related to these errors:
Code:
bootable/recovery/extendedcommands.c:567:96: error: 'BOARD_VOLD_SDCARD_VOLUME_INT' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:567:96: note: each undeclared identifier is reported only once for each function it appears in
bootable/recovery/extendedcommands.c:567:126: error: 'BOARD_UMS_LUNFILE' undeclared (first use in this function)
bootable/recovery/extendedcommands.c:569:96: error: 'BOARD_VOLD_SDCARD_VOLUME_EXT' undeclared (first use in this function)
But I don't know how to fix the errors and get a complete build, so I need the help of any developer.
Thank You
Click to expand...
Click to collapse
Have you apply the patches ?
95A31 said:
Have you apply the patches ?
Click to expand...
Click to collapse
Yes, but I haven't applied the optional step because I'm not going to sync CM11 source code daily
Garcia98 said:
Yes, but I haven't applied the optional step because I'm not going to sync CM11 source code daily
Click to expand...
Click to collapse
It look like bootable_recovery.patch is not applyed properly. Check for errors about that
95A31 said:
It look like bootable_recovery.patch is not applyed properly. Check for errors about that
Click to expand...
Click to collapse
Thank you, I will try it tomorrow
__________________________________________________________
When I apply bootable_recovery.patch I got this:
Code:
patching file bootable/recovery/Android.mk
patching file bootable/recovery/default_recovery_ui.c
patching file bootable/recovery/extendedcommands.c
[B]Hunk #1 FAILED at 32.[/B]
Hunk #2 succeeded at 169 (offset 6 lines).
Hunk #3 succeeded at 559 (offset 13 lines).
Hunk #4 succeeded at 1518 (offset 42 lines).
Hunk #5 succeeded at 1591 (offset 42 lines).
Hunk #6 succeeded at 1694 with fuzz 2 (offset 54 lines).
[B]1 out of 6 hunks FAILED -- saving rejects to file bootable/recovery/extendedcommands.c.rej[/B]
patching file bootable/recovery/recovery.c
patching file bootable/recovery/recovery_ui.h
patching file bootable/recovery/ui.c
patching file bootable/recovery/adefines.h
patching file bootable/recovery/minui/lucidaconsole_10x18.h
It seems there's one error with hunk #1, any idea about how to fix it?
A bump on this. Getting similar errors while building CM 11. Any help would be appreciated
Thanks,
AJ
Nothing...
Nothing, I cannot fix the errors, I've searched everywhere about how to fix patch errors but without success, when I try with git apply hardware/semc/patches/bootable_recovery.patch it says the following:
Code:
error: patch failed: bootable/recovery/extendedcommands.c:32
error: bootable/recovery/extendedcommands.c: patch doesn't apply
If I knew C, I would try to have a look to extendedcommands.c (I think that file cause the error). I attach here the file.
Garcia98 said:
Nothing, I cannot fix the errors, I've searched everywhere about how to fix patch errors but without success, when I try with git apply hardware/semc/patches/bootable_recovery.patch it says the following:
Code:
error: patch failed: bootable/recovery/extendedcommands.c:32
error: bootable/recovery/extendedcommands.c: patch doesn't apply
If I knew C, I would try to have a look to extendedcommands.c (I think that file cause the error). I attach here the file.
Click to expand...
Click to collapse
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
95A31 said:
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
Click to expand...
Click to collapse
Thanks a lot. The patch worked with no errors. Now starting the build
Cheers,
AJ
@95A31 Can you please take a look at this error? http://pastebin.com/AGm8QAdR
EDIT: I guess the error might be due to wrong path specified to toolchain. I am trying again with another path. I'll let youknow how that goes
Thanks
AJ
95A31 said:
Guys try to use this patch https://github.com/95A31/android_hardware_semc/blob/cm-11.0/patches/bootable_recovery.patch. It is a refreshed version of @munjeni one.
Click to expand...
Click to collapse
Thank you very much, patch works fine and I've compiled kernel correctly
But now I get another error, it has stopped building and say this:
Code:
make: *** [/home/alberto/cm11/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-with-local.dex] Ended (killed)
I cannot find any error in terminal
I've checked $OUT directory and there's no zip, kernel is OK, but in system there are a lot of missing files.
Also I've searched for classes-with-local.dex but I don't find it anywhere, in /JAVA_LIBRARIES/framework_intermediates doesn't appear.
I've checked if all patches were applied correctly and I haven't found anything wrong.
Please I need help (other time )
Garcia98 said:
Thank you very much, patch works fine and I've compiled kernel correctly
But now I get another error, it has stopped building and say this:
Code:
make: *** [/home/alberto/cm11/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes-with-local.dex] Ended (killed)
I cannot find any error in terminal
I've checked $OUT directory and there's no zip, kernel is OK, but in system there are a lot of missing files.
Also I've searched for classes-with-local.dex but I don't find it anywhere, in /JAVA_LIBRARIES/framework_intermediates doesn't appear.
I've checked if all patches were applied correctly and I haven't found anything wrong.
Please I need help (other time )
Click to expand...
Click to collapse
Mh... I can not understand this error. I suggest 1) build CM from scratch 2) Check if you are properly include the
proprietary files
Thanks a lot to your patch. I did encountered some small error but I compiled now successfully. Thanks
Cheers,
AJ
95A31 said:
Mh... I can not understand this error. I suggest 1) build CM from scratch 2) Check proprietary files
Click to expand...
Click to collapse
I will try option 1) whenever I can, it's more simple than option 2)
Anyway thanks
Abhinav2 said:
Thanks a lot to your patch. I did encountered some small error but I compiled now successfully. Thanks
Cheers,
AJ
Click to expand...
Click to collapse
You are welcome
Q&A for [GUIDE]Building a Kernel from source{Mediatek}
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [GUIDE]Building a Kernel from source{Mediatek}. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
mt6582 config.gz/defconfig
sir can i ask for a config.gz or a defconfig of a device similar to mine .. my device specs below
starmobile up
Mt6582
ips 480x854 screen
mali mp2
8mp back
2mp front
or can i get a config.gz or defconfig with just only mt6582 similar..
please if you got one can i have yours..
thanks in advance
building mt8127 dfo_boot.h error
Hello,
I'm currently trying to compile the mt8127 kernel and I'm mainly using your post as a guide on how to do that.
When I use
Code:
cp ../mediatek/config/mt8127/autoconfig/kconfig/platform .config
I get this error at zImage:
Code:
[B][email protected]:~/source/kernel$ make zImage v=1[/B]
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
CALL scripts/checksyscalls.sh
CC init/main.o
In file included from init/main.c:75:0:
/home/android/source/kernel/arch/arm/include/asm/setup.h:18:27: fatal error: mach/dfo_boot.h: No such file or directory
compilation terminated.
make[1]: *** [init/main.o] Error 1
make: *** [init] Error 2
If I try to make the configs instead of copying them I get the following error:
Code:
[email protected]:~/source/kernel$ make mediatek-configs
make: *** No rule to make target `../out/target/product/mt8127/obj/CUSTGEN/config/autoconfig/kconfig', needed by `mediatek-configs'. Stop.
My exports:
Code:
TARGET_BUILD_VARIANT=userdebug
TARGET_PRODUCT=mt8127
MTK_ROOT_CUSTOM=../mediatek/custom/
MTK_PLATFORM=mt8127
ARCH_MTK_PLATFORM=mt8127
TARGET_KERNEL_VERSION=mt8127
PATH=~/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin:$PATH
CROSS_COMPILE=arm-linux-androideabi-
ARCH=arm
KERNEL_DIR=~/source/kernel
I think dfo_boot.h should be a file, whicht is automatically generated during "make mediatek-configs" and I haven't had any luck figuring out a fix to the problem since I'm a n00b.
Shold "make mediatek-configs" not be the reason for my missing dfo_boot.h, could you please explain to me where I can get it from or how its generated.
mfg
Moonwolf
Hi Master Awesome. Firstly, I wanna say a big "Thank you!" to you for this guide. However, whenever I install those required packages, they BREAK MY LINUX INSTALLATION. My machine no longer shuts down or boots successfully. WHY? I'm running 64 bit Ubuntu 12.04 LTS. I appreciate your response. Thanks!
ABS or AOSP
Hello.
For bulid a MTK is more ABS or AOSP??
Best Regards
Problem
[email protected]:~/mediatek/custom/Kernels/kernel$ make menuconfig
/home/ipul/mediatek/custom/Kernels/kernel/mediatek/Makefile:1: *** missing separator. Stop.
[email protected]:~/mediatek/custom/Kernels/kernel$
can you help me
@BlackObyo read this. Basically you've got some spaces in that Makefile where there should be tabs. Did you edit that file manually at all in a text editor? Send me that file, /home/ipul/mediatek/custom/Kernels/kernel/mediatek/Makefile , by attaching it in a post here and I'll have a look, unless you think you can sort it.
@HTCDreamOn
I do not change the contents makefile
i dont have access to make attachments
i sent my makefile via PM
BlackObyo said:
@HTCDreamOn
I do not change the contents makefile
i dont have access to make attachments
i sent my makefile via PM
Click to expand...
Click to collapse
weird, it looks fine to me, as it should do if you've not touched it. I don't own a MediaTek device, so I can only recommend making sure you've followed the guide exactly. Other than that you could tell me your device and which source you're using and I could have a quick investigation?
help
[email protected]:~/mediatek/custom/KK-Kernel-MT6572-master/kernel$ make zImage
find: `../mediatek/custom/common/kernel/alsps/al3006/al3006.h': File name too long
make: arm-eabi-gcc: Command not found
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
/bin/sh: 1: arm-eabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2
[email protected]:~/mediatek/custom/KK-Kernel-MT6572-master/kernel$
Click to expand...
Click to collapse
help me
MY WHOLE WORK IS
MY DEVICE IS MICROMAX A77 AND MY DEVICE IS CLONNED FROM FLYIQ4404 DEVICE EXPECT TOUCHPANNEL ALL THINGS ARE SAME (MY TOUCHPANNEL IS OF MSG2133 AND FLY IQ4404 IS FT2103)
FLY IQ4404 HAD LOOLIPOP IN ITS DEVICE I ALSO WANT SAME
I USED IT FRIMWARE DIRECTLY FLASHED IT VIA SP FLASH TOOL (REPLACED PRELOADER AND LK.BIN)
IT SUCCESSFULLY BOOTED
BUT TOUCH IS NOT WORKING ?
COMPILED IT SOURCE WITH HELP OF THAT FLYIQ4404 DEVS AND AFTER USING THAT BOOT I GOT WHITE SCREEN AFTER LOGO.BIN HELP NEEDED
MY DEVICE PROPERTIES
LCM= otm8018b_dsi_vdo
TOUCHPANNEL=MSG2133
MORE THINGS NEEDED ASK ME I WILL BE FREE FOR YOU ALWAYS
SOURCE LINK:-
https://github.com/powern/KK_kernel_iq4404_MT6572?files=1
SOME ONE HELP ME TO COMPILE
THIS SOURCE WITH TOUCH DRIVER MSG2133 IT IS A HUMBLE REQUEST
Sent from my Micromax A77 using XDA Free mobile app
anyone here help me to find these imagesensors drivers
i googled it lot but got nothing so someone pls help me
soc5140_mipi_yuv
ov5645_mipi_yuv
gc0329_yuv
hi704_yuv @hyperNeon70 pls help me
Hello Master Awesome. I am compiling my kernel using your guide. But I am stuck at "make menuconfig", it says "make: no such command"
~cyandrew said:
Hello Master Awesome. I am compiling my kernel using your guide. But I am stuck at "make menuconfig", it says "make: no such command"
Click to expand...
Click to collapse
Hello Buddy read your ReadMe file there will be a speciall command will be there from donor of source
Sent from my m2 using XDA-Developers mobile app
murtaza1326 said:
Hello Buddy read your ReadMe file there will be a speciall command will be there from donor of source
Sent from my m2 using XDA-Developers mobile app
Click to expand...
Click to collapse
There was no readme file along with the source. I was able to compile the kernel but ended up unsuccessful, it says a bunch of errors, such as "make[x]: (net) error" "make[x]: error, cannot find kernel_byd82_wet_kk.bin" where byd82_wet_kk is the Target_project
Sent from my MT6582 using XDA-Developers mobile app
Tried to build CM13 from source, but I always had this error
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/common/obj/JAVA_LIBRARIES/org.cyanogenmod.platform.internal_intermediates/classes.jack', needed by '/home/hicham03/cm13/out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'. Arrêt.
make: *** Attente des tâches non terminées....
warning: [options] bootstrap class path not set in conjunction with -source 1.7
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (16:28 (mm:ss)) ####
Full log here: http://pastebin.com/jyBW0jzz
Is there any solution for that?
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
LahKeda said:
It must be there is missed file you should go and check whether it's already exist or not .
Check last part of the log file you must find something like file not found or no rule to make ..... And it will provide the path for the missed file .
I can't check the log you provided as I open from my galaxy star .
Click to expand...
Click to collapse
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Hicham03 said:
But where can I find org.cyanogenmod.platform.internal_intermediates folder ?
Click to expand...
Click to collapse
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
wow! cm 13 nice !
LahKeda said:
The problem is not in that folder , the problem is coming from a missed file in cm source like if there an included file is not exist or the path is wrong or just simply it's rambling
Click to expand...
Click to collapse
But the missing file is located in that missing folder..
Hicham03 said:
But the missing file is located in that missing folder..
Click to expand...
Click to collapse
Here is wait is going on while building :
While building here are files copied to that path
out/target/common/obj/APPS/Bluetooth_intermediates/with-local/classes.dex'.
Click to expand...
Click to collapse
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Bro can re-repo source cm13?
LahKeda said:
Here is wait is going on while building :
While building here are files copied to that path
then after they're copied they will be built so if these files are not exist in cm13 source , they won't be exist in that path then when it try to build them they will not find these files so you get this error .
Did you tried to start building again ? it may help you .
Click to expand...
Click to collapse
Oh oh... bluetooth_intermediates isn't available too.
New error after re-synced repo:
Code:
make: *** No rule to make target '/home/hicham03/cm13/out/target/product/higgs2g/obj/KERNEL_OBJ/usr', needed by '/home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/mixer.o'. Arrêt.
make: *** Attente des tâches non terminées....
Export includes file: external/tinyalsa/Android.mk -- /home/hicham03/cm13/out/target/product/higgs2g/obj/SHARED_LIBRARIES/libtinyalsa_intermediates/export_includes
make: Leaving directory '/home/hicham03/cm13'
#### make failed to build some targets (06:48 (mm:ss)) ####
And there too, KERNEL_OBJ is unavailable.