-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with hardware/qcom/display-caf #5
Comments
any progress here? |
No progress :( |
I cloned Shakalaca's kernel and checked out android-7.0 branch, run "brunch Z017", this produced lineage-14.1-20170615-UNOFFICIAL-Z017.zip which did boot up but it did not have wifi. |
How did you fix display-caf errors? |
I managed to build the rom, wifi working! I didn't encounter the display-caf error at all. Maybe your sources are messed up. Did you use the newly added local_manifest files? To solve the wifi problem: kernel module signing is to blame here. I found two solutions:
Even the second solution is somewhat dirty. If anyone knows how to properly fix this I'd be grateful to know! |
The Shakalaca's android-7.0 branch in his kernel tree has include/uapi/linux/msm_mdp_ext.h which has mdp_destination_scaler_data defined (and other missing symbols from that display-caf) and after I switched to that branch, it just compiled. Almost - before switching kernels, I also had to add "LOCAL_C_INCLUDES += hardware/qcom/fm/fm_hci" to hardware/qcom/fm/helium/Android.mk |
Is there any way to avoid compiling the whole thing every time? I'll change the config but "brunch Z017" will rebuild it all. |
Planet-X, which kernel did you use exactly (url please)? And what vendor files you use? Extracted from the phone or from Shakalaca's git or from the image he built? My zip image size is 40mb less than his so I assume something is missing in my image but what... |
I'm using shakalaca's provided kernel, branch android-7.0 from here: https://github.com/shakalaca/android_kernel_asus_ze520kl/tree/android-7.0 |
Planet-X, still, do you know if there is any way to avoid compiling the whole thing every time? :) |
Forgot to answer this one, sorry :) You can speed up the compilation of incremental builds by using ccache: https://source.android.com/source/initializing#setting-up-ccache Battery life looks great so far - one charge lasts for about two days. I'm not a heavy mobile user though... |
ah, so this is the best I can get (I am doing this already, hoped there is something better though). ok. thanks. |
Other than that compiling from an ssd drive greatly decreased the compilation time for me: at least five times faster! |
Well, I was hoping that I change a kernel config option, run "brunch Z017" and it would only compile kernel and build the image but it seems to compile other stuff unrelated to the kernel |
Ok, got my image with wifi working, cool. Since device/asus/Z017/BoardConfig.mk allows specifying pre-built kernel, I guess we could just build the kernel separately and sign all the modules; and use that when building the main firmware image. Tried that? I also wonder if there is a better kernel somewhere, like https://github.com/LineageOS/android_kernel_bq_msm8937.git (this one won't do it as it is missing symbols necessary for display-caf) |
2 days on a single charge?! How? Mine lasts 20hours top and I do not use it much.... |
Planet-X, my phone does not detect headphone in the fm radio, says "Please plug in a headset to use FM radio", seen that? |
@aik You can issue 'make -j8 $ANDROID_PRODUCT_OUT/kernel' to build the kernel only :) |
and thanks @Planet-X 's tip, I'm also using some kind of 'dirty' work to build the kernel module with working signature (vendor/cm)
and define |
@aswindivakar It came with LineageOS repo and I never touch that folder (that's why I put libsdm* in vendor/asus/Z017 ..) |
@aik Trying to build with android-7.0 branch thanks :) |
@shakalaca Ok, maybe checking out to android-7.0 branch will fix my issue.Building in progress :) |
@shakalaca can you please update your vendor folder on github? somehow your images are 60mb bigger than mine, something might be missing, thanks. |
I also had to disable: BOARD_USES_LEGACY_ALSA_AUDIO := false , otherwise would not compile. |
@aik I got this battery life by disabling almost anything running in the background and installing "Naptime" by Francisco Franco. Screenshot as proof: I didn't have to disable legacy audio on my build. Have you cloned https://github.com/shakalaca/android_hardware_qcom_audio-caf_msm8937_asus to "hardware/qcom/audio-caf/msm8937/legacy" ? |
@Planet-X I did not checkout that legacy library, trying now; and that xml - it has always been in the repo, do I need to do anything extra? I have been having this problem pretty much all the time, my images or shakalacas - does not matter, it works first time after flashing and then it does not. |
@shakalaca Your solution to signing seems far less dirty than mine. Just for completion, my script currently looks like this: #!/bin/bash
SOURCEPATH="[path to lineage source root, not ending with slash]" #Set source path here!
#Clear old modules:
rm $SOURCEPATH/out/target/product/Z017/system/lib/modules/*
#Wait for the build process to generate the modules
echo "Waiting for finished modules..."
while [ "$(ls $SOURCEPATH/out/target/product/Z017/system/lib/modules/ | grep wlan.ko)" == "" ]; do
sleep 3
done
sleep 3
echo "Signing modules..."
cd $SOURCEPATH/out/target/product/Z017/obj/KERNEL_OBJ #In this directory the signing keys are stored
MODULES=$SOURCEPATH/out/target/product/Z017/system/lib/modules/* #Store all module file paths in array MODULES
for m in $MODULES #Sign all modules
do
perl $SOURCEPATH/kernel/asus/Z017/scripts/sign-file sha512 ./signing_key.priv ./signing_key.x509 $m
done It's as cheap as it gets, but I'll stick to it for now as it doesn't involve tampering with cm sources. |
@aik With the files from the local_manifests folder you can pretty much set up the repo command to check out any additionally needed repositories for you. The files in your device's local_manifests folder should be copied to "[lineage source dir]/.repo/local_manifests". The next time you execute "repo sync" it will also download necessary Zenfone 3 sources to their corresponding directories. This currently includes kernel, device tree, audio-caf and qcom-fm. Only vendor has to be checked out manually. |
@Planet-X sounds lovely, I assume @shakalaca 's repo is missing them and you have these manifests ready? Care to share? :) |
@aik The manifests are in @shakalaca 's repository here: https://github.com/shakalaca/android_device_asus_Z017/tree/cm-14.1/local_manifests |
@Planet-X this did not pull neither kernel nor that legacy audio stuff, weird :-/ |
@aik This should definitely work - At least I'm using it without any troubles. Maybe running 'repo forall -vc "git reset --hard"' can resolve this. !This will reset any changes done to source files managed by repo! The files should then be pulled, assuming the manifests are placed correctly. |
What is reponsible for adb? I took perf config, flashed - now the laptop does not detect the phone via adb or anyhow else. |
Headphones are still a problem - the phone does recognise them right after I flash new firmware + wipe dalvik+cache and after a while the phone stops seeing them. |
Did anyone need this? diff --git a/arch/arm/boot/dts/qcom/msm8953-audio.dtsi b/arch/arm/boot/dts/qcom/msm8953-audio.dtsi
-/* |
Now I am having this issue when i changed my Source location anyone knows how to fix this?
|
@aik nop, maybe I should restart a clean repo to see what's missing ? :) |
@shakalaca @Planet-X Where exactly I need to add?(I need path to the file)
|
@aswindivakar You have to add it to the kernel configuration located here: |
@Planet-X Thank You :) |
@Planet-X How did you managed to get such a great Battery Life.I can only get approximately 3 hrs Screen on time with 65% battery (First boot-Installing apps,syncing,setting up things) |
@aswindivakar My battery life wasn't as good on first boot either. Installing apps and setting up the device consumes far more battery than day to day usage. The only things I did to gain more battery life were:
My phone is a ZE552KL so its battery is 400 mAh bigger than the ZE520KL's. |
Ok.I thought your device is ZE520KL.Anyway thank you :) |
Does anyone know how to fix this?
|
@aswindivakar Yes, I also encountered this error. The solution is to add this line |
@aswindivakar /home/androidbuild/android/system/kernel/asus/Z017/arch/arm64/configs/ze552kl-userdebug_defconfig |
I wonder if it is possible to underclock cpu or do something similar permanently? |
@shakalaca git diff should tell ya what is missing :-) I noticed new kernel on the asus website, ported somehow and this is why adb was not working. The msm8953-audio.dtsi problem appears on both your and newer kernel though. |
@Planet-X Let me check it :) |
How to change button configuration in our build, in my RR build recent hardware key is not working onscreen key works well.Anyone knows how to fix this? @Planet-X @aik @shakalaca |
Can you please add a repository of your hardware/qcom/display-caf folder.Iam getting 12 errors in that section.
The text was updated successfully, but these errors were encountered: