[Tutorial] Build CM10.1 / CM10 for i9001 - Galaxy S Plus I9001 Android Development

I thought that this would get the development of JB for our device a bit faster. I am going to be explaining for Ubuntu 12.04 and up.
If you get any errors use pastebin and link it here. Good luck
Requirements
64bit Ubuntu
You will need 25GB (or more) free to complete a single build, and up to 80GB (or more) for a full set of builds.
JDK 6
Code:
sudo apt-get install openjdk-6-jdk
Python 2.4--2.7
Code:
sudo apt-get install python
Git 1.7 or newer
Code:
sudo apt-get install git-core
Installing Android SDK
Download the SDK here: http://developer.android.com/sdk/index.html
Extract the SDK and place it in your home directory.
I renamed my SDK to android-sdk to make it easier to navigate to.
Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.
Add these lines at the bottom of the file(Change path according to your SDK dir):
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Find your .profile file and add this at the bottom of the file:
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
Check for updates by entering this in terminal:
Code:
android
Install required packages(12.04)
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Configure your USB
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
Inside of the blank text file insert :
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Save the file and enter this into the terminal :
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Install repo
Code:
mkdir -p ~/bin
mkdir -p ~/android-sdk
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Initialize the repo(use "-b jellybean" for CM10)
Code:
mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
When asked for, enter your real name and email.
Sync your repo
Enter this into terminal. This will take a while according to your connection.
Code:
repo sync -j16
NOTE: According to your connection change the -j16. I use -j16 with a 100Mbit connection. Drop to -j8 if you have 10Mbit connection or even less if you have a slower connection or you will get connection errors.
Click to expand...
Click to collapse
Add i9001 to the device list
Change your directory to where you will clone the device tree:
Code:
cd WORKING_DIRECTORY/device
mkdir samsung
cd samsung
Clone the device tree from remote to local (Change git to whatever you want, I used the ADC team as an example) :
Code:
git clone git://github.com/AriesVE-DevCon-TEAM/android_device_samsung_ariesve.git -b cm-10.1 ariesve
NOTE: Use -b jb-3.0 for CM10
Now cd to ariesve :
Code:
cd ariesve
Connect your phone to your computer and make sure debugging is open and adb is set up.
Get vendor files :
Code:
cd ~/WORKING_DIRECTORY/vendor
mkdir samsung
cd samsung
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve
Get extra files
Code:
~/WORKING_DIRECTORY/vendor/cm/get-prebuilts
Go back to your home dir to build :
Code:
cd ~/WORKING_DIRECTORY
Get some needed files
FOR CM10.1:
You can either fetch from a dev's git or just download frameworks/av and frameworks/native completely and replace it with your own if you find that easier. I'll just do the latter for the sake of simplicity:
Code:
cd frameworks
rm -rf av
rm -rf native
git clone https://github.com/camcory/android_frameworks_av.git -b cm-10.1 av
git clone https://github.com/camcory/android_frameworks_native.git -b cm-10.1 native
cd ..
FOR CM10:
Download this script and give it permission to execute in settings and open it. Choose to run from terminal and follow the script. This should fix any errors you get while compiling. Credits to blackmambazzz for the script.
Code:
[url]http://www.mediafire.com/?b1kj0slcwo9r707[/url]
Build CM
Prepare to compile :
Code:
. build/envsetup.sh
Now compile for device
Code:
brunch ariesve -j#
Change # according to your CPU cores. It should usually be CPU cores+1.
If you wish to be able to see the errors despite it being very slow enter -j1.
Click to expand...
Click to collapse
Fixes for some errors
If you are running into issues such as:
Code:
Which would you like? [full-eng] 5
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
Device ariesve not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Repository for shooter not found in the CyanogenMod Github repository list. If this is in error, you may need to manually add it to your local_manifest.xml.
build/core/product_config.mk:209: *** No matches for product "ariesve". Stop.
** Don't have a product spec for: 'ariesve'
** Do you have the right repo manifest?
What you need to do is to edit your blob to match the PRODUCT_NAME to the file name. For example with mine I have full_ariesve.mk therefore in this file I need to have PRODUCT_NAME to match it. Whatever error it is looking for you just need to change the PRODUCT_NAME line to match what the error shows.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you run into issues with Java being the incorrect version here is the fix:
Make sure Java 6 JDK is installed by typing in:
Code:
java -version
Open the file main.mk in build/core and delete this line from the java error code section:
Code:
$(error stop)
Credits
arco68
ivendor
Doomsday94
dastin1015
camcory
This tutorial is based off of this one : http://forum.xda-developers.com/showthread.php?t=1762641
This is my first time making a tutorial so please tell me if I missed something . I wish you guys luck on your builds.
Here is an example of what happens if it builds correctly :
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Nice tutorial dude!
Really easy to understand and well wrote.
Keep up the good work!

Thank you so much I bookmarked this thread and I might really try it. Have been wondering about this already but I m not a programmer of profession, though I have a bit of experience in it.. will see.. thank you !

Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.

Thank You Very Much ,, I'm Now in repo sync, When it finishes , i'll see if it builds well ( hopefully ) :good:

Nice guide...now at office...will try after going home.
Sent from my GT-I9001 using xda premium

crybert said:
Instead of the combination
Code:
lunch # && make -j# otapackage
you also can use simply
Code:
brunch ariesve
which will do the same.
Click to expand...
Click to collapse
Yeah I guess but you need to add ariesve to the brunch list. I thought this would be easier or do I know it wrong? Thanks for your suggestion
Edit: Ahaha, sorry crybert. I had tried before but the device wasn't in the list so I thought we had to add it there. After checking again it's there
Sent from my GT-I9001 using xda premium

Xistance said:
Enter toolchain path to .bashrc in your home dir. Use ctrl+h to see it. Enter your username where needed.
Click to expand...
Click to collapse
Is the toolchain in android sdk ??

UpGado said:
Is the toolchain in android sdk ??
Click to expand...
Click to collapse
Yeah, fixed that. Sorry for the wrong path :S

After getting a PM I noticed I got some paths wrong. I fixed them all now and it should be fully okay. Sorry if anyone couldn't build it correctly before this .
Edit : Please follow the steps starting with the repo init. Before, since I made you guys cd to the wrong folder to init repo the sync also went to the wrong folder. CD to the working dir and init repo again and then sync. If you don't want to wait that long again for it to sync again since I probably made you sync to the wrong folder, use Ctrl+H at where you synced and copy paste the .repo folder to the WORKING_DIRECTORY folder and sync again.

Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:

mrjraider said:
Perhaps an stupid and noob question, but why Ubuntu x64? And not x32? :silly:
Click to expand...
Click to collapse
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .

Xistance said:
I don't know the specific reason but Google said it must be 64bit. You shouldn't even be trying to build with less than 4GB of RAM anyway. It wasn't a stupid question. All questions are welcome here .
Click to expand...
Click to collapse
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:

mrjraider said:
Also a decent CPU? I got an intel dual core 2,0 ghz and 3GB RAM..
Haha, I am not able to try it haha.
Thanks for the info :silly:
Click to expand...
Click to collapse
You can still build it if you want . It might be a little slower than usual but if you are willing do it for the development of JB for our device than it is fine.

i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????

nikku_hot123 said:
i am trying to make ics with arco source following this tutorial with repo sync of ics.
i am facing these errors..
build/core/base_rules.mk:166: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ariesve/liblight. Stop.
i am getting this error???? Help
Edit : i corrected it but now i am stucking at
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.1
TARGET_PRODUCT=cm_ariesve
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ITL41D
============================================
build/core/main.mk:322: implicitly installing apns-conf_sdk.xml
No private recovery resources for TARGET_DEVICE ariesve
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/ariesve/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
????????
Click to expand...
Click to collapse
First of all,
PLATFORM_VERSION=4.0.1
BUILD_ID=ITL41D
Why is your version and build ID that? The version it says is ICS, not JB. They should be 4.1.1 and JRO03L(I think that was it). Did you make sure to clone the git as jellybean?

okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'

nikku_hot123 said:
okey my source was incorrect i resynched the source of cm9 as i am trying to make cm9 with your tutorial.
now i cloned ivendor ics branch. but while compiling now i am getting following error after 15 minutes.
Plz help???
Code:
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_neon.c
target thumb C: audio.a2dp.default <= external/bluetooth/bluez/audio/../sbc/sbc_primitives_armv6.c
target thumb C: libpower <= hardware/libhardware_legacy/power/power.c
target thumb C: audio.primary.default <= hardware/libhardware/modules/audio/audio_hw.c
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/AudioHardware.cpp
make: *** No rule to make target `out/target/product/ariesve/obj/lib/libaudioalsa.so', needed by `out/target/product/ariesve/obj/SHARED_LIBRARIES/audio.primary.msm7x30_intermediates/LINKED/audio.primary.msm7x30.so'. Stop.
make: *** Waiting for unfinished jobs....
target thumb C++: audio.primary.msm7x30 <= hardware/qcom/media/audio/msm7x30/audio_hw_hal.cpp
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::updateDeviceInfo(int, int, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:410: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:433: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:463: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
hardware/qcom/media/audio/msm7x30/AudioHardware.h:618: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:613: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.h:636: warning: 'android_audio_legacy::AudioHardware::mEffectEnabled' will be initialized after
hardware/qcom/media/audio/msm7x30/AudioHardware.h:611: warning: 'int android_audio_legacy::AudioHardware::mFmFd'
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:527: warning: when initialized here
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:595: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1379: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1380: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1381: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, uint32_t, uint32_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1561: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1651: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1653: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1659: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1673: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1676: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1680: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1686: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:1711: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2358: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:2361: warning: comparison between signed and unsigned integer expressions
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::read(void*, ssize_t)':
hardware/qcom/media/audio/msm7x30/AudioHardware.cpp:4132: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t'
Click to expand...
Click to collapse
For CM9 you need to cherry-pick or pull the following commit for working audio: http://review.cyanogenmod.com/#/c/21004/

thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function

nikku_hot123 said:
thanks cybert.
i fixed that but now i am getting error related to camera HAL??
Code:
target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: error: ui/OverlayHtc.h: No such file or directory
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/copybit_c2d.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp: In function 'int camera_set_preview_window(camera_device*, preview_stream_ops*)':
device/samsung/ariesve/camerahal/cameraHAL.cpp:495: error: invalid use of incomplete type 'struct android::eek:verlay'
device/samsung/ariesve/camerahal/CameraHardwareInterface.h:29: error: forward declaration of 'struct android::eek:verlay'
target thumb C++: copybit.msm7x30 <= hardware/qcom/display/libcopybit/software_converter.cpp
make: *** [out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::dso'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:177: warning: missing initializer for member 'hw_module_t::reserved'
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int msm_copybit(copybit_context_t*, blitlist*, uint32)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:728: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int open_copybit(const hw_module_t*, const char*, hw_device_t**)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::buffer'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::phys'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1330: warning: missing initializer for member 'C2D_RGB_SURFACE_DEF::stride'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::width'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::height'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride0'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride1'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::plane2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::phys2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1331: warning: missing initializer for member 'C2D_YUV_SURFACE_DEF::stride2'
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1486: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp:1490: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'int set_image(int, uint32, const copybit_image_t*, int*, uint32_t*, eC2DFlags)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:488: warning: 'yuvInfo.yuvPlaneInfo::plane2_offset' may be used uninitialized in this function
hardware/qcom/display/libcopybit/copybit_c2d.cpp:490: warning: 'yuvInfo.yuvPlaneInfo::plane2_stride' may be used uninitialized in this function
Click to expand...
Click to collapse
You need this: http://review.cyanogenmod.com/#/c/13285/

Related

Kernel Compile Fails

Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
I have never recieved any issues compiling the kernel. Could you explain what exactly you did to receive this?
im running ubuntu 9.04
have followed the instructions at source.android.com to set up my workspace.
downloaded the kernel
decompressed file
make menuconfig
loaded up the module which i pulled from my phone
saved .config
exit menu config
make
i think i was in the wrong dir. dang its getting late...lol
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
cteneyck said:
i was in the wrong dir lol
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
Building modules, stage 2.
MODPOST 0 modules
Click to expand...
Click to collapse
ha ha. Can't say it's not something I have ever done. Glad you got it working. You have a fully patched and working 2.6.29 CDMA Kernel now, right?
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
cteneyck said:
no not a .29 kernel just the stock .27 kernel. I having more problems tho. i am stuck with the zImage and i have tried to test it using the commands below but its not working both ways
1.Put my phone into fast
2. c:\fastboot boot /path/to/my/zImage
it outputs and fails.
creating boot image...
creating boot image - 1675264 bytes
downloading 'boot.img'... FAILED (remote: not allow)
so i thought i would flash /dev/mtd2 by unpacking and repacking the mtd2.img with my zImage but the script (the script at android-dls modified with the –base 0×19200000 code in the repack) but it says there is extra info found in my the mtd2.img
so i am am stuck at the moment and trying to figure this one out
and i have no clue on how to make an update.zip. which is the way i should probably go.
Click to expand...
Click to collapse
Follow Lox_Dev's tutorial here: http://forum.xda-developers.com/showthread.php?t=551711
You have to unpack an existing boot.img, replace the boot.img-kernel file with the zImage you made (rename zImage to boot.img-kernel) and then repackage it. The flash the new boot.img file.
P.S. The .29 comment was sarcasm
LOL. you got me. thanks for the link. i'll report back.
I got it up and running
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Look back a couple posts, sparky. That was just covered.
s0v3r1gn said:
I have a stupid question. So if I compiled the kernel that I downloaded. What do I do to put my new kernel on my phone?
Click to expand...
Click to collapse
Its not a stupid question but basically you have to grab the boot image from your phone. then split the kernel and the ramdisk. rename your zimage and pack it back into a new boot image and flash it to your phone. I will post the steps i took in a how to soon as i get wireless back working. for what ever reason i can't get it working.
^ Great! Sounds good. I'm going to give compiling a try once you get that posted.
i know about the password being shown. im not running that rom and have gone to a stock (root) version to make my own mods. now that the kernel souce is avialable. im gonna try and build a complete custom rom.
cteneyck said:
Any guru's up....
I keep getting a failure compiling the kernel. its failing at the proximity sensor. I used the kernel config from my phone and proximity is disabled. any how here is the code.
In file included from drivers/misc/proximity.c:14:
/root/myandroid/kernel-hero/arch/arm/include/asm/gpio.h:5:23: error: mach/gpio.h: No such file or directory
drivers/misc/proximity.c:20:23: error: mach/vreg.h: No such file or directory
drivers/misc/proximity.c:21:28: error: mach/msm_iomap.h: No such file or directory
drivers/misc/proximity.c: In function 'proximity_store':
drivers/misc/proximity.c:39: error: implicit declaration of function 'gpio_direction_output'
drivers/misc/proximity.c:42: error: implicit declaration of function 'gpio_get_value'
drivers/misc/proximity.c: In function 'proximity_interrupt':
drivers/misc/proximity.c:61: error: implicit declaration of function 'gpio_to_irq'
drivers/misc/proximity.c: In function 'proximity_early_suspend':
drivers/misc/proximity.c:87: error: implicit declaration of function 'vreg_get'
drivers/misc/proximity.c:87: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:88: error: implicit declaration of function 'vreg_disable'
drivers/misc/proximity.c: In function 'proximity_early_resume':
drivers/misc/proximity.c:95: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:96: error: implicit declaration of function 'vreg_enable'
drivers/misc/proximity.c: In function 'proximity_sensor_probe':
drivers/misc/proximity.c:116: warning: assignment makes pointer from integer without a cast
drivers/misc/proximity.c:117: error: implicit declaration of function 'vreg_set_level'
drivers/misc/proximity.c:121: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:123: warning: ISO C90 forbids mixed declarations and code
drivers/misc/proximity.c:127: error: implicit declaration of function 'gpio_request'
drivers/misc/proximity.c:139: error: implicit declaration of function 'gpio_direction_input'
drivers/misc/proximity.c:170: error: 'struct early_suspend' has no member named 'suspend'
drivers/misc/proximity.c:171: error: 'struct early_suspend' has no member named 'resume'
make[2]: *** [drivers/misc/proximity.o] Error 1
make[1]: *** [drivers/misc] Error 2
make: *** [drivers] Error 2
Thanks in advanced for the help
Click to expand...
Click to collapse
Hello, I have the same problem with drivers/i2c/chips/mt9t013.c when I compiled HTC Magic kernel
Can you say me more about good folder?
+1
Please answer someone
!
edit: just realized this thread was necro-bumped. Removed my post. Apologies for assisting in bringing back the dead.

[Guide][Compile][Patching]A Kernel From Source For Newbies[Any Device]

Hey Guys,
With All the awesome development going on in the Android world. There Are Many newbies who want to strat development but they exactly Dont Know How To begin with or from where to strat with. So I will Write a guide on how to compile your own kernel from source
=================
What Is A Kernel???
=================
The operating system of a device is the part of the device responsible for basic use and administration. This includes the kernel and device drivers, boot loader, command shell or other user interface, and basic file and system utilities. Whereas the user interface is the outermost portition of the operating system, kernel is the innermost. It is the core internals, the software that provides basic services for all other parts of the system, manages hardware and distributes system resources.
============================
Prerequisites To Compile A kernel
============================
1.A Unix Based Os(Ubuntu Recommended Both 32-bit and 64-bit are good to compile a kernel)
2.A few packages, to let the system know that we are compiling a kernel
3. The Source Code of kernel for your Device
Ok, So Now Lets Begin
==================
Packages Required:
==================
Ok So Now Open The Terminal And Copy Paste This Code:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 git
Okay SO Now If You Are using Ubuntu12.04 , you need to create links of certain files
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Okay now we are done with installing packages
SO Now we need java
Open a terminal and Run This Code:
sudo add-apt-repository ppa:ferramroberto/java
Click to expand...
Click to collapse
Then Run This:
sudo apt-get update
Click to expand...
Click to collapse
Then Type This:
sudo apt-get-install sun-java6-jdk
Click to expand...
Click to collapse
So Now You Have all the needed packages to compile a kernel
Next you need the bootimagetools,source code of kernel and Androidtoolchainsto compile a kernel
Bootimagetools:https://github.com/SaumitraYadav/Boot-Image-tools
AndroidToolchains:https://github.com/SaumitraYadav/Android_Toolchains
Okay once you have Downloaded everything ... now Lets Start Compiling A Kernel
Ok So Fireup A Terminal :
Code:
mkdir kernel
This Will Create a Directory named kernel in your Home Folder
Now extract your kernel Source in this directory
Then Run This:
Code:
cd kernel
Now You Have To Edit the Make File:
Code:
gedit Makefile
The Make file will open.........look out for this and change CROSS_COMPILE= "your toolchain path"
EXAMPLE:
Code:
CROSS_COMPILE?= /home/saumitra/Downloads/Toolchains/arm-eabi-4.4.3/bin/arm-eabi-
this will open up Makefile in gedit, now set the path where youn have downloaded and extracted the toolchains
Now, make the kernel config
Code:
make pico_defconfig
Note: I have a Htc Explorer and my device codename is pico. So i run pico_defconfig
Now Other device users have to look for codename or config names in arch/arm/configs
This Will Make a working kernel config according to the source
Now, if You Wanna Make Some Changes In Your Source Do so , and run this command to start compiling:
Code:
make -jX
The X can be replaced by the maximum number of jobs your computer can handle simultaneously.. The higher this number, the faster the compiling will get.. But do not enter a number too high, your computer may explode due to overheating.
Okay if all goes well your kernel will be compiled in 15mins
The resulting kernel will be in Kernel/arch/arm/boot/zImage
Now We also need modules for wifi and BT to work. So,
cd kernel
Click to expand...
Click to collapse
mkdir modules
Click to expand...
Click to collapse
find . -name '*ko' -exec cp '{}' modules \;
Click to expand...
Click to collapse
Okay So Now The Moules will be in kernel/modules
So Now We will pack the kernel to be flashed on the target Device
-Okay So Now Get A Working Boot.img Of THe Rom on which Wanna Test Your Kernel
-Download and extract The Bootimagetools From The Link Given Above
-place the boot.img in source_img folder inside the boot.img-tools
-enter the bootimagetools Directory
-unpack(This Will extract the boot.img)
$ mkdir -p unpack
$ tools/unpackbootimg -i source_img/boot.img -o unpack
Click to expand...
Click to collapse
-Extracting boot.img-ramdisk.gz(This Will Extract The ramdisk From the boot.img)
$ mkdir -p boot
$ cd boot
$ gzip -dc ../unpack/boot.img-ramdisk.gz | cpio -i
$ cd ../
Click to expand...
Click to collapse
-Packing a new ramdisk(This Will Pack A new ramdisk which will be used in your kernel)
$ tools/mkbootfs boot | gzip > unpack/boot.img-ramdisk-new.gz
Click to expand...
Click to collapse
Now As we want to create a boot.img from the zImage you made so copy the zImage from arch/arm/boot
Then goto the folder unpack in bootimagetools directory and delete boot.img-zImage
now paste the zImage You copied from arch/arm/boot and paste it in unpack folder and rename it to boot.img-zImage
-Create a new boot.img:
$ mkdir -p target_img
$ tools/mkbootimg --kernel unpack/boot.img-zImage --ramdisk unpack/boot.img-ramdisk-new.gz -o target_img/boot.img --base `cat unpack/boot.img-base`
Click to expand...
Click to collapse
Done
Now Take The boot.img for target_img folder and flash it via fastboot and dont forget to push modules else wifi will not work
=============================
Patching The kernel[The Easy Way]
=============================
This will Show You How to Patch your kernel to the latest version.
All The Patches are Available on kernel.org.
So If you apply the patches manually, then your source code will be messed up and you will face compiling errors+ it's time consuming to allow every patch as yes
So I am going to use a program called interdiff to
generate a patch representing the differences between two patches and then
apply the result.
Download:
Code:
http://cyberelk.net/tim/data/patchutils/stable/patchutils-0.3.3.tar.xz
SO Now Setting up the program to work :
1. Download the given file and extract it somewhere ,you swill get a folder named patchutils-0.3.3
2. First Install these Two Packages:
Code:
sudo apt-get install gcc
sudo apt-get install g++
3. Now cd to the folder patchutils-0.3.3
4. Now Type this in terminal
Code:
./configure
5.Now type this
Code:
make
6. Then this
Code:
sudo make install
Now You have setup the program 'interdiff' for applying the patches
To Apply The patches:
Code:
interdiff -z patch-xy patch-yx | patch -p1
Code:
patch-xy: The current kernel version ( for example= patch-3.0.97)
patch-yx: The version to be patched ( for example=patch-3.0.98)
Note: Both the patches should be in your kernel source directory
Credits:
@Red Devil (For Teaching me how to compile a kernel)
Awesome
Markyzz said:
Awesome
Click to expand...
Click to collapse
Thanks
Please Unquote The Post
Great Guide For Noobs Like Me
Speaking Frankly There is a guide by @legen_dary which is really good.
I Don't think this is actually needed.
Thank you.
Brother.. At least change it a little eh??
Or if you want, I can have the original guide thread handed over to you..
ғг๏๓ ҭђє ғเรђ!
Very very useful i'll take a closer look at it later tonight! :good:
Corrected the grammatical errors Happy compiling
Sent from my HTC Explorer using Tapatalk 4 Beta
Added Guide on How to Patch the Kernel Happy compiling
Saumitra Yadav said:
Added Guide on How to Patch the Kernel Happy compiling
Click to expand...
Click to collapse
i need a easy way for patching kernel ...thnxx man u helped a lot ..>!!:laugh:
How to solve this?
Code:
LD drivers/hid/built-in.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1408: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1409: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1410: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1415: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1416: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1417: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1418: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1419: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1423: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1424: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1425: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1426: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1427: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1431: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1432: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1433: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1434: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-tamsui-jlo.c:1435: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-tamsui-jlo.o] Błąd 1
make[3]: *** Oczekiwanie na niezakończone zadania....
CC net/core/utils.o
CC drivers/hwmon/hwmon.o
CC fs/fat/fatent.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:862: error: 'KGSL_3D0_REG_MEMORY' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:868: error: 'KGSL_3D0_IRQ' undeclared here (not in a function)
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:875: error: variable 'kgsl_3d0_pdata' has initializer but incomplete type
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: unknown field 'pwrlevel' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:876: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:877: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:881: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: extra brace group at end of initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:885: error: (near initialization for 'kgsl_3d0_pdata')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:890: error: unknown field 'init_level' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:891: error: unknown field 'num_levels' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:892: error: unknown field 'set_grp_async' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:893: error: unknown field 'idle_timeout' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:894: error: unknown field 'strtstp_sleepwake' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:895: error: unknown field 'nap_allowed' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:896: error: unknown field 'clk_map' specified in initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm7x25a_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:912: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:913: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:914: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:915: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:916: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: In function 'msm8x25_kgsl_3d0_init':
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:923: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:924: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:928: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:930: error: 'struct resource' has no member named 'gpu_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: invalid use of undefined type 'struct kgsl_device_platform_data'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:932: error: 'struct resource' has no member named 'bus_freq'
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c: At top level:
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1581: error: (near initialization for 'msm8625_kgsl_3d0_resources[0].name')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: initializer element is not constant
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/devices-tamsui-jlo.c:1587: error: (near initialization for 'msm8625_kgsl_3d0_resources[1].name')
make[3]: *** [arch/arm/mach-msm/devices-tamsui-jlo.o] Błąd 1
CC fs/fat/file.o
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:664: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:665: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:666: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:671: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:672: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:673: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:674: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:675: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:679: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:680: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:681: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:682: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:683: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:687: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:688: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:689: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:690: error: (near initialization for 'ion_pdata.heaps')
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: field name not in record or union initializer
/home/lozohcum/CM/kernel/sony/msm7x27a-3.4/arch/arm/mach-msm/board-qrd7627a.c:691: error: (near initialization for 'ion_pdata.heaps')
make[3]: *** [arch/arm/mach-msm/board-qrd7627a.o] Błąd 1
make[2]: *** [arch/arm/mach-msm] Błąd 2
make[2]: *** Oczekiwanie na niezakończone zadania....
do I have to add -w to more flags?
This is part of my makefile
Code:
CFLAGS_MODULE = -w
AFLAGS_MODULE = -w
LDFLAGS_MODULE =
CFLAGS_KERNEL = -w
AFLAGS_KERNEL = -w
CFLAGS_GCOV = -fprofile-arcs -ftest-coverage
hey bro @Saumitra Yadav , can you help me to fix this? thx
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
ocoot said:
hey bro @Saumitra Yadav , can you help me to fix this? thx
Click to expand...
Click to collapse
Some Package Is Missing Please Give me A pastie of full error
Saumitra Yadav said:
Some Package Is Missing Please Give me A pastie of full error
Click to expand...
Click to collapse
now it's fixed. just install lzop from terminal
mmm can you make a tutorial how to add gov,i/o or freq? coz i added some gov on my kernel when i flash it, it not showing on no frillis, but on command "make menuconfig" its showing the gov i am added before -_-
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
piousheart said:
@Saumitra Yadav can you help me with this?
stuck because of this from 2 days.
Xperia mini | Stock GB kernel Source | ndk 9b
Code:
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
AS arch/arm/boot/compressed/head.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:363: Warning: (null)
arch/arm/boot/compressed/head.S:444: Warning: (null)
arch/arm/boot/compressed/head.S:465: Warning: (null)
arch/arm/boot/compressed/head.S:484: Warning: (null)
arch/arm/boot/compressed/head.S:492: Warning: (null)
arch/arm/boot/compressed/head.S:783: Warning: (null)
arch/arm/boot/compressed/head.S:822: Warning: (null)
arch/arm/boot/compressed/head.S:823: Warning: (null)
arch/arm/boot/compressed/head.S:870: Warning: (null)
arch/arm/boot/compressed/head.S:877: Warning: (null)
arch/arm/boot/compressed/head.S:885: Warning: (null)
arch/arm/boot/compressed/head.S:896: Warning: (null)
arch/arm/boot/compressed/head.S:910: Warning: (null)
arch/arm/boot/compressed/head.S:942: Warning: (null)
arch/arm/boot/compressed/head.S:944: Warning: (null)
arch/arm/boot/compressed/head.S:945: Warning: (null)
arch/arm/boot/compressed/head.S:952: Warning: (null)
arch/arm/boot/compressed/head.S:984: Warning: (null)
GZIP arch/arm/boot/compressed/piggy.gz
AS arch/arm/boot/compressed/piggy.o
CC arch/arm/boot/compressed/misc.o
LD arch/arm/boot/compressed/vmlinux
arm-linux-androideabi-ld: error: arch/arm/boot/compressed/piggy.o: unknown CPU architecture
make[2]: *** [arch/arm/boot/compressed/vmlinux] Error 1
make[1]: *** [arch/arm/boot/compressed/vmlinux] Error 2
make: *** [zImage] Error 2
[email protected]:~/android/kernel/4.0.2.A.0.84/kernel$
Click to expand...
Click to collapse
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Saumitra Yadav said:
Wrong Toolchain Try This Toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7
Click to expand...
Click to collapse
I don't know how to use git.
where to download that toolchain
Any idea how much time would it take to download all the neccesary things except the packages used for setting up build envi?
Sent from my GT-I9100 using xda premium
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
engloa said:
Doesn't take me long to download in Ubuntu.
Samsung open source will probably take you longest
Click to expand...
Click to collapse
Hey buddy..
Haha..nice to see u everywhere.
Thank u..
Sent from my GT-I9100 using xda premium

[Q] can we install openjdk as building envirement

Ubuntu does not support sun-java6-jdk installation forever. So I only can install openjdk in my Ubuntu. Then I build Android with command "make -j4", but it failed. the Error information as below:
find: "drm/java": not found
find: "drm/java": not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
/bin/bash: prebuilt/linux-x86/sdl/bin/sdl-config: not found
........
........
........
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_file.cc
In file included from external/qemu/elff/dwarf_die.h:21,
from external/qemu/elff/elf_file.h:20,
from external/qemu/elff/elf_file.cc:18:
external/qemu/elff/elf_alloc.h: In static member function ‘static void* DwarfAllocBase:perator new(size_t)’:
external/qemu/elff/elf_alloc.h:156: warning: ‘operator new’ must not return NULL unless it is declared ‘throw()’ (or -fcheck-new is in effect)
host C++: emulator-elff <= external/qemu/elff/elf_mapped_section.cc
make: *** no rules to creat “out/host/linux-x86/obj/EXECUTABLES/emulator_intermediates/emulator”

[HOW-TO]Build from source, Tutorial and Troubleshooting

This is the thread for the tutorial about how to build android from source and it is simplified version of what google described Here and also you can post your build errors here and I will try to solve it if I can.
You should have some basic knowledge about Ubuntu system and how to work with it though if you don't understand something you can always ask in this thread.
I am starting this thread by requests I have got from this device's user though I don't have device, this process is fairly common for all devices and as you all know I have build MoKee Open source for i9500.
Let's start with tutorial :
Requirement :
You will need Ubuntu 64-bit environment running on your computer on either virtual machine or either as a separate OS
Some knowledge about repo, java, language C/C++, Shell and basic command-prompt
Lots of patience
A good internet connection (Don't do this if you have less than 512kb/s internet speed otherwise it will take forever to finish this process)
A minimum of 80GB of space on your ubuntu partition (Single build)
1. Installing required package for android building
Java JDK6 or later version
Code:
sudo apt-get install openjdk-6-jdk
Install Python
Code:
sudo apt-get install python
Install android sdk and sdk tools
Download android sdk from: http://developer.android.com/sdk/index.html
Extract it to your home directory and rename it to android-sdk
At home press ctrl+h to see hidden files and folder
Open .bashrc file with text editor
Add following lines at the end of it
Code:
# Android tools
export PATH=${PATH}:~/android-sdk/tools
export PATH=${PATH}:~/android-sdk/platform-tools
export PATH=${PATH}:~/bin
Go to your home folder and open .profile file with text editor
Add following lines at the bottom of that file.
Code:
PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"
Now you have successfully install android-sdk
To check open new terminal and type android and you will see android-sdk UI
Installing other required libs and package for build
For all ubuntu variant
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \ libxml2-utils xsltproc
For Ubuntu 10.10 only
Code:
sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
For ubuntu 11.10 only
Code:
sudo apt-get install libx11-dev:i386
For ubuntu 12.10 only
Code:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
For Ubuntu 13.04 and 13.10 only
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Now we have to configure USB for all devices
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
That will open a file named 51-android.rules, Copy paste following usb configuration to that file and save it and close it
Code:
#Acer
SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0666"
#ASUS
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666"
#Dell
SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0666"
#Foxconn
SUBSYSTEM=="usb", ATTR{idVendor}=="0489", MODE="0666"
#Garmin-Asus
SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"
#Google
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"
#HTC
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"
#Huawei
SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"
#K-Touch
SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"
#KT Tech
SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"
#Lenevo
SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"
#LG
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"
#Motorola
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"
#NEC
SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"
#Nook
SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"
#Nvidia
SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"
#OTGV
SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"
#Pantech
SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"
#Philips
SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"
#PMC-Sierra
SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"
#Qualcomm
SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"
#SK Telesys
SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"
#Samsung
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"
#Sharp
SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"
#Sony Ericsson
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"
#Toshiba
SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"
#ZTE
SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"
Now execute that file doing following command
Code:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
2. Setting up Repo Environment
Install Repo :
Open Terminal and run following commands one by one
Code:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Initialize Repo:
Here Working_Directory means folder to which you want to start your project (Either CM or Paranoid or Carbon or PAC-man or AOKP), you can give any name you want
Code:
mkdir Working_Directory
cd Working_Directory
Source specific repo commands :
For Example :
Code:
AOSP - 4.4.2
repo init -u https://android.googlesource.com/platform/manifest -b android-4.4.2_r1
CM-11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
For MoKee
repo init -u https://github.com/MoKee/android.git -b kk_mkt
Now Sync Repo
Repo sync will download almost 6 to 12 GiB of sources, So it will take a while, depending on your internet connection
Code:
repo sync
== Device specific configuration for I9500 in post 2 ==
I9500 Specifics
I9500 Specific repo Download :
--You have to download required repository for I9500.
- For example, CM11 you will need following local manifests, as given Here
- I think this is the standard manifests you will need for I9500 for any and all ROM.
- Go to your working directory and press ctrl+H and you will find a folder named .repo
- Go to .repo folder and create a folder name local_manifests.
- In local_manifests folder create a blank document named roomservice.xml/local_manifests.xml and copy following code inside it.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_device_samsung_i9500" path="device/samsung/i9500" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_kernel_samsung_exynos5410" path="kernel/samsung/exynos5410" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos5410" path="hardware/samsung_slsi/exynos5410" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos" path="hardware/samsung_slsi/exynos" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_exynos5-insignal" path="hardware/samsung_slsi/exynos5-insignal" remote="github" revision="cm-11.0" />
<project name="intervigilium/android_hardware_samsung_slsi_openmax" path="hardware/samsung_slsi/openmax" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-11.0" />
</manifest>
Than you have to sync repo again
Code:
repo sync
For CM11 this is all what you need and you can go to the post 3 for next process, For any other ROMs you have to edit some files as below :
1. Change in device/samsung/i9500 at local repo
For reference you can go to Here as reference and look what I have changed and do according to your build.
Normally u have to change all the makefiles like I have changed cm.mk to mokee.mk under device/samsung/i9500
Look at here, and change according to your repo source
Second file you have to change is dependencies if needed, If you have put local_manifests.xml/roomservice.xml and sync it than you will not need it.
Just double check that you have all the dependency repos otherwise build will fail.
Last in device/samsung/i9500 change vendorsetup.sh
Look at Here and change according to your repo source
2. Change in vendor/ at local repo
This will depend on different ROMs and Sources according to build needs, So if you want me to give you what to change post here with vendor source on github and I will modify it for you or I will help you do that.
Now go to the post 3 for further explanation on compiling process..
Compiling of ROM
Run following commands one by one
Code:
cd Working_Directory
. build/envsetup.sh
lunch
Select the number of combo according to your vendorsetup.sh file.
Than run following command
Code:
make bacon
or
make otapackage
This will take a while for compiling and all the process, once it will finish successfully, you will find your ROM under, Working_Directory/out/target/product/i9500/
How to Improve your build process using ccache ?
Go to your home directory and press ctrl+H and edit .bashrc
Add folloeing line at the end of the text file
Code:
export USE_CCACHE=1
Than run following commands one by one.
The suggested cache size is 50-100G. (This is size in GB)
Code:
export USE_CCACHE=1
export CCACHE_DIR=~/.ccache
prebuilts/misc/linux-x86/ccache/ccache -M 50G
=== This is what All I have to explain for building from source, Let me know if you need any further explanation on compiling , I will be happy to help all of you===
Cheers
== Raj ==
Thanks man i need this badly will have to redownload my sources and start over
Omni Rom Build Failed
Hey Guys Please Help What did i do wrong I keep Getting this error Message I'm trying to compile for Omni Rom 4.4
BlaqueSouls-Mac-Pro:~ blaquesoul$ cd /Volumes/android
BlaqueSouls-Mac-Pro:android blaquesoul$ cd omnirom
BlaqueSouls-Mac-Promnirom blaquesoul$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/i9500/vendorsetup.sh
including sdk/bash_completion/adb.bash
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 8
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
** Don't have a product spec for: 'omni_i9500'
** Do you have the right repo manifest?
Please help
BlaqueDroid said:
Hey Guys Please Help What did i do wrong I keep Getting this error Message I'm trying to compile for Omni Rom 4.4
BlaqueSouls-Mac-Pro:~ blaquesoul$ cd /Volumes/android
BlaqueSouls-Mac-Pro:android blaquesoul$ cd omnirom
BlaqueSouls-Mac-Promnirom blaquesoul$ . build/envsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/i9500/vendorsetup.sh
including sdk/bash_completion/adb.bash
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 8
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
WARNING: Trying to fetch a device that's already there
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
build/core/product_config.mk:222: *** Can not locate config makefile for product "omni_i9500". Stop.
** Don't have a product spec for: 'omni_i9500'
** Do you have the right repo manifest?
Please help
Click to expand...
Click to collapse
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk
x10forevers said:
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Its Still Complaining about the same thing and now I'm kinda confused and don't know what I'm doin wrong
---------- Post added at 04:39 AM ---------- Previous post was at 04:03 AM ----------
x10forevers said:
Delete local manifest folder from .repo folder...
And than do . build/envsetup.sh && lunch omni_i9500-userdebug
Let me know how it goes ..
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Now this is the error I get
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. full_i9500-userdebug
9. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 9
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/Volumes/android/omnirom/out
============================================
BlaqueSouls-Mac-Promnirom blaquesoul$
BlaqueDroid said:
Its Still Complaining about the same thing and now I'm kinda confused and don't know what I'm doin wrong
---------- Post added at 04:39 AM ---------- Previous post was at 04:03 AM ----------
Now this is the error I get
BlaqueSouls-Mac-Promnirom blaquesoul$ lunch
You're building on Darwin
Lunch menu... pick a combo:
1. aosp_arm-eng
2. aosp_x86-eng
3. aosp_mips-eng
4. vbox_x86-eng
5. mini_armv7a_neon-userdebug
6. mini_mips-userdebug
7. mini_x86-userdebug
8. full_i9500-userdebug
9. omni_i9500-userdebug
Which would you like? [aosp_arm-eng] 9
Traceback (most recent call last):
File "build/tools/roomservice.py", line 297, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 253, in fetch_dependencies
create_dependency_manifest(dependencies)
File "build/tools/roomservice.py", line 238, in create_dependency_manifest
revision=revision)
File "build/tools/roomservice.py", line 146, in create_manifest_project
project_exists = check_project_exists(url)
File "build/tools/roomservice.py", line 120, in check_project_exists
for project in iterate_manifests():
File "build/tools/roomservice.py", line 110, in iterate_manifests
man = ES.parse(file)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
tree.parse(source, parser)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
parser.feed(data)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
self._raiseerror(v)
File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
TARGET_PRODUCT=omni_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-13.0.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/Volumes/android/omnirom/out
============================================
BlaqueSouls-Mac-Promnirom blaquesoul$
Click to expand...
Click to collapse
I think its python error in your system, M not that much experienced in building android on mac.
Can you install python again or the newer version of python ?
may be python3.0
x10forevers said:
I think its python error in your system, M not that much experienced in building android on mac.
Can you install python again or the newer version of python ?
may be python3.0
Click to expand...
Click to collapse
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
---------- Post added at 09:43 AM ---------- Previous post was at 09:33 AM ----------
BlaqueDroid said:
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
Click to expand...
Click to collapse
build/core/Makefile:70: warning: overriding commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
No private recovery resources for TARGET_DEVICE i9500
/Applications/Xcode.app/Contents/Developer/usr/bin/make C_INCLUDE_PATH=/Volumes/android/omni/external/elfutils/libelf -C kernel/samsung/exynos5410 O=/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /Volumes/android/omni/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= omnirom_i9500_defconfig
GEN /Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/Makefile
***
*** Can't find default configuration "arch/arm/configs/omnirom_i9500_defconfig"!
***
make[3]: *** [omnirom_i9500_defconfig] Error 1
make[2]: *** [omnirom_i9500_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/.config] Error 2
BlaqueDroid said:
Okay I fixed my python issue but now when its compiling this is what I'm getting and is there anyways to bypass already defined files or do i have to remove them one by one
---------- Post added at 09:43 AM ---------- Previous post was at 09:33 AM ----------
build/core/Makefile:70: warning: overriding commands for target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:529: warning: ignoring old commands f hior target `/Volumes/android/omni/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
No private recovery resources for TARGET_DEVICE i9500
/Applications/Xcode.app/Contents/Developer/usr/bin/make C_INCLUDE_PATH=/Volumes/android/omni/external/elfutils/libelf -C kernel/samsung/exynos5410 O=/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /Volumes/android/omni/prebuilts/gcc/darwin-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= omnirom_i9500_defconfig
GEN /Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/Makefile
***
*** Can't find default configuration "arch/arm/configs/omnirom_i9500_defconfig"!
***
make[3]: *** [omnirom_i9500_defconfig] Error 1
make[2]: *** [omnirom_i9500_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make: *** [/Volumes/android/omni/out/target/product/i9500/obj/KERNEL_OBJ/.config] Error 2
Click to expand...
Click to collapse
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk
x10forevers said:
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Im using this kernel https://github.com/intervigilium/android_kernel_samsung_exynos5410/archive/cm-11.0.zip or do u have a a better one
lviv73 said:
Epic forums are ridiculous,man I wish I got the Vibrant insteead.Yeah Epic progress is slow but if someone dont want to release something for whatever reason its their right no to do so,and after trying out these froyos is see why they don't release them.Just wait when devs polish up these froyo leaks I'm sure they will release them.
But for people that want betas devs should post beta test versions on twitter for those that can't wait,so these forums wont be havin all these bull**** ass posts.
Click to expand...
Click to collapse
Check reply above you, I answered your question
Sent from my C6603 using Tapatalk
x10forevers said:
Check reply above you, I answered your question
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
its compiling now and i hope i don't another hick up and thanks man for your patience with me and i hope i get this right today
BlaqueDroid said:
its compiling now and i hope i don't another hick up and thanks man for your patience with me and i hope i get this right today
Click to expand...
Click to collapse
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk
x10forevers said:
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Im crossing my fingers right now and I'm definitely not getting a samsung phone with an exynos chip no more
and today i saw that I9505 just got a test 4.4 KitKat
x10forevers said:
Compiling is more than a hiccup its freaking bad cough if its not right. Lol
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Hey Man should i be worried when it says this ......it hasn't stopped yet so hopefully theres nothing wrong with the build
host C++: libclangDriver <= external/clang/lib/Driver/Tool.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChain.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChains.cpp
external/llvm/include/llvm/ADT/Twine.h: In static member function ‘static bool clang::driver::toolchains::Linux::addLibStdCXXIncludePaths(llvm::Twine, llvm::Twine, llvm::Twine, llvm::Twine, const llvm:pt::ArgList&, llvm:pt::ArgStringList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In member function ‘virtual void clang::driver::toolchains::Linux::AddClangCXXStdlibIncludeArgs(const llvm:pt::ArgList&, llvm:pt::ArgStringList&) const’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In constructor ‘clang::driver::toolchains::Linux::Linux(const clang::driver:river&, const llvm::Triple&, const llvm:pt::ArgList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Types.cpp
host C++: libclangDriver <= external/clang/lib/Driver/WindowsToolChain.cpp
host StaticLib: libclangDriver (/Volumes/android/omni/out/host/darwin-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/libclangDriver.a)
BlaqueDroid said:
Hey Man should i be worried when it says this ......it hasn't stopped yet so hopefully theres nothing wrong with the build
host C++: libclangDriver <= external/clang/lib/Driver/Tool.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChain.cpp
host C++: libclangDriver <= external/clang/lib/Driver/ToolChains.cpp
external/llvm/include/llvm/ADT/Twine.h: In static member function ‘static bool clang::driver::toolchains::Linux::addLibStdCXXIncludePaths(llvm::Twine, llvm::Twine, llvm::Twine, llvm::Twine, const llvm:pt::ArgList&, llvm:pt::ArgStringList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In member function ‘virtual void clang::driver::toolchains::Linux::AddClangCXXStdlibIncludeArgs(const llvm:pt::ArgList&, llvm:pt::ArgStringList&) const’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h: In constructor ‘clang::driver::toolchains::Linux::Linux(const clang::driver:river&, const llvm::Triple&, const llvm:pt::ArgList&)’:
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:152: warning: ‘<anonymous>.llvm::Twine::LHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:152: note: ‘<anonymous>.llvm::Twine::LHS’ was declared here
external/llvm/include/llvm/ADT/Twine.h:155: warning: ‘<anonymous>.llvm::Twine::RHS’ may be used uninitialized in this function
external/llvm/include/llvm/ADT/Twine.h:155: note: ‘<anonymous>.llvm::Twine::RHS’ was declared here
host C++: libclangDriver <= external/clang/lib/Driver/Tools.cpp
host C++: libclangDriver <= external/clang/lib/Driver/Types.cpp
host C++: libclangDriver <= external/clang/lib/Driver/WindowsToolChain.cpp
host StaticLib: libclangDriver (/Volumes/android/omni/out/host/darwin-x86/obj/STATIC_LIBRARIES/libclangDriver_intermediates/libclangDriver.a)
Click to expand...
Click to collapse
If it is compiling than it would not be an issue.
If it is stopping or giving an error than only problem otherwise its fine.
x10forevers said:
If it is compiling than it would not be an issue.
If it is stopping or giving an error than only problem otherwise its fine.
Click to expand...
Click to collapse
Okay Cool its still Compiling and can't wait for this to finish and its been join on for a good 2 hours
x10forevers said:
u have to edit boardconfig.Mk file in device/Samsung/i9500
Find the line omnirom_i9500_defconfig and replace it with whatever kernel you are using.
Can you give me link of the kernel source you are using ?
If you are using intervigilium kernel than you have to edit it to cyanogenmod_i9500_defconfig
Sent from my C6603 using Tapatalk
Click to expand...
Click to collapse
Hey Man this where it stopped and can't make heads or tails
aapt: warning: string 'permlab_accessInputFlinger' has no default translation in frameworks/base/core/res/res; found: et hy ka km lo ms ne si
aapt: warning: string 'permlab_hotwordRecognition' has no default translation in frameworks/base/core/res/res; found: az_AZ ne_NP si_LK
aapt: warning: string 'status_bar_device_locked' has no default translation in frameworks/base/core/res/res; found: az et hy ka km lo mn ms ne si
aapt: warning: string 'wifi_display_notification_message' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_notification_title' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
BlaqueSouls-Mac-Promni blaquesoul$
BlaqueDroid said:
Hey Man this where it stopped and can't make heads or tails
aapt: warning: string 'permlab_accessInputFlinger' has no default translation in frameworks/base/core/res/res; found: et hy ka km lo ms ne si
aapt: warning: string 'permlab_hotwordRecognition' has no default translation in frameworks/base/core/res/res; found: az_AZ ne_NP si_LK
aapt: warning: string 'status_bar_device_locked' has no default translation in frameworks/base/core/res/res; found: az et hy ka km lo mn ms ne si
aapt: warning: string 'wifi_display_notification_message' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
aapt: warning: string 'wifi_display_notification_title' has no default translation in frameworks/base/core/res/res; found: az az_AZ et hy ka km lo mn ms ne ne_NP si si_LK
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file `/Volumes/android/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk'
BlaqueSouls-Mac-Promni blaquesoul$
Click to expand...
Click to collapse
Here is the Head
Code:
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:226[/B]: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:232[/B]: error: Resource at config_disableHomeUnlockSetting appears in overlay but not in the base package; use <add-resource> to add.
[B]device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml:237[/B]: error: Resource at config_panelAutoBrightnessValue appears in overlay but not in the base package; use <add-resource> to add.
So, GO to device/samsung/i9500/overlay/frameworks/base/core/res/res/values/config.xml
open config.xml and delete line 226, 232 and 237
Save it and compile it again
and next time if u paste your errors use code format so it won't be long that covers whole page, Just to make it more convenient, or use pastebin and give link to here...

[Q] How to Use a Different Kernel When Building CM12?

I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.
Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*
Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?

Categories

Resources