mccreary | elros34: Thanks for working on SFOS 3 for moto_msm8960_jbbl. I had a problem using your installer as nadlabak's twrp-3.1.0 doesn't support bzip2. I repackaged the installer ZIP to use gzip instead, and left it here: https://drive.google.com/file/d/1KxPhvDjBrWd11eSeciEobe2OX13GrcE8/view | 00:04 |
---|---|---|
mccreary | Also, the xt897 hardware 'A' touchscreen doesn't work with your kernel, only the hardware 'B' version. I'll try to dig up the relevant kernel patches | 00:05 |
T42 | <elros34> mccreary: try twrp 3.0.2-0, I never have any install problems with that version. For touchscreen pastebin evdev_trace -I | 05:43 |
piggz | mccreary: morning, where is your fxtec work .... is twrp working well? | 07:46 |
piggz | droidmedia down to 16000 targets....lets hope it works! | 08:02 |
piggz | actually, this is a hybris-hal build...finger crossed for the droidmedia build after | 08:17 |
Mister_Magister | mal: great droidmedia has problems with code | 08:21 |
Mister_Magister | piggz: false | 08:21 |
Mister_Magister | the thing is | 08:22 |
Mister_Magister | you are not entering the build chroot | 08:22 |
Mister_Magister | from hadk | 08:22 |
Mister_Magister | you miss parameters like PORT_ARCH | 08:22 |
Mister_Magister | piggz: run make -j$(nproc --all) libdroidmedia minimediaservice minisfservice libminisf | 08:22 |
Mister_Magister | http://paste.opensuse.org/view//83666690 anyway droidmedia is not building | 08:23 |
Mister_Magister | piggz: let me handle that :P | 08:23 |
Mister_Magister | piggz: without $PORT_ARCH detect targets script fails and you end up with "make -j12 " | 08:27 |
Mister_Magister | so you build everything | 08:27 |
Mister_Magister | piggz: dieded | 08:28 |
piggz | Env setup for t5 | 08:28 |
piggz | HABUILD_SDK [t5] piggz@linux-f1uu:~$ echo $PORT_ARCH | 08:28 |
piggz | armv7hl | 08:28 |
Mister_Magister | welp | 08:28 |
Mister_Magister | try my command tho | 08:28 |
piggz | im in the middle of a build atm | 08:29 |
piggz | its slooooooow | 08:29 |
Mister_Magister | well k | 08:29 |
Mister_Magister | buit while building droidmedia use my command :P | 08:29 |
Mister_Magister | frameworks/av/services/camera/libcameraservice/device1/CameraHardwareInterface.h:32:10: fatal error: 'vendor/qti/hardware/camera/device/1.0/IQCameraDeviceCallback.h' file not found | 08:44 |
Mister_Magister | piggz: clearly jolla is behind us :P | 08:51 |
mal | Mister_Magister: nope | 09:08 |
mal | Mister_Magister: do you have vendor repo? | 09:08 |
abranson | both of those are building fine for the xperia 10 on android 9, so it's probably a problem with specific droid sources | 09:10 |
Mister_Magister | mal: ofcourse i have | 09:10 |
Mister_Magister | abranson: could be, we are working on stock sources so things are different from aosp | 09:10 |
abranson | especially odd that the cameraservice is depending on a header that doesn't exist. is there a choice of vendor repos at all? | 09:11 |
Mister_Magister | i'm thinking of replacieng frameworks_av with aosp one | 09:11 |
mal | Mister_Magister: do you see IQCameraDeviceCallback.h anywhere in source tree | 09:11 |
abranson | and treble was meant to standardise all those frameworks :D | 09:11 |
Mister_Magister | mal: nope i checked that already | 09:11 |
mal | that could also be automatically generated | 09:11 |
Mister_Magister | doubt that | 09:12 |
mal | many things are automatically generated now in android build | 09:12 |
Mister_Magister | but this isn't | 09:13 |
mal | maybe it should be but is not? | 09:13 |
mal | abranson: that build log is odd, the first error of some log format, why would that not happen in other android 9 builds | 09:13 |
Mister_Magister | (someone can't write error free code?) | 09:13 |
Mister_Magister | i added simple casts and it fixed problem | 09:14 |
abranson | hmm that shouldn't be necessary | 09:14 |
Mister_Magister | but it is | 09:14 |
abranson | unless there's a proper way of handling that left to be discovered | 09:15 |
mal | abranson: has size_t always been unsigned long? | 09:16 |
Mister_Magister | it can be because of my sources tho | 09:16 |
abranson | might be related to the bitness? | 09:17 |
mal | abranson: could be, the logging code is indeed a bit wrong, based on quick search size_t should be printed using %zu | 09:18 |
abranson | that sounds like the right fix | 09:19 |
mal | abranson: we could check if there are other warnings like that also | 09:20 |
abranson | the second one is actually the wrong size though | 09:21 |
mal | yes | 09:22 |
Mister_Magister | i will try replacing frameworks av | 09:25 |
Mister_Magister | what could go wrong? | 09:25 |
mal | abranson: do you want to fix those or should I? | 09:27 |
abranson | mal: do you know how to fix the second one? | 09:28 |
Mister_Magister | i fixed it already | 09:28 |
* Mister_Magister runs | 09:28 | |
abranson | Mister_Magister: for all builds? | 09:28 |
Mister_Magister | dunno | 09:29 |
Mister_Magister | mal: i have answer for you why fxtec has f5 and f6 not SW_SLIDE | 09:29 |
Mister_Magister | Regarding keyboard slide with Hall sensor, I was told the head engineer wanted to do with SW_LID, but at the time the upper part has finished, so they did not change | 09:29 |
*** justgerd98 is now known as JustGerd | 09:36 | |
Mister_Magister | mal: i think that file might be generated after all | 09:45 |
piggz | ugh, 80000 targets for droidmedia | 09:48 |
piggz | still, 30000 better than befoe! | 09:48 |
Mister_Magister | piggz: did you use my command? | 09:48 |
piggz | no | 09:49 |
Mister_Magister | then do it | 09:49 |
Mister_Magister | there is like 1000 targets | 09:49 |
mal | Mister_Magister: so you need to figure out what should generate it | 09:53 |
piggz | ok, im at the stage with the logging errors.... | 10:15 |
piggz | made changes | 10:15 |
Mister_Magister | what logging errors? | 10:16 |
piggz | the size specifiers | 10:16 |
Mister_Magister | ah the casts | 10:16 |
Mister_Magister | ye | 10:16 |
Mister_Magister | welcome we are at same stage now | 10:16 |
Mister_Magister | now just wait with me | 10:16 |
piggz | abranson: PRId64 for int64_t ? | 10:25 |
piggz | according to stackoverflow :D | 10:26 |
mal | piggz: hopefully the timestamp has same type in all android bases | 10:33 |
deathmist | hey! aren't pretty much all dirs under /dev/cpuset meant to be owned by system:system because mine are mostly owned by root and causing permission issues. also dhi has references to many missing "mems" and "cpus" files but I'm only seeing "cpuset.cpus" and "cpuset.mems" instead in all the dirs | 10:47 |
Mister_Magister | deathmist: you are missing udev rules then | 10:49 |
deathmist | seems so as there's no files mentioning "cpuset" in /lib/udev/rules.d/ on the device | 10:56 |
Mister_Magister | that's what i just said | 10:58 |
piggz | from my understanding, we need to run hidl-gen on vendor.qti.hardware.camera.device@1.0 | 11:06 |
piggz | to get a .h from the .hal file? | 11:07 |
piggz | abranson: mal ^^ ? | 11:07 |
piggz | not sure on the exact parameters yt tho | 11:07 |
mal | piggz: something like that, maybe just check output of make modules and see it has something like that | 11:19 |
Mister_Magister | mal: i have now the file in out/soong/.intermediates/vendor/qcom/opensource/interfaces/camera/device/1.0/vendor.qti.hardware.camera.device\@1.0_genc++_headers/gen/vendor/qti/hardware/camera/device/1.0/IQCameraDeviceCallback.h | 11:30 |
Mister_Magister | but dunno how to use it | 11:31 |
piggz | mal: hopefully its just | 11:35 |
piggz | make vendor.qti.hardware.camera.device@1.0 | 11:35 |
Mister_Magister | piggz: i already did it lol | 11:35 |
Mister_Magister | but that ain't all | 11:35 |
Mister_Magister | check what i just wrote | 11:36 |
abranson | sounds like that should be a dep in the cameraservice mk file | 11:36 |
Mister_Magister | abranson: because it is | 11:36 |
abranson | but it's not getting brought in for your build? | 11:37 |
Mister_Magister | abranson: in LOCAL_SHARED_LIBRARIES:= | 11:37 |
Mister_Magister | it is | 11:37 |
Mister_Magister | dunno if that wil make it build | 11:37 |
Mister_Magister | but if it's on out that's not all | 11:37 |
abranson | might be worth checking how it's included in the sony aosp, as everything builds fine there | 11:38 |
Mister_Magister | abranson: it doesn't exist in aosp | 11:38 |
mal | Mister_Magister: usually those should be automatically found there, not sure why it fails to do that | 11:38 |
abranson | that's the problem to solve | 11:38 |
Mister_Magister | aosp doesn't include that file at all so sony ain't helpful there | 11:40 |
Mister_Magister | abranson: mal: http://paste.opensuse.org/view//193440 | 11:43 |
Mister_Magister | abranson: can i add vendor.qti.hardware.camera.device@1.0 to minimedia Android.mk? | 11:44 |
Mister_Magister | lets see if that helps | 11:47 |
abranson | this looks relevant: https://github.com/sonyxperiadev/vendor-qcom-opensource-interfaces/blob/ef5af10df24d4229d46b99b826ce1d1d9e89dc32/camera/device/1.0/Android.bp | 11:49 |
Mister_Magister | yeah we have that | 11:49 |
Mister_Magister | but frameworks_av is from aosp | 11:49 |
Mister_Magister | and aosp doesn't include it | 11:49 |
Mister_Magister | abranson: mal: that did the trick! | 11:54 |
Mister_Magister | piggz: oh you too read! | 11:54 |
Mister_Magister | now building minimedia includes it | 11:54 |
Mister_Magister | but i think it's specific to our sources only | 11:55 |
Mister_Magister | i fixed something myself | 11:55 |
* Mister_Magister is shocked and proud | 11:55 | |
Mister_Magister | #### build completed successfully (10:12 (mm:ss)) #### | 11:56 |
Mister_Magister | woohoo | 11:56 |
mal | the question remains why the sources were broken | 11:56 |
Mister_Magister | mal: we don't have pure aosp they are stock sources | 11:57 |
Mister_Magister | in short: blame fxtec | 11:57 |
Mister_Magister | they added it and minimedia didn't include it | 11:58 |
Mister_Magister | if you would build libcameraservice standalone it would work | 11:58 |
piggz | what was the fix? | 11:58 |
Mister_Magister | piggz: read please what i wrote | 11:58 |
piggz | ah, i c | 11:59 |
Mister_Magister | piggz: y u not reading my messages ;-; | 11:59 |
Mister_Magister | packaging droidmedia now | 12:00 |
Mister_Magister | Building of droidmedia-localbuild finished successfully | 12:01 |
Mister_Magister | let's see if sensors work | 12:03 |
mal | Mister_Magister: which sensor backend did you build, binder or hal? | 12:04 |
Mister_Magister | i dunno | 12:05 |
Mister_Magister | are there options? | 12:05 |
Mister_Magister | droid-hal-init: Could not find service hosting interface android.frameworks.sensorservice@1.0::ISensorManager/default nope still piggz | 12:05 |
Mister_Magister | piggz: droidmedia didn't help | 12:06 |
mal | Mister_Magister: which sensor package do you have hybris or binder | 12:06 |
mal | Mister_Magister: are mini* services running? | 12:07 |
Mister_Magister | they aren't | 12:07 |
Mister_Magister | mal: sensorfw | 12:07 |
Mister_Magister | i don't understand what do you mean hybris or binder | 12:08 |
piggz | Mister_Magister: where in mimmedia Android.mk? | 12:09 |
Mister_Magister | bluebinder/ droid-configs/ droid-hal-version-t5/ geoclue-providers-hybris/ libgbinder-radio/ libhybris/ ngfd-plugin-droid-vibrator/ pulseaudio-modules-droid/ qt5-qpa-hwcomposer-plugin/ qtscenegraph-adaptation/ sensorfw/ community-adaptation/ droid-hal-t5/ droidmedia-localbuild/ libgbinder/ libglibutil/ mce-plugin-libhybris/ ofono-ril-binder-plugin/ qt5- | 12:09 |
Mister_Magister | feedback-haptics-droid-vibrator/ qt5-qpa-surfaceflinger-plugin/ repodata/ | 12:09 |
mal | Mister_Magister: zypper se sensor | 12:09 |
Mister_Magister | yeah they should be native but that's minor thing | 12:09 |
mal | on device | 12:09 |
Mister_Magister | yeah surely on device :P | 12:10 |
* Mister_Magister is waiting for all repos to timeout cause wifi ain't working yet | 12:10 | |
piggz | Mister_Magister: it should be working | 12:10 |
Mister_Magister | but it isnt' | 12:10 |
piggz | works a charm here! | 12:10 |
Mister_Magister | after reboot? | 12:11 |
Mister_Magister | mal: hybris-libsensorfw-qt5-hal-0.10.13-0.armv7hl | 12:11 |
mal | try building binder backend | 12:11 |
Mister_Magister | how? | 12:12 |
mal | it should be default for android 9 if you have new enough dhd submodule | 12:12 |
mal | https://github.com/mer-hybris/droid-hal-device/commit/070ae8cecf9424aaa6c66f0be0c60e5953be3971 | 12:12 |
Mister_Magister | mal: dhd is at bd43b2cf63512cfc9789511e6c27a50504b4f448 | 12:12 |
mal | so too old | 12:13 |
Mister_Magister | oh | 12:13 |
mal | make sure you remove the hal rpms from droid-local-repo before building | 12:13 |
Mister_Magister | why | 12:14 |
Mister_Magister | should i just clean droid-local-repo and rebuild everything? | 12:14 |
Mister_Magister | ill do it | 12:16 |
piggz | Mister_Magister: where in mimmedia Android.mk? | 12:17 |
Mister_Magister | sure gib second | 12:18 |
Mister_Magister | sent on telegram sir | 12:19 |
Mister_Magister | piggz: | 12:19 |
Mister_Magister | mal: whichpackage should i build? sensorfw? | 12:23 |
mal | the commit I linked tells everything you need to know | 12:24 |
Mister_Magister | ah sorry sorry | 12:24 |
Mister_Magister | i'm retarded | 12:24 |
Mister_Magister | mal: yay test_sensors works | 12:35 |
piggz | abranson: mal: if we can build the .h file in out/.... how can we make the build find it? | 12:37 |
piggz | without copying to vendor/.... | 12:37 |
abranson | piggz: a lot of things are generated in out/. i think the dependency declarations in the Android.mk files make sure that they are generated and found at the right time | 12:39 |
piggz | abranson: yeah, but it doesnt :) | 12:40 |
piggz | file is generated, but not getting picked up | 12:40 |
abranson | maybe the dependency type is wrong? | 12:40 |
piggz | actually, probably need to change frameworks/av/services/camera/libcameraservice/device1/ | 12:40 |
piggz | as, we added it to a dep for minimedia, but thats not where the build fails | 12:41 |
mal | Mister_Magister: what fixed sensors? | 12:41 |
Mister_Magister | sensors aren't working yet | 12:48 |
Mister_Magister | only test_sensors | 12:48 |
Mister_Magister | mal: test_sensors says Got 0 sensors | 12:49 |
mal | Mister_Magister: did you already build binder package? | 12:50 |
Mister_Magister | yeah | 12:50 |
Mister_Magister | and installed it | 12:50 |
mal | what does journal tell? | 12:50 |
Mister_Magister | that fixed test_sensors but not… | 12:50 |
mal | so logs logs logs | 12:50 |
Mister_Magister | Could not find service hosting interface android.frameworks.sensorservice@1.0::ISensorManager/default still counts? | 12:50 |
Mister_Magister | http://paste.opensuse.org/view//60894733 | 12:51 |
mal | Mister_Magister: you never told which service complains about ISensorManager | 12:52 |
Mister_Magister | ah | 12:52 |
Mister_Magister | hwservicemanager | 12:52 |
Mister_Magister | wait no | 12:52 |
mal | what does logcat have? | 12:52 |
Mister_Magister | mal: http://paste.opensuse.org/view//28363378 | 12:53 |
mal | I mean give whole logcat | 12:53 |
mal | what have I told you about giving only selected parts of logs | 12:53 |
Mister_Magister | dunno i give only meaningfull ones | 12:53 |
Mister_Magister | lemme reboot | 12:53 |
mal | what you think is meaningful might not really be the important part of the log | 12:55 |
mal | you might only give the part relevant for that service when the real issue can be in other services | 12:55 |
Mister_Magister | well k | 12:55 |
Mister_Magister | mal: https://gist.github.com/Michal-Szczepaniak/a56a7a5900ceb6158b363ada39af6fcd | 12:58 |
mal | so many errors | 13:03 |
mal | Mister_Magister: show output of mount and also "ls -l /" | 13:04 |
Mister_Magister | /persist doesn't exist if thats what you mean but i will | 13:04 |
Mister_Magister | http://paste.opensuse.org/view//89542596 | 13:04 |
mal | Mister_Magister: so you haven't added the symlinks I told to add for the other device | 13:05 |
mal | no wonder everything fails | 13:06 |
Mister_Magister | what symlink | 13:06 |
mal | ask piggz for the changes done to the other device | 13:06 |
Mister_Magister | it's same device | 13:07 |
mal | you should probably have access to the repos of thayt | 13:07 |
mal | I really have no idea what device is what | 13:07 |
Mister_Magister | fxtec pro1 | 13:07 |
mal | so ask piggz | 13:07 |
mal | he fixed the issues | 13:07 |
Mister_Magister | piggz didn't add any symlink in root | 13:07 |
mal | then he has been lazy | 13:08 |
mal | because those are needed | 13:08 |
mal | unless those come from straggler files now | 13:08 |
Mister_Magister | okay | 13:08 |
mal | you can check that | 13:08 |
Mister_Magister | sry for causing trouble | 13:08 |
mal | like I guessed you were focusing on wrong error messages | 13:09 |
Mister_Magister | what did you focus on? | 13:09 |
mal | the real issue was in lower level | 13:09 |
Mister_Magister | where did you saw it? | 13:10 |
mal | those many messages about not found files and permission issues | 13:10 |
Mister_Magister | check_sensors_enabled: open error: settings file "/persist/sensors/sensors_settings" ? | 13:10 |
mal | like that | 13:10 |
Mister_Magister | when i saw it i mentioned persist | 13:11 |
Mister_Magister | i just didn't check logcat | 13:11 |
T42 | <adampigg> Sorry, i have an electrician here, no power) | 13:11 |
Mister_Magister | ahh | 13:11 |
mal | which should have told you that /persist is needed | 13:11 |
Mister_Magister | yeah just like i said i didn't look into logcat | 13:11 |
T42 | <adampigg> I fixed some files in /persist that the sensor sercice lools for | 13:11 |
mal | and if you would have looked at the new sony adaptation repos you would have noticed that is | 13:11 |
mal | Mister_Magister: why not, if you have failing android service then logcat is obvious place to look | 13:12 |
Mister_Magister | @adampigg u diidn't push it tho | 13:12 |
Mister_Magister | mal: because i'm a retard | 13:12 |
mal | @adampigg isn't it just the symlink | 13:12 |
T42 | <adampigg> Not yet.. | 13:12 |
T42 | <adampigg> No | 13:12 |
mal | @adampigg what else then | 13:13 |
Mister_Magister | sony doesn't have symlink either | 13:13 |
T42 | <adampigg> There is a file that must contain a 1 to enable sensors | 13:13 |
mal | Mister_Magister: really https://github.com/mer-hybris/droid-config-sony-ganges-pie/commit/f522d595682a6fa01ebb0b83b6d02f329e497a88 | 13:13 |
T42 | <adampigg> And a folder must exist to allow a sensor.reg to be created | 13:13 |
T42 | <adampigg> I will post as soon as i get ppwer amd my laptop back | 13:13 |
Mister_Magister | mal: how https://github.com/mer-hybris/droid-config-sony-ganges-pie/tree/master/sparse | 13:14 |
mal | Mister_Magister: read the commit I linked | 13:14 |
Mister_Magister | sure i mean | 13:14 |
Mister_Magister | i checked the source and they aren't there | 13:15 |
Mister_Magister | why would i search in commits history | 13:15 |
mal | why wouldn't you? | 13:15 |
Mister_Magister | if it had them then just check source? | 13:15 |
Mister_Magister | hmm /mnt/vendor/persist doesn't exist | 13:16 |
Mister_Magister | /mnt was mounted after /mnt/vendor/persist | 13:17 |
Mister_Magister | meh i'm failure | 13:19 |
mal | Mister_Magister: didn't piggz also sort that out | 13:32 |
Mister_Magister | i don't know we are not same person | 13:34 |
* Mister_Magister all happiness faded away | 13:38 | |
mal | Mister_Magister: don't you communicate at all since you are doing the same device | 13:41 |
Mister_Magister | eh | 13:41 |
Mister_Magister | not really | 13:41 |
mal | I really don't want to fix the same issues many times | 13:41 |
Mister_Magister | i know | 13:41 |
Mister_Magister | i'm just sad because i suck at porting | 13:42 |
Mister_Magister | i will wait for piggz | 13:42 |
piggz | I have power! | 14:03 |
piggz | Mister_Magister: logcat pls | 14:04 |
mccreary | elros24: TBC, the touchscreen on the HW A xt897 does not work in cm-11, but here is the evdev_trace output you wanted: https://pastebin.com/dZPj88vh | 14:46 |
mccreary | I've included output for both HW A and HW B variants | 14:47 |
KALUbE | Hi all, I'm having issues with WiFi, this phone is using a Spreadtrum chip and I haven't been able to find any others that use it. I can load the sprdwl module which is what is used I believe. The wlan0 socket is in /data/misc/wifi/sockets/ but I don't think there's a driver on the other end. There is a file called wpa_supplicant.rc in my device tree which contains this https://pastebin.com/AMXRQiH5 | 14:47 |
mccreary | piggz: I haven't pushed anything to github, but tdm's kernel works well for TWRP if you add this patch: https://review.lineageos.org/c/LineageOS/android_kernel_motorola_msm8998/+/239390 | 14:50 |
mccreary | My device tree is currently a hacky mess, but started as a fork of https://github.com/LineageOS/android_device_motorola_nash | 14:51 |
mal | KALUbE: did you get UI working? | 14:51 |
mal | KALUbE: also you should not care about android side things for wlan | 14:51 |
KALUbE | mal: Yes, adding property_contexts to straggler files made it all work | 15:02 |
KALUbE | Thanks to elros34 for that | 15:04 |
mal | ok | 15:04 |
T42 | <elros34> mccreary: I didn't even know there are 2 versions. Driver is loaded (atmxt) so I guess it doesn't generate anything. You can read raw events using evdev_trace -t 7. It's about cm version or kernel? | 15:04 |
mal | KALUbE: wondering how those were missing from the originally? shouldn't those have been needed to finish the build successfully | 15:05 |
KALUbE | I have no idea, I guess my device tree isn't brilliant. I have rerun build_packages and rebuilt a new rootfs that boots fine so it should be good now | 15:06 |
mal | KALUbE: most likely reasons for wlan issues are that either it's not finding the firmware files or it's missing some initialization | 15:06 |
mal | KALUbE: show dmesg | 15:07 |
KALUbE | mal: Will grab that. My kernel defconfig references firmware files that don't exist: | 15:09 |
KALUbE | https://github.com/calebccff/android_kernel_samsung_sharkls/blob/833a51cb1d06d22dd129504e0b3685951be8455a/arch/arm/configs/j3xnlte_defconfig#L1468 | 15:09 |
mal | KALUbE: what wlan chip does that really have "CONFIG_SPRDWL is not set" earlier you said it has sprdwl module | 15:10 |
KALUbE | Given it specifies the location of BCM fw I would guess it's actually going to be broadcom? | 15:12 |
KALUbE | However, when building the kernel it also compiles SPRD_MODULES which includes the sprdwl.ko module | 15:13 |
KALUbE | Would that be why CONFIG_SPRDWL is not set? | 15:15 |
KALUbE | mal: https://pastebin.com/4c1h7wBe | 15:16 |
mal | KALUbE: can you show output of command "mount" | 15:18 |
KALUbE | mal: https://pastebin.com/76WBwt9S | 15:19 |
mal | KALUbE: now show the original fstab in your device repo | 15:20 |
KALUbE | mal: https://pastebin.com/icgwe07X | 15:21 |
mal | KALUbE: hmm, now "ls -l /dev/block/platform/sdio_emmc/by-name/" | 15:22 |
KALUbE | mal: https://pastebin.com/pM07z7XP | 15:23 |
mccreary | elros34: The touchscreen isn't generating events on the HW A xt897. The fix for this predates my involvement w/ LineageOS on the xt897, but I remember talking to nadlabak about it ~2.5 yrs ago | 15:24 |
mal | KALUbE: does audio work? | 15:35 |
KALUbE | No, no audio | 15:37 |
mal | ok, log has an error about audio firmware | 15:38 |
deathmist | pketo: could you bring Store to the OnePlus 5? Device model: 5 (cheeseburger / cheeseburger) | 15:40 |
KALUbE | mal: Haven't done much for audio yet, so that's fine. | 15:40 |
mal | KALUbE: I was just thinking if the reason is the same, some missing firmware symlink or something | 15:40 |
KALUbE | mal: I found the firmware file referenced by my defconfig in /hardware/broadcom on my build and pushed it to the right location in /system, no change. | 15:42 |
mal | KALUbE: I think you might really have sprdwl | 15:43 |
mal | check line 240 in dmesg | 15:43 |
mal | it mentions sprdwl_mem_alloc | 15:44 |
KALUbE | mal: It was being built but not loaded, I have added it to /etc/modules-load.d/ and it now gets loaded on boot. But it doesn't get used by any processes and doesn't seem to create any devices, although I'm not sure how to check | 15:45 |
KALUbE | I've been messing with the wpa_supplicant.service file and .conf file, changing the ctrl_interface to /data/misc/wifi/sockets. There is no other wlan that I can find | 15:47 |
mal | KALUbE: usually we don't use /etc/modules-load.d/ in sfos because some drivers might want firmware to be present when loading the module | 15:47 |
KALUbE | mal: IS there a better method I should use instead? | 15:47 |
mal | modprobe in a systemd service | 15:47 |
mal | https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/lib/systemd/system/wlan-module-load.service | 15:48 |
mal | something like that but of course adapt it | 15:48 |
mal | KALUbE: but before doing any service like that we need to get it working manually | 15:48 |
mal | KALUbE: anything in dmesg after modprobing the module? | 15:48 |
KALUbE | Nothing, just [ 0.421508] [c0] [sprdwl_mem_alloc] | 15:52 |
KALUbE | mal: [ 69.455902] [c0] [SC2331]######## wlan_module_init sdio is not ready ########## | 15:55 |
KALUbE | Should there be a driver that loads on boot? | 15:55 |
mccreary | elros34: FYI, relevant info from dmesg: https://pastebin.com/SGpv1pKp | 16:19 |
Mister_Magister | mal: /mnt/vendor/persist was never fixedf | 16:20 |
mccreary | The cm-14.1 kernel says, "[ 4.352723,1] input: atmxt-i2c as /devices/virtual/input/input6", while the cm-11/SFOS kernel says, "[ 28.343995] 28.343995,1] input: atmxt-i2c as /devices/virtual/input/input7" | 16:20 |
Mister_Magister | something in dhi is mounting /mnt as tmpfs | 16:20 |
T42 | <elros34> mccreary: maybe atmxt-r2.tdat have different content for cm11 and cm14 | 16:41 |
piggz | mal: how can a customise a mount unit created by dhd, so that it mounts after DHI? im thinking maybe masking that one from creation, then just add the unit in config/sparse... ? | 16:53 |
Mister_Magister | mal: btw friendly reminder about obs projects | 16:56 |
Mister_Magister | also mal we got sensors woohoo whatever | 16:57 |
mal | piggz: add the mount point to https://github.com/mer-hybris/droid-hal-sony-ganges-pie/blob/master/rpm/droid-hal-common.inc#L31 and then add it to sparse | 16:58 |
Mister_Magister | skip mountpoints? | 16:58 |
piggz | mal: yup, thats whay ive done | 16:58 |
mal | piggz: I don't know any better way | 16:59 |
piggz | yeah, that was my first thought | 16:59 |
mal | piggz: what is in the /vendor normally, other than the other mounts | 17:00 |
piggz | libs n stuff | 17:00 |
piggz | mnt vendor persist has config | 17:00 |
Mister_Magister | rc files | 17:00 |
piggz | need mnt vendor persist to be mount after dhi | 17:01 |
Mister_Magister | fstab and uevent files | 17:01 |
mccreary | elros34: There are multiple versions of atmxt-r2.tdat in /system, and replacing /system/etc/firmware/atmxt-r2.tdat with /system/xt897/etc/firmware/atmxt-r2.tdat fixes my HW A touchscreen problem | 17:03 |
mccreary | FWIW, the MD5 checksum for /system/xt897/etc/firmware/atmxt-r2.tdat matches the file in this commit from nadlabak: https://github.com/LineageOS/android_device_motorola_xt897/commit/fbdec10e73b25a332620d5e40f846098bcbc53b8 | 17:04 |
piggz | Mister_Magister: i also fixed browser pink | 17:04 |
Mister_Magister | well k | 17:04 |
Mister_Magister | who will fix my hwcomposer? | 17:04 |
piggz | u will | 17:07 |
KALUbE | Mister_Magister: I think I have a wrench somewhere | 17:07 |
Mister_Magister | piggz: i won't | 17:07 |
piggz | grep the logs luke https://piggz.co.uk/sailfishos-porters-archive/index.php | 17:07 |
Mister_Magister | have nothing left to debug | 17:07 |
Mister_Magister | piggz: >noone has this new device | 17:08 |
Mister_Magister | >grep logs | 17:08 |
Mister_Magister | good idea | 17:08 |
KALUbE | What's the error though? | 17:08 |
Mister_Magister | failing to get main display | 17:09 |
KALUbE | That sounds rough... | 17:10 |
deathmist | pketo: also the device is uniquely identified via it's IMEI1 from the back of the packaging box (and about screen in settings) and builds are not yet on OBS | 17:31 |
vknecht | the ssu board mappings, are they used by mic, or only on device ? | 17:34 |
vknecht | or by obs ? | 17:40 |
mal | vknecht: on device | 18:03 |
vknecht | ok, related to the graphical update client I guess ? | 18:05 |
mal | vknecht: what is the problem you have? | 18:06 |
vknecht | "not installable provider" when running mic for droid-config-$DEVICE-sailfish/bluez5 when they're enabled in patterns | 18:08 |
vknecht | (different from uninstallable provider from hadk) | 18:08 |
vknecht | was wondering if board mapping could be involved, but I guess that's not the case | 18:09 |
vknecht | about only reference I found about this error is https://forums.opensuse.org/showthread.php/392495-Not-installable-providers | 18:11 |
vknecht | guess I can live without bluez5 for now, but maybe the missing sailfish configs are what prevent getting to gui... or would those missing only imply wrong scaling/positionning of buttons/widgets/etc. ? | 18:13 |
vknecht | also, is there something with mic caching or droid-local-repo so that we might have to remove stuff before building/mic'inc ? looks like rebuilt packages are not taken in account | 18:19 |
mal | vknecht: show your repos | 18:39 |
vknecht | not in sync atm (switched to community-way), but here they are : https://github.com/vknecht?tab=repositories&q=sony | 18:42 |
vknecht | I think I'd better get all these straight first, so you don't lose time | 18:46 |
pketo | deathmist: could you remind me again on monday :) | 18:49 |
deathmist | pketo: sure thing! | 18:51 |
vknecht | current journal https://pastebin.com/CPa4UZtG and dmesg https://pastebin.com/h7P7L30q just in case | 19:02 |
vknecht | no dhi running yet it seems ; and no telnet/usb connectivity past the switch_root, gotta get them from sdcard/raw journal files | 19:03 |
piggz_ | abranson: referring to you knowledge deomstrated here https://together.jolla.com/question/201008/how-do-i-select-uk-keyboard-on-gemini-pda/ ..... | 19:04 |
piggz_ | how can i write a custom keyboard layout for the fxtec which sends correct keys when modifiers are pressed? | 19:05 |
vknecht | but it's only been one day since I get journalctl logs, started almost a month ago :-) | 19:05 |
piggz_ | or, any good guides to writing keympas, the only bit i nned to know then is how to apply them in sailfish | 19:07 |
piggz_ | thi s might help https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450 | 19:10 |
Mister_Magister | why isn't preloading selinux_stubs solving every my problem | 19:17 |
Mister_Magister | mal: want to help me with hwc2 or did i piss off you enough? | 19:17 |
Mister_Magister | assuming the latter one | 19:19 |
Mister_Magister | blob is dying | 19:22 |
Mister_Magister | debug blob | 19:22 |
Mister_Magister | gghf | 19:22 |
Mister_Magister | hwc blob service dies when registering callback | 19:37 |
Mister_Magister | without anything obvious in strace | 19:37 |
Mister_Magister | is tombstoned supposed to work on sfos? | 20:03 |
mal | not sure, but those could be in /data/tombstones | 20:04 |
Mister_Magister | it's segfaulting | 20:05 |
Mister_Magister | well not really segfaulting | 20:05 |
Mister_Magister | it's commiting suicide | 20:05 |
Mister_Magister | "failed to get socket from init" | 20:05 |
mal | piggz_: ping | 20:07 |
piggz_ | mal: pong | 20:07 |
Mister_Magister | mal: so… no idea how to debug blob? though you might have some idea | 20:07 |
Mister_Magister | nevermind | 20:07 |
Mister_Magister | i'm causing too much trouble | 20:07 |
mal | piggz_: could you fix the commit message in https://git.merproject.org/mer-core/qtbase/merge_requests/46/commits you are not enabling it only for x86 | 20:08 |
mal | Mister_Magister: have you verified the usual suspects, correct mounts, udev rules and that all needed firmware is correct | 20:09 |
piggz_ | mal: sure | 20:09 |
Mister_Magister | i don't know what does it mean to be correct | 20:10 |
Mister_Magister | how do i know if my udev rules are correct or not | 20:10 |
Mister_Magister | or mouts | 20:10 |
piggz_ | mal: looking at my pulseaudio log, it seems to be using null sink? | 20:11 |
mal | Mister_Magister: well if not all needed ueventd*.rc files are not created to out/ then some udev rules are not created which generate all sorts of interesting issues | 20:11 |
Mister_Magister | mounts seem to be okay, udev rules have files from vendor so should be okay aswell | 20:11 |
Mister_Magister | i copied ueventd files from /vendor | 20:12 |
Mister_Magister | to out/../root/ | 20:12 |
Mister_Magister | all rules should be there | 20:12 |
Mister_Magister | can i just chmod 777 /dev? | 20:12 |
Mister_Magister | holy moly | 20:13 |
Mister_Magister | test_hwc2 is not dying | 20:13 |
Mister_Magister | it did something | 20:13 |
Mister_Magister | no screen but not dying | 20:13 |
Mister_Magister | mccreary: ^ | 20:14 |
mal | show your udev rule file from the device,/lib/udev/rules.d/999-android-system.rules | 20:14 |
Mister_Magister | http://paste.opensuse.org/44728502 | 20:14 |
mal | Mister_Magister: is that the generated file or have you modified it in any way? | 20:15 |
Mister_Magister | generated | 20:15 |
Mister_Magister | except for binder files | 20:15 |
piggz_ | ah... | 20:16 |
piggz_ | E: [pulseaudio] droid-util.c: Failed to load audio hw module audio.primary : Invalid argument (22) | 20:16 |
piggz_ | E: [pulseaudio] module.c: Failed to load module "module-droid-card" (argument: "rate=48000"): initialization failed. | 20:16 |
mal | Mister_Magister: if binder stuff is missing then something is missing from out afaik | 20:16 |
Mister_Magister | HWCSession::CreatePrimaryDisplay: Primary display created. | 20:16 |
Mister_Magister | mal: i think that too | 20:17 |
mal | Mister_Magister: find eny uevent* files in device and vendor repos | 20:17 |
mal | *any | 20:17 |
Mister_Magister | none in device | 20:17 |
Mister_Magister | wait | 20:17 |
Mister_Magister | i will show you | 20:17 |
mal | any .rc files | 20:17 |
mal | other | 20:17 |
Mister_Magister | /system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_04 | 20:17 |
Mister_Magister | so it's working after all | 20:17 |
mal | first thing is to figure out udev rules | 20:18 |
Mister_Magister | https://paste.opensuse.org/view//77560932 | 20:18 |
Mister_Magister | yeh | 20:18 |
Mister_Magister | sure | 20:18 |
Mister_Magister | just oftopicking | 20:18 |
Mister_Magister | mal: https://paste.opensuse.org/view//53866709 | 20:19 |
Mister_Magister | on device tho things are different | 20:19 |
Mister_Magister | i have in / and in /vendor uevent.rc and uevent.asus.rc | 20:20 |
Mister_Magister | no other uevent .rc files | 20:20 |
mal | Mister_Magister: do you have a link to device repo in github or somewhere? | 20:21 |
mal | or is it not public | 20:21 |
Mister_Magister | yess… yes | 20:21 |
Mister_Magister | https://github.com/5z-devs | 20:21 |
Mister_Magister | i was waiting for it to become public | 20:21 |
Mister_Magister | device is 5z not pro1 | 20:21 |
Mister_Magister | so not the one piggz and thekit has | 20:22 |
Mister_Magister | sorry for confusion | 20:22 |
mal | Mister_Magister: very odd, the binder rules should be in system/core/rootdir/ueventd.rc | 20:27 |
mal | which should automatically end up in out/ | 20:27 |
Mister_Magister | but they aren't? | 20:28 |
mal | Mister_Magister: well I don't know, you tell me | 20:28 |
Mister_Magister | they are here | 20:28 |
Mister_Magister | repo is standard lineage | 20:29 |
mal | but is the same file in out/ | 20:29 |
piggz_ | mal: https://git.merproject.org/mer-core/qtbase/merge_requests/46/ | 20:29 |
Mister_Magister | i copied ueventd.rc from device | 20:29 |
Mister_Magister | so | 20:29 |
Mister_Magister | 99% nope | 20:29 |
mal | piggz_: change still merge request title, it's the old one | 20:30 |
mal | Mister_Magister: hmm, so how can the one on device be so different | 20:31 |
Mister_Magister | i will use the ueventd.rc from sources | 20:31 |
piggz_ | mal: done | 20:31 |
Mister_Magister | and ueventd.asus.rc from device | 20:31 |
Mister_Magister | is that ok? | 20:31 |
mal | piggz_: thanks | 20:31 |
mal | Mister_Magister: based on the rules you gave that is quite empty | 20:32 |
Mister_Magister | in source? | 20:32 |
mal | what? | 20:32 |
Mister_Magister | i can give you files if you want | 20:32 |
mal | Mister_Magister: look here http://paste.opensuse.org/view//44728502 after "From ueventd.asus.rc" | 20:32 |
Mister_Magister | https://github.com/VerdandiTeam/android_system_core-android9/blob/lineage-16.0/rootdir/ueventd.rc | 20:33 |
Mister_Magister | here is sauce if you want | 20:33 |
Mister_Magister | well yeah they are empty | 20:33 |
mal | Mister_Magister: I still cannot understand where the ueventd.rc on device came from, the rules from it don't match that | 20:33 |
Mister_Magister | i know i have same feeling | 20:34 |
mal | Mister_Magister: have you tried to see what happens if you just copy that to out/ and build droid-hal rpms again | 20:34 |
Mister_Magister | i will copy ueventd from system_core and rebuild udev rules okay? or shouldn't i | 20:34 |
Mister_Magister | that you mean from device? | 20:35 |
Mister_Magister | that's what i'm actually on | 20:35 |
mal | no, from system/core | 20:35 |
Mister_Magister | okay so the thing i said above | 20:35 |
Mister_Magister | i'm doing it | 20:35 |
mal | you already tried the other one | 20:35 |
mal | yes, we said the same thing at the same time | 20:35 |
Mister_Magister | kk | 20:36 |
Mister_Magister | mal: https://paste.opensuse.org/view//60656837 | 20:38 |
Mister_Magister | missing kgsl rules now | 20:38 |
Mister_Magister | what if i put both of them? | 20:39 |
Mister_Magister | i can put the one from device as ueventd.device.rc | 20:39 |
Mister_Magister | droid-hal won't care | 20:39 |
Mister_Magister | it will merge them | 20:39 |
Mister_Magister | mal: ? | 20:44 |
Mister_Magister | u okay? | 20:44 |
mal | I'm only randomly on irc rest of tonight | 20:59 |
Mister_Magister | okay yeah its late so i'm going to sleep myself | 20:59 |
Mister_Magister | if i'm not bothering you i will ping you another day | 20:59 |
Mister_Magister | if you don't hate me enough yet | 20:59 |
T42 | <elros34> mccreary: so it's a matter of correct atmxt-r2.tdat firmware? Do you know any sysfs entry to distinguish between A and B hardware? | 22:07 |
T42 | <elros34> mccreary: maybe it's too late... In cm11*zip /system/etc/firmware/atmxt-r2.tdat has SCORPION header but after installing on device it has ASANTI | 23:00 |
mccreary | elros34: I'll bet my recovery doesn't assert 'asanti' | 23:41 |
mccreary | I will check that | 23:41 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!