Saturday, 2021-11-20

T42<diablo765> in the dot 5.3 Configure Mountpoint Information00:00
T42<diablo765> how to create the dhd?00:00
T42<diablo765> for device00:00
Mister_Magisterread hadk00:00
T42<diablo765> sorry for my ignorance00:01
mal@hacker12455 it seems usb-moded has trouble finding a power supply on your device, can you show output of "grep -RI 'POWER_SUPPLY_ONLINE\|POWER_SUPPLY_PRESENT' /sys/class/power_supply/*/uevent"00:01
T42<elros34> @rodrisola so looks like nothing crashed. Have you tried to to use lower -jX? How much free memory you have (RAM and storage)? What if you try to build only droidmedia now, do you still get same error as previously or linker_32 error?00:02
Mister_Magister@diablo765 7.1 is creating dhd dcd and dhv00:02
Mister_Magisteryou don't need it yet00:02
T42<rodrisola> @elros34 : I am using the azure cloud, with 16 gigs of ram memory, and it has 500 of internal memory00:04
T42<diablo765> sorry Mister_Magister, i dont understand00:08
T42<diablo765> the guide00:09
T42<diablo765> In the previous guides, I guided you how to create the dhd of the device00:11
T42<elros34> 5.3 is not about dhd but mounpoints map, so what excatly do you try to do now00:14
Mister_Magisterhmm its not booting lineage anymore but neither do i have any rndis nor mtp00:25
Mister_Magisteroh it rebooted, nice00:26
Mister_Magisterha, got rndis00:44
Mister_Magisterbut connection refused00:44
Mister_Magisteroh port 23 works00:44
Mister_Magisterahhhh lineage encrypted the /data00:44
T42<rodrisola> new build/make/core/Makefile:1278: error: real file "out/target/product/courbet/boot.img" depends on PHONY target "mkbootimg"03:06
T42<rodrisola>  error
Mister_Magisterdo you have all the sources?03:12
T42<rodrisola> i solve, with hybris-boot is annother repository03:41
T42<rodrisola> not yet built, I have that error03:42
T42<rodrisola> FAILED: ninja: 'linker_32', needed by 'hybris-hal', missing and no known rule to make it03:42
Mister_Magisterif you didn't have hybris-boot then you are lacking repos03:50
T42<rodrisola> if I had it, just clone the fixmount of an old repository of mine, and that caused me an error, but I already solved it.03:59
Mister_Magister@b100dian ping04:44
Mister_Magisterbig issues with selinux05:08
Mister_Magistergotta wait for mal05:10
T42<hacker12455> mal: here is the output /sys/class/power_supply/battery/uevent:POWER_SUPPLY_PRESENT=106:27
T42<Gloria Flores> It's amazing trading with Mrs Jennifer Andre which has great skills and knowledge about trade marketing. Now I enjoy great profits and stress free withdrawals, start up now with her, you can get to her on08:11
T42<Gloria Flores>
T42<elros34> @hacker12455 so what other props you have in /sys/class/power_supply/* (without battery dir)? Especially those which change when you plug in/out usb08:58
T42<hacker12455> bcl, bms, fg_adc, usb09:01
T42<hacker12455> none of them seem to change after I plug in/out the usb09:02
T42<elros34> what if use run udevadm monitor, do you get any change on plug09:05
T42<hacker12455> should I use it as root?09:09
T42<elros34> I think not09:10
T42<elros34> no09:10
T42<elros34> so something changed, use -p to figure out which property09:13
T42<elros34> so POWER_SUPPLY_NAME? from what value?09:32
T42<elros34> or nothing really changed?09:33
T42<hacker12455> think nothing changed09:34
T42<elros34> hard to guess, I do  not know when you plug in/out usb. You need to find some reliable event which you can then find in kernel and add POWER_SUPPLY_PRESENT/ONLINE props09:35
T42<elros34> prop09:35
T42<hacker12455> hmm09:36
T42<hacker12455> can I read the properties somehow?09:36
T42<elros34> cat09:36
T42<elros34> but if POWER_SUPPLY_TYPE is also missing then not sure if that will be enough09:37
T42<hacker12455> hm09:39
T42<hacker12455> so find an event that changes when I plug the cable in/out?09:39
T42<elros34> that would be the first thing right? Do you connect usb now or charger?09:40
T42<hacker12455> usb09:40
T42<hacker12455> so POWER_SUPPLY_STATUS changes09:41
T42<hacker12455> let me see what happens if I plug in the charger09:41
T42<hacker12455> power_supply_name does not seem to change09:44
T42<elros34> I hope you do not look at power_supply/battery events when you are talking about status property09:45
T42<hacker12455> well09:45
T42<hacker12455> usb doesn't have a status property09:45
T42<hacker12455> though if I just cat /sys/class/power_supply/usb/present it shows if I plugged it in or not09:48
T42<elros34> so that can be used, just missing some code which also update it in uevent file?09:49
T42<elros34> is there also reliable type property?09:49
T42<hacker12455> well if I cat type in there09:51
T42<hacker12455> it says USB for the USB cable and battery09:51
T42<hacker12455> and USB_DCP for the charge09:52
T42<hacker12455> and USB_DCP for the charger (edited)09:52
T42<elros34> that is all you need09:52
T42<hacker12455> so what do I do now?09:53
T42<elros34> you need add missing code in kernel. I had to add type property so you can look at the commit but you will need probably slightly different changes:
ThaodanDid someone here had issues with IPA suspend? I get kernel panic for pm suspend in ipa.
Mister_MagisterThaodan: the only IPA i know has at least 5% of alcohol in it :D16:23
ThaodanMister_Magister: Polish beer?16:37
Mister_MagisterThaodan: not polish but beer ye17:37
Mister_MagisterIndian Pale Ale17:37
Mister_Magisteraka IPA17:37
Mister_Magistermal: ping17:39
*** Daaanct12 is now known as Danct1218:31
T42<rodrisola> Andy for help (re @rodrisola: https://www.toptal.c...)19:54
T42<rodrisola> Any for help19:54
T42<rodrisola> ??19:54
T42<rodrisola> My error is linker_3219:54
T42<hacker12455> quick question20:45
T42<hacker12455> what should the vendor-firmware_mnt mount point to?20:45
T42<elros34> most likely to /vendor/firmware_mnt but check fstab to be sure20:53
T42<hacker12455> for me it seems to mount the modem partition20:57
T42<hacker12455> which is correct20:57
T42<hacker12455> though persist isn't mounted20:58
T42<hacker12455> likely because it isn't in the fixup-mountpoints yet20:58
T42<hacker12455> ah wait it is mounted20:59
T42<hacker12455> still trying to figure out why wifi was working before but now it doesn't21:01
T42<hacker12455> I even checked the kernel config for the options related to it21:01
T42<hacker12455> they are the same as in pmOS21:01
T42<hacker12455> where it works fine21:01
malMister_Magister: pong21:02
T42<hacker12455> so I decided to throw out the cedric directory in out/target/product21:10
T42<hacker12455> building hybris-hal again21:10
T42<hacker12455> maybe that helps...21:10
T42<hacker12455> it did not21:25
malwhat is the problem you are trying to solve?21:26
T42<hacker12455> wlan not working21:27
T42<hacker12455> It worked before but now it stopped working completely21:27
T42<hacker12455> all firmware files are in place21:27
T42<hacker12455> unless I need to try the module again?21:28
T42<hacker12455> let me try that21:28
T42<elros34> does it work if you boot to android for a while  and then to sfos?21:30
maldid you use module when it worked?21:30
malwhat is the current init method you use for wlan?21:31
T42<hacker12455> it worked on both (re @SailfishFreenodeIRCBridgeBot: <mal>did you use mod...)21:31
T42<hacker12455> currently I init it manually for now21:32
malbut exactly what are you trying?21:35
T42<hacker12455> tried to insmod the module21:38
T42<hacker12455> I get the same no nv name in dmesg I was getting with the builtin module21:38
T42<hacker12455> I get the same no nv name in dmesg I was getting with the builtin driver (edited)21:39
T42<hacker12455> as for how I test the builtin driver21:39
T42<hacker12455> echo 1 > /dev/wcnss_wlan21:39
T42<hacker12455> echo sta > /sys/module/wlan/parameters/fwpath21:39
T42<hacker12455> touch /dev/wcnss_wlan21:39
T42<hacker12455> echo sta > /sys/module/wlan/parameters/fwpath (edited)21:39
T42<hacker12455> no idea what is going on21:43
T42<hacker12455> or what I'm changing that causes it21:43
T42<hacker12455> as before the module worked, then the builtin driver worked, now nothing works21:43
T42<hacker12455> it's like the firmware is missing something21:44
T42<hacker12455> but why21:44
T42<hacker12455> or rather the driver21:44
malwhat was the error in dmesg?21:49
T42<hacker12455> wcnss_get_wlan_nv_name: No NV name21:49
malcan you give a link to the kernel sources in github?21:49
maldo you have WCNSS_qcom_wlan_nv.bin somewhere on the device?21:53
T42<hacker12455> yes21:54
T42<hacker12455> in vendor/etc/wifi21:55
T42<hacker12455> and a symlink to it in /vendor/firmware/wlan/prima21:55
*** Daaanct12 is now known as Danct1221:57
malwhich type of kernel do you have now, with wlan builtin or as module?21:58
malcan you reboot the device and then grab a full dmesg, anyway try the usual things to bring it up after that reboot and before you get the log21:59
malhavr you disabled any extra android side services?22:00
T42<hacker12455> nope (re @SailfishFreenodeIRCBridgeBot: <mal>havr you disabl...)22:03
T42<hacker12455> currently I have wlan as a module (re @SailfishFreenodeIRCBridgeBot: <mal>which type of k...)22:03
T42<elros34> so have you tried to flash android kernel to see it wlan works in android and after that in sfos? Do you have any wcnss service running?22:18
T42<hacker12455> did not try flashing android kernel yet (re @elros34: so have you tried to...)22:21
T42<hacker12455> as for wcnss services you mean systemd services?22:22
maldo you have bluetooth init working?22:23
maldo you have anything like this /sys/kernel/boot_wlan/boot_wlan ?22:24
T42<hacker12455> nope22:24
T42<hacker12455> you mean bluebinder? (re @SailfishFreenodeIRCBridgeBot: <mal>do you have blu...)22:25
T42<elros34> not systemd, some android service with wcnss in name22:25
malcan you show output of "zcat /proc/config.gz | grep FW_LOADER"22:26
T42<hacker12455> C22:28
T42<hacker12455> [root@MotoG5 ]# zcat /proc/config.gz | grep FW_LOADER22:28
T42<hacker12455> CONFIG_FW_LOADER=y22:29
T42<hacker12455> CONFIG_FW_LOADER_USER_HELPER=y22:29
malthat seems ok22:30
malwhich android base was that?22:32
T42<hacker12455> 17.122:34
malwhere do you have wcnss.mdt?22:38
T42<hacker12455> /vendor/firmware22:39
malso when you tried loading the module which commands did you run and in which order?22:41
T42<hacker12455> insmod wlan.ko22:43
T42<hacker12455> only that22:43
malso you didn't run "echo 1 > /dev/wcnss_wlan" before that?22:44
T42<hacker12455> yes22:45
T42<hacker12455> should I try that?22:45
T42<hacker12455> bad address23:04
maland doing that "echo sta > /sys/module/wlan/parameters/fwpath" before that also does help either?23:07
T42<elros34> ignore bad address on echo 1, I think it should be only touch because there is no write function in kernel to handle it but only open23:08
malsome kernels want echo some want touch23:09
malalso one thing to try, add the module name to /etc/modules-load.d/modules.conf23:10
maland do not try to insmod it23:10
malI have seen one device which had very strict timing for the wlan module loading23:10
T42<hacker12455> make that config?23:23
T42<hacker12455> I don't have modules.conf23:25
malso add it and add the module name to it and then reboot23:25
T42<hacker12455> just the name23:25
T42<hacker12455> nothing else?23:25
T42<hacker12455> still nothing23:28
malsame error is dmesg?23:32
T42<hacker12455> let me reboot to grab a clean dmesg23:33
T42<hacker12455> hm23:37
T42<hacker12455> ot@MotoG5 defaultuser]# dmesg | grep "wlan"23:37
T42<hacker12455> [   11.025669] wlan: module is from the staging directory, the quality is un23:37
T42<hacker12455> known, you have been warned.23:37
T42<hacker12455> [   11.045811] wlan: loading driver v3.
T42<hacker12455> [   19.609521] wcnss_wlan triggered by userspace23:37
T42<hacker12455> [   20.798608] wcnss_wlan_ctrl_probe: SMD ctrl channel up23:37
T42<hacker12455> [   20.798999] wcnss: NV file name = wlan/prima/WCNSS_qcom_wlan_nv.bin23:37
T42<hacker12455> though I still can't turn on wlan from the top menu23:37
T42<hacker12455> lsmod returns nothing23:38
maldoes ifconfig -a show wlan?23:38
T42<hacker12455> nope23:39
maldo you have /dev/wcnss_wlan?23:40
malin addition to the wcnss_ctrl?23:40
T42<hacker12455> yes23:40
maltry "touch /dev/wcnss_wlan"23:40
T42<hacker12455> nothing changed23:41
malnothing in dmesg?23:41
malis wlan module inserted?23:41
T42<hacker12455> should it show up in lsmod?23:41
T42<hacker12455> dmesg shows nothing23:41
malafaik modules should show in lsmod23:42
T42<hacker12455> it doesn't show in lsmod23:42
T42<hacker12455> maybe try modprobing it again?23:42
malso nothing in dmesg if you run try to load the module?23:42
T42<hacker12455> so try to load the module manually?23:43
malof course, what do you think I have been trying to get you to do23:43
T42<hacker12455> hm23:43
malso it's up now?23:44
T42<hacker12455> yep23:44
T42<elros34> did you remember about sta thing because lates log looks good: nv file name is not empty23:44
T42<hacker12455> did not touch sta23:44
T42<hacker12455> at all23:45
T42<elros34> echo sta  not touch23:45
T42<hacker12455> I didn't do that23:45
T42<hacker12455> just modprobed the module and ran touch /dev/wcnss_wlan23:45
T42<hacker12455> and it work s23:45
T42<hacker12455> yep just checked23:46
T42<hacker12455> connects to wifi and loads websites fine23:46
malprobably something like this should work
mal@elros34 not quite sure which devices need the sta and which don't23:47
T42<hacker12455> do I keep the modules.conf?23:47
malno, remove it23:47
malyou also need some symlink like in this folder
malmaybe folder might be better even23:48
T42<elros34> mal me neither but IIRC that was needed previously when wlan worked for him23:50
malmaybe it's needed when using builtin driver?23:50
malor something23:50
T42<hacker12455> ExecStartPre=/bin/touch /dev/wcnss_wlan23:53
T42<hacker12455> like that?23:53
malshould work23:54
T42<hacker12455> let's see if it works after a reboot23:54
maldid you add the symlink, show the command you used23:54
T42<elros34> so I do not get, what helped? Isn't thats service excatly the same you have already tried?23:55
mal@elros34 previous most of the time touch /dev/wcnss_ctrl was attempted, not wcnss_wlan23:56
T42<hacker12455> do I need to symlink that service to somewhere?23:57
malyes, try /usr/lib/systemd/system/
malto that folder23:58

Generated by 2.17.1 by Marius Gedminas - find it at!