Sunday, 2024-09-15

T42<rahulyx> Screen is on!00:00
malcool, to remove the .rc files you added here https://github.com/Sailfish-on-karatep/droid-config-karatep/commit/1a3461fea59740fd1c9f8794ab19b30aeee68515 from droid-configs, keep that spec file change00:00
mal*so remove00:01
T42<rahulyx> I still had to kill vndservicemanager first and wait for it to restart00:01
malhmm00:01
T42<rahulyx> Will delete them00:01
T42<rahulyx> What does this mean tho? "Expecting header 0x53595354 but found 0x564e4452. Mixing copies of libbinder?"00:01
malit means that when it started linker configuration was not correctly loaded or something and it opened some wrong library and ends up using wrong type of binder00:02
T42<rahulyx> Okay... what's the permanent fix for it?00:03
malI think some kind of preload for vndservicemanager00:04
malneed to figure out which library it needs00:04
T42<rahulyx> Okay00:05
mal@elros34 do you have ideas?00:05
malfor now you can check what works on the device and then fix things that are still broken and we'll figure that vndservicemanager issue at some point00:11
T42<elros34> thats little beyond my knowledge but still he should provide full log with that failure00:13
T42<rahulyx> Alright00:14
T42<rahulyx> I also removed /usr/libexec/droid-hybris/system/etc/init/disabled_services.rc, now the phone freezes. unresponsive telnet.00:16
malI said you keep that00:16
T42<rahulyx> Yes, just wanted to see what happens00:17
maljust remove it from config repo from sparse/usr/libexec/droid-hybris/system/etc/init/00:17
malthat disables various services which cause issues with sailfish00:17
malin 18.1 base that file comes from droid-configs-device submodule in droid-configs repo so it's not needed in sparse/usr/libexec/droid-hybris/system/etc/init/00:18
T42<rahulyx> Got it00:19
T42<rahulyx> Will do that00:19
T42<rahulyx> Also, some of the fonts look tiny. I change pixel ratio in d-c-$D.spec?00:20
T42<rahulyx> Or is it scaling?00:20
malyes, you need to adjust pixel ratio to suit your device00:21
T42<rahulyx> Alright00:21
malhow big is the screen on the device and what resolution?00:22
T42<rahulyx> 5.5" FHD00:22
T42<rahulyx> 1080x192000:23
T42<Mister_Magister> @rahulyx you need pixel ratio of 1.600:24
T42<rahulyx> Okay! Let me make that change00:25
T42<elros34> why do you add this ldconfig mount here? https://github.com/Sailfish-on-karatep/droid-config-karatep/commit/4a7da507f7d49b71aa8afecaf77be7dcd0928a5800:25
T42<elros34> btw don't add temporary tmp/ directory to commits00:26
T42<Mister_Magister> add it to .gitignore00:26
T42<rahulyx> @elros34 I dd the hybris-16.0 patches from hadk-faq.00:28
T42<rahulyx> *did00:28
T42<rahulyx> https://github.com/mer-hybris/hadk-faq/blob/master/README.rst#persistent-journalctl:~:text=Create%20the%20following%20symlink%20in%20your%20droid%2Dconfig%20sparse%20files%3A%20https%3A//github.com/sailfishos%2Doneplus5/droid%2Dconfig%2Dcheeseburger/blob/hybris%2D16.0/sparse/lib/systemd/system/local%2Dfs.target.wants/system%2Detc%2Dld.config.28.txt.mount00:29
T42<elros34> this is more up-to-date instruction: https://sailfishos.wiki/books/hadk/page/hadk-hot#bkmrk-common00:29
T42<rahulyx> I'll add tmp to .gitignore00:29
T42<Mister_Magister> I think you need to do cheeky git rm --cached after adding it to gitignore because its already indexed00:30
T42<rahulyx> @elros34 Will reverse them00:30
T42<rahulyx> @Mister_Magister Will do that, I'll clean the repos shortly00:30
T42<elros34> try to disable this ldconfig mount on device, maybe it mess something up and then get journal/logcat if vndservicemanager fails00:31
T42<rahulyx> @Mister_Magister, can I change the pixel ratio on device? Without rebuilding?00:31
T42<rahulyx> @elros34 let me try that00:31
T42<Mister_Magister> I think yes but you have to google that (or grep irc logs)00:31
T42<rahulyx> Okay00:32
T42<rahulyx> @elros34 removed ldconfig mount files on device. Still seeing "Parcel  : Expecting header 0x53595354 but found 0x564e4452. Mixing copies of libbinder"00:42
T42<elros34> probably strace from failure vs working vndservicemanager could shed some light on this issue00:55
T42<rahulyx> Let me try that. I've cleaned up the droid-config repo and pushed the changes. Winding up for the day00:57
T42<rahulyx> Thanks @elros34 @mal @Mister_Magister for all the help! Everything is broken now... wifi, cellular, BT, camera... Will start looking at them one by one tomorrow!00:58
T42<Mister_Magister> thats classic porting00:58
T42<rahulyx> Yeah!00:58
T42<rahulyx> None of the apps other than settings open, is that expected?01:04
T42<elros34> usually no01:07
T42<Mister_Magister> it means issue with sailjail so either fix kernel config so that sailjail is happy or install dummy-sailjail because sailjail is stupid01:10
T42<rahulyx> Alright, let me try that01:12
*** ggabriel is now known as Guest350201:18
T42<rahulyx> @Mister_Magister I'm trying to fix kernel config for sailjail. hadk-hot says "Some 3.4 and 3.10 kernels requires following patches to  get systemd and sailjail/firejail working". Mine is 3.18. Which ones do I apply?08:47
T42<rahulyx> @elros34, saw your messages from the irc logs. Do I need to apply these old kernel patches? Or is enabling all CONFIG_*_NS in kernel sufficient?08:53
rinigusmy sony tama display is on a way to detach from the rest of the phone and its time to start looking for replacement08:55
riniguslooking for something usable as phone (calls without echo), volte now or a path to make it work, decent camera. probably 8gb+ ram for occasional waydroid. community encryption is a bonus, otherwise can port it myself08:55
rinigusany tips? ideally, some perfectly working port :)08:55
T42<rahulyx> I was trying to fix RIL meanwhile. I tried installing ofono-binder-plugin as suggested for android>=10 (my base is 18.1).  systemctl status ofono looks good, but sim is not detected. I tried ofono-ril-binder-plugin (somewhere I was suspecting this as the vendor's last release was android 9). It worked. I could see the sim being detected (dual sim, second slot is empty). Bar is visble. AP is auto configured. However, no internet. Unable to tes10:11
T42<rahulyx> This is with ofono-ril-binder-plugin: https://paste.mozilla.org/1LQvwMAD10:14
T42<rahulyx> Also, the sim cards don't come up on device restart. I have to manually systemctl restart ofono on every reboot for the sim to be detected10:17
T42<rahulyx> Okay, slot 2 doesn't work. SIM is detected, but no bar. Says "Network: Denied" https://paste.mozilla.org/AiZiDd5b10:20
T42<elros34> anything in logcat?10:24
T42<rahulyx> Checking. How do I stop the SMBCHG spam on logcat? Makes it difficult to readf10:34
T42<elros34> i do not know what is smbchg spam10:37
T42<rahulyx> I see plenty of messages like this on logcat: "SMBCHG  : smbchg_chg_led_brightness_set: set the charger led brightness to value=50"10:38
T42<elros34> value is always the same?10:38
T42<rahulyx> See this: https://paste.mozilla.org/UGhmVTEJ10:39
T42<rahulyx> Looks like logs from charging?10:39
T42<elros34> does it also happen when you unplug usb?10:40
T42<rahulyx> No, goes away on unplug10:43
T42<rahulyx> @elros34, for fixing sailjail, which patches do I apply? My kernel is 3.1810:44
T42<elros34> I do not remember any particular patches, did you add needed kernel configs?10:45
T42<rahulyx> About to. So I set all CONFIG_*_NS  as y, right?10:45
T42<elros34> which one you don't have already set?10:47
T42<elros34> IIRC mer-kernel-check have most of them excpet one10:48
T42<rahulyx> I have none of them set10:48
T42<rahulyx> Let me check the warnings10:48
T42<elros34> zcat /proc/config.gs | grep -i config_*_ns10:49
T42<elros34> gz not gs10:49
T42<rahulyx> ~ # zcat /proc/config.gz | grep -i config_*_ns: # CONFIG_NS83820 is not set10:50
T42<elros34> about that kernel message, search in sysfs for directory with default_hvdcp3_icl_ma, there should be also debug_mask there, check it's value10:51
T42<elros34> sorry wrong grep: config_.*_ns10:52
T42<rahulyx> There you go: https://paste.mozilla.org/qJv5J1ZB10:53
T42<elros34> enable all of them and it should be good10:54
T42<rahulyx> Let me do that10:55
T42<rahulyx> I'm also patching WLAN. I set only CONFIG_PRONTO_WLAN to m, right? https://paste.mozilla.org/n0DjKewh10:55
T42<Amal> Using sailfish os 4.5 android apps can't access no storage any fix for it?10:55
T42<elros34> wasn't there some fix for it in forum by one of jolla guy?11:15
T42<elros34> looks like 4.6 but anyway https://forum.sailfishos.org/t/19257/2111:17
T42<rahulyx> @elros34 Sailjail is fixed11:52
T42<rahulyx> I tried setting CONFIG_PRONTO_WLAN to m. Doesn't work11:52
T42<rahulyx> Tried to debug ofono: https://paste.mozilla.org/TfmMqqDU11:58
T42<rahulyx> Sim is detected with bar, no internet11:58
malmaybe try installing dummy_netd12:26
T42<elros34> what excatly doesn't work? wlan module does't build or load?13:49
T42<Umeaman> Is the HADK PDF not supposed to be used anymore? I mean are we moving it to be online documentation just like Ubports have?13:50
T42<elros34> nothing really changed. There is hadk pdf for regular porting, web guide for aosp way and bunch of additional places: github sailfishos.wiki with additional informations13:53
T42<rahulyx> @elros34 looks like the wifi module is trying to load https://paste.mozilla.org/LYoshUMf14:04
T42<elros34> but did you manage to build it as module or not?14:05
T42<Mister_Magister> bruh pronto wlan how old is this device14:07
T42<Mister_Magister> last time i saw pronto wlan was 201414:07
mal@Umeaman hadk is the basic instructions with extra information in other places like faq14:17
T42<rahulyx> @elros34, how do I build it as a module? Is it built with hybris-hal? I've made the changes in defconfig and rebuilt the android bits, didn't see any errors\14:21
T42<rahulyx> @Mister_Magister Must be from 2016 I believe14:21
T42<Mister_Magister> yeah14:21
T42<rahulyx> I ran a find wlan.ko in hadk/ Got these: https://paste.mozilla.org/j3PshaNw14:40
T42<rahulyx> I see a ./out/target/product/karatep/obj/KERNEL_OBJ/drivers/staging/prima/wlan.ko... Am I modifying the defconfig right? Here are all the "WLAN"s in defconfig: https://paste.mozilla.org/HtAkE9XO14:42
T42<rahulyx> Do I have to add CONFIG_PRIMA_WLAN=m?14:42
T42<rahulyx> No, msm8937 has PRONTO chipset only... Idk what's going wrong14:53
T42<Mister_Magister> i mean i have pronto but i have prima=m15:01
T42<Mister_Magister> they're the same15:01
T42<Mister_Magister> as in use same codebase15:01
T42<rahulyx> Should I try adding CONFIG_PRIMA_WLAN=m?15:04
T42<elros34> so you have module, now modprobe it and see what happens15:42
T42<elros34> modprobe wlan; ifconfig -a15:42
T42<rahulyx> modprobe wlan returns nothing. I do see a wlan0 interface.15:48
T42<elros34> is it up? check dmesg, it should work15:48
T42<rahulyx> https://paste.mozilla.org/TXV4tdCo15:49
T42<rahulyx> From dmesg: [ 6479.793187] wlan: driver loaded15:49
T42<rahulyx> Command 'write /sys/kernel/debug/tracing/instances/wifi/events/net/filter name==${wifi.interface:-wlan0}' action=sys.boot_completed=1 && sys.wifitracing.started=0 (/system/etc/init/wifi.rc:69) took 78ms and succeeded15:50
T42<elros34> ifconfig wlan0 up15:50
T42<rahulyx> ~ # ifconfig wlan0 up: SIOCSIFFLAGS: Operation not possible due to RF-kill15:51
T42<elros34> rfkill unblock all15:51
T42<rahulyx> That worked! Device is online now15:53
T42<elros34> make sure you use correct systemd service path in /usr/lib/systemd/system not /lib/systemd/system like in outdated hadk-faq instruction15:54
T42<rahulyx> That explains it ig. So I use /usr/lib/systemd/system for bluetooth as well?15:55
T42<elros34> /lib was used long time ago now its /usr/lib15:56
T42<rahulyx> Alright, will make the changes15:56
malPRs are always welcome to faq15:56
T42<rahulyx> How do I check if my device if my device has binderized bluetooth? It's 18.1, however the last official release was Android 716:19
malcommand binder-list16:23
malin libgbinder-tools package in case it's not installed already16:25
T42<rahulyx> I see: https://paste.mozilla.org/PEdBZHc4 So bluetooth is binderized16:29
T42<rahulyx> *?16:29
T42<elros34> did you install bluebinder? does it work?16:35
T42<rahulyx> Rebuilding hal with the modified defconfig now, will try.16:40
T42<rahulyx> Quick question: which packages go into configuration pattern and which ones into adaptation pattern? The hal ones go into adaptation, right? So bluebinder goes into adaptation patterns?16:41
T42<elros34> https://github.com/mer-hybris/droid-config-sony-ganges-pie/blob/master/patterns/patterns-sailfish-device-adaptation-mermaid.inc#L1416:43
T42<rahulyx> What happens to bluez5? Requires: droid-config-karatep-bluez516:47
malthat remains16:49
T42<elros34> it doesn't matter where you put any of these packages, you want follow convention then look at this example repo^ from jolla devs16:50
T42<rahulyx> Yeah, that's what I wanted to know16:51
malthe way the packages are in those sony repos is slightly different from the pattern templates, for some historical reasons16:51
T42<rahulyx> Okay16:51
malbut doesn't really matter which pattern file has which packages16:52
malbut since one is named adaptation patterns that usually contains the low level adaptation packages for various hardware features16:53
T42<rahulyx> Got it.17:13
T42<rahulyx> configs doesn't build after adding bluedroid: https://paste.mozilla.org/B7k2RbQB17:15
T42<rahulyx> I think it fixed itself17:18
T42<rahulyx> What does this mean? error: line 796: Too many names: %files -n patterns-sailfish-device-adaptation-karatep# Feel free to disable non-critical HA parts during devel by commenting lines out17:18
T42<elros34> you messed it up:) Show your changes in github then maybe it will be clear what went wrong17:23
T42<rahulyx> Pushing now17:23
T42<rahulyx> Ahhh I got the hcismd files as well in sparse, forgot to delete them17:26
T42<elros34> droid-hcismd-up.service? That doesn't looks like correct17:26
T42<rahulyx> Yeah I added them before figuring out binderized bluetooth17:27
T42<rahulyx> Removing them17:27
T42<rahulyx> How do I clean the built packages?17:30
T42<elros34> not sure what do you mean, you don't need to clean anything. Built packages are in droid-local-repo/17:35
T42<rahulyx> Okay so build_packages.sh takes care of everything17:35
T42<rahulyx> I meant, how do I make a clean build? I rm -rf droid-local-repo?17:35
T42<elros34> I see no single reason for doing it17:36
T42<elros34> you have build error, it's unrelated to built pacakges17:36
T42<rahulyx> Hmm... When I was trying to build configs with bluedroid, it failed the first two times. And the third time it did now show any errors. I was wondering is something was cached or so17:37
T42<elros34> no idea why it's so not consistent17:38
T42<rahulyx> Okay... let me flash this and check if bluetooth works17:39
T42<elros34> I hope you don't flash whole sfos image for simple change?17:44
T42<rahulyx> The kernel is also rebuilt17:45
T42<rahulyx> repo problem: the to be installed patterns-sailfish-device-configuration-karatep-1-202409151733.aarch64 requires 'patterns-sailfish-device-adaptation-karatep', but this requirement cannot be provided, not installable providers: patterns-sailfish-device-adaptation-karatep-1-202409151733.aarch64[adaptation-community-karatep-4.6.0.13]17:46
malbtw usually you should use ofono-binder-plugin instead of ofono-ril-binder-plugin, unless ofono-binder-plugin for some reason doesn't work18:03
T42<rahulyx> I did try the ofono-binder-plugin, it did not detect the sim cards. I'll try this again though and check logs18:04
T42<rahulyx> The mic doesn't build: https://paste.mozilla.org/GE5GsuFt18:06
T42<rahulyx> Ahhhh it's the fpd, will look at this later18:12
T42<rahulyx> Flashed it. wlan0 is missing. Bluetooth menu is visible is settings but not functional. K6Note bluebinder[5391]: Bluetooth binder service failed18:34
T42<rahulyx> droid-hal-init: Control message: Could not find 'android.hardware.bluetooth@1.0::IBluetoothHci/default' for ctl.interface_start from pid: 1502 (/system/bin/hwservicemanager)18:36
malanything else from bluebinder in log? since you see that interface in binder-list one of the possible reasons is that getting bluetooth mac address fails18:39
T42<rahulyx> systemctl says bluebinder is activating18:47
T42<rahulyx> https://paste.mozilla.org/QGZWLfvb18:48
T42<rahulyx> Also, modprobe wlan fails: modprobe: ERROR: could not insert 'wlan': No such device18:48
T42<rahulyx> Something has changed, the device is on splash for a significantly longer time than before. Let me check logs18:50
T42<rahulyx> This is interesting. A few more libraries are not found. Not sure if they're critical. Also, says: "wifi" is not a known technology name https://paste.mozilla.org/h6cCiDrx18:55
T42<rahulyx> wlan.ko is located in /lib/modules/3.18.124-perf-g04dee5514596-dirty/. Is that normal?19:15
T42<rahulyx> modprobe: ERROR: could not insert 'wlan': No such device19:16
*** ggabriel is now known as Guest355719:28
T42<b100dian> does insmod with the ko path work?19:35
T42<b100dian> what's your uname -r now?19:35
T42<b100dian> If you just flashed the new kernel you might want to scp the new modules in the correct folder too, if thath's what you're seeing19:36
T42<rahulyx> It was a full flash. Let me check this tomorrow. Closing for the day19:39
T42<elros34> check full error in dmesg, make sure uname -r matches your modules location and "depmod -a" works19:44
T42<rahulyx> The kernel name matches. Let me pull up a full dmesg in the morning20:09

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