Friday, 2019-06-28

T42<birdzhang> @anpep is /vendor mounted or exist ?01:27
T42<birdzhang> and check /lib/firmware01:27
T42<adampigg> R0kk3rz, lol, i had to work out what you meant then!05:08
r0kk3rzhehe05:10
Mister_Magistermal: it turns out i added native i just forgot to change patterns07:44
Mister_Magisterlol i wanted to update droid-configs on device in order to change to native vibrator but i got 600 packages to update wtf07:55
deathmistmal: after adding AudioPolicyService patch make droidmedia fails https://pastebin.com/Y8vfw5Xp I added the patch to latest master like so https://git.io/fjoRb instead of using the original patched fork @ https://git.io/fjo0q, what am I doing wrong?10:24
T42<birdzhang> @deathmist https://github.com/Sailfish-On-Vince/droidmedia/commit/3e96be86d23497755af5cff880348e0fcd09a45810:33
deathmistbirdzhang: thanks! I also found what was wrong: I pasted the audiopolicy lines in Android.mk to the wrong LOCAL_C_INCLUDES section11:19
liuxwhat's the passwd of root in sb2 arm target?13:10
Mister_Magisterthere is no13:11
Mister_Magisterwhat r u tryin to do13:11
maluse -R if you run things with sb2 to get root13:12
Mister_Magisteri was going to that xd13:13
liuxgot it. thanks13:13
liuxI'm trying to resolve package conflict13:14
piggzmal: any ports used qca_cld3 wlan? im guessing not as i cant see anything in the logs16:56
malpiggz: what is the problem?17:12
piggzmal: i modprobe it, but not getting a network device...17:33
piggzive added a service with the touch trick, but nopw17:34
malpiggz: are you sure it finds all firmware?17:35
piggzmal: nothing complaiing in dmesg17:36
piggz[ 1568.611410] R0: wlan: [12619:E :QDF] qdf_nbuf_track_memory_manager_destroy: 2048 unused trackers were allocated17:36
piggz[ 1580.826292] wlan: Loading driver v5.1.1.71C; 2019-06-27T21:48:58Z; cld:; cmn:; ( +TIMER_MANAGER +MEMORY_DEBUG +PANIC_ON_BUG)17:36
piggz[ 1580.868590] wlan_hdd_state wlan major(221) initialized17:36
piggzand i have17:38
piggzsh-3.2# ls /vendor/firmware/wlan/qca_cld/17:38
piggzWCNSS_qcom_cfg.ini  wlan_mac.bin17:38
Mister_Magisterpiggz: i have question. should i go buy some beer?17:38
piggzMister_Mnyagister: if it makes u feel better, and it is sun17:40
Mister_Magisteryee17:40
malpiggz: what firmware symlinks do you have17:44
piggzmal: likely none yet .... looking thru the source to see where it loads the .bin file from17:44
malandroid does some loading in init now17:44
malcheck system/core/init17:45
malpiggz: did you see the firmware patch I linked couple of days ago17:45
piggzmal: nope...17:45
malhttps://pastebin.com/khcCKLEr17:46
piggzmal: this? https://piggz.co.uk/sailfishos-porters-archive/index.php?log=2019-06-26.txt#line7117:46
malyes17:46
piggzmal: so, i should just be able to link /vendor/firmware to /lib ?18:04
piggzin anycase, my reading of the code suggests its not trying to load the fw18:04
piggzthere should be a .probe function called on the driver, which kicks off the chain of events to load the fw18:04
piggzbut nothing in the log18:04
malpiggz: some wlan chips want something like this https://github.com/mer-hybris/droid-config-sony-nile/blob/master/sparse/lib/systemd/system/wifisetup.service18:06
piggzhmmm, nothing in /sys/kernel looks relevant....18:08
piggzmal: do feel free to browse the src and work out how to call wlan_hdd_probe :D https://android.googlesource.com/kernel/msm/+/android-msm-wahoo-4.4-oreo-m4/drivers/staging/qcacld-3.018:56
piggznot sure if thats the _exact_ source we have18:57
T42<DSstill01> Doesnt work19:35
malpiggz: does the device have /vendor/firmware_mnt ?19:41
malpiggz: try ln -s /vendor/firmware /firmware19:43
T42<meierrom> ds01: what is not working?19:44
piggzmal: it does, and firmare_mnt is empty...19:53
piggzthat second link didnt work19:53
piggzwell, it linked, but modprobing the driver didnt change anything19:53
malhmm19:54
malpiggz: can you show what the build has in out/..../root/19:55
malpretty sure this some firmware issue, but which symlink is needed19:55
malpiggz: does the device have some stuff under /mnt19:56
malalso show output of mount19:57
piggzmal: mount https://paste.gnome.org/pfl2mnbfc19:58
piggzmal: build root https://paste.gnome.org/pqtsqtijg20:00
malpiggz: is that /persist symlink present on device?20:00
piggzmal: no20:01
malcreate it20:01
malcheck also if /mnt/vendor/persist exists on device20:02
piggzmal: /mnt/vendor is empty20:02
malshow original fstab20:02
piggzmal: https://paste.gnome.org/p3k9cxpsz20:05
malpiggz: that doesn't match the output of mount20:07
malpiggz: are you sure fixup is correct20:07
piggzi think Mister_Magister did some hacking of the mount files!20:08
malfix those and lets check again20:08
malpiggz: how can you have /vendor mount when there is no such thing in fstab20:09
malsomething is really wrong20:09
malpiggz: first thing to do in case of issues is to check mounts20:10
piggzok20:10
piggzim also double checking that is the correct fstab..20:11
Mister_Magisterpiggz: mounts are made according to fstab20:13
piggzMister_Magister: i know20:13
piggzmal: yes, that fstab matches /vendor/etc/fstab20:15
piggz.qcom20:15
piggzMister_Magister: why were our .mount units not made with hybris-hal ?20:16
piggzvendorimage?20:16
Mister_Magistercorrect20:16
malsometimes make fstab.qcom is needed20:17
malor copying the fstab manually20:17
malto out20:17
piggzi think that will help20:17
malMister_Magister: did wlan work for you?20:18
piggzMister_Magister: no, im on wlan20:18
piggzsorry, mal20:18
Mister_Magistermal: considfer myself equal with piggz20:18
Mister_Magistersame errors20:18
malMister_Magister: did you try that symlink I mentioned20:20
malassuming you have mounts correctly set20:20
Mister_Magistermal: i don't know what symlink u r talking about but piggz has same mounts20:21
Mister_Magisterwait20:21
Mister_Magisterpiggz: you ofcourse did systemctl enable *.mount every of those mounts i gave you right?20:21
piggzmal: perhaps the build system should have a varible to pass extras into HYBRIS_TARGETS20:21
piggzMister_Magister: ofc!20:22
malMister_Magister: ln -s /vendor/firmware_mnt /firmware20:22
Mister_Magistermaybe these vendor subfolders need after=20:22
Mister_Magistermal: plz handle fixing wifi with piggz if that's not a problem. we wanted to split jobs, i'm drunk rn trying to port zenfone 5z. will you please don't mind my rudness?20:23
piggzMister_Magister: we dont mind your rudeness any other time :D20:23
Mister_Magister<3 love you20:23
malok20:23
Mister_Magisterbest answer "ok"20:23
Mister_Magisterwhen you get through facade of insults i think i'm pretty nice guy20:24
malI probably should push those droidmedia and afglue change to somewhere public20:25
mal*changes20:25
Mister_Magistermal: ye u should… erm i mean… could you please do me a favour of doing that?20:26
Mister_Magisterif that's not a problem for you :)20:26
Mister_Magisterninja: error: 'libhwc2_compat_layer', needed by 'hybris-hal', missing and no known rule to make  ffs20:26
malfaq, i.e. clone libhybris to external/libhybris20:27
Mister_Magisteri already did20:27
Mister_Magistersubmodule u coc…20:28
malcorrect branch? and remembered --fetch-submodules20:28
Mister_Magisteryeee submodules20:28
Mister_Magisterbranch master right?20:28
malyes20:28
malhmm, actually depends on base20:29
Mister_Magister16.0 lineage20:29
piggzmal: other important things, your p-o-v work ;)20:30
malpiggz: :D20:30
malpiggz: it tells something that my other app project has 3 open PRs waiting for proper review and merging20:31
Mister_Magistermal: i'm porting both pro1 and 5z using hybris16 (pro1 is aosp, 5z is lineage) so i hope in finding how to fix bug in one device and applying it to second device20:31
Mister_Magisterwhy mal sometimes can react with ":D" and usually he reacts with no answer as it's obvious or with sharp "ok"20:31
Mister_Magisteri'm sad because of this ;-;20:32
maldidn't libhybris need some changes for android 9 base20:32
malat least my local repo has20:32
Mister_Magister*Kit (cause i can't find his nick jesus) gave me Android.mk to put in it20:33
malMister_Magister: https://github.com/krnlyng/libhybris-1/tree/egl_libs20:34
Mister_Magisterhm?20:34
malcheck the submodule in that20:35
Mister_Magistertoo complicated lol20:35
malMister_Magister: I mean if you clone that branch the you have all you need20:36
Mister_Magisterokay sir20:36
Mister_Magisteron your command20:36
malfrom the submodule https://github.com/krnlyng/libhybris/commit/0eee1a2bff1ca91b326e7204916c01fe9253c49220:36
piggzMister_Magister: this helps the build a lot....in hybris-boot/Android.mk, at the bottom, change the line to20:36
piggzHYBRIS_TARGETS := $(HYBRIS_COMMON_TARGETS) $(HYBRIS_COMMON_64_BIT_EXTRA_TARGETS) fstab.qcom qca_cld3_wlan.ko20:36
Mister_Magisteri see makes sense20:37
Mister_Magisteralso add there please udev file20:37
Mister_Magisterthat's needed20:37
malyou mean the ueventd*.rc20:37
Mister_Magister ye ye20:37
Mister_Magisteram i good project manager lol20:37
* Mister_Magister not when i'm drunk20:37
malmaybe you should use a etherpad to keep notes20:37
piggzare you saying some uvent files need added to the build?20:38
malpiggz: yes20:38
Mister_Magistermal: i failed college today lol20:38
malpiggz: otherwise you won't get graphics working20:38
Mister_Magistermal: we have wiki20:38
malMister_Magister: what happened?20:38
Mister_Magisterbut he just won't add stuff there20:38
Mister_Magisterand wanted me to create it20:38
piggzyea yea, iwill20:38
Mister_Magistermal: i was repeating one subject but the laboratories covered with our laboratories and we couldn't attend them so we failed whole subject again20:39
piggzmal: is it a single ueventd.rc ?20:39
Mister_Magisterand i cannot repeat it again without repeating whole year20:39
Mister_Magisterpiggz: ueventd.qcom.rc20:39
Mister_Magisterin qcom common repo20:40
Mister_Magisterrootdir20:40
Mister_Magisterya'll find it20:40
piggzk20:40
malMister_Magister: that's sad20:40
Mister_Magistermal: is it really20:40
Mister_Magistermore sad is your health bar20:41
Mister_Magisterand my mental health bar20:41
Mister_Magisteri took too many ports :P20:41
* Mister_Magister to be honest i at some point cared more ports than jolla does gib me break20:42
* Mister_Magister i don't want to brag about myself i'm just telling truth20:43
Mister_Magisterbut hat's down to angel of this channel called mal :P20:43
Mister_Magistermal: https://paste.opensuse.org/view//1316264620:44
maland we know what happens when I help too much20:44
Mister_Magistermal: yeas20:44
malmissing skia from manifest?20:45
piggzMister_Magister: https://wiki.merproject.org/wiki/Adaptations/libhybris/FxtecPro1#Development_bugs:20:45
* Mister_Magister pats mal20:45
Mister_Magistermal: skia huh?20:45
Mister_Magisterlemme check pro120:45
Mister_Magister external/skia exists20:46
maldid you clone the proper branch?20:46
malof libhybris20:46
Mister_Magisteryeah i git reset --hard to that comit20:47
piggzMister_Magister: what pixel ratio, 1.5?20:49
Mister_Magisterpiggz: i'll have to adjust that manually20:50
Mister_MagisterIF SFOS ALLOWED ME TO DO THIS20:50
piggzwhy?20:50
Mister_Magisterto match jolla 1 icon size20:50
piggzis that ultra important?20:50
Mister_Magistersure20:50
Mister_Magisterbut 1.520:50
Mister_Magistercan do20:50
Mister_Magistertemporarly20:51
malMister_Magister: did submodule update correctly also?20:57
Mister_Magisteri just got submodule i didn't change libhybris repo20:57
Mister_Magistermal: *kit made Andorid.mk to put inside libhybris that fixes it20:58
Mister_Magistermal: http://susepaste.org/5634810820:58
piggzmal: new mount https://paste.gnome.org/pgmzdilie21:02
Mister_Magisterpiggz: wat did u change21:03
piggzMister_Magister: just built automatically from droid-hal21:03
piggzim just looking for differences21:03
Mister_Magisterthere is still no /vendor/* mounts21:03
Mister_Magisterwe need after21:03
Mister_Magisteradd to these bluetooth and second one which are in subfolders of /vendor after=vendor.mount21:04
* Mister_Magister drunk doesn't even know what is he talking about but his subconsciousness says he's talking good shit21:05
malpiggz: why does it create that /vendor mount21:09
Mister_Magistermal: i added it manually21:10
Mister_Magisterit's ususally mounted in kernal21:10
Mister_Magisternot in fstab21:10
Mister_Magisterit should be mounted21:10
Mister_Magistermal: i have actual real question21:11
Mister_Magisterin fixup mountpoints if i have -e 's block/bootdevice/by-name/system sda14 ' \ does it mean it will mount /dev/sda14?21:11
Mister_Magistershouldn't i put  -e 's bootdevice/by-name/system sda14 ' \ instead? in recovery i don't have /dev/sda21:12
Mister_Magisteris that actually dumbass question?21:13
piggzon a plus, it came up ok with the ui, meaning the uevent.qcom.rc addition worked21:13
Mister_Magisternice21:14
piggzand the wifi driver was installed21:14
Mister_Magisterthen only *kit is slacking of!21:15
malMister_Magister: about fixup, just check what other devices did21:16
malthose have block also21:16
Mister_Magisterokaaay21:16
Mister_Magisterevery seem to have it that way21:16
Mister_Magisterwell if it won't work i will cahnge21:16
Mister_Magisterhard to think21:16
malpiggz: so it doesn't create any other mount services?21:18
piggzmal: these https://paste.gnome.org/pbr4pshiv21:21
malpiggz: so those first ones fail?21:24
Mister_Magistermy fstab is similar21:24
Mister_Magisternothing to mount /vendor21:24
Mister_Magisterbut it needs to be mounted21:24
piggzmal:https://paste.gnome.org/paoxxcvye21:26
Mister_Magistermal: how do i add /vendor mountpoint if it's not in fstab21:26
piggzyou could add a unit to config, or modify fstab for hal21:27
Mister_Magistermodifying fstab sucks21:27
Mister_Magisteryee config will do21:27
malMister_Magister: add the entry fstab obviously :D21:28
Mister_Magistermal: but adding entry succs21:29
Mister_Magisteru shouldn't do it21:29
Mister_Magisteri think21:29
malwhy not21:29
malother option is to add it to config sparse21:29
Mister_Magistermal: yeah sparese is better like piggz said21:29
Mister_Magistercause i can add before21:29
malI think fstab is cleaner way21:29
Mister_Magisterbut no before21:30
mal?21:31
Mister_Magisteri can add to /vendor mountpoint to mount before subfolders21:31
piggzmal: walking thru the code, im sure it would print out if it coldnt load the firmware21:33
Mister_Magisteror does systemd manage that21:33
piggzi just dont think it probes21:34
piggza lot of other qcom devices in our tree echo 1 to the sdio polling file ... but not our device21:34
Mister_Magisterhybris921:35
piggzMister_Magister: could just ask the chinese android team!21:35
Mister_Magisterpiggz: what21:35
piggzif they have to make the driver start polling somehow21:35
piggzi walked back thru the code from the firmware loading section, and got to a .probe method....but dunno what calls that, its exported by the module21:36
Mister_Magistermaybe some blobs21:37
Mister_Magisteror android services21:37
malpiggz: sometimes errors do not always show in logs21:38
Mister_Magisterhaa it's building!21:44
Mister_Magisteronly 14.5k objects21:44
piggzok, im done, tomorrow i will scatter pr_info over the driver!21:53
malpiggz: did you make sure the mounts are working and you have the symlink I said21:59
Mister_Magisterselinux_stubs not building lol22:03
maldid you apply the patch22:03
Mister_Magistersomeone needs to push -WError and -Wall on jolla22:04
Mister_Magistermal: i don't even remember which, sorry22:04
malhttps://pastebin.com/A6Ba6YBa22:04
Mister_Magisterthanks, sorry22:04
malyou need to learn to grep logs, grep mal.*pastebin is quite useful22:05
malI used it myself22:05
Mister_Magisteroh22:05
Mister_Magisterthaks for tip22:05
Mister_Magisteri mean i would but i'm totally braindead now22:06
Mister_Magisteryes i should go to sleep but i want it to compile22:06
malin this case selinux_stubs would have helped also22:06
Mister_Magisterit buiilt!22:24
Mister_Magistermal: it built and i'll try bringing gui tomorrow. if i succeed we will see first ever in history of jolla and sailfishos notchfish :P22:38
Mister_Magistera sailfish with a notch22:38
malnotch is very stupid feature22:47

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