| *** n2klb_ is now known as n2klb | 01:21 | |
| jmerono_ | hi! i'm trying to do my first sfos port and i'm stuck building the droid-hal-device packages: mb2 isn't even seeing the spec file ($ANDROID_ROOT/.mb2/spec, failing with an ENOENT right at the start), even though it exists and with proper rights. i am using an external disk setup (two drives with a btrfs RAID as my $ANDROID_ROOT), but i don't see how that'd be the problem. would love some guidance to know what to chec | 11:55 |
|---|---|---|
| sharks[m] | I have done all my porting on external disks over USB3. It causes very long android-side build times and chews up all my memory and swap space in the process. 0/10 would not reccommend, although it does not sound like that is the problem in your case at this stage. | 12:04 |
| jmerono_ | sharks[m]: i mean, it for sure wasn't optimal but it wasn't terrible in my case :/ | 12:21 |
| T42 | <elros34> @jmerono_ definitely the problem is external drive, you need to mount it correctly | 12:21 |
| T42 | <elros34> I do not remember commands but you should be able to find it in channel logs search | 12:25 |
| mal | jmerono_: I have this kind of thing in .hadk file: sudo mount --bind /parentroot/path_to_external_storage/ "$HOME/some_path" | 13:13 |
| T42 | <TeodorBGStanilov> /notes | 13:55 |
| T42 | <TeodorBGStanilov> Can someone help me find dfe neo | 13:56 |
| jmerono_ | mal: i'll try that out, thanks! not knowing how to do it initially, i did something similar but by editing sdk-chroot and ubu-chroot to mount it to the same external storage path on the chroot, but i'll change it to that and see how it goes | 14:00 |
| jmerono_ | what confuses me though is that i was able to do every step prior to this with that patch i mentioned (and i can stat the file on the platform SDK shell) :/ | 14:01 |
| T42 | <the_hiktor> what iam supposed to do if some kernel module doesnt get built ? | 14:38 |
| T42 | <the_hiktor> im trying to fix fm radio | 14:39 |
| T42 | <the_hiktor> followed the faq | 14:39 |
| T42 | <Mister_Magister> does your phone even have fm radio | 14:40 |
| T42 | <the_hiktor> yea | 14:40 |
| T42 | <Mister_Magister> and you verified that it does? | 14:41 |
| T42 | <the_hiktor> on sfos ? | 14:41 |
| T42 | <the_hiktor> or android | 14:41 |
| T42 | <Mister_Magister> on android | 14:41 |
| T42 | <the_hiktor> yeah on android it does | 14:42 |
| T42 | <Mister_Magister> and it worked for you i take it? | 14:42 |
| T42 | <the_hiktor> wdym | 14:44 |
| T42 | <the_hiktor> it was working on android | 14:44 |
| T42 | <Mister_Magister> when you had the android base installed that you use for porting, did you plug in the headphones and verified yourself that it is in fact working or you just read somewhere that it works on android and acting off of that? | 14:44 |
| mal | @the_hiktor try starting jolla-mediaplayer app as defaultuser from terminal to make sure one sandboxing issue doesn't cause the failure | 14:52 |
| jmerono_ | hi again! after getting further by changing how my storage is mounted to the chroots, i just realized the HAL build i did before lacks a /root directory at out/target/product/kugo/root and i'm confused. is there any step enabling that that i missed or did i do something terribly wrong? (i'm quite new to this, i'm sorry...) | 15:55 |
| T42 | <elros34> IIRC it can be empty on some android versions | 17:02 |
| T42 | <the_hiktor> @Mister_Magister yeah i tested it before and i double checked when you asked | 18:40 |
| T42 | <the_hiktor> mal: https://paste.opensuse.org/pastes/a02a6a3f9100 | 18:41 |
| T42 | <Mister_Magister> Okay so you enabled IRIS_RADIO i assume and the stuff and now kernel doesn't build? | 18:41 |
| T42 | <the_hiktor> it does build normally | 18:42 |
| T42 | <the_hiktor> it doesn't show errors when building | 18:43 |
| T42 | <the_hiktor> but i can't find newly build kernel modules | 18:43 |
| T42 | <Mister_Magister> and you built them as module and stuff? | 18:43 |
| T42 | <the_hiktor> even if included within kernel | 18:43 |
| T42 | <the_hiktor> yea | 18:43 |
| T42 | <Mister_Magister> find out -iname \*iris\* | 18:43 |
| T42 | <the_hiktor> nothing | 18:44 |
| T42 | <Mister_Magister> dang | 18:44 |
| T42 | <Mister_Magister> kernel sauce? | 18:45 |
| T42 | <Mister_Magister> did you actually check those flags exist? zgrep IRIS /proc/config.gz on da phon | 18:45 |
| T42 | <the_hiktor> https://github.com/GloboPatro/android_kernel_xiaomi_surya/tree/hybris-18.1 | 18:47 |
| T42 | <the_hiktor> nothing on phone | 18:47 |
| T42 | <Mister_Magister> so you don't have IRIS available so no wonder it doesn't build :) | 18:48 |
| T42 | <the_hiktor> i didnt push em yet | 18:48 |
| T42 | <the_hiktor> i can show you local | 18:48 |
| T42 | <Mister_Magister> wait do you have link to the instructions? | 18:49 |
| T42 | <the_hiktor> you mean faq ? | 18:49 |
| T42 | <Mister_Magister> sure | 18:50 |
| T42 | <the_hiktor> https://github.com/mer-hybris/hadk-faq#fm-radio | 18:50 |
| Mister_Magister | https://github.com/search?q=repo%3AGloboPatro%2Fandroid_kernel_xiaomi_surya+CONFIG_RADIO_IRIS&type=code | 18:50 |
| Mister_Magister | it literally doesn't exist in kernel xd | 18:50 |
| T42 | <the_hiktor> fuck | 18:50 |
| Mister_Magister | so mal probably has better idea | 18:51 |
| Mister_Magister | so you have radio option in sfos mediaplayer right? | 18:51 |
| T42 | <the_hiktor> yeah | 18:52 |
| Mister_Magister | did you do this? https://github.com/mlehtima/droid-config-fp2-sibon/blob/master/sparse/etc/pulse/xpolicy.conf.d/fmradio.conf | 18:52 |
| Mister_Magister | liek the symlink | 18:52 |
| mal | but what driver is the device using? | 18:52 |
| mal | grep FM from kernel config | 18:53 |
| T42 | <Mister_Magister> in github search i didn't see much but we both know how reliable that is | 18:54 |
| mal | yeah, nothing in https://github.com/GloboPatro/android_kernel_xiaomi_surya/blob/lineage-18.1/arch/arm64/configs/surya_defconfig | 18:54 |
| mal | does the device have some hal library or binder interface for it | 18:55 |
| T42 | <the_hiktor> yea tried fmradio.conf symlink | 18:59 |
| T42 | <the_hiktor> regarding driver i think its wcnss | 18:59 |
| T42 | <the_hiktor> not sure i read it somewhere | 18:59 |
| T42 | <the_hiktor> is binder-list output good ? | 19:01 |
| T42 | <the_hiktor> nvm here | 19:05 |
| T42 | <the_hiktor> https://paste.opensuse.org/pastes/21751ee581ca | 19:05 |
| T42 | <Mister_Magister> there's no fm xd | 19:10 |
| T42 | <elros34> maybe on hwbinder | 19:10 |
| T42 | <elros34> ah it's default so on /dev/binder | 19:12 |
| T42 | <elros34> I seams to have vendor.qti.hardware.fm@1.0::IFmHci/default on hwbinder but I guess there is no plugin for it | 19:14 |
| T42 | <the_hiktor> what options do i have :) | 19:19 |
| T42 | <the_hiktor> nice luck i have i guess | 19:21 |
| T42 | <elros34> find / -name *fm* | 19:22 |
| T42 | <the_hiktor> here https://paste.opensuse.org/pastes/db854465ff18 | 19:23 |
| mal | is there something about broadcast radio in binder-list, either in hwbinder or binder | 19:27 |
| mal | ah, you have it | 19:27 |
| mal | sorry, missed the earlier message | 19:27 |
| T42 | <elros34> he doesn't. at least I do not see it | 19:28 |
| mal | but check if you have android.hardware.broadcastradio in hwbinder or binder? | 19:28 |
| T42 | <the_hiktor> https://paste.opensuse.org/pastes/f46e05940563 | 19:28 |
| mal | not in binder either? | 19:28 |
| T42 | <the_hiktor> https://paste.opensuse.org/pastes/bdadeaa09e6e | 19:29 |
| mal | does this return anything : find /*/lib64/hw -name '*radio*' | 19:34 |
| T42 | <the_hiktor> nope | 19:35 |
| T42 | <elros34> but you have vendor.qti.hardware.fm@1.0-impl.so | 19:37 |
| mal | I wonder why it has that but not the broadcast radio interface | 19:38 |
| mal | in case anyone happens to have a device with the hidl broadcast radio inteface (version 2) in use on some device I have implementation for it, can't remember how well it works | 19:39 |
| T42 | <elros34> I have vendor.qti.hardware.fm@1.0::IFmHci/default but no broadcast in hw/binder | 19:41 |
| T42 | <the_hiktor> while waiting for an answer, does ffmemless still being used nowadays ? | 20:13 |
| T42 | <elros34> easy to check if your device uses it | 20:15 |
| T42 | <the_hiktor> it uses it | 20:15 |
| T42 | <the_hiktor> but wondering if using binder instead of native | 20:15 |
| T42 | <elros34> native plugin is something else than ffmemless | 20:17 |
| T42 | <the_hiktor> i dont think i get it right but do you mean there's no need for ngfd-plugin-native-vibrator in the patterns ? | 20:24 |
| T42 | <elros34> IIRC if you have ffmemless driver then not. Native one is simple sysfs on/off interface | 20:25 |
| T42 | <elros34> ngfd already have builtinf ffmemless plugin https://github.com/sailfishos/ngfd/tree/master/src/plugins/ffmemless | 20:26 |
| T42 | <the_hiktor> not sure how do i implement it, do i have to manually build it or it should be existing already ? | 20:32 |
| T42 | <elros34> it's builtin | 20:36 |
| T42 | <elros34> nothing to do | 20:36 |
| T42 | <elros34> IIRC qt5-feedback-haptics-ffmemless is also deprecated in favor of libngf-qt5-qtfeedback | 20:37 |
| T42 | <the_hiktor> i think im mixing stuff, so just to be clear this means i do need ngfd-plugin-native-vibrator right ? | 20:43 |
| mal | there are couple of ways for vibra: ffmemless (builtin in ngfd), native, droid, and binder | 20:45 |
| T42 | <elros34> you don't need native forget about it. If your kernel support ffmemless driver then you use builtin ffmemless plugin | 20:46 |
| mal | native is when you have vibra as sysfs interface, either in led subsystem or timed_output | 20:46 |
| T42 | <adampigg> what does jp2 use mal? | 20:46 |
| mal | @elros34 note that there are some cases where kernel exposes a non-standard ffmemless which makes life very difficult and for example on fp5 binder was easier | 20:47 |
| mal | @adampigg native | 20:47 |
| T42 | <adampigg> mall: interesting, my mtk is using droid | 20:48 |
| mal | @adampigg it doesn't have the usual led interface? | 20:50 |
| T42 | <adampigg> it does ... would native be the better choice? | 20:51 |
| mal | yes | 20:51 |
| mal | droid in most cases should be replaced with native unless native has issues | 20:51 |
| T42 | <adampigg> ok .. ill review my patterns | 20:53 |
| T42 | <adampigg> thx | 20:53 |
| T42 | <adampigg> mal: not really sure why droid was installed .. dhv package specifies native, and, the build log for dhv shows native being pulled in | 21:02 |
| T42 | <the_hiktor> mal: ok so just plain ngfd , do i need to define have_ffmemless 1 in dhv ? | 21:03 |
| mal | yes | 21:21 |
| mal | but first you should really test that ffmemless really works | 21:21 |
| T42 | <the_hiktor> how ? | 21:27 |
| mal | configure it and see if it works | 22:14 |
| mal | https://github.com/mer-hybris/hadk-faq#ff-memless-haptics | 22:14 |
| T42 | <the_hiktor> nope it doesn't work | 22:43 |
| mal | how does it fail? | 23:09 |
| mal | did you do the kernel change? | 23:09 |
| T42 | <the_hiktor> nope 🤦♂️ | 23:18 |
| T42 | <the_hiktor> i reached my limits for today i guess | 23:18 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!