Hey guys, thank you in advance. I have an LG X Power (K220) and I started to develop the stock AOSP from source (Android 6.0.1). I followed all the instruction from LG and Google (downloaded both google and LG source and then merged them). After seven hours of compiling I got my image file: system.img, cache.img, userdata.img and ramdisk.img. It was the time to flash and test the new build, so I used these command:
Code:
fastboot flash cache cache.img
Code:
fastboot flash ramdisk ramdisk.img
But when I have to flash the system.img and the userdata the device tell me that the images are too big and the message “Invalid sparse file format at header magi”. So I googled it and I tried with:
Code:
fastboot -S 256M flash system.img
But nothing. I also read that I could try to modify the BoardConfig.mk and add:
Code:
TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
But I do not know what BoardConfig.mk I have to modify becouse when I merge the file and go to /device/lge/k7 there isn't the mk file, so I think that use the generic aosp for arm devices.
How could I solve this problem? Thank you another time :fingers-crossed:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
kko7 said:
Hi I'm also building AOSP for X Power. You need to change SYSTEM IMAGE partition size in aosp/device/generic/armv7-a-neon/BoardConfig.mk. That's beacouse we use "lunch 1" which mean "lunch aosp_arm-eng". If u need help send me message.
Click to expand...
Click to collapse
Are you able to build debug versions? That may help things for you.
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
kko7 said:
I fixed it. Now I am waiting for the compilation to finish.
If someone want I can upload it to AFH
Click to expand...
Click to collapse
How did you fix the error?
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
kko7 said:
Modify build/core/clang/HOST_x86_common.mk
android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If that doesn't work then
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in aosp folder
Click to expand...
Click to collapse
Excellent, thank you! ?
Sands207 said:
Excellent, thank you! ?
Click to expand...
Click to collapse
No problem
kko7 said:
Maybe I will be able but I'm getting clang error, so I need to fix it first.
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build/core/host_shared_library_internal.mk:51: out/host/linux-x86/obj/lib/libartd.so] Error 1
Click to expand...
Click to collapse
How do you fix it?
I trying make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
sebasrock156 said:
How do you fix it?
I try to make a build for my Xperia X and Xperia M2 Aqua, but, justly, launch that error...
Click to expand...
Click to collapse
Modify core/clang/HOST_x86_common.mk
https://android-review.googlesource.com/c/platform/build/+/223100/1/core/clang/HOST_x86_common.mk
If this doesn't work then try this command:
cp /usr/bin/ld.gold prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/bin/ld
But you need to be in the aosp folder
Related
Hi All,
I take notes with my Tab2, and sometimes the Default behaviour of the Touchscreen annoys me.
So i decided to recompile the kernel with 3 lines of code added. When done i replaced the zImage in the boot.img of the kkboot stock zip and flashed it trough clockworkmod.
Then i got stuck, my tablet gets stuck inside a boot loop (only the logo comes up, and then reboots after 3 seconds).
The kernel compilation was done by:
- Download Ubuntu, follow the guide on Andriod to setup a build enviorment
- Download Doomlord's toolchain
- Download source from Samsung Open Source
- Adjust code
- Compile using samsungs instructions
How can i resolve this?
http://forum.xda-developers.com/showthread.php?t=1859227 Use Sourcery G++ Lite 2010q1-202 as per Samsung instruction.
ketut.kumajaya said:
http://forum.xda-developers.com/showthread.php?t=1859227 Use Sourcery G++ Lite 2010q1-202 as per Samsung instruction.
Click to expand...
Click to collapse
So, retry compiling with Codesourcery. What parameters do i need to pass to mkbootimg?
Plis man do oc kernel to 1,4 ghz for g tab 7
gieltjev said:
So, retry compiling with Codesourcery. What parameters do i need to pass to mkbootimg?
Click to expand...
Click to collapse
I have my own script base on http://forum.xda-developers.com/showthread.php?t=1241005
ketut.kumajaya said:
I have my own script base on http://forum.xda-developers.com/showthread.php?t=1241005
Click to expand...
Click to collapse
So i downloaded "arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2" and your toolkit.
First i extracted the boot.img from "kkboot-0.4.2-core-jb-p51xx.zip", extracted the boot.img and made a new one including my zImage. then using zip replaced boot.img with the new boot.img.
This time the booting takes around 6 seconds, but still resetting.
dawidex444 said:
Plis man do oc kernel to 1,4 ghz for g tab 7
Click to expand...
Click to collapse
If the result is positive i will share my adjustments here so that the real cooks can bake a decent kernel
gieltjev said:
So i downloaded "arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2" and your toolkit.
First i extracted the boot.img from "kkboot-0.4.2-core-jb-p51xx.zip", extracted the boot.img and made a new one including my zImage. then using zip replaced boot.img with the new boot.img.
This time the booting takes around 6 seconds, but still resetting.
If the result is positive i will share my adjustments here so that the real cooks can bake a decent kernel
Click to expand...
Click to collapse
So what "adb shell dmesg" output?
EDIT: Incompatible PVR kernel module, disable MODVERSION and add "-blackhawk" string to LOCALVERSION in your kernel config file or you can extract my config file from "/proc/config.gz" by "insmod /system/lib/modules/configs.ko".
ketut.kumajaya said:
So what "adb shell dmesg" output?
EDIT: Incompatible PVR kernel module, disable MODVERSION and add "-blackhawk" string to LOCALVERSION in your kernel config file or you can extract my config file from "/proc/config.gz" by "insmod /system/lib/modules/configs.ko".
Click to expand...
Click to collapse
Wow, how did you find that out?
So i set, CONF_MODVERSION=n, LOCALVERSION='-blackhawk'
Let's recompile
EDIT: Recompiled, added into the CORE kkboot image. Still resetting. while the logo shows i cannot execute "adb shell dmesg". If executed from CWM it adb shell dmesg works.
Code:
$ cp android_espresso10_omap4430_r02_user_blackhawk_defconfig.txt kernel/arch/arm/configs/android_espresso10_omap4430_r02_user_blackhawk_defconfig
$ cd kernel
$ make mrproper
$ make ARCH=arm android_espresso10_omap4430_r02_user_blackhawk_defconfig
$ make -j4 ARCH=arm
ketut.kumajaya said:
Code:
$ cp android_espresso10_omap4430_r02_user_blackhawk_defconfig.txt kernel/arch/arm/configs/android_espresso10_omap4430_r02_user_blackhawk_defconfig
$ cd kernel
$ make mrproper
$ make ARCH=arm android_espresso10_omap4430_r02_user_blackhawk_defconfig
$ make -j4 ARCH=arm
Click to expand...
Click to collapse
Ok, that works! i've got my own kernel running on the device. Now i will continue getting the fix to work.
gieltjev said:
Ok, that works! i've got my own kernel running on the device. Now i will continue getting the fix to work.
Click to expand...
Click to collapse
Congratulations :good:
gieltjev said:
First i extracted the boot.img from "kkboot-0.4.2-core-jb-p51xx.zip", extracted the boot.img and made a new one including my zImage. then using zip replaced boot.img with the new boot.img.
Click to expand...
Click to collapse
What you've done is exactly what I'm trying to do now.
But I'm stuck in unpacking boot.img in kk-boot.
Which unpack/repack tool did you use? Can you plz share them?
As i am new for building roms i need some help for getting first rom to work
i had downloaded all the sources of slimkat and my device condor but after a lunch slim_condor-userdebug
getting this error
Code:
ls: cannot access device/*/condor/slim.mk: No such file or directory
build/core/product_config.mk:231: *** Can not locate config makefile for product "slim_condor". Stop.
as its says that slim.mk file is missing in device/motorola/condor/ which is most important for compiling
so plzz help me dev's
Rio257 said:
As i am new for building roms i need some help for getting first rom to work
i had downloaded all the sources of slimkat and my device condor but after a lunch slim_condor-userdebug
getting this error
Code:
ls: cannot access device/*/condor/slim.mk: No such file or directory
build/core/product_config.mk:231: *** Can not locate config makefile for product "slim_condor". Stop.
as its says that slim.mk file is missing in device/motorola/condor/ which is most important for compiling
so plzz help me dev's
Click to expand...
Click to collapse
make sure that file is in the directory on your computer with the same capitalization as it is described and then try to run the ". build/envsetup.sh" and "lunch" again
Circaflex said:
make sure that file is in the directory on your computer with the same capitalization as it is described and then try to run the ". build/envsetup.sh" and "lunch" again
Click to expand...
Click to collapse
no slim.mk is not present in the dir device/condor
Dual sim devices?
Circaflex said:
make sure that file is in the directory on your computer with the same capitalization as it is described and then try to run the ". build/envsetup.sh" and "lunch" again
Click to expand...
Click to collapse
Wanna ask that if I compile it for dual sim device, will atleast the primary sim work because Slim doesn't support dual sim?
b1n4rym0nk said:
Wanna ask that if I compile it for dual sim device, will atleast the primary sim work because Slim doesn't support dual sim?
Click to expand...
Click to collapse
Its need to be patched to work
Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Source Code:
https://github.com/messi2050
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
It seems that this fix is not working on my build
messi2050 said:
It seems that this fix is not working on my build
Click to expand...
Click to collapse
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6
Lycris11 said:
PieroV founded that fix post writted by me that one for Y530 probably u need write a correct link for G6
Click to expand...
Click to collapse
i abandoned this project and i'm trying to port cm12 lollipop now
where can i find twrp for g6-u10? and how to install it
messi2050 said:
Hi
this is g630 cm11 which is working on g6 u10/u251 and y530
current bugs:
1)wifi
2)No sound in calls
3)camera
4)sensors
How to install:
1)Use twrp and wipe cache/dalvick/data/system/cust
2)install the rom.zip file
download:
https://mega.co.nz/#!kdAzhZqB!xQwRr4qsgYvh0BB7Zf76M9U0NZ5e1b_Wno0dcKVWAGA
Any help is appreciated to fix the current bugs.
All credits goes to ELYGOMEZ for the g630 tree and kernel
Sources: https://github.com/AscendG630-DEV
if you like my work and want to encourage me to continue make a donate at payza/google wallet for [email protected]
Click to expand...
Click to collapse
Hi I'm Efran, author of the kernel Soulfire for huawei Y530.
I intend to continue the proyect of CM11 with sources you leave, but kernel you use?
you did some modification to CM11 was dem caf-legacy?
ciubi93 said:
Here is fix for wifi. Is an post her on xda
working on CM11.
1.) First you install CM11[need to have clockworkmod(CWM)]
2.)After you installed and booted CM11 open the menu and open terminal.
3.)Then in terminal write first and press "↲":
Code:
su -
4.)After you got root permission in Terminal then write this line in Terminal and press "↲":
Code:
mount -o rw,remount /system
5.)After inputed that write this in terminal and press "↲":
Code:
cd /system/etc/firmware/wlan/prima
6.)And after that add this last line and press "↲":
Code:
ln -s WCNSS_hw_wlan_nv.bin WCNSS_qcom_wlan_nv.bin
After doing that wifi should be enabled..
Click to expand...
Click to collapse
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected identifier before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:5: error: expected '}' before '(' token
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected unqualified-id before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:57:9: error: expected ')' before numeric constant
In file included from hardware/qcom/display-caf-legacy/libqdutils/mdp_version.cpp:34:0:
hardware/qcom/display-caf-legacy/libqdutils/mdp_version.h:121:1: error: expected declaration before '}' token
make: *** [/home/efran/cm11/out/target/product/y530/obj/SHARED_LIBRARIES/libqdutils_intermediates/mdp_version.o] Error 1
make: *** Se espera a que terminen otras tareas....
??? Help?
This is probablt abendoned project? So bugs still here
I have a G6-L11 (4G version). I can install CM11 on my phone?
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
Please Help
qscesza said:
Hi
I need android version 5 or 6 or 7 for g630-u10
please give me a direct link for download it!
I search everywhere but i could'nt find anything...
Click to expand...
Click to collapse
hi, i don't think such rom exist..
messi2050 said:
hi, i don't think such rom exist..
Click to expand...
Click to collapse
Tnx
Even custom rom?
qscesza said:
Tnx
Even custom rom?
Click to expand...
Click to collapse
Yea
l
x
Hello guys,
I've sucessfully built the AOSP for my Z3 with this guide:
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
Now I've tried to test the ROM with the emulator command, but theres an error:
Code:
emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /run/media/vendette/FANTEC/android/out/target/product/leo/kernel-qemu
Any thoughts?
Vendette said:
Hello guys,
I've sucessfully built the AOSP for my Z3 with this guide:
http://developer.sonymobile.com/kno...aosp-marshmallow-for-unlocked-xperia-devices/
Now I've tried to test the ROM with the emulator command, but theres an error:
Code:
emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /run/media/vendette/FANTEC/android/out/target/product/leo/kernel-qemu
Any thoughts?
Click to expand...
Click to collapse
Hi, I am kind of stuck at the same place now. Have you tried to solve the issue?
Kernel Source of Nokia 1
(TA-1047/TA-1060/TA-1056/TA-1079/TA-1066)
LINK > https://github.com/DhirajSurvase/Kernel_Nokia_1_MT6737
Instructions >
clone the source code
go to kernel dir
run "bash build.sh" command
ur compiled kernel will be under out/arch/arm/*
Official release of Nokia 1 Kernel sources available at https://www.nokia.com/en_int/phones/opensource
Hi,
We tried the official kernel and built it. After flashing the kernel, phone boot and it asked for a password. We gave password "1234" and it reboots and went in recovery.
Its always rebooting in recovery. We flashed the original boot image. Behavior did not change.
Is there any other recovery image we can use and flash the original boot image and bring the phone to working condition?
Thank You!
Mayur
DhirajMS said:
Kernel Source of Nokia 1
(TA-1047/TA-1060/TA-1056/TA-1079/TA-1066)
LINK > https://github.com/DhirajSurvase/Kernel_Nokia_1_MT6737
Instructions >
clone the source code
go to kernel dir
run "bash build.sh" command
ur compiled kernel will be under out/arch/arm/*
Click to expand...
Click to collapse
Everyone, help me compile kernel from this source please. I can't do it, because i'm noobie for compile any sources.
ntnamkg said:
Everyone, help me compile kernel from this source please. I can't do it, because i'm noobie for compile any sources.
Click to expand...
Click to collapse
just clone it..
and hit "bash build.sh"
Thanks for respond. But, it is fail, below (some text):
make[1]: *** [scripts] Error 2
make[1]: Leaving directory `/home/namnt/Nokia1/Kernel_Nokia_1_MT6737-master/out'
make: *** [sub-make] Error 2
make: Leaving directory `/home/namnt/Nokia1/Kernel_Nokia_1_MT6737-master'
Click to expand...
Click to collapse
I try build on Ubuntu 14.04, 16.04 and Manjaro linux, all get this notice.
Ok
build.sh: line 35: make: command not found
build.sh: line 39: make: command not found
Click to expand...
Click to collapse
After run bash build get above notice. How to fix it? Thanks
ntnamkg said:
After run bash build get above notice. How to fix it? Thanks
Click to expand...
Click to collapse
apt-get install build-essential
would install make, gcc and other required tools.