Monday, 2019-08-05

T42<austenite> is radio-iris-v4l2 required for radio to function with qcom05:59
electro@elros34 : hi, what is the target of https://github.com/mer-hybris/hybris-boot/blob/master/init-script for me ?08:15
electrosorry, hybris/hybris-boot/init-script08:18
deathmistit seems the Hotspot quick toggle is broken in 3.1 for me (shows as greyed out), it just says "Connection setup required" each time when toggled on (toggling off works fine) and takes me to the full settings page instead where it does behave normally. this was not an issue on 3.0.3.x. I get this when toggling it on in journalctl https://pastebin.co09:57
deathmistm/LH6PuHSc09:57
deathmistbtw mal I think you were correct when suggesting udisks as the culprit for all my partitions appearing under Settings > Storage (just got back to it :p) https://pastebin.com/dqnwPm5M10:03
electrowhat is the twrp version for lineageos 15.1 ?11:24
electrosailfishOS 3.1.0.12 installation11:25
r0kk3rzwhatever one works11:33
electrothanks, after flasing my .zip, i must use flashboot to flash my twrp recovery11:37
liuxHi, guys, i'm still blocked by audio issue on cm-12.1 based sfos. no audio in recorder and voicecall. the dmesg print "asoc: MSM8960 Media1 no valid capture route from source to sink" when executing acord in cmdline11:50
electro@elros34 : https://dpaste.de/WEDt12:01
electroi don't know if i can use usb tethering12:01
electroi have apply your changes, my phone reboot12:02
electroi don't have this message : Manufacturer: Mer Boat Loader but Manufacturer: HTC12:03
liuxjusa, could you please help me if you got time?12:06
electro@elros34 : my last_kmsg12:10
electrohttps://dpaste.de/6m0d12:10
electro@elros34 : i must disable watchdog ?12:20
electrounknown_usb_detect_worker12:21
electrovknecht maybe ?12:26
electromal, have you an idea ?12:27
T42<elros34> looks like initramfs is reached but you didn't disable selinux so I can assume you also did not enable other chages mentioned by mer-kernel-checker or hybris-boot12:57
ghosalmartinwhat does the QCOM_BSP do exactly?12:59
malghosalmartin: it's a define used in some headers/code and cause some API breakage if it doesn't match13:01
ghosalmartinmal: breakage in build or breakage on device?13:01
malghosalmartin: breakage on device13:01
ghosalmartinokays :)13:01
malghosalmartin: so UI crashes if the android build has QCOM_BSP in use and hybris-hal build doesn't13:02
electro@elros34 : i have fix error but stay warning for mer-kernel-checker ; i have done hybris-boot changes13:02
malor actually in the middleware side13:02
electro@elros34 : selinux is again enable maybe yes, i will look13:02
ghosalmartinmal: hmm ill give it a go thanks :)13:02
malghosalmartin: so libhybris and qpa plugin probably need it13:02
ghosalmartinthis seemed like an interesting patch https://github.com/shr-distribution/meta-smartphone/blob/master/meta-android/recipes-android/android-headers/android-headers-halium/0002-Revert-Use-AOSP-version-of-gralloc.h.patch13:02
ghosalmartinand this https://github.com/shr-distribution/meta-smartphone/blob/master/meta-android/recipes-android/android-headers/android-headers-halium/0001-Revert-hwc-remove-qcom_bsp-since-it-causes-trouble-w.patch13:03
malghosalmartin: usually it's autodetected on qcom devices, sometimes it fails13:03
malghosalmartin: which device?13:03
ghosalmartinnexus 5x13:03
malghosalmartin: check the android-config.h header in droid-hal devel rpm13:03
ghosalmartinso it doesnt have it, i've added it, am going to do an OTA update and see if that fixes my issues13:03
malghosalmartin: faq mentions how to add it to droid-hal spec13:04
malit then goes to that android-config.h file during build13:04
ghosalmartincracking13:06
ghosalmartinits all installed now, just need to reboot13:07
ghosalmartinbut need moar battery charge :P13:07
T42<elros34> @electro also check if you have all kernel changes mentioned in hybris-boot/init-script13:09
electro@elros34 : i have done https://dpaste.de/CRJa13:10
electrook13:10
T42<elros34> not ok...13:11
electrothe reboot erase my TWRP13:11
ghosalmartinanyone know what happened to the clear command?13:12
ghosalmartinmal: hmm no luck with that13:21
ghosalmartinnow its kinda even worse since before I can run jolla-camera with strace and it would work, now it fails13:21
spiiroinghosalmartin: ncurses binaries not installed by default?13:22
ghosalmartinspiiroin i probably have terribly old patterns13:22
T42<elros34> ncurses is not installed by default13:23
ghosalmartinah well there ya go, any particular reason? although tbf i doubt most users need em13:24
T42<elros34> I don't know but I remember i had to add it to patterns and few users also had this issue13:25
ghosalmartindoes test_hwc2 work?13:28
spiiroinghosalmartin: most likely just a side effect of new package versions + trimming base install size by cleaning deps13:30
ghosalmartinspiiroin, probably, users dont really need those tools do they13:30
electroi don't arrived to boot on my recovery, i try to flash it again but nothing : fastboot flash recovery /home/jo/Bureau/SailFish_OS/twrp-3.3.1-0-m8.img13:33
electrothe flash is done but after the phone don't boot in recovery mode13:33
electroO it's okey with this command after : fastboot erase cache13:35
electro@elros34 : i edited this file for selinux=0 hadk/device/htc/msm8974-common/BoardConfigCommon.mk13:38
electrobut my defconfig is hadk/kernel/htc/msm8974/arch/arm/configs/m8_defconfig13:38
electromy phone bootloop again13:38
electro@elros34 : selinux=0 not taking account -> https://dpaste.de/NkOU13:41
electrobut hadk/device/htc/m8/BoardConfig.mk not contain the parameter BOARD_KERNEL_CMDLINE13:42
ghosalmartinso anyone seen this error before Jun 21 00:44:50 Sailfish lipstick[4766]: *** Error in `/usr/bin/lipstick': double free or corruption (!prev): 0x007003a8 ***13:45
ghosalmartinor how id go about debugging it13:45
T42<elros34> @electro: twrp kernel != sfos kernel so there is no point checking it in adb. You can unpack hybris-boot (instruction in HADK) it should prints current kernel parameters13:48
ghosalmartinmal: if maliit-server seg faults when it runs via systemd, but when i run it as nemo it works fine, any idea what that could point to?13:51
malghosalmartin: did you rebuild the middleware on OBS after adding QCOM_BSP?13:54
ghosalmartinmal: yahh13:54
ghosalmartini did it a couple of week back tbh, just didnt have a chance to deploy the sucker13:54
ghosalmartinits weird some apps now work after systemctl restart user@10000013:54
electro@elros34 : unpack hybris-boot, when hybris-boot is an image, can i mount this image to see current kernel parameters ?14:01
electroor it's with the updater-unpack.sh file ?14:02
T42<elros34> forget it just add selinux=0 and there is no way it will not work if you do it properly14:04
electro@elros34 : selinux=0 with BoardConfig.mk or defconfig ?14:05
T42<elros34> use whatever method you like so last_kmsg will not contains selinux initializing14:07
electrook14:07
electro@elros34 : Kernel command line: console=none androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3 zcache selinux=0 and14:16
electrobut : SELinux:  Initializing.14:16
electrostrange14:16
electroaudit=0 too ?14:17
ghosalmartinhas anyone managed to debug lipstick with gdb?14:20
ghosalmartinspiiroin, is there any extra debug logging for lipstick?14:21
malghosalmartin: what android base are you using?14:26
mal15.1?14:27
ghosalmartinyep14:27
ghosalmartinthis issue happens with both surfaceflinger plugin and hwcomposer14:27
ghosalmartinit was working fine before, its randomly cropped up a few times with no idea why14:27
maland you had it working before?14:27
ghosalmartinyeah14:27
malwondering what fix you are missing14:27
ghosalmartinit defo feels like a permission issue14:28
ghosalmartinmal: so when I run apps via telnet as nemo, they work14:29
ghosalmartinwell sailfish browser doesnt, that crashes, but camera works, phone works14:29
ghosalmartinmaybe issue with invoker?14:31
electro@elros34 : actually no way for disable "SELinux:  Initializing"14:32
T42<elros34> start making notes! You had exactly the same issue in t0lte I will not repeat myself14:34
electrookey, i can try to see my notes14:35
malghosalmartin: I never even thought of trying to run apps like because if UI fails then what is the point14:46
malghosalmartin: check if your android build out/ has ueventd*.rc and some fstab files?14:47
ghosalmartinmal: so the UI is started, lipstick is running14:47
ghosalmartinbut when I try and launch an app it crashes14:47
mal?14:47
malhmm14:47
liuxMister_Magister, Hello, i found you have met similar audio issue in 2017 about "asoc: MSM8960 Media1 no valid capture route from source to sink" but i can not find your solution in irc log. could you help tell me some clue about that? thanks14:53
ghosalmartinmal: which bit doesnt make sense? :P or would a video of the issue help14:53
Mister_Magisterliux: give more reference14:54
malghosalmartin: I understood now, I originally thought UI is not working at all14:54
ghosalmartinmal: ahh okay, it definitely feels like an invoker issue but i dont know14:55
ghosalmartinactually i have a test14:55
ghosalmartinif I stop maliit-server using invoker will it keep segfaulting14:56
liuxMister_Magister, i searched your log here: http://merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2017-02-01.log.html, and the key words are "MSM8226 Media1: asoc: MSM8226 Media1 no valid capture route from source to sink", around 20:4014:56
ghosalmartinah no dice it still crashed14:56
liuxand my issue is no sound in recorder and voicecall, with dmesg "asoc: MSM8960 Media1 no valid capture route from source to sink"14:57
Mister_Magisterliux: aren't the fixs mentioned in log?'15:00
liuxMister_Magister, i saw jusa and mal talked with you about modification in pulseaudio-modules-droid but it seems only for android 4.4 and i'm not sure it's the correct fix for your issue15:05
Mister_Magisteri'm not either15:05
Mister_Magisterit was 2 years ago15:05
malliux: can you give a link?15:05
Mister_Magistermal: link is above15:06
malwhy can't people give link to the relevant line, clicking the time at the end of line gives link to that line15:06
Mister_Magisterdon't ask me15:06
T42<elros34> input_atoi should be enabled by default for android >= 5 check  pulseaudio-modules-droid code15:06
malyes, it should be enabled most of the time15:07
liuxhttp://merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2017-02-01.log.html#t2017-02-01T20:40:5515:08
liuxI've tried turn on and off input_atoi, both no sound15:09
malprobably some different issue15:09
liuxall subsystems work fine except microphone. nothing wrong when recording audio in android so i guess something wrong in pulseaudio. perhaps i'm on wrong direction15:19
Mister_Magistermaybe mic is not working15:31
Mister_Magisterlike in x1 and x2 that i own mics are not working at all15:31
malliux: have you tried manually routing the input?15:31
Mister_Magisterin x2 loudspeaker mic was forwarded as normal mic15:31
Mister_Magisterye this mal is righte15:31
liuxmal, how to manually routing input exactly?15:34
malI don't know, some pactl magic15:36
electro@elros34 : My phone don't have TWRP recovery now. With what can i paste my /proc/last_kmsg ?15:40
electro@elros34 : my dmesg come with my computer15:43
electrohttps://dpaste.de/j9nH15:44
electrohow it's possible to see the configuration if your device is not link in your computer !15:44
electroit's more hard than debug samsung t0lte15:45
liuxMister_Magister, how did you make mic work on x1 or x2?15:47
Mister_Magisteri didn't15:47
Mister_Magisterstill need jusa to come help me15:47
liuxMister_Magister, yes jusa is master at such issue but seems he is busy these days...15:49
Mister_Magisterin what days he wasn't busy?15:49
electro@elros34 : i'm sorry but if you can just say me how it's possible to have my last_dkms !15:55
electromal, do you know how can i debug my device ? specially for last_dkms, i have sometimes access to my twrp recovery15:57
electrosomeone can help me to debug my device please ? mal @elros3416:10
electroi have tried some update with no result16:11
T42<elros34> I have no idea, I don't have such a device. You manage to grab last_kmsg earlier so do the same now.16:13
electroit's a little bit strange16:13
electroi don't have access to my TWRP after bootloop16:14
electroi must reflash the recovery16:14
electro@elros34 : SELinux:  Disabled at boot. GOOD16:16
electrohttps://dpaste.de/j0mb16:17
electrodmesg -> https://dpaste.de/RZgm16:18
T42<elros34> better but it still writes to lun0. For me it looks like it fails because of wrong defconfig or fixupmount point: https://github.com/mer-hybris/hybris-boot/blob/master/init-script#L36716:20
electrohumm, okey16:21
electrois it okey or not ? https://dpaste.de/WbAy16:23
electroi think it's my defconfig16:23
electrohttps://dpaste.de/G3PZ16:25
T42<elros34> have you compared out/*/.config with configs defined in hybris-boot/init-script like I told you?16:28
electronot again, i will do that, because of i was supprised of my twrp erasing16:29
electro@elros34 : what is for you out/*/.config16:32
electrohttps://dpaste.de/AR6G16:34
electro@elros34 : excuse me, how can i check if your command was right on my config ?17:04
piggz_mal: bisecting, then waiting for builds to complete is incredibly tedious ... esp as a qtbase build takes forever17:06
electro@elros34 : https://dpaste.de/OrDp17:31
electrono lun0 appear17:32
electroSelinux is disable at boot17:32
electrowhat can i do after that ?17:32
electroi have fix warning about FS17:33
electrosomebody have an HTC device ?17:53
electro@elros34 : just one minute ?18:00
electromal, or vknecht18:01
electroOla ? ^^18:13
T42<elros34> hehe, does your device behave differently now?18:18
electro@elros34: bootloop again18:18
electrobut how can i check the config of hybris-boot/init-script ?18:19
electroi have no lun018:19
T42<elros34> manually18:19
electroselinux is disable at boot18:19
electrobut my device is again in bootloop18:19
T42<elros34> I am not taking about selinux but config required by hybris-boot. Anyway do you have /init.log now in device?18:20
electroi have add selinux=0 in file ~/hadk/device/htc/msm8974-common/BoardConfigCommon.mk18:20
electroi see18:20
electrono init.log18:22
electrohumm right18:22
electroi have18:22
electro@elros34 : https://dpaste.de/iHob18:23
T42<elros34> looks good, now you need to figure out how to configure rndis on this device otherwise it will be pain to fix other issues18:27
electrookey18:28
electro@elros34 : hadk pdf ? or other source18:28
electro@elros34 : i must remove two lines you said i must add ?18:31
electro /sys/devices/platform/android_usb/usb_function_switch 418:31
electro echo "hybris-boot: initramfs" > /dev/kmsg18:31
electro@elros34 : my phone is again bootloop, if i fix rndis modem, how can i do another things ? in 1 min2018:37
electroi go see faq so18:39
electro@elros34 : is it not this ? So you booted your Sailfish OS? Congrats! No GUI? Oh dear :)18:41
electroboth usb0 and rndis0 interfaces might be up, remove usb0 from init-script and rebuild kernel image with make hybris-boot or make hybris-recovery18:42
T42<elros34> I would start with searching for rndis in defconfig18:45
electrookey18:46
electro@elros34 : have you a name for rndis CONFIG_... ? i'm looking for18:49
electrohave you a similar CONFIG_ for your device ?18:49
electrokernel/motorola/msm8998/drivers/usb/gadget/function/rndis.c18:51
electrofor my devcie it's : /hadk/kernel/htc/msm8974/drivers/usb/gadget/rndis.c18:53
T42<elros34> I don't remember which one needs to be enabled but it should be easy to find by searching: "rndis gadget" in google18:53
electro@elros34 : CONFIG_RNDIS_IPA ?18:57
T42<elros34> compare with other htc devices which has sfos ported or just try19:02
electrowhere is it possible ? to know what is the CONFIG_...NAME19:03
electrohttps://piggz.co.uk/sailfishos-porters-archive/index.php19:03
electro@elros34 : where can i find if rndis is enable ?19:07
electrorndis0: unknown interface: No such device19:12
T42<elros34> in init.log  usb0 or rndis0 will be available19:14
electrohttps://wiki.merproject.org/wiki/Adaptations/libhybris/Install_SailfishOS_for_m719:14
electro@elros34 : this is it ? https://cateee.net/lkddb/web-lkddb/USB_GADGET.html19:25
electro@elros34 : where can i find the good CONFIG_...19:34
electrowho can just see the CONFIG_USB_RNDIS_... ?19:36
electroi stop search19:54
electroif it never fixed, ...19:54
electrohardcore19:54
electro@elros34 : maybe it's more simple to debug without rndis and after sailfishOS launched, debug with wifi19:58
T42<elros34> @electro: What did you try so far? Have you compared your defconfig with other htc's configs which have sfos? Compare it with cm14.1 base and you will notice that m8_defconfig (from lineage 15.1) is a mess. This one has nicely grouped configs with CONFIG_USB_NET_CDCETHER enabled which IIRC is needed for usb0 https://github.com/Cyanoge22:56
T42nMod/android_kernel_htc_msm8974/blob/cm-14.1/arch/arm/configs/cm_m8_defconfig22:56

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