Problem AOSP compiling - HTC Inspire 4G

I get this error when compiling AOSP using device tree from CM7. Please any help is appreciated.
[email protected] ~/WORKING_DIRECTORY $ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. htc_ace-userdebug
5. htc_ace-eng
6. full_passion-userdebug
7. full_crespo4g-userdebug
8. full_crespo-userdebug
Which would you like? [full-eng] 5
build/core/product_config.mk:194: *** _nic.PRODUCTS.[[device/htc/ace/ace.mk]]: "device/htc/msm7x30-common/msm7x30.mk" does not exist. Stop.
** Don't have a product spec for: 'htc_ace'
** Do you have the right repo manifest?

Related

compiling Linux kernel for Samsung Galaxy 5 : compiled zImage doesn't work

I am trying to compile Linux kernel for my Samsung Galaxy 5 with full Netfilter support:
The phone specifications are:
Code:
Model number : GT-I5503
Firmware version : 2.1-update1
Baseband version : I5503DDJG5
Kernel version : 2.6.29-perf [email protected] #5
Build number : ERE27
I downloaded **GT-I5500_OpenSource.zip** and **GT-I5503T_OpenSource.zip** from opensource.samsung.com as they contain the required kernel trees for the samsung phone, and did the following steps:
I modified the .config file for enabling full netfilter support and then for **GT-I5500_OpenSource.zip**
Code:
[email protected]:~/GT-I5500_OpenSource_Kernel/kernel# ./make_kernel.sh
[email protected]:~/GT-I5500_OpenSource_Kernel/kernel# ARCH=arm CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi- make
Here i chose the toolchain from android source.
Now i got the required output, i.e.
Code:
CHK include/linux/compile.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 30 modules
[email protected]:~/GT-I5500_OpenSource_Kernel/kernel#
I copied this zImage in the phones sdcard, and tried to flash the kernel using **SGS Kernel Flasher**. The phone rebooted, but i could still see the old kernel version in the settings... And there is no netfilter(iptables) functionality.
I followed the same steps with **GT-I5503T_OpenSource.zip**
Code:
[email protected]:~/GT-I5503T_OpenSource_Kernel/kernel$ ./make_kernel.sh
[email protected]:~/GT-I5503T_OpenSource_Kernel/kernel# find . -type f -name ‘*’ -exec dos2unix {} \;
[email protected]:~/GT-I5503T_OpenSource_Kernel/kernel# make ARCH=arm CROSS_COMPILE=~/myandroid/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-
and finally
Code:
CHK include/linux/compile.h
Kernel: arch/arm/boot/Image is ready
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 30 modules
[email protected]:~/GT-I5503T_OpenSource_Kernel/kernel#
But this kernel also doesn't work in the real device(Samsung Galaxy 5).
The third time, I copied the .config file from GT-I5503T_OpenSource.zip into the common folder, here the common folder has the kernel from
Code:
$git clone git://android.git.kernel.org/kernel/common
and did the same steps, I got zImage but it failed to work in the phone.
Please someone tell, what exactly am i doing wrong or do i need to go for kernel tree from some other sources. I did kernel compilation process for almost 5-7 times, but failed.
I tried to flash kernel from windows with fastboot, but that also didn't work...
please someone help... Thank you!!!

[Completed] help build android source for my device

hello , i have a samsung tablet GT-P1000 "A3LGTP1000",found that its not original,it is a korean copy,anyway I have already downloaded "android-4.1.2_r2.1" and i had a successfuly build for samsung crespo just for testing the build.
Now i have downloaded the kernel of the tablet from "opensource samsung site" and had successfuly build it,now i have a "zimage" file at "GT-P1000/GT-P1000_Kernel/Kernel/arch/arm/boot/".
The question is i need to build the android source for this device.
how to add it to the lunch menu and build it?
Thank you in advance,this is my first post on Xda,hope i can get help from you all,best regards.
joek85 said:
hello , i have a samsung tablet GT-P1000 "A3LGTP1000",found that its not original,it is a korean copy,anyway I have already downloaded "android-4.1.2_r2.1" and i had a successfuly build for samsung crespo just for testing the build.
Now i have downloaded the kernel of the tablet from "opensource samsung site" and had successfuly build it,now i have a "zimage" file at "GT-P1000/GT-P1000_Kernel/Kernel/arch/arm/boot/".
The question is i need to build the android source for this device.
how to add it to the lunch menu and build it?
Thank you in advance,this is my first post on Xda,hope i can get help from you all,best regards.
Click to expand...
Click to collapse
Anybody?
now i have the binaries "lib,framworks,vendor,build.prop......."
now what?
help please.
joek85 said:
hello , i have a samsung tablet GT-P1000 "A3LGTP1000",found that its not original,it is a korean copy,anyway I have already downloaded "android-4.1.2_r2.1" and i had a successfuly build for samsung crespo just for testing the build.
Now i have downloaded the kernel of the tablet from "opensource samsung site" and had successfuly build it,now i have a "zimage" file at "GT-P1000/GT-P1000_Kernel/Kernel/arch/arm/boot/".
The question is i need to build the android source for this device.
how to add it to the lunch menu and build it?
Thank you in advance,this is my first post on Xda,hope i can get help from you all,best regards.
Click to expand...
Click to collapse
Hi and thank you for using XDA Assist
Try to head over here
It contains all the necessary things you should need to know.
Good luck!
nilac said:
Hi and thank you for using XDA Assist
Try to head over here
It contains all the necessary things you should need to know.
Good luck!
Click to expand...
Click to collapse
Thank you sir.Great guide really and very helpful,but this guide is for CM,i am downloading cm-12.1 nut you know it takes long time since my connection is pretty slow.In the meanwhile i am trying to build my existing AOSP wish i've already downloaded.
let's forget about this tablet.
I also downloaded the GT-I9300 files from opensource samsung site "GT-I9300_JB_Opensource.zip" and here is what it includes :
2 folders : Kernel , Platform.
2 files : README_Kernel.txt , README_Platform.txt.
The Platform folder contains :build,external,framework,vendor and build.sh.
Inside README_Kernel there is :
1. How to Build
- get Toolchain
From android git server , codesourcery and etc ..
- arm-eabi-4.4.3
- edit Makefile
edit "CROSS_COMPILE" to right toolchain path(You downloaded).
EX) CROSS_COMPILE= $(android platform directory you download)/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
Ex) CROSS_COMPILE=/usr/local/toolchain/arm-eabi-4.4.3/bin/arm-eabi- // check the location of toolchain
$ make arch=arm m0_00_defconfig
$ make
2. Output files
- Kernel : arch/arm/boot/zImage
- module : drivers/*/*.ko
3. How to Clean
$ make clean
################################################################################
Inside README_Platform :
How to build Mobule for Platform
- It is only for modules are needed to using Android build system.
- Please check its own install information under its folder for other module.
[Step to build]
1. Get android open source.
: version info - Android 4.3
( Download site : http://source.android.com )
2. Copy module that you want to build - to original android open source
If same module exist in android open source, you should replace it. (no overwrite)
# It is possible to build all modules at once.
3. You should add module name to 'PRODUCT_PACKAGES' in 'build\target\product\core.mk' as following case.
case 1) e2fsprog : should add 'e2fsck' to PRODUCT_PACKAGES
case 2) libexifa : should add 'libexifa' to PRODUCT_PACKAGES
case 3) libjpega : should add 'libjpega' to PRODUCT_PACKAGES
case 4) KeyUtils : should add 'libkeyutils' to PRODUCT_PACKAGES
ex.) [build\target\product\core.mk] - add all module name for case 1 ~ 4 at once
PRODUCT_PACKAGES += \
e2fsck \
libexifa \
libjpega \
libkeyutils
4. excute build command
./build.sh user
Inside build.sh :
#!/bin/bash
################################################################################
#
# Build Script
#
# Copyright Samsung Electronics(C), 2010
#
################################################################################
################################################################################
# Useage
# : ./build.sh [mod]
#
# Example
# : ./build.sh eng
################################################################################
if [ "" = "$1" ]
then
echo --------------------------------------------------------------------------------
echo - Useage
echo - : ./build.sh [mod]
echo -
echo - Example
echo - : ./build.sh eng
echo --------------------------------------------------------------------------------
exit
fi
export CPU_NUMBER=16
export TARGET_BUILD_VARIANT=$1
################################################################################
# Common Path
################################################################################
TOP_DIR=$PWD
# set root path
export PLATFORMPATH="$TOP_DIR"
cd $PLATFORMPATH
make update-api
make -j$CPU_NUMBER PRODUCT-generic-$TARGET_BUILD_VARIANT
So i ignored build.sh and cd my jellybean source and did make -j8 PRODUCT-generic-eng.
it built sucessfully , now i have inside out/target/product/generic/ system.img and ramdisk.img and userdata.img.
But here is the question : Why Samsung does build it this way?why does not do it the normal way like CM does?
As i know that the generic build is for emulator right? so why samsung build a generic build?
Now after i have those imgs and the kernel Zimage , am i ready to go?am i on the right track?
If so ,how to flash the device?
I am sorry for bothering , thank you for your help.

[Q] Build error building Chroma ROM

I'm working on building Chroma ROM for the Moto X Pure and have gotten to an error that looks to be too broad to get past.
Code:
[email protected]:~/android/chroma-clark$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_deb-userdebug 6. chroma_hammerhead-userdebug
2. mini_emulator_arm64-userdebug 7. chroma_mako-userdebug
3. m_e_arm-userdebug 8. chroma_shamu-user
4. chroma_angler-userdebug 9. chroma_clark-userdebug
5. chroma_bullhead-userdebug
Which would you like? [aosp_arm-eng] 9
make: *** build/target/board/generic: Is a directory. Stop.
** Don't have a product spec for: 'chroma_clark'
** Do you have the right repo manifest?
[email protected]:~/android/chroma-clark$
I've made several modifications to the source to get to this point. If nobody can suggest without seeing my modded repos, let me know.
So... any ideas?
Thanks!
-B
bradym512 said:
I'm working on building Chroma ROM for the Moto X Pure and have gotten to an error that looks to be too broad to get past.
Code:
[email protected]:~/android/chroma-clark$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_deb-userdebug 6. chroma_hammerhead-userdebug
2. mini_emulator_arm64-userdebug 7. chroma_mako-userdebug
3. m_e_arm-userdebug 8. chroma_shamu-user
4. chroma_angler-userdebug 9. chroma_clark-userdebug
5. chroma_bullhead-userdebug
Which would you like? [aosp_arm-eng] 9
make: *** build/target/board/generic: Is a directory. Stop.
** Don't have a product spec for: 'chroma_clark'
** Do you have the right repo manifest?
[email protected]:~/android/chroma-clark$
I've made several modifications to the source to get to this point. If nobody can suggest without seeing my modded repos, let me know.
So... any ideas?
Thanks!
-B
Click to expand...
Click to collapse
It's too late to reply, but replying so that it will help the people who are redirected here by Mr. Google.
I was getting similar error on Nitrogen OS for Taimen, and it is solved by adding following in the make file:
PRODUCT_DEVICE := taimen
Click to expand...
Click to collapse
Nitin

Can not locate config file for product "full_BLU_LIFE_ONE-eng". Stop.

So I have been at my wits end the last couple days trying to figure out exactly what's going on. I have a BLU Life One 2015, (X011Q) which is unsupported on basically every custom ROM/recovery/whatever. There is no repo for it on github, (except my own, which I'm having trouble with, and is the point of this post) no released device tree (if I'm using the right word), the only source code released for it is for the kernel on Android 4.4.4.
This far, I've extracted the required files from the boot.img (I also have the recovery.img and build.prop) using a guide I found on XDA University to build CWM out of the cyanogenmod source code. (I can't post the link to this guide, unfortunately, because I'm too new a user)
Everything in that tutorial goes fine (though it might be worth noting i have to use obbtool instead of otatools) until I get to the point where I have to run "lunch full_’device_name-eng" (For me, this is: lunch full_BLU_LIFE_ONE-eng). When I do, I run into this:
Code:
build/core/product_config.mk:245: *** Can not locate config makefile for product "full_BLU_LIFE_ONE". Stop.
Device BLU_LIFE_ONE not found. Attempting to retrieve device repository from CyanogenMod Github (http //github.com/CyanogenMod).
Repository for BLU_LIFE_ONE not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifests/roomservice.xml.
build/core/product_config.mk:245: *** Can not locate config makefile for product "full_BLU_LIFE_ONE". Stop.
build/core/product_config.mk:245: *** Can not locate config makefile for product "full_BLU_LIFE_ONE". Stop.
** Don't have a product spec for: 'full_BLU_LIFE_ONE'
** Do you have the right repo manifest?
In case this is helpful:
From build.prop
Code:
ro.product.brand=BLU
ro.product.device=BLU_LIFE_ONE
Files that were extracted with mkvendor.sh:
Code:
AndroidBoard.mk
AndroidProducts.mk
BoardConfig.mk
cm.mk
device_BLU_LIFE_ONE.mk
kernel
recovery.fstab
system.prop
My main thought is that I'm lacking a device tree, but after searching for others, I wonder what else would be in one, and if the files I've got don't constitute some part of the device tree.
TL;DR
Do I need to create a device tree myself for a device that has no support yet whatsoever for any kind of custom ROM/Recovery? And if so, how?
Any and all help is greatly appreciated.

Help!! error in selecting lunch omni_device

hi guys and good day everyone please i ask you help how to solve this error, im building twrp for my phone oppo a71 cph1717 everything is good from syncing to . build/envsetup.sh
and when i enter lunch i got this error
[email protected]:~/twrp$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_arm64-eng
3. aosp_mips-eng
4. aosp_mips64-eng
5. aosp_x86-eng
6. aosp_x86_64-eng
7. omni_CPH1717-user
8. omni_CPH1717-userdebug
9. omni_CPH1717-eng
Which would you like? [aosp_arm-eng] 7
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/Cph1717/omni_CPH1717.mk]]: "device/oppo/CPH1717/device.mk" does not exist. Stop.
File "/home/osboxes/twrp/build/tools/roomservice.py", line 109
except IOError, ES.ParseError:
^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
build/core/product_config.mk:239: *** _nic.PRODUCTS.[[device/Cph1717/omni_CPH1717.mk]]: "device/oppo/CPH1717/device.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_CPH1717'
** Do you have the right repo manifest?
[email protected]:~/twrp$
its the same error when i pick 8 and 9 please help guys im using
Ubuntu 22.10 Kinetic Kudu please help guys any answer will be appreciated
Wrong place. Should have get posted here:
Android Q&A, Help & Troubleshooting
This forum is for all of your questions about Android Development and Hacking. If you need help troubleshooting a problem, please be as specific as possible by describing your software configuration, including the ROM, kernel, and any modifications you've done.
forum.xda-developers.com

Categories

Resources