Closed osakanataro closed 4 years ago
I have the same problem. Android is booting but you can’t see anything. You can touch things and you hear the “touch” sound. But it doesn’t show anything :/
@osakanataro ,
Thank you for testing. Can you provide detailed logs?
adb shell logcat | tee logcat.txt
adb shell dmesg | tee dmesg.txt
adb shell lsmod | tee lsmod.txt
adb shell lshal | tee lshal.txt
And attach files to the issue.
ADD: Please attach also output of adb shell getprop | tee getprop.txt
I'm trying to get GloDroid running on Pine64+ and have exactly the same problem with drm
The HDMI framebuffer is ok, data sent to fb0 is displayed
On v0.2.0 /dev/dri/card0 and /dev/dri/card1 was swapped for some reason comparing to other products, therefore Icenowy Zheng had to change device that used by hwc to card1. Maybe on v0.3.0 drm and gpu order changed once again.
I have tried both card0 and card1, no difference. But maybe my problem is something else.
I will collect some logs later today
According to the logs provided by @osakanataro , it's very likely that hwc try to use GPU as KMSRO.
I just want to make sure you've did all correctly.
You have to modify:
https://github.com/GloDroid/glodroid_device/blob/master/pinephone/drm.pinephone.rc
Both hwc and gralloc fields to card0.
At runtime make sure properties are applied before and after your modifications:
adb shell getprop | grep card
@osakanataro ,
Thank you for testing. Can you provide detailed logs?
adb shell logcat | tee logcat.txt adb shell dmesg | tee dmesg.txt adb shell lsmod | tee lsmod.txt adb shell lshal | tee lshal.txt
And attach files to the issue.
ADD: Please attach also output of
adb shell getprop | tee getprop.txt
@osakanataro ,
Thank you.
Please also share adb pull /proc/config.gz
Does v0.2.0 works fine for you? If so, please share same data for comparison.
v0.3.0 config.gz config.gz
v0.2.0 worked fine. v020-config.gz v020-dmesg.txt v020-getprop.txt v020-logcat.txt v020-lshal.txt v020-lsmod.txt
I tried replace boot.img, but not display. "Android logo" not display. v030a-getprop.txt v030a-logcat.txt v030a-lshal.txt v030a-lsmod.txt v030a-config.gz v030a-dmesg.txt
@rsglobal I opened a separate issue for Pine64
@osakanataro ,
Please test this image. https://drive.google.com/file/d/1Z7Ajtk2Hws_PIVFtoU6JzkMsd__rJsSe/view?usp=sharing No need to gather all logs this time. Just in case UI won't work, please attach output of
adb root
adb shell lsof | tee lsof.txt
pinephone-r2.tar is worked fine. https://photos.app.goo.gl/6HLzduRxfr7n5zfq8
Thanks. Could you also check r3? https://drive.google.com/file/d/1ZvvhipgHV7X2wRHH9N-obd1m_M5n3mqa/view?usp=sharing
pinephone-r3.tar is worked too.
That;s great. Does booting from eMMC work?
Sorry, I use eMMC for otherway. I could not write to eMMC.
v0.3.0 updated with the fix included. Assets was also updated.
I tried to following step on PinePhone.
PinePhone was no display and no LED. But, adb shell is worked.
07-01 13:16:21.618 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.618 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.619 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.620 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.620 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.645 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.645 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.648 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.649 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.649 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.673 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.673 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.676 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.677 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.677 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.699 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.699 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.705 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.705 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.706 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.729 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.729 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.731 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.731 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.731 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.757 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.758 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.761 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.767 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.767 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6) 07-01 13:16:21.785 342 395 E hwc-platform-drm-generic: failed to import prime fd 20 ret=-1 07-01 13:16:21.785 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.788 342 395 E hwc-platform-drm-generic: failed to import prime fd 19 ret=-1 07-01 13:16:21.788 342 395 E hwc-drm-two: Failed to import layer, ret=-1 07-01 13:16:21.789 354 354 E HWComposer: presentAndGetReleaseFences: present failed for display 0: NoResources (6)