Hi all,
For all who just started developing for Redmi Note 4G, is compiling your very first ROM/Kernel and faced errors/need help/do not know what to do(for Redmi Note 4G only though sorry), or just have any questions about compiling ROM/Kernel for Redmi Note 4G, here is where it all goes! NOTE: Of course please do read through Android's ROM/Kernel tutorial and starting guide such as Beginner's tutorial, ROM build Tutorial, or CyanogenMod's ROM/Kernel tutorials such as Beginner's Porting Tutorial first, before you ask a question here as those tutorials addresses many basic questions that are likely to be repeatedly asked here. Do feel free to PM me too! I'll be glad to help because I've realized there is a heavy lack of help on ROM/Kernel building around when I just started myself, so I understand how difficult it is to solve everything yourself.
Trying to compile Kernel
I was trying compile kernel with a few custom governers but I am running into silly errors .I am using Xiaomi's kernel source.
I am following this guide. http://forum.xda-developers.com/showthread.php?t=2486098
Building on Ubuntu in a virtual machine.
Code:
[email protected]:~/android/kernel/Xiaomi_Kernel_OpenSource-dior-kk-oss/Xiaomi_Kernel_OpenSource-dior-kk-oss$ make ARCH=arm CROSS_COMPILE=/home/shubhamkarande/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog
make: *** empty variable name. Stop.
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
shubhamkarande said:
I was trying compile kernel with a few custom governers but I am running into silly errors .I am using Xiaomi's kernel source.
I am following this guide. http://forum.xda-developers.com/showthread.php?t=2486098
Building on Ubuntu in a virtual machine.
Code:
[email protected]:~/android/kernel/Xiaomi_Kernel_OpenSource-dior-kk-oss/Xiaomi_Kernel_OpenSource-dior-kk-oss$ make ARCH=arm CROSS_COMPILE=/home/shubhamkarande/toolchains/arm-eabi-4.7/bin/arm-eabi- > compileLog
make: *** empty variable name. Stop.
make[1]: *** [scripts_basic] Error 2
make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'. Stop.
Click to expand...
Click to collapse
I am new to this coding so I have unbuntu 14 64 bit so from where should I start from
Sent from my HM NOTE 1LTEW using Tapatalk
suhasgta said:
I am new to this coding so I have unbuntu 14 64 bit so from where should I start from
Sent from my HM NOTE 1LTEW using Tapatalk
Click to expand...
Click to collapse
I don't have an idea why this is happening, you should probably download the full Android source tree and then compile with 'make -j16 bootimage', that way everything is more organised and safe from errors. Also it ensures the latest updates/bug fixes from Google/Cyanogenmod etc
You could also try the part source method by Philz: http://forum.xda-developers.com/android/development/huide-how-to-compile-philz-touch-6-t2862706 It's for compiling recoveries but works for kernel as well, it can save you several GBs of disk space but still ensure the latest updates/bug fixes
haoyangw said:
You could also try the part source method by Philz: http://forum.xda-developers.com/android/development/huide-how-to-compile-philz-touch-6-t2862706 It's for compiling recoveries but works for kernel as well, it can save you several GBs of disk space but still ensure the latest updates/bug fixes
Click to expand...
Click to collapse
How should a guy who is new to all this start I am sorry for troubling u again
Sent from my HM NOTE 1LTEW using Tapatalk
[/COLOR]
suhasgta said:
How should a guy who is new to all this start I am sorry for troubling u again
Sent from my HM NOTE 1LTEW using Tapatalk
Click to expand...
Click to collapse
You should follow a guide written of some elite devs on XDA. Just Google.
Sent from my HM NOTE 1LTE using Tapatalk
shubhamkarande said:
[/COLOR]
You should follow a guide written of some elite devs on XDA. Just Google.
Sent from my HM NOTE 1LTE using Tapatalk
Click to expand...
Click to collapse
Thank you I will
Sent from my HM NOTE 1LTEW using Tapatalk
suhasgta said:
How should a guy who is new to all this start I am sorry for troubling u again
Sent from my HM NOTE 1LTEW using Tapatalk
Click to expand...
Click to collapse
Here are some tutorials you should read(that's where I learnt to start, I started only this year XD): http://wiki.cyanogenmod.org/w/Build_for_a5 and http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_buildingDo note if you wish to download cm12.0 source code, you should use the command:
Code:
repo init -u https://github.com/CyanogenMod/android.git -b cm-12.0
instead of this(used int the tutorial): 'repo init -u https://github.com/CyanogenMod/android.git -b cm-12.1'. Before you do a 'repo sync', go to the directory where you did repo init and go to '.repo' and create a folder called 'local_manifests'. Then create a file called 'dior.xml'. Open the file and paste the following into it:
Code:
Also, instead of 'breakfast a5', you should do 'lunch cm_dior-eng', and instead of 'brunch a5', you should do 'make -j4 otapackage'. Also AVOID the './extract-files.sh' command and the './get-prebuilts' command, the local_manifest xml takes care of that and prebuilt apps are no longer used in CM12 and above.
@haoyangw What is the size of the complete CM source? I am low on bandwidth.Just 30GB a month.
shubhamkarande said:
@haoyangw What is the size of the complete CM source? I am low on bandwidth.Just 30GB a month.
Click to expand...
Click to collapse
I guess it's around 14gb
Sent from my HM NOTE 1LTEW using Tapatalk
If I'm not wrong around 20(at least for me)
haoyangw said:
If I'm not wrong around 20(at least for me)
Click to expand...
Click to collapse
How much is your data limit
Sent from my HM NOTE 1LTEW using Tapatalk
@suhasgta
It's 30 GB per month.After that,the speed drops drastically.
@haoyangw Can I use this compressed source?
http://forum.xda-developers.com/android/development/source-cyanogenmod-source-highly-t3069473
shubhamkarande said:
@suhasgta
It's 30 GB per month.After that,the speed drops drastically.
@haoyangw Can I use this compressed source?
http://forum.xda-developers.com/android/development/source-cyanogenmod-source-highly-t3069473
Click to expand...
Click to collapse
Mines 75 gb but 50 is used already this month so I can't download it this month and this thing looks to be fake I don't but just my gut feeling
Sent from my HM NOTE 1LTEW using Tapatalk
suhasgta said:
Mines 75 gb but 50 is used already this month so I can't download it this month and this thing looks to be fake I don't but just my gut feeling
Sent from my HM NOTE 1LTEW using Tapatalk
Click to expand...
Click to collapse
Even I thought the same. I am thinking of syncing the source the way everyone on XDA does it. This will also ensure periodic builds for our devices.
Sent from my HM NOTE 1LTE using Tapatalk
That compressed source is outdated, it's for cm10.2(jellybean 4.3), so forget about it XD
I'm quite sure it won't reach 30GB because repo downloads compressed sources as well, just that the sources are not that compressed, so it should use about 14GB
Hey, I have finally managed to synced the complete source :highfive: but unable to build a working tree due to some stupid errors.
Code:
Fetching projects: 99% (527/532) Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching projects: 100% (532/532), done.
Syncing work tree: 2% (11/532) error: Your local changes to the following files would be overwritten by checkout:
admin/AppRestrictionEnforcer/Application/src/main/res/layout/fragment_setup_profile.xml
admin/AppRestrictionEnforcer/Application/tests/src/com/example/android/apprestrictionenforcer/tests/SampleTests.java
admin/BasicManagedProfile/Application/src/main/res/layout/fragment_setup_profile.xml
background/JobScheduler/Application/tests/AndroidManifest.xml
background/JobScheduler/Application/tests/src/com/example/android/jobscheduler/tests/SampleTests.java
build.gradle
connectivity/network/BasicNetworking/Application/tests/src/com/example/android/basicnetworking/tests/SampleTests.java
connectivity/network/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
connectivity/network/NetworkConnect/template-params.xml
connectivity/nfc/BeamLargeFiles/Application/tests/AndroidManifest.xml
connectivity/nfc/BeamLargeFiles/build.gradle
connectivity/nfc/CardEmulation/Application/tests/AndroidManifest.xml
connectivity/nfc/CardReader/Application/tests/AndroidManifest.xml
connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java
connectivity/sync/BasicSyncAdapter/Application/tests/src/com/example/android/basicsyncadapter/tests/SampleTests.java
content/WidgetData/Application/tests/AndroidManifest.xml
content/contacts/BasicContactables/Application/tests/src/com/example/android/basiccontactables/tests/SampleTests.java
content/documentsUi/StorageClient/Application/src/main/java/com/example/android/storageclient/StorageClientFragment.java
content/documentsUi/StorageClient/Application/tests/src/com/example/android/storageclient/tests/SampleTests.java
content/documentsUi/StorageClient/README.md
content/documentsUi/StorageClient/template-params.xml
media/BasicMediaRouter/Application/tests/src/com/example/android/basicmediarouter/tests/SampleTests.java
media/Camera2Basic/Application/tests/AndroidManifest.xml
media/Camera2Basic/Application/tests/src/com/example/android/camera2basic/tests/SampleTests.java
media/HdrViewfinder/template-params.xml
media/MediaBrowserService/Application/src/main/AndroidManifest.xml
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MediaNotificationManager.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MusicService.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/PackageValidator.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/MusicProvider.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/BitmapHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/LogHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/MediaIDHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/QueueHelper.java
media/MediaBrowserService/Application/src/main/res/drawable-hdpi/ic_notification.png
media/MediaBrowserService/Application/src/main/res/values/strings.xml
media/MediaBrowserService/Application/src/main/res/values/styles.xml
media/MediaBrowserService/template-params.xml
media/MediaRouter/Application/tests/AndroidManifest.xml
media/MediaRouter/Application/tests/src/com/example/android/mediarouter/tests/SampleTests.java
notification/BasicNotifications/Application/tests/src/com/example/android/basicnotifications/tests/SampleTests.java
notification/LNotifications/Application/tests/AndroidManifest.xml
notification/MessagingService/template-params.xml
renderScript/BasicRenderScript/Application/tests/src/com/example/android/basicrenderscript/tests/SampleTests.java
renderScript/BasicRenderScript/template-params.xml
renderScript/RenderScriptIntrinsic/Application/tests/src/com/example/android/renderscriptintrinsic/tests/SampleTests.ja
error: The following untracked working tree files would be overwritten by checkout:
admin/DeviceOwner/Application/.gitignore
admin/DeviceOwner/Application/README-fragmentview.txt
admin/DeviceOwner/Application/README-singleview.txt
admin/DeviceOwner/Application/proguard-project.txt
admin/DeviceOwner/Application/src/main/AndroidManifest.xml
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerReceiver.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/InstructionFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/MainActivity.java
admin/DeviceOwner/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/layout/activity_main_real.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_device_owner.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_instruction.xml
admin/DeviceOwner/Application/src/main/res/values/strings.xml
admin/DeviceOwner/Application/src/main/res/xml/device_owner_receiver.xml
admin/DeviceOwner/build.gradle
admin/DeviceOwner/buildSrc/build.gradle
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.jar
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.properties
admin/DeviceOwner/gradlew
admin/DeviceOwner/gradlew.bat
admin/DeviceOwner/screenshots/1-main.png
admin/DeviceOwner/screenshots/icon-web.png
admin/DeviceOwner/settings.gradle
admin/DeviceOwner/template-params.xml
admin/NfcProvisioning/Application/.gitignore
admin/NfcProvisioning/Application/README-fragmentview.txt
admin/NfcProvisioning/Application/README-singleview.txt
admin/NfcProvisioning/Application/proguard-project.txt
admin/NfcProvisioning/Application/src/main/AndroidManifest.xml
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/NfcProvisioningFragment.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ProvisioningValuesLoader.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/TextWatcherWrapper.java
admin/NfcProvisioning/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/layout/fragment_nfc_provisioning.xml
admin/NfcProvisioning/Application/src/main/res/values/strings.xml
admin/NfcProvisioning/Application/tests/src/com/example/android/nfcprovisioning/tests/SampleTests.java
admin/NfcProvisioning/build.gradle
admin/NfcProvisioning/buildSrc/build.gradle
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.jar
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.properties
admin/NfcProvisioning/gradlew
admin/NfcProvisioning/gradlew.bat
admin/NfcProvisioning/nfcprovisioning.txt
admin/NfcProvisioning/screenshots/1-main.png
admin/NfcProvisioning/screenshots/icon-web.png
admin/NfcProvisioning/settings.gradle
admin/NfcProvisioning/template-params.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/.gitignore
connectivity/bluetooth/BluetoothAdvertisements/Application/proguard-project.txt
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/AndroidManifest.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/AdvertiserFragment.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/Constants.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/
Aborting
Syncing work tree: 6% (32/532) error: The following untracked working tree files would be overwritten by checkout:
src/compatibility/4.4/android-4.4-cdd.xhtml
src/compatibility/5.0/android-5.0-cdd.html
Please move or remove them before you can switch branches.
Aborting
Syncing work tree: 100% (532/532), done.
developers/samples/android/: discarding 23 commits
docs/source.android.com/: discarding 2 commits
error: developers/samples/android/: platform/developers/samples/android checkout 5aa1d659c86cf7851d85d33108e4c761a02cf817
error: docs/source.android.com/: platform/docs/source.android.com checkout cfd98ed5e9570d76b5a50d77e51318211777dcfb
What should I do? :/
shubhamkarande said:
Hey, I have finally managed to synced the complete source :highfive: but unable to build a working tree due to some stupid errors.
Code:
Fetching projects: 99% (527/532) Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching projects: 100% (532/532), done.
Syncing work tree: 2% (11/532) error: Your local changes to the following files would be overwritten by checkout:
admin/AppRestrictionEnforcer/Application/src/main/res/layout/fragment_setup_profile.xml
admin/AppRestrictionEnforcer/Application/tests/src/com/example/android/apprestrictionenforcer/tests/SampleTests.java
admin/BasicManagedProfile/Application/src/main/res/layout/fragment_setup_profile.xml
background/JobScheduler/Application/tests/AndroidManifest.xml
background/JobScheduler/Application/tests/src/com/example/android/jobscheduler/tests/SampleTests.java
build.gradle
connectivity/network/BasicNetworking/Application/tests/src/com/example/android/basicnetworking/tests/SampleTests.java
connectivity/network/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
connectivity/network/NetworkConnect/template-params.xml
connectivity/nfc/BeamLargeFiles/Application/tests/AndroidManifest.xml
connectivity/nfc/BeamLargeFiles/build.gradle
connectivity/nfc/CardEmulation/Application/tests/AndroidManifest.xml
connectivity/nfc/CardReader/Application/tests/AndroidManifest.xml
connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java
connectivity/sync/BasicSyncAdapter/Application/tests/src/com/example/android/basicsyncadapter/tests/SampleTests.java
content/WidgetData/Application/tests/AndroidManifest.xml
content/contacts/BasicContactables/Application/tests/src/com/example/android/basiccontactables/tests/SampleTests.java
content/documentsUi/StorageClient/Application/src/main/java/com/example/android/storageclient/StorageClientFragment.java
content/documentsUi/StorageClient/Application/tests/src/com/example/android/storageclient/tests/SampleTests.java
content/documentsUi/StorageClient/README.md
content/documentsUi/StorageClient/template-params.xml
media/BasicMediaRouter/Application/tests/src/com/example/android/basicmediarouter/tests/SampleTests.java
media/Camera2Basic/Application/tests/AndroidManifest.xml
media/Camera2Basic/Application/tests/src/com/example/android/camera2basic/tests/SampleTests.java
media/HdrViewfinder/template-params.xml
media/MediaBrowserService/Application/src/main/AndroidManifest.xml
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MediaNotificationManager.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MusicService.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/PackageValidator.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/MusicProvider.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/BitmapHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/LogHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/MediaIDHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/QueueHelper.java
media/MediaBrowserService/Application/src/main/res/drawable-hdpi/ic_notification.png
media/MediaBrowserService/Application/src/main/res/values/strings.xml
media/MediaBrowserService/Application/src/main/res/values/styles.xml
media/MediaBrowserService/template-params.xml
media/MediaRouter/Application/tests/AndroidManifest.xml
media/MediaRouter/Application/tests/src/com/example/android/mediarouter/tests/SampleTests.java
notification/BasicNotifications/Application/tests/src/com/example/android/basicnotifications/tests/SampleTests.java
notification/LNotifications/Application/tests/AndroidManifest.xml
notification/MessagingService/template-params.xml
renderScript/BasicRenderScript/Application/tests/src/com/example/android/basicrenderscript/tests/SampleTests.java
renderScript/BasicRenderScript/template-params.xml
renderScript/RenderScriptIntrinsic/Application/tests/src/com/example/android/renderscriptintrinsic/tests/SampleTests.ja
error: The following untracked working tree files would be overwritten by checkout:
admin/DeviceOwner/Application/.gitignore
admin/DeviceOwner/Application/README-fragmentview.txt
admin/DeviceOwner/Application/README-singleview.txt
admin/DeviceOwner/Application/proguard-project.txt
admin/DeviceOwner/Application/src/main/AndroidManifest.xml
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerReceiver.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/InstructionFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/MainActivity.java
admin/DeviceOwner/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/layout/activity_main_real.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_device_owner.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_instruction.xml
admin/DeviceOwner/Application/src/main/res/values/strings.xml
admin/DeviceOwner/Application/src/main/res/xml/device_owner_receiver.xml
admin/DeviceOwner/build.gradle
admin/DeviceOwner/buildSrc/build.gradle
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.jar
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.properties
admin/DeviceOwner/gradlew
admin/DeviceOwner/gradlew.bat
admin/DeviceOwner/screenshots/1-main.png
admin/DeviceOwner/screenshots/icon-web.png
admin/DeviceOwner/settings.gradle
admin/DeviceOwner/template-params.xml
admin/NfcProvisioning/Application/.gitignore
admin/NfcProvisioning/Application/README-fragmentview.txt
admin/NfcProvisioning/Application/README-singleview.txt
admin/NfcProvisioning/Application/proguard-project.txt
admin/NfcProvisioning/Application/src/main/AndroidManifest.xml
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/NfcProvisioningFragment.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ProvisioningValuesLoader.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/TextWatcherWrapper.java
admin/NfcProvisioning/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/layout/fragment_nfc_provisioning.xml
admin/NfcProvisioning/Application/src/main/res/values/strings.xml
admin/NfcProvisioning/Application/tests/src/com/example/android/nfcprovisioning/tests/SampleTests.java
admin/NfcProvisioning/build.gradle
admin/NfcProvisioning/buildSrc/build.gradle
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.jar
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.properties
admin/NfcProvisioning/gradlew
admin/NfcProvisioning/gradlew.bat
admin/NfcProvisioning/nfcprovisioning.txt
admin/NfcProvisioning/screenshots/1-main.png
admin/NfcProvisioning/screenshots/icon-web.png
admin/NfcProvisioning/settings.gradle
admin/NfcProvisioning/template-params.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/.gitignore
connectivity/bluetooth/BluetoothAdvertisements/Application/proguard-project.txt
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/AndroidManifest.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/AdvertiserFragment.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/Constants.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/
Aborting
Syncing work tree: 6% (32/532) error: The following untracked working tree files would be overwritten by checkout:
src/compatibility/4.4/android-4.4-cdd.xhtml
src/compatibility/5.0/android-5.0-cdd.html
Please move or remove them before you can switch branches.
Aborting
Syncing work tree: 100% (532/532), done.
developers/samples/android/: discarding 23 commits
docs/source.android.com/: discarding 2 commits
error: developers/samples/android/: platform/developers/samples/android checkout 5aa1d659c86cf7851d85d33108e4c761a02cf817
error: docs/source.android.com/: platform/docs/source.android.com checkout cfd98ed5e9570d76b5a50d77e51318211777dcfb
What should I do? :/
Click to expand...
Click to collapse
Did you make any important changes? If you didn't then just do this:
Code:
repo forall -vc "git reset --hard"
And do repo sync again, it will now work
Related
Xperia Play Users,
I am currently working on bringing CM10 to the Play, and I'm looking for input from anybody else who has ideas.
The Rules:
Post something constructive, no "Good Luck" "reserved" etc. this thread is for working through problems when building CM10
That said.
Update: I'll be posting errors here, so it'll be easy to keep track of.
First error I hit (& fixed? (compiler hasn't failed yet on this one)) deals with hardware/qcom/display/libcopybit where copybit_c2d.cpp fails to compile with a couple of errors related to "KGSL_USER_MEM_TYPE_ION" is not declared. (iirc)
I fixed this (I think) by replacing CM10's qcom/display with caf's qcom/display
Second error: (Erroring out right now)
In-line kernel building. I'm getting a (possible) GCC compiler false error where it says
Code:
/home/paxchristos/Android_Source/cm10/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c: In function 'wl_iw_set_pmksa':
/home/paxchristos/Android_Source/cm10/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c:5335:5: error: array subscript is above array bounds [-Werror=array-bounds]
/home/paxchristos/Android_Source/cm10/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c:5338:5: error: array subscript is above array bounds [-Werror=array-bounds]
/home/paxchristos/Android_Source/cm10/kernel/semc/msm7x30/drivers/net/wireless/bcm4329/wl_iw.c: At top level:
cc1: error: unrecognized command line option "-Wno-unitialised" [-Werror]
Possible fix: for now turn off in-line kernel building until either error is solved.
Error 3 -- Removed in-line kernel building, but forgot to set device/semc/zeusc/prebuilt/kernel to copy to out/target/product/zeusc/kernel ... whoops
Error 4 -- The way things are sent to logcat has been changed from ICS
Code:
/home/paxchristos/Android_Source/cm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/zeusc/obj/SHARED_LIBRARIES/lights.semc_intermediates/lights.o: in function write_string:device/semc/msm7x30-common/liblights/lights.c:87: error: undefined reference to 'LOGE'
/home/paxchristos/Android_Source/cm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/zeusc/obj/SHARED_LIBRARIES/lights.semc_intermediates/lights.o: in function write_int:device/semc/msm7x30-common/liblights/lights.c:66: error: undefined reference to 'LOGE'
/home/paxchristos/Android_Source/cm10/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: out/target/product/zeusc/obj/SHARED_LIBRARIES/lights.semc_intermediates/lights.o: in function set_light_backlight:device/semc/msm7x30-common/liblights/lights.c:131: error: undefined reference to 'LOGV'
Fixed by copying over liblights/ from jellybean version of msm7x30-common/
Error 5 -- Same error happens with msm7x30-common/libsensors/
Fixed the same way as error 4
Error 6 -- Last error I'm gonna talk about tonight:
I did (apparently) a half baked revert to using a prebuilt kernel & it just bit me in the butt. I'll fix it tomorrow & keep updating this.
Fixed it by using half of FXP's custombootimg.mk where it calls (PRODUCT_OUT)/kernel instead of (TARGET_PREBUILT_KERNEL)
Anybody else up for learning with me & briniging JB to the Play?
Pax
UPDATE: Pre-alpha release are available here: http://www.mediafire.com/?6ggud46a7c6cq
Latest kernel is here: http://forum.xda-developers.com/showpost.php?p=29498363&postcount=233
Remember, this is an alpha, a lot of stuff does not work. Please logcat any errors you find, otherwise (unless it's something like baseband unknown) I WILL IGNORE THEM
What Works:
CDMA Data
Calls
SMS
AUDIO!!
HW Video
GPS
What Doesn't Work:
Haven't tested to much, you guys tell me
I came across this by googling, hope that helps :
http://forum.xda-developers.com/showthread.php?t=1104142&page=4
Cheers, I'm willing to learn if you don't mind teaching a newbie in dev
Sent from my Play using xda app-developers app
sasukekun67 said:
I came across this by googling, hope that helps :
http://forum.xda-developers.com/showthread.php?t=1104142&page=4
Cheers, I'm willing to learn if you don't mind teaching a newbie in dev
Sent from my Play using xda app-developers app
Click to expand...
Click to collapse
Thank you, I think for JB CM wants to use -O2 when compiling so I'm not gonna touch that one (for now)
A Good place to start would be with Keiran's building ICS tutorial with some changes.
First off, I'm using Ubuntu 10.04 LTS, but Ubuntu 12.04 LTS *should* work (no guarantees)
To download the vendor tree (vendor/semc)
use this instead of what Keiran has (koush cleaned out a lot of the vendor trees out of his git, and mine is outdated)
Code:
git clone https://github.com/kali-/proprietary_vendor_semc.git -b ics semc
also, I'm using the ICS device tree (same as keiran) instead of JB because the JB tree's are not 100% functional right now.
Pretty much if you follow that (& I suggest instead of doing make -j# bacon do mka bacon) & run into any errors, i'll help with whatever suggestions I might have (or anybody else)
Note: If somebody needs help trying to build AOKP, I'll help, but I'm not as familiar with the source as I am with CM
Pax
Also, before I forget, here a how-to sync caf's (code aurora forums) repo (similar to cm/AOSP/etc)
https://www.codeaurora.org/xwiki/bin/QAEP/
The branch I synced was jb.
Pax
Sent from my R800x using Tapatalk 2
First build is complete, I'm need to make a nanadroid & flash a new kernel (I'm on keics/CNA right now so it'll be a little bit before I post results )
Pax
hi,
it won't boot on sony ericsson hdpi devices without msm.... changes (look at mini pro thread you will find a lot of usefull information about it)
you need to enable triple buffer in the kernel
Thanks Nickholtus, i'll look into it.
Status 6 error in the update-script (really? off the cm-10 building ?!?!) so i'm working on that now...
if you can fix the framebuffer error in the kernel we have a fully booting rom
kamarush made a build for me (from cm10 sources) with play device tree (his own)
only that error is preventing a boot
edit: can you upload your current kernel?
i know a ugly fix to get it at least booting, but i am on holiday now and i only have a windows pc with slow internet and no kernel
nickholtus said:
if you can fix the framebuffer error in the kernel we have a fully booting rom
kamarush made a build for me (from cm10 sources) with play device tree (his own)
only that error is preventing a boot
edit: can you upload your current kernel?
i know a ugly fix to get it at least booting, but i am on holiday now and i only have a windows pc with slow internet and no kernel
Click to expand...
Click to collapse
I'll probably base it off either FXP or Mjolnir's kernel (sorry Lupus)
[sritke]Do you have a link with a how-to add in triple buffer? [/strike] CAF!! - https://www.codeaurora.org/gitweb/q...it;h=50c3bc621e2cf0c3587b1827d931738d148c33d8
UPDATE: Nickholtus, it's not this easy, is it?!?! https://www.codeaurora.org/gitweb/q...;hpb=1125e58c5744e1ad833e30e5d2a74eb6dca1ca20
Also, if anybody wants to try to fix the update-script, i've attached it
no i don't know, we think it is in msm_fb.c in the kernel source
see this post for more info: http://forum.xda-developers.com/showpost.php?p=29062634&postcount=177
edit:
i don't think so, but i can't try it.
kamarush couldn't find it (how to enable triple buffer) but if that's it it is an easy fix
nickholtus said:
no i don't know, we think it is in msm_fb.c in the kernel source
see this post for more info: http://forum.xda-developers.com/showpost.php?p=29062634&postcount=177
---------- Post added at 09:03 PM ---------- Previous post was at 08:58 PM ----------
i don't think so, but i can't try it.
kamarush couldn't find it (how to enable triple buffer) but if that's it it is an easy fix
Click to expand...
Click to collapse
Here's the best diff (all 3) i've found for the commit
https://www.codeaurora.org/gitweb/q...ff;h=acffb1675f468a85f528e01707f3fa98f45b77f8
i am going ask kamarush and see what he thinks
he thinks it can probaply fix it
While I'm no help for this, for the script stuff, can't you enlist the help of the supercharger guy? He seems to be pretty adept with script lark.
Obviously, that's coming from an outsider.
Sythedragon said:
While I'm no help for this, for the script stuff, can't you enlist the help of the supercharger guy? He seems to be pretty adept with script lark.
Obviously, that's coming from an outsider.
Click to expand...
Click to collapse
hahaha, different type of scripts, but thanks for the idea
Pax
Also: Made the changes in the kernel I have on hand, fxp's from cm9/10 source. I've added in the correct stuff to cyanogen_zeus_defconfig & mach-msm/board-semc_zeus.c as soon as I'm done downloading Doom's ndk, i'll try & build it & see if it works
Pax
kamarush is making the kernel for me, with triple buffer enabled
edit: haha you was faster
nickholtus said:
kamarush is making the kernel for me, with triple buffer enabled
edit: haha you was faster
Click to expand...
Click to collapse
I was, then I got arrowed in the knee
Or i would be, but then my git clone downloads at ~200 kb/s
Nickholtus,
Here's a test kernel, the changes are in the zImage, the ramdisk is FXP's from well, it's a source build off code from yesterday.
thanks
going to try it now
still the same error
edit: i need to get adb working
doesn't find the device
Lemme look into it, i'll test it out shortly (trying to get my build of cm10 to install )
Pax
Edit: Nickholtus, could you post a link to your build, mine just doesn't want to work
Pax
Edit 2: I think it's because i'm coming from CNA to CM10, i'm gonna build cm9 then retry with that
Pax
i can't upload my build, the upload speed here is 15kbps atm
How does one port ROMs to another phone? I'm looking to try and port Xylon to the Find 5.
Sent from my X909 using xda app-developers app
it's really not that difficult. just have to adjust some overlays, change some stuff in vendor and maybe grab the camera from CM if the changes haven't been made to that ROM.
if you are building from source:
Find the 4.2.2 source code of the ROM you want to port
Get the manifest.
Add the CM10.1 device/kernel tree and proprietary libs in the .repo/local_manifest/roomservice.xml
sync all the repos
(do whatever the source might need you to set up: EG paranoid android, need you to setup your device properly in vendor/pa/* files)
compile. Fix any problems(maybe missing files, etc)
you could try a non-4.2.2-based ROM to port, but you'll run into more incompatibility issues to fix
mbh87 said:
it's really not that difficult. just have to adjust some overlays, change some stuff in vendor and maybe grab the camera from CM if the changes haven't been made to that ROM.
Click to expand...
Click to collapse
So would you say just use this
http://forum.xda-developers.com/showthread.php?t=2232773
And the CM10 for our Oppo?
Sent from my X909 using xda app-developers app
newbcake said:
So would you say just use this
http://forum.xda-developers.com/showthread.php?t=2232773
And the CM10 for our Oppo?
Sent from my X909 using xda app-developers app
Click to expand...
Click to collapse
No, build from source since it's available.
mbh87 said:
No, build from source since it's available.
Click to expand...
Click to collapse
You mean Oppo's source or AOSP from Google? I presume AOSP
Sent from my X909 using xda app-developers app
assuming this is the one you want to port (it is using 4.2.2, so hopefully it'll be easier)
read their README: https://github.com/XYAOSP/buildscripts
use repo and checkout this manifest
https://github.com/XYAOSP/platform_manifest/blob/jb4.2/default.xml
use repo and sync all the repos
then see how I get the device specific files here? do the same https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Build#Get-device-specific-sources-and-build
then follow whatever instructions needed to build. if it uses CM based building (which i think they do here, then do
. build/envsetup.sh && brunch
select the find5 entry (if it;s not there, then do lunch, select find5, mka)
wait for it to fail. read error message. fix error message. repeat last 3 steps .. Google is your friend... learn to love google
---------------------------------------
you should try building CM10.1 first. there will hopefully be no errors, and you learn how to use brunch/lunch/breakfast / etc
https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Build
paperWastage said:
assuming this is the one you want to port (it is using 4.2.2, so hopefully it'll be easier)
read their README: https://github.com/XYAOSP/buildscripts
use repo and checkout this manifest
https://github.com/XYAOSP/platform_manifest/blob/jb4.2/default.xml
use repo and sync all the repos
then see how I get the device specific files here? do the same https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Build#Get-device-specific-sources-and-build
then follow whatever instructions needed to build. if it uses CM based building (which i think they do here, then do
. build/envsetup.sh && brunch
select the find5 entry (if it;s not there, then do lunch, select find5, mka)
wait for it to fail. read error message. fix error message. repeat last 3 steps .. Google is your friend... learn to love google
---------------------------------------
you should try building CM10.1 first. there will hopefully be no errors, and you learn how to use brunch/lunch/breakfast / etc
https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Build
Click to expand...
Click to collapse
Is there something wrong with the Xylon repo? I keep getting this:
Code:
Cannot fetch htc-msm8960/[some path here]
newbcake said:
Is there something wrong with the Xylon repo? I keep getting this:
Code:
Cannot fetch htc-msm8960/[some path here]
Click to expand...
Click to collapse
use google and your own intuition to help you (this is why you should build the Cm10.1 ROM first.... the knowledge you gain will help you)
most likely either github is down, or the path referencing it is invalid, or something......
but the question is, do we need htc-msm8960? most likely no, since the oppo kernel is self contained
^^^ all this comes from experience.... seriously, go build cm10.1 for the find 5 first
paperWastage said:
use google and your own intuition to help you (this is why you should build the Cm10.1 ROM first.... the knowledge you gain will help you)
most likely either github is down, or the path referencing it is invalid, or something......
but the question is, do we need htc-msm8960? most likely no, since the oppo kernel is self contained
^^^ all this comes from experience.... seriously, go build cm10.1 for the find 5 first
Click to expand...
Click to collapse
we probably dont need it, but a lot of ROMs make you download ALL their devices and corresponding files.
Well, I removed the HTC lines from manifest.xml (maybe not a good idea?) but anyway, it finished syncing after.
mbh87 said:
we probably dont need it, but a lot of ROMs make you download ALL their devices and corresponding files.
Click to expand...
Click to collapse
yeah... it's a problem with a simple fix.... if the error was something like "packages_mms_app", then it's a more serious problem.....
does removing that repo mask a larger problem? that's why I'm pushing for OP to start small first by building CM10.1, and learn the environment (instead of posting every single problem he encounters here, and asks for help)
I've only started playing with android source code in March/early april... and these are things that I've learned/picked up since then.
paperWastage said:
yeah... it's a problem with a simple fix.... if the error was something like "packages_mms_app", then it's a more serious problem.....
does removing that repo mask a larger problem? that's why I'm pushing for OP to start small first by building CM10.1, and learn the environment (instead of posting every single problem he encounters here, and asks for help)
I've only started playing with android source code in March/early april... and these are things that I've learned/picked up since then.
Click to expand...
Click to collapse
Understood. I'm syncing up the Cm10 now. Thanks!
Is is best to do this all on Linux, Mac, or Windows?
It isn't possible to do it on windows so one of the other two.
mbh87 said:
It isn't possible to do it on windows so one of the other two.
Click to expand...
Click to collapse
Cool thanks. I just "finished" my compile on my Mac 10.7.8 but there was something about gcc422 not found. I have the latest XCode installed along with Dev tools. So can anyone help cause I didn't see anything with a Google.
I presume a clean Ubuntu is preferred
Sent from my X909 using xda app-developers app
newbcake said:
Cool thanks. I just "finished" my compile on my Mac 10.7.8 but there was something about gcc422 not found. I have the latest XCode installed along with Dev tools. So can anyone help cause I didn't see anything with a Google.
I presume a clean Ubuntu is preferred
Sent from my X909 using xda app-developers app
Click to expand...
Click to collapse
it's preferable
even on ubuntu, you still have to get specific packages: need oracle version of jdk, not openjdk, need to remove some incompatible stuff
heres a guide for ubuntu 12.10
https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Android-setup
paperWastage said:
it's preferable
even on ubuntu, you still have to get specific packages: need oracle version of jdk, not openjdk, need to remove some incompatible stuff
heres a guide for ubuntu 12.10
https://git.ngvincent.com/projects/oppo-x909-cm10/wiki/Android-setup
Click to expand...
Click to collapse
I tried compiling CM10, and am even having problems with that. Google did not seem to help for this. Here is what I did:
I did the mka, then mka otapackage, and NOTHING is appearing. No zips at all.
Code:
hardware/qcom/media/mm-video/vidc/vdec/src/omx_vdec.cpp:9925:138: warning: format '%d' expects argument of type 'int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
make: *** wait: No child processes. Stop.
That is the last fine before it gives me control of terminal again.
newbcake said:
I tried compiling CM10, and am even having problems with that. Google did not seem to help for this. Here is what I did:
I did the mka, then mka otapackage, and NOTHING is appearing. No zips at all.
Code:
hardware/qcom/media/mm-video/vidc/vdec/src/omx_vdec.cpp:9925:138: warning: format '%d' expects argument of type 'int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
make: *** wait: No child processes. Stop.
That is the last fine before it gives me control of terminal again.
Click to expand...
Click to collapse
a few tips
typically, compilers only stop when there's an error, not warnings (unless you set flags like -Werror )
compiling is parallelized.... let's say you have a quad core, you can compile 4 projects simultaneously... when you have an error on the first make file, it stops.... but the other 3 projects will continue compiling and outputting logs until they're done (then the scheduler sees the first make file has an error, doesn't execute any more make builds and halts), so the last log file/line might not be showing you the error
For CM10.1, find5 is official now... you can just use brunch instead of breakfast/lunch & mka
paperWastage said:
a few tips
typically, compilers only stop when there's an error, not warnings (unless you set flags like -Werror )
compiling is parallelized.... let's say you have a quad core, you can compile 4 projects simultaneously... when you have an error on the first make file, it stops.... but the other 3 projects will continue compiling and outputting logs until they're done (then the scheduler sees the first make file has an error, doesn't execute any more make builds and halts), so the last log file might not be showing you the error
For CM10.1, find5 is official now... you can just use brunch instead of breakfast & mka
Click to expand...
Click to collapse
In essence, I scour the log for errors?
I just presumed as CM10 already existed on the Oppo Find 5, it would be an error-free compile.
newbcake said:
In essence, I scour the log for errors?
I just presumed as CM10 already existed on the Oppo Find 5, it would be an error-free compile.
Click to expand...
Click to collapse
you could source the log for errors
or just run the compile script again and again.... the scheduler will continue building other packages, but it'll come to a point where it can't build anything else without that broken package.... and hence, the error in the log will be obvious(since everything else is already built, no logs from them)
it should be an error-free compile, but sometimes things could happen (a small tweak in package/A gives some problems when compiling with package/B)
I would say, most likely there's some build package incompatibility in your system.
I can't get past this error
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/samsung/i605/omni_i605.mk]]: "device/samsung/l900/full_i605.mk" does not exist. Stop.
WARNING: Trying to fetch a device that's already there
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[device/samsung/i605/omni_i605.mk]]: "device/samsung/l900/full_i605.mk" does not exist. Stop.
** Don't have a product spec for: 'omni_i605'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
real 0m0.122s
user 0m0.042s
sys 0m0.089s
apophis9283 said:
I can't get past this error
Click to expand...
Click to collapse
Do you have vendorsetup.sh in your /device/samsung/l900/ folder? If not, create it and put this in it:
Code:
add_lunch_combo omni_i605-userdebug
Do you have full_i605.mk in your device tree? Also, omni_i605.mk and i605.mk?
I had to put the i605 make file in the l900 folder. Doesnt make sense. After all that I got it to compile but no boot.
Sent from my SCH-I605 using Tapatalk 2
Also if l900 is important to build i605 then why doesnt it pull it when I brunch and pulls everything else?
apophis9283 said:
Also if l900 is important to build i605 then why doesnt it pull it when I brunch and pulls everything else?
Click to expand...
Click to collapse
Because nobody did a device bringup yet, so the compiler doesn't know that it needs some common stuff as well.
After examining the Omni repo: how can it pull i900 when the device tree does not exist in the Omni tree yet?
https://github.com/omnirom/
chasmodo said:
Because nobody did a device bringup yet, so the compiler doesn't know that it needs some common stuff as well.
After examining the Omni repo: how can it pull i900 when the device tree does not exist in the Omni tree yet?
https://github.com/omnirom/
Click to expand...
Click to collapse
Im looking at omniroms github. Android device samsung l900 is there and does have a kit kat tag. Its l900 not i900
l900 is Sprints note 2. i605 is Verizons Note 2. If having to put the i605 make file in the l900 folder is whats causing it not to boot, that means its compiling for l900 even though I want it to compile for i605. Something may be borked in build. No reason for i605 to depend on l900. Somethings just not right
Sent from my SCH-I605 using Tapatalk 2
apophis9283 said:
Its l900 not i900
Click to expand...
Click to collapse
Oh...sorry, I thought it was i900.
Anyway, you've got to create your l605 device tree and put all the l900-common references (if they exist) in it: take a look at n7100 or n7000 tree at Omni Github and you'll see what I'm talking about. There's no way for compiler to know what to do unless you tell it.
chasmodo said:
Oh...sorry, I thought it was i900.
Anyway, you've got to create your l605 device tree and put all the l900-common references in it: take a look at n7100 or n7000 tree at Omni Github and you'll see what I'm talking about. There's no way for compiler to know what to do unless you tell it.
Click to expand...
Click to collapse
My i605 folder looks identical to the way n7100 is setup. Its weird, It screams to have full_i605.mk put in the l900 device folder. It shoudlnt be doing this. Somethings borked.
All this over a typo. I found it. Compiling now without a l900 folder
In omni_i605.mk
Change
# Inherit device configuration
$(call inherit-product, device/samsung/l900/full_i605.mk)
change it to
# Inherit device configuration
$(call inherit-product, device/samsung/i605/full_i605.mk)
@apophis9283 I saw your post about No cell/data on the i605 nightly.. was that your build? SlimROM seems to have a working AOSP 4.4.2. Is there any chance that something from their project might help get OmniROM up and running on i605?
I would be willing to work on this, but have no experience or idea where to start.
Thanks.
travisn000 said:
@apophis9283 I saw your post about No cell/data on the i605 nightly.. was that your build? SlimROM seems to have a working AOSP 4.4.2. Is there any chance that something from their project might help get OmniROM up and running on i605?
I would be willing to work on this, but have no experience or idea where to start.
Thanks.
Click to expand...
Click to collapse
Data works on cm and aokp so far. I just havent looked any further into it yet. I got data on aokp by using cms device tree so i never isolated the actual problem. Omni requires an omni make file in the devices tree. So just need to pull in cms trees and make adjustments so omni will compile it
Sent from my SCH-I605 using Tapatalk 2
I quit messing with it. That roomservice file is annoying.
Sent from my SCH-I605 using Tapatalk 2
apophis9283 said:
I quit messing with it. That roomservice file is annoying.
Sent from my SCH-I605 using Tapatalk 2
Click to expand...
Click to collapse
..does that mean pulling from the other projects won't work, or just won't work without ALOT of work? I don't know what the roomservice file is.. :?
I wanted to use a local manifest. Well when I tried to compile of course there were going to be errors but omnis response is to create the roomservice file. So its hard to tell what i may need to change around. The way aokp handles it is a million times better
Sent from my SCH-I605 using Tapatalk 2
I keep getting this sync error:
Code:
Unexpected end of command stream
Fetching projects: 99% (415/419) fatal: Couldn't find remote ref refs/heads/android-4.4.2_r1
error: Cannot fetch android_frameworks_opt_mms
error: Cannot fetch TheMuppets/proprietary_vendor_htc
also, if i have a working cm official, what can i pull from it that would work with omni?
pandasa123 said:
I keep getting this sync error:
Code:
Unexpected end of command stream
Fetching projects: 99% (415/419) fatal: Couldn't find remote ref refs/heads/android-4.4.2_r1
error: Cannot fetch android_frameworks_opt_mms
error: Cannot fetch TheMuppets/proprietary_vendor_htc
also, if i have a working cm official, what can i pull from it that would work with omni?
Click to expand...
Click to collapse
The error is incomplete... I have no idea WHICH repo it's looking for that branch on since it's failing on multiple repos.
My guess would be a malformed omni.dependencies or a bad manifest in .repo/local_manifests/
I can tell you that syncing TheMuppets will result in broken builds 90% of the time.
What should I do for device props instead of muppets? And malformed omni.dependencies? That can affect it?
Sent from my One Xl using Tapatalk
pandasa123 said:
What should I do for device props instead of muppets?
Click to expand...
Click to collapse
https://github.com/DonkeyCoyote/
pandasa123 said:
And malformed omni.dependencies? That can affect it?
Click to expand...
Click to collapse
Yes, because what's in omni.dependencies gets synced as well. So if it tells repo to sync something that isn't there...
So omni is like building other ROMs? Just like building cm but change the cm parts to omni and adding twrp?
On the HTC one xl (Evita) and I really liked the multi window and thought we were overdue for an Omni build, so I wanted to try building it myself instead of waiting for one
Sent from my One Xl using Tapatalk
pandasa123 said:
So omni is like building other ROMs? Just like building cm but change the cm parts to omni and adding twrp?
On the HTC one xl (Evita) and I really liked the multi window and thought we were overdue for an Omni build, so I wanted to try building it myself instead of waiting for one
Sent from my One Xl using Tapatalk
Click to expand...
Click to collapse
In essence, yes. And I applaud you for being proactive and starting to compile for yourself.
PonsAsinorem said:
In essence, yes. And I applaud you for being proactive and starting to compile for yourself.
Click to expand...
Click to collapse
everything is syncing beautifully now...just one quick question...
for omni, should i add to the sync the CyanogenMod/android_device_htc_evita git repo with the build? i mean, with the build, the only thing that's really specified is the kernel and thats it, so there has to be more variety than just that, isn't there?
pandasa123 said:
everything is syncing beautifully now...just one quick question...
for omni, should i add to the sync the CyanogenMod/android_device_htc_evita git repo with the build? i mean, with the build, the only thing that's really specified is the kernel and thats it, so there has to be more variety than just that, isn't there?
Click to expand...
Click to collapse
Nope, not really. I'd try to sync only Omni's repos (and Google's), and leave other ROMs out of it. Assuming you're trying to build for the evita, and Omni doesn't have one for that, then you're best bet is to:
1. Fork (or create) a device tree
2. Make sure it's omnified
3. Add it to local_manifest
4. Once you have it up and running with minimal bugs, request to have Omni fork your device tree so it can be supported.
PonsAsinorem said:
Nope, not really. I'd try to sync only Omni's repos (and Google's), and leave other ROMs out of it. Assuming you're trying to build for the evita, and Omni doesn't have one for that, then you're best bet is to:
1. Fork (or create) a device tree
2. Make sure it's omnified
3. Add it to local_manifest
4. Once you have it up and running with minimal bugs, request to have Omni fork your device tree so it can be supported.
Click to expand...
Click to collapse
Omnified? This always confuses me. How do users have twrp if they have cwm installed? Will it overwrite?
And for the Evita tree, its basically me downloading cm tree locally and changing it to comply with omni? And then uploading it to my git so it can be added to local_manifest with that?
Sent from my One X using Tapatalk
pandasa123 said:
How do users have twrp if they have cwm installed?
Click to expand...
Click to collapse
They don't. It's either one or the other.
pandasa123 said:
Will it overwrite?
Click to expand...
Click to collapse
If you install it, yes. You don't have to, but it's recommended.
pandasa123 said:
And for the Evita tree, its basically me downloading cm tree locally and changing it to comply with omni? And then uploading it to my git so it can be added to local_manifest with that?
Click to expand...
Click to collapse
More or less. If you haven't seen this yet:
Porting Omni To Your Device
everything is synced and i followed the guide about the .mk files and vendorsetup.sh
at the beginning of the build, it showed these issues and i was wondering what they meant
Code:
build/core/product_config.mk:241: *** No matches for product "omni_evita". Stop.
WARNING: Trying to fetch a device that's already there
EDIT: the build died:
Code:
build/core/product_config.mk:241: *** No matches for product "omni_evita". Stop.
** Don't have a product spec for: 'omni_evita'
** Do you have the right repo manifest?
No such item in brunch menu. Try 'breakfast'
I'm building omni rom for falcon(moto g) using these repos for falcon
https://github.com/pinkflozd?tab=repositories for falcon resources
and for blobs
https://github.com/DonkeyCoyote/proprietary_vendor_motorola
@Entropy512 please help
but i get this error while compiling
Code:
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int16Arr.c
hardware/qcom/keymaster/keymaster_qcom.cpp:32:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int32Arr.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int8Arr.c
build/core/binary.mk:432: recipe for target '/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o' failed
make: *** [/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/omni$
but the msm_ion.h is there in /home/android/omni/kernel/motorola/msm8226/include/linux
Since you're not using Omni's repos, no help. I have no idea what that guy might have broken.
However I think building display might currently be broken and in need of a kernel update... I just noticed falcon builds were broken a day or two ago. (I've been focusing on bringing up Find 7a, and some of the updates for F7a may have broken Falcon)
But I've never had any issues with keymaster and haven't touched keymaster at all.
Entropy512 said:
Since you're not using Omni's repos, no help. I have no idea what that guy might have broken.
However I think building display might currently be broken and in need of a kernel update... I just noticed falcon builds were broken a day or two ago. (I've been focusing on bringing up Find 7a, and some of the updates for F7a may have broken Falcon)
But I've never had any issues with keymaster and haven't touched keymaster at all.
Click to expand...
Click to collapse
I compiled with the help of @herna
But still there is a audio bug(sound does not work)
Although he is still working on it
Sent from my Moto G using Tapatalk
Entropy512 said:
Since you're not using Omni's repos, no help. I have no idea what that guy might have broken.
However I think building display might currently be broken and in need of a kernel update... I just noticed falcon builds were broken a day or two ago. (I've been focusing on bringing up Find 7a, and some of the updates for F7a may have broken Falcon)
But I've never had any issues with keymaster and haven't touched keymaster at all.
Click to expand...
Click to collapse
O.T :
no chances omni for hlte ?
Thanks for your great job !
Sent from my SM-N9005 using Tapatalk
ilpolpi65 said:
O.T :
no chances omni for hlte ?
Thanks for your great job !
Sent from my SM-N9005 using Tapatalk
Click to expand...
Click to collapse
Only if a new maintainer steps up.
You won't be seeing it from myself, maxwen, or xplodwild, that's for sure.
rr46000 said:
I'm building omni rom for falcon(moto g) using these repos for falcon
https://github.com/pinkflozd?tab=repositories for falcon resources
and for blobs
https://github.com/DonkeyCoyote/proprietary_vendor_motorola
@Entropy512 please help
but i get this error while compiling
Code:
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int16Arr.c
hardware/qcom/keymaster/keymaster_qcom.cpp:32:27: fatal error: linux/msm_ion.h: No such file or directory
compilation terminated.
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int32Arr.c
target thumb C: libFFTEm <= external/neven/Embedded/common/src/b_BasicEm/Int8Arr.c
build/core/binary.mk:432: recipe for target '/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o' failed
make: *** [/home/rohan/android/omni/out/target/product/falcon/obj/SHARED_LIBRARIES/keystore.msm8226_intermediates/keymaster_qcom.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected]:~/android/omni$
but the msm_ion.h is there in /home/android/omni/kernel/motorola/msm8226/include/linux
Click to expand...
Click to collapse
could you let me know what u did for keymaster error ?
many thanks !
ilpolpi65 said:
could you let me know what u did for keymaster error ?
many thanks !
Click to expand...
Click to collapse
I tackled it with by using keymaster if cm
Bit I'll look into the error tomorrow and fix the error
Sent from my Moto G using Tapatalk
rr46000 said:
I tackled it with by using keymaster if cm
Bit I'll look into the error tomorrow and fix the error
Sent from my Moto G using Tapatalk
Click to expand...
Click to collapse
OK, I figured out what was going on.
I have no idea how, but I had a patch in the keymaster repo that was not showing up in "repo status" or anything like that... So all of my utilities said I had an unmodified keymaster identical to what anyone freshly syncing would have - but I didn't! REALLY weird.
So I'll work on fixing that up over the next few days.