techgeekster | Hello! 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-zenfone3 | 09: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 shou | 09:40 |
T42 | ld also analyze /usr/libexec/droid-hybris/system/bin/logcat | 09:40 |
T42 | <zinstack625> Shouldn't healthd be disabled? | 09:44 |
techgeekster | zinstack625 Logcat says that it is unavailable | 09:54 |
techgeekster | I'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 20s | 10: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.so | 12: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 path | 12: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 exist | 12:47 |
T42 | <gibcheesepuffs> but build fails even after setting correct path for apex_path | 12: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.so | 12:50 |
T42 | <gibcheesepuffs> art_path=%{android_root}/out/soong/.intermediates/bionic | 13:00 |
T42 | <gibcheesepuffs> Under this path I have dirs named libc, lidl, libm and linker | 13:00 |
T42 | <gibcheesepuffs> apex_path=%{android_root}/out/target/product/$DEVICE/system/apex/com.android.runtime.release | 13: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 language | 13:12 |
T42 | <elros34> my english is quite bad so it also might confuse sometimes | 13:17 |
T42 | <gibcheesepuffs> how do I telnet into device? | 15:06 |
deathmist_ | @gibcheesepuffs it's in the HADK: telnet 192.168.2.15 2323 | 15:21 |
T42 | <gibcheesepuffs> does not seem to work for me :0 | 15: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 changes | 16:05 |
T42 | <mintphin> hybris-boot? or hybris-hal? | 16:06 |
T42 | <elros34> it doesn't matter | 16: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 idea | 16:27 |
T42 | <gibcheesepuffs> @deathmist_ [@gibcheesepuffs please check "dmesg -w" while …], hybris-17.1, it does show mer in there | 16: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 telnet | 16: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.x | 16: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 suggestions | 16:52 |
T42 | <mintphin> @elros34 [also maybe it'ss some protection enabled in ke …], oh yeah i remember reading bout this | 17:14 |
*** techgeekster_ is now known as techgeekster | 17:34 | |
techgeekster | elros34: 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 |
techgeekster | Let me check | 19:11 |
techgeekster | elros34 : I have ueventd.rc in out/target/product/zenfone3/root | 19:14 |
T42 | <elros34> does it contains dev/ion and mdss_rotator? What owner and group it set? | 19:15 |
techgeekster | No it does not | 19:17 |
T42 | <elros34> then search in /vendor on device itself | 19:17 |
techgeekster | This is the ueventd.rc in out https://paste.ubuntu.com/p/Cd7Hjjg3Xf/ | 19:18 |
techgeekster | elros34 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 |
techgeekster | Ok will do! Thank you very much! | 19:29 |
techgeekster | elros34 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 |
techgeekster | Ok 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 image | 20:05 |
techgeekster | elros34 Still no UI, logcat seems identical (https://paste.ubuntu.com/p/yD92JkxJ64/) | 20:54 |
techgeekster | I'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 techgeekster | 21:01 | |
T42 | <elros34> looks better, there is no ion and rotator permission errors but still something is wrong. Maybe journal contains something useful | 21:01 |
T42 | <mintphin> @elros34 [@mintphin try to flash out/target/product/boot …], it tries to boot and then reboots to fastboot | 23:42 |
T42 | <mintphin> should i try another kernel perhaps? | 23:42 |
Mister_Magister | mal: anything special needed for 4.0? | 23:43 |
Mister_Magister | and hows hybris17? | 23:57 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!