I9100 CM9 Make Flashable Zip - Android

Well i have compiled CM9 for the first time
Following the Teamhacksung instructions for the galaxys2
I run ./build.sh galaxys2
it finishes successfully, I'm just wondering how do i make an installable zip file like the CM9 nightly's
Any help is greatly appreciated
[Terminal output]
Package KERNELUPDATE: out/target/product/galaxys2/kernel-cm-9-20120714-galaxys2-signed.zip
Copying boot.img...
Copying kernel modules...
Copying update-binary...
Copying updater-script...
Zipping package...
Signing package...
Package complete: out/target/product/galaxys2/kernel-cm-9-20120714-galaxys2-signed.zip
a281a154f77be4becb336823dc42b9b5 kernel-cm-9-20120714-galaxys2-signed.zip
Elapsed: 3 min(s) 24 sec(s)

~Karl~ said:
Well i have compiled CM9 for the first time
Following the Teamhacksung instructions for the galaxys2
I run ./build.sh galaxys2
it finishes successfully, I'm just wondering how do i make an installable zip file like the CM9 nightly's
Any help is greatly appreciated
[Terminal output]
Package KERNELUPDATE: out/target/product/galaxys2/kernel-cm-9-20120714-galaxys2-signed.zip
Copying boot.img...
Copying kernel modules...
Copying update-binary...
Copying updater-script...
Zipping package...
Signing package...
Package complete: out/target/product/galaxys2/kernel-cm-9-20120714-galaxys2-signed.zip
a281a154f77be4becb336823dc42b9b5 kernel-cm-9-20120714-galaxys2-signed.zip
Elapsed: 3 min(s) 24 sec(s)
Click to expand...
Click to collapse
Instead of make -j#, type make -j# otapackage

Related

Error kitchen

help me, in dsixda I have an error when making update.zip -
scripts / build_rom: line 363: cd: META-INF/com/google/android: no such file or directory
Error: update zip not created
I step after creating the "aroma", anyone know how I can fix this?
if I want install it on the CWM me says installation Aborted.

[Q] Error 1 when building CM11 for Xperia U

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] Error While Downloading CM12 Source

Hey Guys i am downloading CM12 Source ..Everything is fetched..I just need to sync when i start syncing i get an error .
Code:
error: in `sync`: [Errno 2] No such file or directory: u'/home/humaid/cm12/cts/.git/HEAD'
error: manifest missing or unreadable -- please run init
I have tried many time but i am still stuck .I am running Ubuntu 14 directly on my pc
KIndly help
DONE
Deleated the file from directory and retried and it worked!

Error: Invalid OTA Package, missing scatter

I am trying to create a custom update.zip from the source code of an android ROM. Because I don't know any better way of doing it, I created a bash script to build the update.zip.
The file structure is:
META-INF/com/google/android/updater-script
META-INF/com/google/android/update-binary
META-INF/MANIFEST.MF
META-INF/CERT.SF
META-INF/CERT.RSA
The MANIFEST.MF, CERT.SF and CERT.RSA are copied from another android ROM, since I modified the recovery partition to disable signature verification.
Is there some other part that I'm missing?
PS: I also searched the source code of the recovery partition for "Invalid OTA package" and found nothing.
This is now resolved. OTA updates can be created using "make dist", as described in https://source.android.com/devices/tech/ota/tools.html.

Building CM11, no .zip in $OUT?

Just what it says. Building CM11 for unsupported device, everything appears to go fine BUT after BRUNCH no .zip file in $OUT directory.

Categories

Resources