T42 | <rahulyx> Screen is on! | 00:00 |
---|---|---|
mal | cool, 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 change | 00:00 |
mal | *so remove | 00:01 |
T42 | <rahulyx> I still had to kill vndservicemanager first and wait for it to restart | 00:01 |
mal | hmm | 00:01 |
T42 | <rahulyx> Will delete them | 00:01 |
T42 | <rahulyx> What does this mean tho? "Expecting header 0x53595354 but found 0x564e4452. Mixing copies of libbinder?" | 00:01 |
mal | it 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 binder | 00:02 |
T42 | <rahulyx> Okay... what's the permanent fix for it? | 00:03 |
mal | I think some kind of preload for vndservicemanager | 00:04 |
mal | need to figure out which library it needs | 00:04 |
T42 | <rahulyx> Okay | 00:05 |
mal | @elros34 do you have ideas? | 00:05 |
mal | for 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 point | 00:11 |
T42 | <elros34> thats little beyond my knowledge but still he should provide full log with that failure | 00:13 |
T42 | <rahulyx> Alright | 00:14 |
T42 | <rahulyx> I also removed /usr/libexec/droid-hybris/system/etc/init/disabled_services.rc, now the phone freezes. unresponsive telnet. | 00:16 |
mal | I said you keep that | 00:16 |
T42 | <rahulyx> Yes, just wanted to see what happens | 00:17 |
mal | just remove it from config repo from sparse/usr/libexec/droid-hybris/system/etc/init/ | 00:17 |
mal | that disables various services which cause issues with sailfish | 00:17 |
mal | in 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 it | 00:19 |
T42 | <rahulyx> Will do that | 00: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 |
mal | yes, you need to adjust pixel ratio to suit your device | 00:21 |
T42 | <rahulyx> Alright | 00:21 |
mal | how big is the screen on the device and what resolution? | 00:22 |
T42 | <rahulyx> 5.5" FHD | 00:22 |
T42 | <rahulyx> 1080x1920 | 00:23 |
T42 | <Mister_Magister> @rahulyx you need pixel ratio of 1.6 | 00:24 |
T42 | <rahulyx> Okay! Let me make that change | 00:25 |
T42 | <elros34> why do you add this ldconfig mount here? https://github.com/Sailfish-on-karatep/droid-config-karatep/commit/4a7da507f7d49b71aa8afecaf77be7dcd0928a58 | 00:25 |
T42 | <elros34> btw don't add temporary tmp/ directory to commits | 00:26 |
T42 | <Mister_Magister> add it to .gitignore | 00:26 |
T42 | <rahulyx> @elros34 I dd the hybris-16.0 patches from hadk-faq. | 00:28 |
T42 | <rahulyx> *did | 00: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.mount | 00:29 |
T42 | <elros34> this is more up-to-date instruction: https://sailfishos.wiki/books/hadk/page/hadk-hot#bkmrk-common | 00:29 |
T42 | <rahulyx> I'll add tmp to .gitignore | 00:29 |
T42 | <Mister_Magister> I think you need to do cheeky git rm --cached after adding it to gitignore because its already indexed | 00:30 |
T42 | <rahulyx> @elros34 Will reverse them | 00:30 |
T42 | <rahulyx> @Mister_Magister Will do that, I'll clean the repos shortly | 00:30 |
T42 | <elros34> try to disable this ldconfig mount on device, maybe it mess something up and then get journal/logcat if vndservicemanager fails | 00:31 |
T42 | <rahulyx> @Mister_Magister, can I change the pixel ratio on device? Without rebuilding? | 00:31 |
T42 | <rahulyx> @elros34 let me try that | 00:31 |
T42 | <Mister_Magister> I think yes but you have to google that (or grep irc logs) | 00:31 |
T42 | <rahulyx> Okay | 00: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 issue | 00:55 |
T42 | <rahulyx> Let me try that. I've cleaned up the droid-config repo and pushed the changes. Winding up for the day | 00: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 porting | 00:58 |
T42 | <rahulyx> Yeah! | 00:58 |
T42 | <rahulyx> None of the apps other than settings open, is that expected? | 01:04 |
T42 | <elros34> usually no | 01: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 stupid | 01:10 |
T42 | <rahulyx> Alright, let me try that | 01:12 |
*** ggabriel is now known as Guest3502 | 01: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 |
rinigus | my sony tama display is on a way to detach from the rest of the phone and its time to start looking for replacement | 08:55 |
rinigus | looking 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 myself | 08:55 |
rinigus | any 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 tes | 10:11 |
T42 | <rahulyx> This is with ofono-ril-binder-plugin: https://paste.mozilla.org/1LQvwMAD | 10: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 detected | 10:17 |
T42 | <rahulyx> Okay, slot 2 doesn't work. SIM is detected, but no bar. Says "Network: Denied" https://paste.mozilla.org/AiZiDd5b | 10:20 |
T42 | <elros34> anything in logcat? | 10:24 |
T42 | <rahulyx> Checking. How do I stop the SMBCHG spam on logcat? Makes it difficult to readf | 10:34 |
T42 | <elros34> i do not know what is smbchg spam | 10: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/UGhmVTEJ | 10: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 unplug | 10:43 |
T42 | <rahulyx> @elros34, for fixing sailjail, which patches do I apply? My kernel is 3.18 | 10: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 one | 10:48 |
T42 | <rahulyx> I have none of them set | 10:48 |
T42 | <rahulyx> Let me check the warnings | 10:48 |
T42 | <elros34> zcat /proc/config.gs | grep -i config_*_ns | 10:49 |
T42 | <elros34> gz not gs | 10:49 |
T42 | <rahulyx> ~ # zcat /proc/config.gz | grep -i config_*_ns: # CONFIG_NS83820 is not set | 10: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 value | 10:51 |
T42 | <elros34> sorry wrong grep: config_.*_ns | 10:52 |
T42 | <rahulyx> There you go: https://paste.mozilla.org/qJv5J1ZB | 10:53 |
T42 | <elros34> enable all of them and it should be good | 10:54 |
T42 | <rahulyx> Let me do that | 10:55 |
T42 | <rahulyx> I'm also patching WLAN. I set only CONFIG_PRONTO_WLAN to m, right? https://paste.mozilla.org/n0DjKewh | 10: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/21 | 11:17 |
T42 | <rahulyx> @elros34 Sailjail is fixed | 11:52 |
T42 | <rahulyx> I tried setting CONFIG_PRONTO_WLAN to m. Doesn't work | 11:52 |
T42 | <rahulyx> Tried to debug ofono: https://paste.mozilla.org/TfmMqqDU | 11:58 |
T42 | <rahulyx> Sim is detected with bar, no internet | 11:58 |
mal | maybe try installing dummy_netd | 12: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 informations | 13:53 |
T42 | <rahulyx> @elros34 looks like the wifi module is trying to load https://paste.mozilla.org/LYoshUMf | 14: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 device | 14:07 |
T42 | <Mister_Magister> last time i saw pronto wlan was 2014 | 14:07 |
mal | @Umeaman hadk is the basic instructions with extra information in other places like faq | 14: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 believe | 14:21 |
T42 | <Mister_Magister> yeah | 14:21 |
T42 | <rahulyx> I ran a find wlan.ko in hadk/ Got these: https://paste.mozilla.org/j3PshaNw | 14: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/HtAkE9XO | 14: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 wrong | 14:53 |
T42 | <Mister_Magister> i mean i have pronto but i have prima=m | 15:01 |
T42 | <Mister_Magister> they're the same | 15:01 |
T42 | <Mister_Magister> as in use same codebase | 15: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 happens | 15:42 |
T42 | <elros34> modprobe wlan; ifconfig -a | 15:42 |
T42 | <rahulyx> modprobe wlan returns nothing. I do see a wlan0 interface. | 15:48 |
T42 | <elros34> is it up? check dmesg, it should work | 15:48 |
T42 | <rahulyx> https://paste.mozilla.org/TXV4tdCo | 15:49 |
T42 | <rahulyx> From dmesg: [ 6479.793187] wlan: driver loaded | 15: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 succeeded | 15:50 |
T42 | <elros34> ifconfig wlan0 up | 15:50 |
T42 | <rahulyx> ~ # ifconfig wlan0 up: SIOCSIFFLAGS: Operation not possible due to RF-kill | 15:51 |
T42 | <elros34> rfkill unblock all | 15:51 |
T42 | <rahulyx> That worked! Device is online now | 15: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 instruction | 15: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/lib | 15:56 |
T42 | <rahulyx> Alright, will make the changes | 15:56 |
mal | PRs are always welcome to faq | 15: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 7 | 16:19 |
mal | command binder-list | 16:23 |
mal | in libgbinder-tools package in case it's not installed already | 16:25 |
T42 | <rahulyx> I see: https://paste.mozilla.org/PEdBZHc4 So bluetooth is binderized | 16: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#L14 | 16:43 |
T42 | <rahulyx> What happens to bluez5? Requires: droid-config-karatep-bluez5 | 16:47 |
mal | that remains | 16: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 devs | 16:50 |
T42 | <rahulyx> Yeah, that's what I wanted to know | 16:51 |
mal | the way the packages are in those sony repos is slightly different from the pattern templates, for some historical reasons | 16:51 |
T42 | <rahulyx> Okay | 16:51 |
mal | but doesn't really matter which pattern file has which packages | 16:52 |
mal | but since one is named adaptation patterns that usually contains the low level adaptation packages for various hardware features | 16:53 |
T42 | <rahulyx> Got it. | 17:13 |
T42 | <rahulyx> configs doesn't build after adding bluedroid: https://paste.mozilla.org/B7k2RbQB | 17:15 |
T42 | <rahulyx> I think it fixed itself | 17: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 out | 17:18 |
T42 | <elros34> you messed it up:) Show your changes in github then maybe it will be clear what went wrong | 17:23 |
T42 | <rahulyx> Pushing now | 17:23 |
T42 | <rahulyx> Ahhh I got the hcismd files as well in sparse, forgot to delete them | 17:26 |
T42 | <elros34> droid-hcismd-up.service? That doesn't looks like correct | 17:26 |
T42 | <rahulyx> Yeah I added them before figuring out binderized bluetooth | 17:27 |
T42 | <rahulyx> Removing them | 17: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 everything | 17: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 it | 17:36 |
T42 | <elros34> you have build error, it's unrelated to built pacakges | 17: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 so | 17:37 |
T42 | <elros34> no idea why it's so not consistent | 17:38 |
T42 | <rahulyx> Okay... let me flash this and check if bluetooth works | 17:39 |
T42 | <elros34> I hope you don't flash whole sfos image for simple change? | 17:44 |
T42 | <rahulyx> The kernel is also rebuilt | 17: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 |
mal | btw usually you should use ofono-binder-plugin instead of ofono-ril-binder-plugin, unless ofono-binder-plugin for some reason doesn't work | 18: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 logs | 18:04 |
T42 | <rahulyx> The mic doesn't build: https://paste.mozilla.org/GE5GsuFt | 18:06 |
T42 | <rahulyx> Ahhhh it's the fpd, will look at this later | 18:12 |
T42 | <rahulyx> Flashed it. wlan0 is missing. Bluetooth menu is visible is settings but not functional. K6Note bluebinder[5391]: Bluetooth binder service failed | 18: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 |
mal | anything else from bluebinder in log? since you see that interface in binder-list one of the possible reasons is that getting bluetooth mac address fails | 18:39 |
T42 | <rahulyx> systemctl says bluebinder is activating | 18:47 |
T42 | <rahulyx> https://paste.mozilla.org/QGZWLfvb | 18:48 |
T42 | <rahulyx> Also, modprobe wlan fails: modprobe: ERROR: could not insert 'wlan': No such device | 18:48 |
T42 | <rahulyx> Something has changed, the device is on splash for a significantly longer time than before. Let me check logs | 18: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/h6cCiDrx | 18: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 device | 19:16 |
*** ggabriel is now known as Guest3557 | 19: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 seeing | 19:36 |
T42 | <rahulyx> It was a full flash. Let me check this tomorrow. Closing for the day | 19:39 |
T42 | <elros34> check full error in dmesg, make sure uname -r matches your modules location and "depmod -a" works | 19:44 |
T42 | <rahulyx> The kernel name matches. Let me pull up a full dmesg in the morning | 20:09 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!