| *** n2klb_ is now known as n2klb | 02:01 | |
| sharks | @rinigus Do you know what would be required to tailor droid-bthelper to android.hardware.audio@6.0? I am seeing "setConnectedState transact failed for AUDIO_DEVICE_OUT_BLUETOOTH_SCO_HEADSET" and "Failed to set status to disconnected through AudioHal for 68:D6:ED:F1:D2:3B". | 07:40 |
|---|---|---|
| rinigus | mal: thanks! it was compiling for so long in that OBS repo, that I also forked, made 5.10 version, and tagged it properly (so RPMs are with version 5.10.xxx). maybe we should do similar in the main repo | 07:55 |
| rinigus | sharks: you should get OBS repos (devel and testing) for the port before releasing it. that would later simplify life for all users | 07:56 |
| rinigus | sharks: its a while since I worked on droid-bthelper, sorry. you would have to look into it yourself | 07:57 |
| sharks | Cool, thanks. I'm really hoping @mal has thought up a name for me and I can get my very own repo this evening. | 07:57 |
| sharks | No worries, it was a long shot but I thought it was worth asking in case it saved me a few hours. I'll continue digging into it myself. Thanks for giving me a starting point though! | 07:58 |
| rinigus | btw, to distinguish, you could also opt for murray-los . in principle, it shouldn't matter | 07:58 |
| sharks | murray-los would be more than fine by me | 07:58 |
| rinigus | however, it would be somewhat inconsistent as nagara is also los based | 07:58 |
| rinigus | :) | 07:59 |
| sharks | True, but nagara doesn't have an active SODP port running in parallel anymore! | 07:59 |
| sharks | So it doesn't require the distinction | 08:00 |
| sharks | @mal or @Keto can I pretty please with a cherry on top have a repo made for me? I would really love to get something done tonight as I'll be away tomorrow | 09:10 |
| mal | sharks: what is you obs username? | 10:14 |
| sharks | sharks | 10:14 |
| sharks | Thankyou mal!! | 10:18 |
| mal | https://build.sailfishos.org/project/show/nemo:devel:hw:sony:murray and https://build.sailfishos.org/project/show/nemo:testing:hw:sony:murray | 10:19 |
| sharks | Very appreciated, thanks so much. I will populate them according to hadk and add them to my image so I can get the port out. Thankyou thankyou thankyou! | 10:21 |
| mal | sharks: you probably should make lvm based image before releasing it | 10:47 |
| sharks | Bugger. Where do I find documentation on that process? | 10:47 |
| mal | there isn't any but it's pretty much just copying this folder and all its content and adjusting the needed parts https://github.com/mer-hybris/droid-config-sony-murray/tree/master/kickstart | 10:51 |
| sharks | Okay, then just build and flash as normal? What's the catch? | 10:52 |
| mal | adjusting the file names and codenames in the files | 10:52 |
| sharks | Sounds too easy | 10:52 |
| mal | also you need to build new boot images | 10:52 |
| sharks | Oh bugger, there's the catch. | 10:53 |
| sharks | Okay, I better get the ball rolling on that then, gonna take 2hrs to build that and I'll be in bed by then! | 10:53 |
| mal | what? | 10:54 |
| mal | that are you going to build that takes so long? | 10:54 |
| mal | the lvm based boot images are completely separate from the others and the build of those happens on obs | 10:55 |
| mal | something like this https://github.com/mer-hybris/droid-hal-img-boot-sony-murray | 10:56 |
| sharks | Oh sorry, I misunderstood. I thought I had to jump back into the habuild environment on my local machine | 10:56 |
| mal | you need to adjust boot image generation commands to match your build | 10:57 |
| mal | in the spec of that | 10:57 |
| mal | maybe increate lvm_root_size also, we have been using 10000 on newer devices, can't remember how big internal storage x10iv had | 10:58 |
| sharks | Right, this is going to take a bit to wrap my head around. Thanks mal, I'll see how I go | 10:58 |
| mal | also you need to adjust patterns | 10:58 |
| sharks | 128gb is internal storage | 10:59 |
| sharks | I saw that the obs patterns were different, I need to understand how to change that too | 10:59 |
| mal | also while at it add proper .gitignore to your config repo https://github.com/sailfishos-sony-nagara/droid-config-sony-nagara/blob/main/.gitignore like that and remove the useless installroot, tmp and documentation.list from your droid-config repo | 11:00 |
| sharks | will do, sure. Thanks | 11:00 |
| mal | for patterns you need to remove Requires: droid-hal-pdx225-kernel-modules | 11:01 |
| mal | also you are missing Requires: droid-hal-pdx225-vendor_boot and Requires: droid-hal-pdx225-kernel-dtbo | 11:01 |
| sharks | What do they do, and why does my phone work perfectly fine without them? | 11:02 |
| sharks | I don't mean to be rude I'm just trying to learn | 11:02 |
| mal | the droid-hal-pdx225-kernel-modules is needed when using community style boot image, lvm based boot image contains those | 11:02 |
| sharks | Right, okay sure | 11:02 |
| mal | and you probably just flashed manually vendor_boot and dtbo | 11:03 |
| mal | the packages are needed if you want to be able to update kernel and dtbo from obs | 11:03 |
| sharks | Never vendor_boot, I flashed vbmeta and dtbo from Lineage | 11:03 |
| mal | hmm | 11:03 |
| mal | can't remember if vendor_boot had anything useful on x10iv, maybe it didn't | 11:04 |
| sharks | Lineage do have a download for vendor_boot but their instructions don't call for it to be flashed so I never did | 11:04 |
| mal | ok | 11:05 |
| mal | maybe you can skip it then | 11:05 |
| sharks | Okay, I'll try that | 11:06 |
| mal | another thing is that you should add file /usr/share/ssu/board-mappings.d/10-community.in with this content: | 11:07 |
| mal | [xqcc72] | 11:07 |
| mal | deviceDesignation=community | 11:07 |
| mal | that goes to droid-config sparse as usual | 11:07 |
| Keto | .ini | 11:08 |
| mal | oops | 11:08 |
| mal | so that goes to /usr/share/ssu/board-mappings.d/10-community.ini | 11:08 |
| mal | copy paste mistake earlier | 11:08 |
| sharks | Okay, no worries. | 11:08 |
| Keto | that'll set the second value shown in parentheses on the ssu device model line, and we can use that to distinguish the different ports on the store side | 11:12 |
| sharks | Fantastic, I'll make sure that happens then. mal - any particular submodule revision for droid-hal-img-boot-$VENDOR-$DEVICE? same as the one you've got in murray? | 11:14 |
| mal | you can use latest submodule | 11:18 |
| sharks | Thanks | 11:19 |
| sharks | Right, I think I've done all those things. I have work early in the morning so I need to head to bed soon, so I guess I will not get to start playing with OBS properly until Friday night. But hopefully I'm a little bit closer. Thanks again | 11:37 |
| T42 | <nightishaman> mal: To my loading modules problem, is there a way I can copy lib/modules/kver to /lib/modules during build or should modprobe load from /lib/modules/kver. (I dont know why it broke now to /lib/modules) | 11:50 |
| mal | I still don't understand what exactly looks for those in /lib/modules | 11:52 |
| T42 | <nightishaman> It only says modprobe, I can revert my change and delete all ko files from my test device and then copy dmesg to gist if you need it | 11:53 |
| mal | which modprobe? did you have the androie module loading hack? | 12:00 |
| T42 | <nightishaman> https://gist.github.com/maltesermailo/611e0bcacbd570a5c0731149a8dad0fd#file-gistfile1-txt-L4713 | 12:04 |
| T42 | <nightishaman> mal: It happens after droid_init_done | 12:04 |
| T42 | <nightishaman> I dont remember any hack except for pre-systemd module loading | 12:08 |
| mal | @nightishaman I meant didn't you have the patch make android side load the modules? or do remember incorrectly who did that | 12:47 |
| T42 | <nightishaman> mal: No, I didn't. Don't remember | 12:48 |
| T42 | <nightishaman> However in the log you can see modprobe wants to load from /lib/modules | 12:49 |
| T42 | <nightishaman> What is the best strategy now? | 12:49 |
| mal | you had that https://github.com/maltesermailo/hybris-patches/blob/hybris-23.2/system/core/0044-Allow-building-of-load_kernel_modules-binary.patch | 12:52 |
| T42 | <nightishaman> Thats only pre systemd tho, not Android side, it is called on the ramdisk to load init modules from the ramdisk | 12:53 |
| T42 | <nightishaman> The current problem is post systemd with normal modprobe | 12:53 |
| mal | can you find the modules.load of ramdisk /lib/modules | 12:57 |
| mal | @nightishaman why would any module loading happen at that point, normally modules are supposed to be loaded before droid-hal-init | 12:58 |
| mal | as I probably mentioned before something like this is the usual way https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/modules-load.d/fp5.conf | 12:59 |
| mal | unless you had some odd issues with modules being loaded that way | 12:59 |
| T42 | <nightishaman> I wonder why it did work before with only /lib/modules/kver and why it loads that late now | 13:00 |
| mal | do you have the module loading config for systemd? | 13:01 |
| mal | have you even tried if it works, try with one module first | 13:01 |
| T42 | <nightishaman> mal: where do i find that config | 13:02 |
| T42 | <nikita_kraev> it's the modules-load.d from above | 13:02 |
| T42 | <nightishaman> modules-load.d is empty | 13:03 |
| mal | you make it yourself, based on the modules.load files you find in out, from any of these paths https://github.com/mer-hybris/droid-hal-device/blob/master/droid-hal-device.inc#L1061 | 13:03 |
| T42 | <nikita_kraev> yeah, what mal is suggesting - try adding the llist of modules you need to load early / explicitly into that list | 13:03 |
| T42 | <nightishaman> this is ramdisk: https://gist.github.com/maltesermailo/61abc76f613117aa02a60cf39497a9f0 | 13:03 |
| mal | usually the order of modules is to that for example vendor_dlkm/lib/modules/modules.load list is added to modules-load.d and then you append the system_dlkm/lib/modules/modules.load to it | 13:05 |
| mal | that is the order android uses, vendor first then system | 13:05 |
| T42 | <nightishaman> @nikita_kraev I dont need those modules early, for example touch should be loaded at system time, not ramdisk | 13:05 |
| T42 | <nightishaman> mal: Okay, I copy those from vendor_dlkm to modules.load.d | 13:06 |
| mal | the point of that list is that android side module loading doesn't usually work so if we load the modules by systemd before droid-hal-init then android side is happy | 13:06 |
| T42 | <nikita_kraev> modules-load.d loads them at system time, when systemd starts, not earlier | 13:06 |
| T42 | <nikita_kraev> also it's modules-load.d, not modules.load.d | 13:07 |
| mal | @nightishaman and system_dlkm also, make sure the format is correct, no .ko at the end of the modules in the list | 13:07 |
| T42 | <nightishaman> got this now: https://gist.github.com/maltesermailo/b2b08c315dc53059fb718aaebf9c25ff | 13:10 |
| mal | seems reasonable | 13:10 |
| T42 | <nightishaman> lets test | 13:11 |
| T42 | <nightishaman> now the phone blows up | 13:11 |
| T42 | <nightishaman> it works | 13:13 |
| T42 | <nightishaman> Okay, Touch works, Wifi works, next up is, i dont see sim cards in settings | 13:18 |
| T42 | <nightishaman> we boot into homescreen | 13:18 |
| T42 | <nightishaman> I cant believe im already in ui | 13:18 |
| T42 | <nightishaman> (and patched 2 kernel modules in between) | 13:19 |
| T42 | <nightishaman> also ui size is too small, the https://imgur.com/a/cKHK2o9 | 13:20 |
| T42 | <nightishaman> rild_exynos is running | 13:23 |
| T42 | <nightishaman> ofono too | 13:23 |
| mal | you need to adjust pixel_ratio | 13:27 |
| mal | https://github.com/mlehtima/droid-config-fp5/blob/master/rpm/droid-config-fp5.spec#L36 the value is a bit of guess work | 13:27 |
| T42 | <nightishaman> Is there guides on the other stuff such as Bluetooth, Cellular and the stuff on the checklist? | 13:30 |
| mal | does the device use hidl or aidl for telephony, use binder-list -d /dev/binder and same for /dev/hwbinder and look which has IRadio related services | 13:32 |
| mal | most of the time bluetooth failure is because it can't find the mac address property | 13:32 |
| mal | in case your device uses /dev/binder for IRadio then you need first 4 lines of https://github.com/mer-hybris/s19mps-droid-configs/blob/master/sparse/etc/ofono/binder.d/s19mps.conf | 13:34 |
| mal | last line (5th) is for devices which don't have 5g | 13:34 |
| T42 | <nightishaman> I also gotta test usb-moded next | 13:39 |
| mal | check which interface it uses for usb on device | 13:41 |
| mal | rndis0 or usb0 | 13:41 |
| T42 | <nightishaman> [ 6309.452577] rndis_host 1-4:1.0 usb0: register 'rndis_host' at usb-0000:02:00.0-4, RNDIS device, 62:69:59:a0:0c:15 | 13:42 |
| T42 | <nightishaman> [ 6309.472485] rndis_host 1-4:1.0 enp2s0f0u4: renamed from usb0 | 13:42 |
| T42 | <nightishaman> [ 6311.787620] usb 1-4: USB disconnect, device number 16 | 13:42 |
| T42 | <nightishaman> [ 6311.787684] rndis_host 1-4:1.0 enp2s0f0u4: unregister 'rndis_host' usb-0000:02:00.0-4, RNDIS device | 13:42 |
| T42 | <nightishaman> it immediately deregisters | 13:42 |
| T42 | <nightishaman> i got perfect pixel ratio and terminal on the phone tho to check | 13:42 |
| T42 | <nightishaman> just dont know what | 13:42 |
| mal | I meant check on device, ifconfig -a | 13:43 |
| mal | do you see usb0 or rndid0 interface in the list | 13:44 |
| T42 | <nightishaman> yes, usb0 | 13:44 |
| mal | https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/usb-moded/usb-moded-fp5.ini the udev part might not be needed, depends on the device | 13:45 |
| mal | adjust function_rndis and gadget_udc_device if needed, latter might not even be needed if your device only has one entry in /sys/class/udc/ | 13:47 |
| mal | btw, that configs/b.1 is for lvm based build, community style builds use configs/c.1 | 13:47 |
| T42 | <adampigg> i didnt know that | 13:52 |
| mal | @adampigg hat? | 13:53 |
| mal | *what | 13:53 |
| T42 | <adampigg> *that ... about the c.1/b.1 | 13:53 |
| T42 | <nightishaman> how do i know the rndis function that i gotta set? | 13:54 |
| mal | check what you have in /config/usb_gadget/g1/functions/ | 13:55 |
| T42 | <nightishaman> ok im rare stupid, i just wondered why usb wasnt coming up, while holding the usb cable in my hand | 13:56 |
| Mister_Magister | @nightishaman truly a mystery | 13:56 |
| Mister_Magister | we'll never know the answer | 13:56 |
| T42 | <nightishaman> usb-moded works | 13:59 |
| T42 | <nightishaman> thanks mal already for the wonderful help | 14:03 |
| T42 | <nightishaman> https://gist.github.com/maltesermailo/3d87410d4005da57902d579dec392f2d | 14:06 |
| T42 | <nightishaman> both binders have radio services | 14:06 |
| mal | use the config I mentioned | 14:07 |
| mal | it's only some vendor services in hidl which we don't have to care about | 14:07 |
| T42 | <nightishaman> I did | 14:07 |
| T42 | <nightishaman> no sim cards show up | 14:08 |
| mal | you copied it to correct place? just making sure | 14:08 |
| T42 | <nightishaman> /etc/ofono/binder.d # cat panther.conf | 14:08 |
| T42 | <nightishaman> [Settings] | 14:08 |
| T42 | <nightishaman> Device=/dev/binder | 14:08 |
| T42 | <nightishaman> InterfaceType = aidl | 14:08 |
| T42 | <nightishaman> useNetworkScan = true | 14:08 |
| mal | anything journal from ofono? | 14:08 |
| T42 | <nightishaman> Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. | 14:09 |
| T42 | <nightishaman> its running | 14:10 |
| mal | systemctl restart ofono | 14:11 |
| mal | and try again | 14:11 |
| T42 | <nightishaman> https://gist.github.com/maltesermailo/18c8659939327a834ea8ae68f52e5af2 | 14:12 |
| mal | does "/system/bin/logcat -b radio" show anything when you restart ofono | 14:16 |
| T42 | <nightishaman> no | 14:17 |
| mal | does it show anything at all? | 14:17 |
| T42 | <nightishaman> 07-15 14:20:07.905 3351 3512 V RIL : poll timeout. interval=3000 | 14:20 |
| T42 | <nightishaman> 07-15 14:20:07.906 3351 3512 E RIL : [PollModemState] oldState=0 newState=0 | 14:20 |
| T42 | <nightishaman> these on repeat | 14:20 |
| mal | hmm ok, I think modem is not ready for what ever reason | 14:21 |
| mal | are all mounts successful? | 14:21 |
| mal | check output of "systemctl" | 14:22 |
| mal | any failing services? | 14:22 |
| T42 | <nightishaman> /etc/ofono/binder.d # systemctl list-units --failed | 14:27 |
| T42 | <nightishaman> *0 loaded units listed.* Pass --all to see loaded but inactive units, too. | 14:27 |
| T42 | <nightishaman> To show all installed unit files use 'systemctl list-unit-files'. | 14:27 |
| T42 | <nightishaman> mnt-vendor-modem_img isnt mounted | 14:29 |
| T42 | <nightishaman> it didnt fail its just inactive | 14:29 |
| T42 | <nightishaman> ● mnt-vendor-modem_img.mount - Droid mount for /mnt/vendor/modem_img | 14:29 |
| T42 | <nightishaman> Loaded: loaded (/usr/lib/systemd/system/mnt-vendor-modem_img.mount; enabled; vendor preset: enabled) | 14:29 |
| T42 | <nightishaman> Active: inactive (dead) | 14:29 |
| T42 | <nightishaman> Where: /mnt/vendor/modem_img | 14:29 |
| T42 | <nightishaman> What: /dev/block/platform/14700000.ufs/by-name/modem | 14:29 |
| mal | so a mistake in fixup-mountpoints | 14:30 |
| mal | you probably had there modem_a instream of modem | 14:30 |
| mal | you can test first on device by replacing the What in that mount service with correct /dev/ path | 14:31 |
| mal | the target where /dev/block/platform/14700000.ufs/by-name/modem points to | 14:31 |
| T42 | <nightishaman> its modem_b | 14:31 |
| T42 | <nightishaman> im on b | 14:32 |
| T42 | <nightishaman> mal: In recovery? in sfos only /dev/block/platform/1470000.ufs/by-name/modem_b and modem_a exist | 14:34 |
| mal | what? | 14:36 |
| mal | replace it which what ever slot you want to use | 14:37 |
| mal | the /dev/block/platform/14700000.ufs/by-name/modem is something android does and it points to active slot, we don't have that at the moment | 14:37 |
| mal | most likely both modem slots have quite similar image, unless you manually flashed something different | 14:38 |
| T42 | <nightishaman> i didnt flash anything on modem | 14:38 |
| T42 | <nightishaman> Jul 15 16:40:37 Pixel7 systemd[1]: *Dependency failed for Droid mount for /mnt/vendor/modem_img.* | 14:41 |
| T42 | <nightishaman> Jul 15 16:40:37 Pixel7 systemd[1]: *mnt-vendor-modem_img.mount: Job mnt-vendor-modem_img.mount/start failed with result 'dependency'.* | 14:41 |
| T42 | <nightishaman> it fails for some reason | 14:41 |
| mal | you didn't replace it with the actual node? | 14:41 |
| mal | the node where /dev/block/platform/1470000.ufs/by-name/modem_b or _a points to | 14:42 |
| mal | those are symlinks | 14:42 |
| mal | show the mount service file | 14:42 |
| T42 | <nightishaman> ok its mounted | 14:44 |
| mal | is modem happy now? | 14:45 |
| T42 | <nightishaman> rebooting | 14:45 |
| T42 | <nightishaman> nope still no sim cards | 14:49 |
| T42 | <nightishaman> ofono restart no change in logcat | 14:50 |
| T42 | <nightishaman> but the spam is gone | 14:50 |
| mal | how about normal logcat? | 14:50 |
| T42 | <nightishaman> modem_userdata is already mounted too | 14:50 |
| mal | and no other failing mounts? | 14:50 |
| T42 | <nightishaman> logcat is spammed by IStats missing | 14:52 |
| T42 | <nightishaman> so i cant actually see, its spamming ten times per second | 14:52 |
| T42 | <TheVancedGamer> I did fix that in minimediaservice | 14:52 |
| T42 | <nightishaman> mounts how do i check, no failed units, but id have to check each individually to get errors on inactive ones | 14:53 |
| T42 | <nightishaman> https://gist.github.com/maltesermailo/f418a6c5d587a86b5254b096a2415386 | 14:55 |
| mal | @TheVancedGamer do you have the patch somewhere? | 15:05 |
| T42 | <TheVancedGamer> I MRed that to upstream | 15:07 |
| T42 | <TheVancedGamer> it fixed the bug for me on Ubuntu Touch | 15:07 |
| T42 | <TheVancedGamer> the logging* | 15:07 |
| mal | no sign of that in our droidmedia | 15:08 |
| T42 | <TheVancedGamer> huh | 15:09 |
| T42 | <TheVancedGamer> one second | 15:09 |
| mal | or was it long ago? | 15:09 |
| mal | ah, I think I found it | 15:10 |
| mal | my bad | 15:11 |
| mal | @nightishaman was that hybris-23.2 based port? | 15:11 |
| T42 | <nightishaman> mal: Yes | 15:12 |
| mal | the issue is that droidmedia is not yet working on 23.2 so minimediaservice is not running | 15:12 |
| mal | I'll see if I can get that fixed finally | 15:12 |
| T42 | <TheVancedGamer> ah | 15:12 |
| mal | works fine on 23.0 but android decides to changes function parameters etc for 23.2 | 15:13 |
| mal | so I need ot figure out how to support both, there is no trivial way to detect which one is being used | 15:13 |
| T42 | <nightishaman> Question is how we continue on cellular problem | 15:25 |
| mal | do you see in logcat anything about something waiting | 15:25 |
| mal | other that that IStats | 15:26 |
| mal | it's possible that is blocking something from starting | 15:27 |
| T42 | <nightishaman> nothing is coming up when i do restart ofono and look at logcat | 15:28 |
| T42 | <nightishaman> /system/bin/logcat | grep -v "IStats" | grep -v "ISensorManager" | grep -v "IUsbGadget" | grep -v "IAudioExt" | 15:28 |
| mal | Mister_Magister: can you check in kernel sources of your old device with 3.4 if those have PR_SET_NO_NEW_PRIVS and PR_SET_SECCOMP | 15:33 |
| Mister_Magister | for you anything <3 | 15:33 |
| mal | just updating openssh and it has strict requirement for those to work | 15:34 |
| mal | if we use seccomp filter in it | 15:34 |
| Mister_Magister | both are available on all 3 deviecs (two of which share kernel and defconfig :P) | 15:35 |
| mal | ok | 15:38 |
| mal | so I probably can keep that enabled | 15:38 |
| mal | of course if you want to test the new version and see if ssh still works https://github.com/sailfishos/openssh/pull/12 | 15:38 |
| mal | if you build that remember to apply the patch (x86 and arm32 need it) | 15:39 |
| T42 | <nightishaman> ill make a pause now and come back later with cellular fixing | 16:03 |
| mal | fix other things | 16:07 |
| mal | maybe check why bluetooth is failing | 16:07 |
| T42 | <nightishaman> I got no idea where to check bluetooth either, but once I finish this port, I'm gonna collect all my conversations and compile them into a wiki | 16:11 |
| mal | what do you see in journal from bluebinder for example | 16:19 |
| T42 | <nightishaman> apparently im missing some defconfig variables, at least kernel check suggests that | 16:28 |
| mal | vhci is missing? | 16:28 |
| T42 | <nightishaman> yeah | 16:28 |
| mal | well that will break it | 16:28 |
| T42 | <nightishaman> ERROR: Unable to find net/bluetooth/hidp/hidp.ko in any of the following directories: | 16:41 |
| T42 | <nightishaman> bazel-out/k8-fastbuild/bin/aosp/kernel_aarch64/staging/lib/modules/6.1.145-android14-11-g1a6d4ea1a506/kernel | 16:41 |
| T42 | <nightishaman> Unable to find net/bluetooth/rfcomm/rfcomm.ko in any of the following directories: | 16:41 |
| T42 | <nightishaman> bazel-out/k8-fastbuild/bin/aosp/kernel_aarch64/staging/lib/modules/6.1.145-android14-11-g1a6d4ea1a506/kernel | 16:41 |
| T42 | <nightishaman> Target //private/devices/google/pantah:pantah/dist failed to build | 16:41 |
| T42 | <nightishaman> Use --verbose_failures to see the command lines of failed build steps. | 16:41 |
| T42 | <nightishaman> | 16:41 |
| T42 | <nightishaman> getting these now ._. | 16:41 |
| T42 | <securebootoff> remove hidp from module load lists | 16:49 |
| T42 | <securebootoff> as you've inlined it | 16:49 |
| T42 | <nightishaman> mal: Would it also be possible to load the modules on modules-load.d like hci_vhci and rfcomm. The android build system is making tantrums because the ABI would break and I can't update the ABI file because something else | 17:10 |
| T42 | <nightishaman> they even are already in modules-load.d | 17:22 |
| mal | yes | 17:26 |
| T42 | <nightishaman> then its not vhci | 17:28 |
| T42 | <nightishaman> since its loaded | 17:28 |
| mal | what is the error? | 17:28 |
| T42 | <nightishaman> I cant find bluebinder service | 17:31 |
| T42 | <nightishaman> how is it called | 17:32 |
| mal | do you have it installed? | 17:51 |
| mal | check patterns | 17:51 |
| mal | you should be able to install it on device if you have wlan working | 17:52 |
| T42 | <nightishaman> only this | 18:11 |
| T42 | <nightishaman> Requires: droid-config-panther-bluez5 | 18:11 |
| T42 | <nightishaman> guess why sim cards wont work too | 18:12 |
| T42 | <nightishaman> i just checked ur patterns and i forgot a lot | 18:12 |
| mal | hehe | 18:12 |
| Mister_Magister | mal laughing, rare occurance!!! | 18:13 |
| mal | @nightishaman which device did you check? | 18:16 |
| T42 | <nightishaman> fp5 | 18:16 |
| mal | ok, just reminder, don't add sailfish-device-encryption yet, it only works on lvm based builds | 18:16 |
| mal | also you can remove gmp-droid, it's not needed anymore | 18:17 |
| T42 | <nightishaman> https://gist.github.com/maltesermailo/ce581a03cee6fdf7d4abd033b3c79f8c | 18:18 |
| T42 | <nightishaman> i cant install fingerprint | 18:18 |
| mal | are you trying to install it on device? | 18:19 |
| T42 | <nightishaman> yes | 18:20 |
| T42 | <nightishaman> probably i have to do it with patterns | 18:20 |
| mal | yeah, the patterns require the other package | 18:20 |
| T42 | <nightishaman> and the splash didnt work, i have to deinstall that | 18:21 |
| mal | you can do it so that update patterns, then build_packages.sh -c and copy the droid-config and patterns-sailfish-device* rpm files to device and install manually | 18:21 |
| mal | only install the ones that are already installed, check "zypper se droid-config" for example | 18:22 |
| T42 | <nightishaman> im gonna reinstall everything later anyway | 18:22 |
| T42 | <nightishaman> ah splash screen is finished | 18:22 |
| T42 | <nightishaman> IT FOUND MY ESIM | 18:23 |
| T42 | <nightishaman> i installed that one on grapheneos | 18:23 |
| T42 | <nightishaman> cant active internet tho and it doesnt show the simcards tab for the physical one | 18:24 |
| mal | does the device have one or more physical slots? | 18:24 |
| T42 | <nightishaman> one | 18:25 |
| mal | ok | 18:25 |
| T42 | <nightishaman> and one esim | 18:25 |
| T42 | <nightishaman> Jul 15 20:24:58 Pixel7 bluebinder_wait.sh[8352]: Waiting for bluetooth service | 18:25 |
| T42 | <nightishaman> also bluetooth fucked | 18:25 |
| mal | is that repeating? | 18:25 |
| T42 | <nightishaman> yes | 18:26 |
| mal | /usr/bin/getprop |grep "init.svc.*bluetooth" | 18:27 |
| T42 | <nightishaman> empty | 18:27 |
| mal | is there any bluetooth service in binder-list in either binder or hwbinder | 18:28 |
| T42 | <nightishaman> yes in devbinder | 18:28 |
| T42 | <nightishaman> /usr/bin/droid # binder-list -d /dev/binder | grep "blue" | 18:29 |
| T42 | <nightishaman> android.hardware.bluetooth.IBluetoothHci/default | 18:29 |
| T42 | <nightishaman> android.hardware.bluetooth.finder.IBluetoothFinder/default | 18:29 |
| T42 | <nightishaman> android.hardware.bluetooth.ranging.IBluetoothChannelSounding/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBTChannelAvoidance/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothCcc/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothCco/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothEwp/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothExt/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothFinder/default | 18:29 |
| T42 | <nightishaman> vendor.google.bluetooth_ext.IBluetoothSar/default | 18:29 |
| mal | hmm, why is it not showing in getprop | 18:29 |
| T42 | <nightishaman> you wont believe it | 18:35 |
| T42 | <nightishaman> the service is called bcmbtlinux | 18:35 |
| T42 | <nightishaman> service bcmbtlinux /vendor/bin/hw/android.hardware.bluetooth-service.bcmbtlinux | 18:36 |
| mal | does it show in getprop? | 18:51 |
| T42 | <nightishaman> yes | 19:11 |
| mal | ok, maybe that bluebinder wait script needs some override then | 19:13 |
| mal | for now manually edit the script to wait for your service | 19:13 |
| mal | maybe I'll change the script to use binder-list instead, that would be more reliable probably | 19:14 |
| T42 | <nightishaman> bluebinder-post now fails | 19:15 |
| T42 | <nightishaman> no such device | 19:16 |
| mal | ? | 19:21 |
| T42 | <nightishaman> bluebinder_post.sh[12231]: Failed to get bluetooth address! | 19:22 |
| mal | so check getprop if you can find some property with the bluetooth mac | 19:24 |
| mal | and then add a file like this https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/usr/bin/droid/droid-get-bt-address.sh which checks that property you found | 19:25 |
| T42 | <nightishaman> its ro.vendor.bluetooth.evb_bdaddr | 19:28 |
| T42 | <nightishaman> XD | 19:28 |
| mal | it's a bit odd why there is no standard property name for such thing | 19:30 |
| T42 | <nightishaman> and it works | 19:34 |
| T42 | <nightishaman> now the issue that i cant enable cellular internet | 19:35 |
| T42 | <nightishaman> the sim is detected | 19:35 |
| mal | so is the toggle there? | 19:35 |
| T42 | <nightishaman> not clickable tho | 19:35 |
| mal | and the sim selector under it? | 19:35 |
| T42 | <nightishaman> also not clickable | 19:35 |
| mal | I wonder if you need to setup the second slot since you the esim there | 19:36 |
| T42 | <nightishaman> it is setup | 19:36 |
| T42 | <nightishaman> from android prior | 19:36 |
| T42 | <nightishaman> https://cdn.discordapp.com/attachments/1303542449364406354/1527036399662923836/IMG_3816.jpg?ex=6a5932f8&is=6a57e178&hm=a2c7cd58897f8312ed854adef75462f133f939f1fbed40975114c77e78bd2a4f& | 19:37 |
| T42 | <nightishaman> Telekom.de is my provider | 19:37 |
| mal | did you install this jolla-settings-networking-multisim ?[1~ | 19:39 |
| T42 | <nightishaman> no | 19:41 |
| mal | try | 19:41 |
| Mister_Magister | mal: I did some proper backporting instead of banging code together https://github.com/VerdandiTeam/android_kernel_motorola_msm8226/commits/hybris-12.1/ | 19:43 |
| Mister_Magister | still got some ways to go before i can apply getrandom backport | 19:43 |
| T42 | <nightishaman> Well, still greyed out but i got the sim cards tab | 19:44 |
| T42 | <nightishaman> and wifi seems to forget my wifi details | 19:44 |
| mal | did you get the data sim selector entry? | 19:44 |
| T42 | <nightishaman> i got it on wifi connect | 19:45 |
| mal | ? | 19:46 |
| mal | if wifi is forgotten that means wifi mac is changing, which means some android side service is not working correctly | 19:47 |
| T42 | <nightishaman> nah it didnt forget now but it wont autoconnect | 19:48 |
| T42 | <nightishaman> actually it doesnt want to connect to my wifi even tho its saved | 19:49 |
| T42 | <nightishaman> only when i reenter details | 19:49 |
| mal | yeah, so mac has changed | 19:50 |
| T42 | <nightishaman> now the wifi is saved twice | 19:51 |
| T42 | <nightishaman> ugh | 19:51 |
| mal | usually it's some android side service that makes sure mac is correct | 19:51 |
| T42 | <nightishaman> and how do i find it | 19:51 |
| T42 | <nightishaman> [General] | 19:53 |
| T42 | <nightishaman> NetworkInterfaceBlacklist = ifb,p2p,usb,rmnet,rev_rmnet,wlan1,aware_nmi,radiotap | 19:53 |
| T42 | <nightishaman> | 19:53 |
| T42 | <nightishaman> I did this in connman main.conf.d, because else itd show 3 wifis, and wlan1 is STA-mode and crashes the kernel if used | 19:53 |
| T42 | <nightishaman> no idea what aware_nmi and radiotap do | 19:54 |
| mal | did you disable any additional android services? | 20:02 |
| T42 | <nightishaman> no | 20:05 |
| T42 | <nightishaman> i dont even know how | 20:05 |
| mal | ok | 20:05 |
| mal | what other things are still broken? | 20:11 |
| T42 | <nightishaman> i didnt test other things yet, cellular is among the most important stuff, i should check sound, gps and nfc still | 20:12 |
| T42 | <nightishaman> although i cant test nfc | 20:12 |
| mal | do you have any other phone with nfc? | 20:13 |
| T42 | <nightishaman> an iphone yes and the xperia 5 iv with sfos | 20:13 |
| mal | you could try sharing some note via nfc from those and see if you can access it | 20:14 |
| mal | for nfc you probably need this config https://github.com/mlehtima/droid-config-fp5/blob/master/sparse/etc/libncicore.conf in addition to the packages in patterns | 20:14 |
| T42 | <nightishaman> i dont have nfc in settings yet tho | 20:19 |
| T42 | <nightishaman> will that add it | 20:19 |
| mal | yeah, check pattern files of fp5 to see what you need | 20:20 |
| T42 | <nightishaman> I have Requires: nfcd-binder-plugin | 20:23 |
| T42 | <nightishaman> already | 20:23 |
| T42 | <nightishaman> no nfc in settings | 20:24 |
| mal | https://github.com/mlehtima/droid-config-fp5/blob/master/patterns/patterns-sailfish-device-configuration-fp5.inc#L20 and these? | 20:24 |
| mal | also check for other things that might be useful in that second file | 20:24 |
| Mister_Magister | mal: everything backported all 3 syscalls | 20:27 |
| Mister_Magister | phew, that was a lot of work | 20:27 |
| mal | a lot of conflicts? | 20:27 |
| Mister_Magister | nah just, figuring out which commit am i missing so that the commit i want can apply | 20:28 |
| T42 | <nightishaman> ok nfc is there | 20:28 |
| Mister_Magister | but it was rabbithole so much so i needed commit 5 for commit 4 to apply for commit 3 to apply for commit 2 to apply for commit 1 to apply | 20:28 |
| T42 | <nightishaman> is there a test app? | 20:28 |
| Mister_Magister | now hopefully it compiles lmao | 20:29 |
| Mister_Magister | it doesn't lmao | 20:29 |
| T42 | <nightishaman> easier just build your own linux kernel | 20:29 |
| T42 | <nightishaman> takes more time but you'll learn something | 20:30 |
| Mister_Magister | no? | 20:30 |
| Mister_Magister | thats just blatantly wrong | 20:30 |
| Mister_Magister | ahh it's building now | 20:34 |
| mal | I think sharing should just work for example from notes app | 20:39 |
| T42 | <nightishaman> i have no notes app ._. | 20:40 |
| mal | enable nfc, write some note in notes app (install package jolla-notes if it's not installed), then from notes app select share from pulldown menu | 20:40 |
| T42 | <nightishaman> nope doesnt work | 20:42 |
| mal | is nfcd running? anything in journal? | 20:43 |
| T42 | <nightishaman> nfcd running, journal spammed by droid-hal | 20:45 |
| T42 | <nightishaman> Id rather fix the wifi & cellular first tho | 20:46 |
| Mister_Magister | mal: also funfact sfos 5.1 broke volume buttons on my third 3.4 device :D | 20:47 |
| mal | hmm, correct droid-hal-config submodule version? | 20:48 |
| Mister_Magister | might've forgotten to rebuild | 20:48 |
| T42 | <nightishaman> lets do wifi first | 20:52 |
| Mister_Magister | ayy after couple hiccups kernel built | 20:58 |
| mal | for wifi you should investigate logs | 20:59 |
| Mister_Magister | it booted, that's something | 21:03 |
| Mister_Magister | ssh doesn't work, that's not cool | 21:03 |
| Mister_Magister | i need some more getrnadom patches | 21:07 |
| Mister_Magister | got the patches now just rebuild | 21:14 |
| Mister_Magister | uhhhhhhh | 21:21 |
| Mister_Magister | ahh missed syscalls file | 21:22 |
| Mister_Magister | aaand ssh works | 21:26 |
| Mister_Magister | mal: hmm gallery won't open | 21:33 |
| Mister_Magister | but the tracker seems to be running | 21:34 |
| Mister_Magister | when I strace it it segfaults, when I don't strace it it just hangs | 21:36 |
| Mister_Magister | everything else seems to be launching no issue but the gallery | 21:38 |
| Mister_Magister | the phone is soooooooo slow | 21:41 |
| Mister_Magister | it's like IO takes ages | 21:42 |
| mal | nothing in logs? does gallery start from terminal? | 21:50 |
| Mister_Magister | no it hangs, as i mentioned. tried adding rfkill to fix bluetooth but it just broke both wifi and bt | 21:51 |
| Mister_Magister | feels like i'm still missing something thats why gallery doesn't launch and why entire phone is 10x slower | 21:51 |
| mal | gdb? | 21:51 |
| Mister_Magister | can try | 21:52 |
| Mister_Magister | lemme add some more seccomp stuff first though | 21:52 |
| Sharks_ | @nightishaman is your mobile data not working for the same reason as mine? Dual-sim seems to break it if not configured right | 21:59 |
| Sharks_ | https://irclogs.sailfishos.org/logs/%2523sailfishos-porters/2026/%2523sailfishos-porters.2026-07-11.log.html#t2026-07-11T13:25:53 | 21:59 |
| T42 | <nightishaman> 404 | 22:00 |
| Sharks_ | https://irclogs.sailfishos.org/logs/%23sailfishos-porters/2026/%23sailfishos-porters.2026-07-11.log.html#t2026-07-11T13:25:53 | 22:13 |
| Sharks_ | sorry must have been a dodgy copy/paste job | 22:13 |
| Mister_Magister | a LOt of messing around alter i got some more patches | 23:15 |
| Mister_Magister | wait a minute i didn't get the patch i wanted | 23:15 |
| Mister_Magister | back to the hell | 23:16 |
| Mister_Magister | maybe i did idk anymoer | 23:16 |
| Mister_Magister | i did | 23:19 |
| Mister_Magister | okay so those patches did not improve situation | 23:21 |
| Mister_Magister | but i got all the seccomp stuff now | 23:21 |
| Mister_Magister | so mal our kernel/seccomp.c is basically the same now | 23:22 |
| Mister_Magister | performance seems back to normal | 23:23 |
| Mister_Magister | mal: https://paste.opensuse.org/pastes/058c1d563515 | 23:26 |
| Mister_Magister | gdb of gallery | 23:26 |
| Mister_Magister | it didn't even get to main | 23:27 |
| Mister_Magister | libcrypto huh | 23:27 |
| Mister_Magister | hmm volume buttons don't work either and i know i got correct dcd on this phon | 23:27 |
| Mister_Magister | only this in dmesg https://paste.opensuse.org/pastes/501e249fdb52 but it looks like aftereffect than cause | 23:29 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!