Hey guys!
I'm trying to port AOSP (as a learning experience), and I've successfully run "make -j2"
But whenever I try to run "make otapackage -j2" I get:
Code:
make: *** No rule to make target `otapackage'. Stop.
Can anyone help me?
Thanks!
rohan32 said:
Hey guys!
I'm trying to port AOSP (as a learning experience), and I've successfully run "make -j2"
But whenever I try to run "make otapackage -j2" I get:
Code:
make: *** No rule to make target `otapackage'. Stop.
Can anyone help me?
Thanks!
Click to expand...
Click to collapse
make otapackage doesn't exist in AOSP iirc, when you make it, you're given yaffs img files on output.
Sent from my R800x using Tapatalk 2
I believe you should be able to look for that script in the Cyanogen Mod source, I think it's a python script typically under " device/yourDevice/release tools/" it something like that.
Sent from my SCH-R760 using Tapatalk 2
paxChristos said:
make otapackage doesn't exist in AOSP iirc, when you make it, you're given yaffs img files on output.
Sent from my R800x using Tapatalk 2
Click to expand...
Click to collapse
Yep thats what I was getting. I tried to flash them and combine the ramdisk with kernel to make a boot.img but it was not booting properly.
thewadegeek said:
I believe you should be able to look for that script in the Cyanogen Mod source, I think it's a python script typically under " device/yourDevice/release tools/" it something like that.
Sent from my SCH-R760 using Tapatalk 2
Click to expand...
Click to collapse
Okay cool I will check it out. Thanks!
Sent from my HTC One X using xda premium
By not booting can you even get a logcat? Or at least pull /proc/kmesg I think it was?
Nope I can't get a logcat, it wouldn't get past the splash screen. And I'm like 90%sure my kernel was just screwed up so that's probably why it wasn't booting.
Sent from my HTC One X using xda premium
If you can reboot without having to pull the battery /proc/kmesg should still be there, and that may provide some insight.
wpa-supplicant error while building AOSP for Huawei U8818
Hi paxChristos
I had done with Android ICS source compilation.It's working fine with emulator.
But when I start a build for real device Huawei Ascend G300 U8818.I get the following error.
make: *** No rule to make target `out/target/product/u8818/obj/STATIC_LIBRARIES/lib_driver_cmd_wext_intermediates/lib_driver_cmd_wext.a', needed by `out/target/product/u8818/obj/EXECUTABLES/wpa_supplicant_intermediates/LINKED/wpa_supplicant'. Stop.
Please help me I am googling for 15 days but no clue,guidance.
Can you guide where am I missing?
Thank You.
Recovery image in the OTA zip?
I noticed there is a recovery folder in the OTA zip file. I usually delete this before flashing? Is it okay to leave it or will it overwrite CWM recovery?
How do I remove it when building the otapackage?
Click to expand...
Click to collapse
Never mind I found a makefile patch to remove the recovery img from being included in the OTA zip. I got it working on AOSP ICS. I hope it still works for 4.1 Jellybean
Add ability to enable or disable recovery
Related
Sorry if this is a noobish question!
I'm currently working with the CyanogenMod 9 ICS source, and I'm looking at some files for Framework.apk (specifically frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/SettingsView.java) and I'd like to make a few changes, just to play around and learn. Now my question is, how would I go about adding this to my ROM? Would I have to run `. build/envsetup.sh && brunch otter` again (otter being for Kindle Fire), and have to take the update.zip file and flash it through recovery? If so, is there anything that I'd have to wipe for it to work properly (like /system)?
Thanks for the input!
Chiggins said:
Sorry if this is a noobish question!
I'm currently working with the CyanogenMod 9 ICS source, and I'm looking at some files for Framework.apk (specifically frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/SettingsView.java) and I'd like to make a few changes, just to play around and learn. Now my question is, how would I go about adding this to my ROM? Would I have to run `. build/envsetup.sh && brunch otter` again (otter being for Kindle Fire), and have to take the update.zip file and flash it through recovery? If so, is there anything that I'd have to wipe for it to work properly (like /system)?
Thanks for the input!
Click to expand...
Click to collapse
Make -j4 SystemUI then push it to your phone.
Sent from my SGH-I777 using xda premium
Sweet deal, thanks for that!
I am trying to build GB aosp from source on ubuntu for my phone samsung conquer 4G. I already have the source and in it there is a platform and in the text for it it says to put those files in the folders in the source than build. I am wondering if I would only replace files and not put in new ones? Or if I would even do this. If I shouldnt, how would I even port after its built and does anyone know what poison I should choose? Thanks a bunch
Any reason why GB? ICS or JB would be better wouldn't it? I'm not the best person to try to answer your question, but you will have to supply a little more info, I will help if I can.
onlychevys said:
Any reason why GB? ICS or JB would be better wouldn't it? I'm not the best person to try to answer your question, but you will have to supply a little more info, I will help if I can.
Click to expand...
Click to collapse
Thanks, i am building gb because my phone does not have any official roms like cm,aosp,etc. I am the only person with the device that is capable of building from source i have already built a kernel. Also i am doing gb because my phones version is 2.3.6 and it should be easier to port than ics or jb. If you need any more info i will be glad to give you it.
bump
itzdarockz said:
I am trying to build GB aosp from source on ubuntu for my phone samsung conquer 4G. I already have the source and in it there is a platform and in the text for it it says to put those files in the folders in the source than build. I am wondering if I would only replace files and not put in new ones? Or if I would even do this. If I shouldnt, how would I even port after its built and does anyone know what poison I should choose? Thanks a bunch
Click to expand...
Click to collapse
Could use some clarification
When you refer to the source are you talking aosp? Or your device source?
If your referring to the device source that goes in working/device/manufacturer/devicename/
Could you provide a screenshot of the device source? Wanna make sure it looks like a proper device tree
As for poison...you just add your device to the lunch menu and build it...create a file in your device tree called vendorsetup.sh (just right click and go to create new document and name it that) then open it with a text editor (gedit) and type this and save it :
Code:
add_lunch_combo full_devicename-eng
(replace "devicename" with your device
Then in the root of your working folder type
Code:
. build/envsetup.sh
lunch
Choose your device then type
Code:
make otapackage
or to fully utilize your CPU
Code:
make -j# otapackage
replacing "#" with the number of CPU cores your computer has plus 1 or 2...so for dual core I usually do male -j4 otapackage
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Could use some clarification
When you refer to the source are you talking aosp? Or your device source?
If your referring to the device source that goes in working/device/manufacturer/devicename/
Could you provide a screenshot of the device source? Wanna make sure it looks like a proper device tree
As for poison...you just add your device to the lunch menu and build it...create a file in your device tree called vendorsetup.sh (just right click and go to create new document and name it that) then open it with a text editor (gedit) and type this and save it :
Code:
add_lunch_combo full_devicename-eng
(replace "devicename" with your device
Then in the root of your working folder type
Code:
. build/envsetup.sh
lunch
Choose your device then type
Code:
make otapackage
or to fully utilize your CPU
Code:
make -j# otapackage
replacing "#" with the number of CPU cores your computer has plus 1 or 2...so for dual core I usually do male -j4 otapackage
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
When i mean the source I meant my phones. It has two zips, kernel and platform. It has txt files on how to build the kernel and the update. And thanks man. The screen is attatched. The folders are build, extension, external, libcore, and vendor.
i was afraid of that...doesnt look like a device tree...and unfortunatly i have no expiernece creating a device tree from scratch/from manufacturer source...
anyways heres an example of two device tree i use...
mg2195 said:
i was afraid of that...doesnt look like a device tree...and unfortunatly i have no expiernece creating a device tree from scratch/from manufacturer source...
anyways heres an example of two device tree i use...
Click to expand...
Click to collapse
Thats why it says in a txt to replace files in the aosp source with the ones in the folder.
itzdarockz said:
Thats why it says in a txt to replace files in the aosp source with the ones in the folder.
Click to expand...
Click to collapse
Well do what it says then...it has .mk files and looks like that when placed in aosp?
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Well do what it says then...it has .mk files and looks like that when placed in aosp?
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Actually I think we do have a non manufacturer source does this look good? https://github.com/utkanos/android_device_samsung_SPHD600
itzdarockz said:
Actually I think we do have a non manufacturer source does this look good? https://github.com/utkanos/android_device_samsung_SPHD600
Click to expand...
Click to collapse
Yeah...looks small...but that's a device tree
Sent from my HTC PH39100 using Tapatalk 2
mg2195 said:
Yeah...looks small...but that's a device tree
Sent from my HTC PH39100 using Tapatalk 2
Click to expand...
Click to collapse
Doesn't building, I made the tree like you said with these files no luck.. I went to the Crespo 4gs and it has two folders.. But mine has 1. Also do u think I should port over some of the files i dont have from the crespo 4gs folder
itzdarockz said:
Doesn't building, I made the tree like you said with these files no luck.. I went to the Crespo 4gs and it has two folders.. But mine has 1. Also do u think I should port over some of the files i dont have from the crespo 4gs folder
Click to expand...
Click to collapse
Wouldnt hurt to try
Sent from my HTC PH39100 using Tapatalk 2
Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:
cheqolada said:
Hello !
In Tutorial about compile AOSP GB i see one think. When I write in terminal lunch i have list devices which i can compile. So I am in trouble becouse i don't know how can i add My device. I Download Source GB to my device but I have external folder, bionic and probably hardware (and kernel) So My Question is - How can I Add My phone to compile list, to compile flashable zip work?:fingers-crossed:
Click to expand...
Click to collapse
What is your device?
Sent from my GT-I9100 using xda app-developers app
xSkArx said:
What is your device?
Sent from my GT-I9100 using xda app-developers app
Click to expand...
Click to collapse
Alcatel Ot - 908 / T-Mobile Move.
Im trying using latest cm10.1 source to compile the latest cm10.1 for my old phone...i use this tutorial http://forum.xda-developers.com/showthread.php?t=1971645 and an old dev device tree that haves some bugs but at least it compiled for him properly...
First of all when i type
Code:
$ gedit ~/paranoid/.repo/local_manifest.xml
im getting after a while an error with term.apk and it stops..i can't do anything so i keep up... and i type
Code:
$ brunch u8800pro(my device)
after 10-15 minutes im getting this
Code:
make: * [/home/pikachukaki/cm10.1/out/target/product/u8800pro/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Error 1
always this error!!
and it stops completly...i sync the repo again...nothing....i delete the out folder and try again...nothing...im not very experianced with developing..this is my 1st test complety rom compile...anyone can help thanks!!
fatal: remove-project element specifies non-existent project: CyanogenMod/hardware/qcom/display
at least to this??anyone?
u might have a bigger error then that
mostly it says it above
post 8/15 lines of above the error her also
Sent from my S500 using xda app-developers app
SpaceCaker said:
u might have a bigger error then that
mostly it says it above
post 8/15 lines of above the error her also
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
At least an answer...i manage to pass the 2nd post error by fixing local_manifest.xml
but im still getting the error 1 now...in another cpp..i repo sync again...i will post entire log after getting the error again!!!
Whats the difference between git://github.com/CyanogenMod/android.git -b cm-10.1 and git://github.com/CyanogenMod/android.git -b jellybean???
pikachukaki said:
Whats the difference between git://github.com/CyanogenMod/android.git -b cm-10.1 and git://github.com/CyanogenMod/android.git -b jellybean???
Click to expand...
Click to collapse
jellybean is JB 4.1.2 and cm10.1 is cm10.1 4.2.2
Sent from my S500 using xda app-developers app
SpaceCaker said:
jellybean is JB 4.1.2 and cm10.1 is cm10.1 4.2.2
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Thanks i found another tutorial that uses first this command
lunch cm_devicename-userdebug
and then
make otapackage
That seems to make it through my errors...i dont know the difference between this and brunch...but it seems it work....
As you can think i dont have enought knowlage over coding and programming...i study only about the hardware...i wanna ask something if you don't mind...where the compile procedure find the kernel (boot.img) i dont see the kernel source inside my device tree...only a raw file called kernel!!!
pikachukaki said:
Thanks i found another tutorial that uses first this command
lunch cm_devicename-userdebug
and then
make otapackage
That seems to make it through my errors...i dont know the difference between this and brunch...but it seems it work....
As you can think i dont have enought knowlage over coding and programming...i study only about the hardware...i wanna ask something if you don't mind...where the compile procedure find the kernel (boot.img) i dont see the kernel source inside my device tree...only a raw file called kernel!!!
Click to expand...
Click to collapse
if u do this
. build/envsetup.sh
then it loads all devices
and then do
lunch
then u can see a list of wich devices are available
type the numbe of ur device and it selects it
thwn do make -j6 bacon
thata how i do build
as for kernel
it can be a prebuilt kernel
wich will be using some parts of system/core
Sent from my S500 using xda app-developers app
SpaceCaker said:
if u do this
. build/envsetup.sh
then it loads all devices
and then do
lunch
then u can see a list of wich devices are available
type the numbe of ur device and it selects it
thwn do make -j6 bacon
thata how i do build
as for kernel
it can be a prebuilt kernel
wich will be using some parts of system/core
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
The point is that it compiling all this time...its slow as hell too many cpp's but what can you do...
About the kernel so maybe the rom isn't bootable after this...maybe i have to replace it with a working 4.2.2 boot.img after this!!!
pikachukaki said:
The point is that it compiling all this time...its slow as hell too many cpp's but what can you do...
About the kernel so maybe the rom isn't bootable after this...maybe i have to replace it with a working 4.2.2 boot.img after this!!!
Click to expand...
Click to collapse
jup
also it can take sometimes up to 24 hour to a complete build
i so happen to use VMware soi can pause stop mine always
Sent from my S500 using xda app-developers app
SpaceCaker said:
jup
also it can take sometimes up to 24 hour to a complete build
i so happen to use VMware soi can pause stop mine always
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
No vmware was extremly slow to do other things too so i install ubuntu on a 2nd hard drive...24hours...omg!!
for nightlies i have to do the same again??
Code:
. build/envsetup.sh
lunch cm_devicename-userdebug
make otapackage
pikachukaki said:
No vmware was extremly slow to do other things too so i install ubuntu on a 2nd hard drive...24hours...omg!!
for nightlies i have to do the same again??
Code:
. build/envsetup.sh
lunch cm_devicename-userdebug
make otapackage
Click to expand...
Click to collapse
yeah sure
my total compile time is 8 hours
i use linux mint + gnome classic no effects
also the time depends on how much ram and cpu u have + if u have installed ccache
Sent from my S500 using xda app-developers app
SpaceCaker said:
yeah sure
my total compile time is 8 hours
i use linux mint + gnome classic no effects
also the time depends on how much ram and cpu u have + if u have installed ccache
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Nop i don't run the ccache command...phenom x4 with 4GB ram...its ok..my point was to learn now i found a proper device tree...its ok if it takes time..and also to help the community of my olderst phone that have no dev support at all!!!
This project involves the GT-I8730, not the SGH-I437 or the SGH-I437P.
Disclaimer
Code:
#include
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you. Hard. A lot.
*/
General Info
CyanogenMod is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device.
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community.
CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced.
Click to expand...
Click to collapse
Developers/Contributors
• @kotzir (TWRP, cm-11.0, cm-12.x, cm-13.0)
• @aureljared (General Help)
• @szezso (cm-10.1, cm-11.0)
• @KINGbabasula (cm-10.1, 10.2) (General help)
• @jjchico (CWM/CM) (General help)
• @arco68 (Kernel Porting)
GitHub repos
- @kotzir's GitHub
- @aureljared's GitHub
- @KINGbabasula's GitHub.
- @jjchico's GitHub
- @szezso's GitHub
The CyanogenMod team would like to thank everyone involved with this project!
The Express does not follow standard kernel and ramdisk addresses.
To decompile the boot image:
Code:
unmkbootimg boot.img > info.txt
mkdir ramdisk
mv initramfs.cpio.gz ramdisk/initramfs.cpio.gz
cd ramdisk
gunzip -c initramfs.cpio.gz | cpio -i
To recompile, make sure you're still in the ramdisk folder, and do these to make the ramdisk:
Code:
find . | cpio -o -H newc | gzip > initramfs.cpio.gz
mv initramfs.cpio.gz ../initramfs.cpio.gz
cd ../
Now look at the info.txt you created earlier. At the bottom of 'To recompile this image...', there will be a mkbootimg command. Copy and paste that to your terminal, but before you hit Enter, add this just before '--base 0x80200000':
Code:
--ramdisk_offset 0x02000000
You may want to take a backup of the original boot image.
Reserved 2
Reserved 3
Sent from my GT-I8730 using Tapatalk
So is this rom stable and everything? cause I'm pretty noob at all of this and dont want to mess things up
EDIT: Link is dead :/
*Bump
Is it possible for someone to upload it to another site? I must try this out lol :d
Noisecake said:
*Bump
Is it possible for someone to upload it to another site? I must try this out lol :d
Click to expand...
Click to collapse
I've tried a couple on my phone but they won't upload, we'll have to wait for goo. im to fix there site.
Sent from my GT-I8730 using XDA Premium 4 mobile app
You are to fix the site?
You have an idea of when it will be fixed?
Or maybe somebody else can provide a temp upload? The site shows that the file has been downloaded over 200 times so someone must have it right? Xd
Sent from my GT-I8730 using xda premium
Yes i seen that to, it's either the download quantity is wrong or it maybe down in certain country's, I'm in Australia and i can't get it to download.
Sent from my GT-I8730 using XDA Premium 4 mobile app
Noisecake said:
You are to fix the site?
You have an idea of when it will be fixed?
Or maybe somebody else can provide a temp upload? The site shows that the file has been downloaded over 200 times so someone must have it right? Xd
Sent from my GT-I8730 using xda premium
Click to expand...
Click to collapse
Noisecake said:
So is this rom stable and everything? cause I'm pretty noob at all of this and dont want to mess things up
EDIT: Link is dead :/
Click to expand...
Click to collapse
Noisecake said:
*Bump
Is it possible for someone to upload it to another site? I must try this out lol :d
Click to expand...
Click to collapse
barclac said:
I've tried a couple on my phone but they won't upload, we'll have to wait for goo. im to fix there site.
Sent from my GT-I8730 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Please read top of original post.
Got Goo to download. When I install CM 10.2 it sits on splash screen for about 20 seconds and then goes dark, double buzz and splash screen again. Not managed to change the boot image as yet. Not sure I can find time for that until Thursday.
Got my PC to boot to a 64 bit Ubuntu 13.10. Thanks to your tutorial @aureljared am having a go at building. What are you using to pack and unpack in Linux when you replace the boot image? Windows usually messes up.
Bazzan
bazzan said:
Got Goo to download. When I install CM 10.2 it sits on splash screen for about 20 seconds and then goes dark, double buzz and splash screen again. Not managed to change the boot image as yet. Not sure I can find time for that until Thursday.
Got my PC to boot to a 64 bit Ubuntu 13.10. Thanks to your tutorial @aureljared am having a go at building. What are you using to pack and unpack in Linux when you replace the boot image? Windows usually messes up.
Bazzan
Click to expand...
Click to collapse
I modified mkbootimg and unmkbootimg.
Download the tools by doing these in a terminal (I'm going to refer to my folder as tools):
Code:
[email protected]:~$ mkdir tools
[email protected]:~$ cd tools
[email protected]:~/tools$ git clone https://github.com/aureljared/mkboot_and_mkrecovery.git
[email protected]:~/tools$ cd mkboot_and_mkrecovery
[email protected]:~/tools/mkboot_and_mkrecovery$ ./copy.sh
The script copies the tools into your /usr/bin folder, but will ask for root permissions nonetheless.
Take note that you will be typing mkboot into the terminal, not mkbootimg.
Any progress, guys? =>
You know even though i wouldn't have a clue what I'm doing, i gave it another go, and even stuffed things up more than i did before, so I'm leaving it up to you guys, but at 64 I'm not afraid to give it a go.
Sent from my GT-I8730 using xda app-developers app
So guys is CM 10.2 working on the Galaxy Express ?
Hiro Nakamura said:
So guys is CM 10.2 working on the Galaxy Express ?
Click to expand...
Click to collapse
No. Problem with kernel.
Sent from my GT-I8730 using Tapatalk
aureljared said:
No. Problem with kernel.
Sent from my GT-I8730 using Tapatalk
Click to expand...
Click to collapse
Explain the problem, maybe we can make other developers understand and help, that we know from other phones and kernels.
Been doing a bit of experimenting. Flashed @KINGbabasula's rom and as reported stuck on the samsung splash screen, buzzes twice and reboots. Tried flashing a s4 mini kernel over it . Long shot but no joy.logic was as cwm came from the s4 mini and they are close cousins so might work.
Built my own cm10.2 using the tutorial provided by @aureljared using the KINGbabasula Git repository. First. Installed using the older cwm. Same result as KINGbabasula's rom. When i updated the cwm and had another go it gave me the same errors we saw on page 26 with assert failed. At least helps me spot errors in my build. Don't get the error with KINGbababasula's build.
Bazzan
Svennen said:
Explain the problem, maybe we can make other developers understand and help, that we know from other phones and kernels.
Click to expand...
Click to collapse
Okay.
CyanogenMod automatically packages boot.img with its own kernel, right? Well, that kernel doesn't boot on this phone (I don't know why).
So far we have tried numerous builds, even got to the point of using the stock kernel, all to no avail. The events below simply occur when we try booting CM:
1) phone stays at phone logo, goes black, vibrates twice, and reboots only to repeat the process; OR
2) phone stays at phone logo, then screen slowly maxes out brightness making screen extremely hot (has to press and hold power to reboot)
Also, since our CWM is from the S4 Mini (which has extremely close specs to ours) repackaged with stock kernel and correct addresses, @bazzan here tried repackaging the boot.img with a kernel from a cm-10.2 build for serranoltexx (this is what you did, right?), also to no avail.
So right now we are stuck on rooted stock 4.1.2 with CWM 6.0.3.7.
Take note: mkbootimg does not use the same addresses as the stock boot.img.
* load addresses:
kernel: 0x80208000
ramdisk: 0x82200000
tags: 0x80200100
* cmdline = console=null androidboot.hardware=qcom user_debug=31
Click to expand...
Click to collapse
Any developer aid would be greatly appreciated.
Sent from my GT-I8730 using Tapatalk
bazzan said:
Been doing a bit of experimenting. Flashed @KINGbabasula's rom and as reported stuck on the samsung splash screen, buzzes twice and reboots. Tried flashing a s4 mini kernel over it . Long shot but no joy.logic was as cwm came from the s4 mini and they are close cousins so might work.
Built my own cm10.2 using the tutorial provided by @aureljared using the KINGbabasula Git repository. First. Installed using the older cwm. Same result as KINGbabasula's rom. When i updated the cwm and had another go it gave me the same errors we saw on page 26 with assert failed. At least helps me spot errors in my build. Don't get the error with KINGbababasula's build.
Bazzan
Click to expand...
Click to collapse
Hi, i get this error too...
Can you update your rom backup?
thanks:cyclops: