Monday, 2021-03-29

techgeeksterHello! Trying to port to Asus Zenfone 3. Have no UI. As far as I can see the droid-hal-init service fails due to "critical service healthd exited". Can someone see the journal and figure out what could be wrong? Journal Log: https://paste.ubuntu.com/p/R5dNVRPtxS/ Repo: https://github.com/sailfish-on-zenfone309:05
T42<elros34> https://github.com/sailfish-on-zenfone3/droid-config-zenfone3/blob/hybris-16.0/sparse/var/lib/environment/compositor/droid-hal-device.conf. LIPSTICK_OPTIONS must be all in 1 line. In pdf there is even warning: "ALL IN ONE LINE(:". Next thing is  /usr/lib/systemd/system/ must be used instead /lib/systemd/system/ now in sparse. You shou09:40
T42ld also analyze /usr/libexec/droid-hybris/system/bin/logcat09:40
T42<zinstack625> Shouldn't healthd be disabled?09:44
techgeeksterzinstack625 Logcat says that it is unavailable09:54
techgeeksterI'll try the LIPSTICK thing. I must have missed that. Thank you!09:55
T42<elros34> you need to run logcat while droid-hal-init is up but it should be doable as it running for about 20s10:41
T42<gibcheesepuffs> @elros34 [no idea about it but at least you could check …], I found libdl.so in /out/target/product/jasmine_sprout/system/apex/com.android.runtime.release/lib64/bionic/libdl.so12:19
T42<gibcheesepuffs> @mal [@gibcheesepuffs can you find for example that …], .12:19
T42<elros34> you need to amend these 2 lines: https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L604-L605 so $art_path/$apex_path/lib(and lib64)/bionic/libdl.so will match your library path12:25
T42<gibcheesepuffs> @elros34 [you need to amend these 2 lines: https://githu …], what should I set art_path to?12:47
T42<gibcheesepuffs> because it seems to exist12:47
T42<gibcheesepuffs> but build fails even after setting correct path for apex_path12:47
T42<elros34> it shouldnt be hard: $art_path/$apex_path/lib/bionic/libdl.so = out/target/product/jasmine_sprout/system/apex/com.android.runtime.release/lib64/bionic/libdl.so12:50
T42<gibcheesepuffs> art_path=%{android_root}/out/soong/.intermediates/bionic13:00
T42<gibcheesepuffs> Under this path I have dirs named libc, lidl, libm and linker13:00
T42<gibcheesepuffs> apex_path=%{android_root}/out/target/product/$DEVICE/system/apex/com.android.runtime.release13:00
T42<gibcheesepuffs> I have dirs like lib, lib64 and some other dirs like bin, etc, javalib etc.13:00
T42<gibcheesepuffs> Is this not correct?13:00
T42<gibcheesepuffs> ah understood it now, sorry english is not my first language13:12
T42<elros34> my english is quite bad so it also might confuse sometimes13:17
T42<gibcheesepuffs> how do I telnet into device?15:06
deathmist_@gibcheesepuffs it's in the HADK: telnet 192.168.2.15 232315:21
T42<gibcheesepuffs> does not seem to work for me :015:38
T42<mintphin> @mintphin [it still boots straight to fastboot], any help?15:40
deathmist_@gibcheesepuffs please check "dmesg -w" while attempting to boot the device at specifically look for signs of "Mer" and USB RNDIS. which hybris version is this?15:46
T42<elros34> @mintphin try to flash out/target/product/boot.img without  skip_initramfs changes. boot.img contains just android init. Also show full output from make hybris-hal after you rever skip_initrafms changes16:05
T42<mintphin> hybris-boot? or hybris-hal?16:06
T42<elros34> it doesn't matter16:06
T42<elros34> also maybe it'ss some protection enabled in kernel, I don't know much about it but maybe disabling  CONFIG_DM_VERITY is good idea16:27
T42<gibcheesepuffs> @deathmist_ [@gibcheesepuffs please check "dmesg -w" while …], hybris-17.1, it does show mer in there16:35
T42<gibcheesepuffs> https://paste.ubuntu.com/p/TpgBn2W3hZ/16:35
T42<elros34> looks like your device reboots few seconds after reaching initramfs that is why you can't telnet16:43
T42<gibcheesepuffs> @elros34 [looks like your device reboots few seconds aft …], what should I try? Can this be due to some defconfig flags?16:45
T42<elros34> it can by anything, hybris-17 requires special changes (not documented in faq). Which device you used as template?16:47
T42<gibcheesepuffs> @elros34 [it can by anything, hybris-17 requires special …], I didn't use template, I used my previous stuff from hybris-16.0, 4.x16:47
T42<gibcheesepuffs> any template that you suggest to look at?16:49
T42<elros34> sorry no but there are few devs who are working on hybris-17 so wait for they suggestions16:52
T42<mintphin> @elros34 [also maybe it'ss some protection enabled in ke …], oh yeah i remember reading bout this17:14
*** techgeekster_ is now known as techgeekster17:34
techgeeksterelros34: Did the the changes you suggested. Still no GUI and logcat fails after a while. This is the logcat before it fails https://paste.ubuntu.com/p/6bJQBsYYYM/ . I think something is failing in the vendor side.18:56
T42<elros34> what permissions /dev/ion have? Do you have ueventd*rc somwhere in out/?19:07
techgeeksterLet me check19:11
techgeeksterelros34 : I have ueventd.rc in out/target/product/zenfone3/root19:14
T42<elros34> does it contains dev/ion and mdss_rotator? What owner and group it set?19:15
techgeeksterNo it does not19:17
T42<elros34> then search in /vendor on device itself19:17
techgeeksterThis is the ueventd.rc in out https://paste.ubuntu.com/p/Cd7Hjjg3Xf/19:18
techgeeksterelros34 So in the device itself the /dev/ion is 0664 system/system and /dev/mdss_rotator 0664 system/system (https://paste.ubuntu.com/p/4pFt6sWJZT/_19:21
T42<elros34> so you need to copy that ueventd you found in vendor to out/ directory next to ueventd.rc. You can also change '*_rotator system system' to 'system input'. Then build droid-hal again and confirm in droid-hal-device.log that you second uevent is used.19:27
techgeeksterOk will do! Thank you very much!19:29
techgeeksterelros34 Small question. How the two ueventd.rc files can coexist? Should I rename the one as ueventd.zenfone3.rc for instance or merge the into one?19:53
T42<elros34> that name should be fine I think but you can check in droid-hal-device.log what kind of file name it expects for ueventd.19:59
techgeeksterOk yes it has uevent.*.rc so it should be fine. Building time! Thank you!20:01
T42<elros34> you can copy droid-hal-$DEVICE.rpm to device and install. No need to create whole new image20:05
techgeeksterelros34 Still no UI, logcat seems identical (https://paste.ubuntu.com/p/yD92JkxJ64/)20:54
techgeeksterI'm going to sleep. If you have any idea of what is going on, write it down and I'll try it tomorrow. Goodnight.20:57
*** techgeekster_ is now known as techgeekster21:01
T42<elros34> looks better, there is no ion and rotator permission errors but still something is wrong. Maybe journal contains something useful21:01
T42<mintphin> @elros34 [@mintphin try to flash out/target/product/boot …], it tries to boot and then reboots to fastboot23:42
T42<mintphin> should i try another kernel perhaps?23:42
Mister_Magistermal: anything special needed for 4.0?23:43
Mister_Magisterand hows hybris17?23:57

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!