echo_salik[m] | hey guys, how can i solve this error: | 05:33 |
---|---|---|
echo_salik[m] | error: in `sync --fetch-submodules`: revision refs/tags/android-8.1.0_r26 in platform/external/libpcap not found | 05:33 |
echo_salik[m] | im using hybris-15.1 | 05:33 |
jjjhhhppp | Is there anyone that is currently working on porting Sailfish for the Nextbit Robin? I happened to come across a Halium port for this device recently, and I'm curious as to if this can be useful in terms of getting Sailfish to run on this device. | 08:21 |
r0kk3rz | sure, a lot of the fixes should be relevant | 08:24 |
Yardanico | I'm so stupid :DDDDDD So I thought that the issue is in _my_ kernel changes, but in fact it was in some of 9 commits merged by original maintainer of this kernel for my device | 08:44 |
Yardanico | I reverted 9 commits back and kernel worked :DDDD omg | 08:44 |
Yardanico | also is it known that sometimes sailfish os doesn't boot and you need to reboot once more? | 08:46 |
r0kk3rz | is it known? that will be a problem with your adaptation somewhere | 08:50 |
Yardanico | r0kk3rz, oh, ok | 08:50 |
ghosalmartin | morning :) | 09:03 |
ghosalmartin | if a repo is patternised, will all it takes to trigger a pattern update is a push on git? | 09:05 |
r0kk3rz | and update on OBS yeah | 09:06 |
ghosalmartin | ahh yeah the update on obs bit i forgot :P | 09:06 |
ghosalmartin | about to shoot for a cheeky OTA from 2.1.x to 2.2.029 | 09:07 |
Yardanico | how can I debug why sometimes GUI doesn't boot? what in the logs should I grep? :) | 09:21 |
r0kk3rz | just read them | 09:22 |
Yardanico | oh, and also about my kernel spam - it only happens if USB is plugged in | 09:34 |
ghosalmartin | do you no longer need the pulseaudio glue? | 09:46 |
r0kk3rz | ghosalmartin: you probably still need it | 10:00 |
ghosalmartin | ahh fairs fairs, i was looking at patterns in the repo and noticed it wasnt there | 10:03 |
ghosalmartin | but guess we need to add it in hadk | 10:03 |
r0kk3rz | it depends on the device | 10:15 |
r0kk3rz | it may not need it | 10:16 |
ghosalmartin | hmm rmt_storage is now failing | 10:25 |
ghosalmartin | wonder why | 10:25 |
Yardanico | ok, I hope I can solve wifi, bt and video playback today and if they all work I'll probably request store access :) | 10:26 |
ghosalmartin | hmm ive masked ofono but this still causes a reboot [ +0.000059] modem subsystem failure reason: dog.c:1484:Watchdog detects stalled initialization. | 10:30 |
ghosalmartin | hmm /dev/block/platform is missing | 10:31 |
r0kk3rz | ghosalmartin: which device are you breaking today? | 10:32 |
ghosalmartin | r0kk3rz, bullhead, i updated my dcd and now /dev/block/platform no longer exists | 10:32 |
ghosalmartin | was there some removal? | 10:32 |
mal | new udev rules were added a while ago | 10:34 |
ghosalmartin | mal: i have those in there, actually i have them in my sparse and in dcd sparse | 10:34 |
ghosalmartin | hmm /lib/udev/platform-device doesn't exist | 10:35 |
mal | yes, that was removed also because new rules don't need it anymore | 10:38 |
mal | ghosalmartin: maybe try removing the custom rule you had is sparse and just use the submodule rules | 10:38 |
ghosalmartin | mal: will do, is masking ofono just systemctl mask ofono? | 10:40 |
mal | yes | 10:44 |
Yardanico | hmm, libav fails to build for me - "libavcodec/libavcodec.so: undefined reference to `ff_put_vc1_chroma_mc8_neon" and a bunch of other errors | 10:44 |
mal | ghosalmartin: ofono is probably only failing because of the failing udev rules | 10:44 |
Yardanico | ah I see mb2 can solve it probably | 10:45 |
ghosalmartin | that will be it, but i cant stop the device reboots long enough to update the device :P | 10:45 |
ghosalmartin | i guess i can mask dhi | 10:45 |
ghosalmartin | mal, r0kk3rz bosh working again, thanks :D | 10:48 |
Yardanico | btw, for store access I should just ask testers of my build to capture screenshots of 'ssu s' and send them to p*eto ? | 10:49 |
r0kk3rz | you dont need to do that | 10:50 |
ghosalmartin | isnt it just in the patterns? | 10:51 |
r0kk3rz | just make sure the ids match the imei | 10:51 |
Yardanico | r0kk3rz, ah ok | 10:51 |
ghosalmartin | mal: did you ever have any more luck with the ROME bluetooth chipset? | 10:52 |
mal | ghosalmartin: not yet, I have been doing some android 8 stuff recently, got gps working | 10:57 |
ghosalmartin | mal: noicee, i think for my mi mix issue am just going to take guhls config and try and get it to build, boot, then minimize down till i can find hte flags | 10:58 |
mal | ghosalmartin: about rome, quite odd why I don't get the accknowledgement from the chip after uploading the firmware from hciattach | 11:05 |
ghosalmartin | mal: it is, i wonder if that codes been tested at all? | 11:07 |
mal | not sure | 11:08 |
mal | ghosalmartin: btw, there was a new driver in mainline kernel for some of the chips, maybe we could compare that https://www.spinics.net/lists/linux-bluetooth/msg76794.html | 11:09 |
ghosalmartin | i couldnt find anyone to confirm or deny it ever working. looking through the code itself it seems to be right since its roughly the same as https://android.googlesource.com/platform/hardware/qcom/bt/+/refs/heads/master/msm8996/libbt-vendor/src/hw_rome.c | 11:11 |
ghosalmartin | hmm one of my chargers doesnt work in SailfishOS but it works fine at boot | 11:12 |
ghosalmartin | is that normal? | 11:12 |
mal | ghosalmartin: for android 8 based ports there is the option to make a wrapper to communicate from bluez5 via android side binder interface | 11:12 |
ghosalmartin | mal: wouldnt that make things much easier for us tbh? | 11:13 |
mal | ghosalmartin: it might | 11:13 |
mal | ghosalmartin: the interface is quite simple, it's just about sending an receiving hci messages | 11:14 |
Yardanico | when I'm doing "build_packages.sh" should I answer "no" when it asks me to build packages like gstreamer-omx and libav (which I've built manually)? | 11:14 |
Yardanico | for example after building GMS-OMX as described in faq | 11:15 |
mal | you shouldn't build that | 11:16 |
mal | that is only used as the fallback in case gst-droid doesn't work | 11:16 |
r0kk3rz | mal: that would be fairly magic tbh, using bluedroid drivers would solve a lot of headaches with bt | 11:17 |
Yardanico | well it seems like it doesn't for me - with gst-droid built I can't watch videos (if I try to watch a video in some app it hangs and SFOS asks me to keep waiting or kill the app) | 11:17 |
mal | r0kk3rz: ghosalmartin I already used the binder library for gps so it shouldn't be too complicated for me to try it | 11:17 |
mal | Yardanico: logs logs logs | 11:18 |
mal | as usual | 11:18 |
r0kk3rz | also running things with GST_DEBUG can be useful too | 11:19 |
r0kk3rz | but make sure minimediaservice is running and happy first | 11:19 |
Yardanico | r0kk3rz, "minimediaservice.service" ? | 11:19 |
mal | no, a process named minimediaservice | 11:20 |
Yardanico | "media 2765 0.0 0.4 69400 11920 ? Sl 12:47 0:02 /usr/libexec/droid-hybris/system/bin/minimediaservice" it seems it's fine | 11:20 |
Yardanico | while trying to play a video (GST_DEBUG=true jolla-gallery) it prints out three times "library "libavenhancements.so" not found" | 11:22 |
mal | that's not how GST_DEBUG is used | 11:22 |
r0kk3rz | gst_debug takes a number, so GST_DEBUG=5 to get the full firehose | 11:22 |
mal | GST_DEBUG=droid*:5 | 11:22 |
mal | and additionally you can limit to certain parts like I did | 11:23 |
Yardanico | I got this " WARN droidvdec gstdroidvdec.c:669:gst_droidvdec_error:<droidvdec0> error: error 0x80000000 from android codec" | 11:23 |
Yardanico | other ones are info or debug | 11:23 |
mal | so logcat | 11:23 |
mal | also check ls -l /dev/video* | 11:24 |
Yardanico | mal, https://gist.github.com/Yardanico/f37b694b806fc4aed02f01699a75d87b | 11:25 |
mal | Yardanico: also give ls -l /etc/ and ls -l /system/etc/ | 11:27 |
Yardanico | mal, https://gist.github.com/Yardanico/6a72ef29b8253d1fd76a835b1a252b33 | 11:28 |
Yardanico | ok, another error (about wifi as a module): modprobe can't load wlan module: "modprobe: ERROR: could not insert 'wlan': Exec format error" | 13:15 |
Yardanico | wlan.ko is 64-bit | 13:16 |
mal | is the wlan.ko a normal file or a symlink, some device have it as a symlink while the actual module has different name | 13:19 |
Yardanico | mal, it seems to be a normal file | 13:20 |
Yardanico | this exec format error happens for all compiled modules | 13:21 |
mal | hmm, very odd | 13:21 |
mal | 64-bit kernels haven't been a problem before | 13:22 |
Yardanico | someone had the same problem - http://www.merproject.org/logs/%23sailfishos-porters/%23sailfishos-porters.2017-01-13.log.html#t2017-01-13T21:36:32 but he solved it somehow | 13:24 |
Yardanico | "file wlan.ko" -> "wlan.ko: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), BuildID[sha1]=0x4f34cec97eab51e0be52d1ce427af50657702bab, not stripped" | 13:27 |
mal | Yardanico: based on that log it was a mismatch in kernel and module somehow, he didn't flash the new kernel | 13:28 |
Yardanico | I'll try to rebuilt kernel then | 13:29 |
vknecht | hello | 13:49 |
Yardanico | hi :) | 13:50 |
T4 | <adampigg> Sitting by pool,.drinking beer, scanning the logs for anything interesting,.and i read about using bluedroid drivers with bliez5 | 14:38 |
T4 | <adampigg> :what is this magic???? | 14:38 |
vknecht | :) | 14:49 |
* vknecht grabs a beer and opens logs | 14:50 | |
Yardanico | so current big bugs for me are wlan (I need to figure out why modprobe doesn't want to load modules) and video playback | 15:13 |
mal | @adampigg using the new hidl/treble API via libgbinder | 15:28 |
mal | @adampigg I used that for gnss (i.e. gps and related stuff), it's also used for RIL in android 8 based ports, in the future even more subsystems will need that as the legacy APIs are not used anymore | 15:29 |
mal | sensors probably need it at some point also | 15:30 |
vknecht | Yardanico, one wlan module problem : in logs I had "Required key not available", worked around with CONFIG_MODULE_SIG_FORCE=n | 15:31 |
Yardanico | ohh maybe that's the issue, thanks | 15:32 |
mal | @adampigg using gbinder approach might also help with missing 32-bit libs on some devices, not 100% sure | 15:34 |
vknecht | Yardanico, another trap : at one point I found I had to boot LOS at least once before flashing SFOS, otherwise WLAN wouldn't work | 15:42 |
vknecht | (rather, a tester found that, thanks to him :-) | 15:43 |
Yardanico | vknecht, about wlan - did you have same error Exec format error? | 15:54 |
vknecht | Yardanico, iirc it was just "Required key not available" | 15:55 |
mal | Yardanico: did you rebuild kernel and run build_packages.sh after that and then installed the droid-hal rpms (and flashed kernel) or rebuild the image | 16:01 |
Yardanico | mal, well I rebuilt the kernel but now I'll run build_packages.sh too (with -d option right?) | 16:01 |
Yardanico | oh wait I got this from dmesg: "module wlan: overflow in relocation type 261 val ffffffbffc960984" | 16:06 |
Yardanico | and googling brings up this https://lkml.org/lkml/2016/5/30/574 | 16:06 |
Yardanico | O | 16:10 |
Yardanico | I'll try backporting two changes which fixed that | 16:10 |
Yardanico | https://android-review.googlesource.com/c/kernel/common/+/234335 https://android-review.googlesource.com/c/kernel/common/+/234336 | 16:10 |
vknecht | any insights on CSD "suspend test" results interpretation, especially the iteration number ? Is it bad when it's 41 instead of 20, for example ? | 16:16 |
vknecht | I've been fiddling with kernel updates a lot, and this test seems a good indicator of overall stability ; do you agree, or know a better way ? | 16:19 |
vknecht | eg. erroneus updates/merges made it drop to ~3mn suspend time, and upstreaming kernel seems to made it go from 12-13mn to 16mn | 16:20 |
Yardanico | vknecht, how do I run suspend test? | 16:22 |
Yardanico | ah I see | 16:22 |
Yardanico | (found it) | 16:22 |
* vknecht expects the discussion to proceed now :-) | 16:44 | |
T4 | <adampigg> Mal, ah cool,.so similar.approach for a few subsystems? Is it relatively straight forward to implement? And does bluedroid work better? | 16:44 |
mal | @adampigg we haven't tried bluetooth with that yet, need to check how bluez handles plugins | 16:46 |
Yardanico | vknecht, I have 14:27 suspend time, is that ok? :P and 20 iterations | 17:01 |
vknecht | seems good, but I don't have other reference | 17:02 |
* vknecht realizes he didn't even tried it on X | 17:02 | |
vknecht | about iterations, it's a mystery ; looked for source but couldn't find it | 17:08 |
Yardanico | LOOOOOL IT WORKED AHAH | 17:08 |
Yardanico | (I backported these two commits and wlan module loaded!!11) | 17:09 |
vknecht | congratulations :-) | 17:09 |
kimmoli | then, when you get wifi working, check that you get correct mac address | 17:12 |
Yardanico | kimmoli, how do I check that it's correct? | 17:14 |
Yardanico | reboot and see mac address again? | 17:14 |
Yardanico | or check in LOS? | 17:14 |
kimmoli | something like that | 17:15 |
kimmoli | maybe check against LOS, or atleast check that OUI matches vendor | 17:16 |
Yardanico | ok | 17:17 |
Yardanico | well OUI search is ok: "78:02:F8 XiaomiCoXiaomi Communications Co Ltd" | 17:18 |
Yardanico | kimmoli, yes it's the same in LOS | 17:26 |
kimmoli | good | 17:26 |
Yardanico | how can I debug why GUI doesn't bootup (it happens sometimes?) | 18:27 |
Yardanico | sometimes it does and sometimes doesn't | 18:27 |
kimmoli | faq, logs, systemd-analyze if it is a service timing issue | 18:30 |
vknecht | hmmm, csd suspend test fails on my sailfishX (00:00) | 18:39 |
Yardanico | btw, can I already request access to jolla store or not yet? my device has two IMEIs (because it has two sim card slots), and `ssu s` correctly shows my first IMEI as a unique ID | 18:49 |
Yardanico | and wlan/bt mac adresses are working too | 18:49 |
Yardanico | and is it ok to have small binary files (3 files less than 100kb) in droid-configs repo? | 18:54 |
r0kk3rz | what binaries? | 18:55 |
Yardanico | r0kk3rz, binaries for sensor to work | 18:55 |
Yardanico | I thought that I can put them to vendor repo but it seems that SFOS doesn't use vendor repo at all | 18:56 |
r0kk3rz | those are proprietary | 18:56 |
Yardanico | *sensors | 18:56 |
Yardanico | yes :( | 18:56 |
r0kk3rz | the reason why we flash over an existing image is so we dont ship proprietary stuff in the sfos image | 18:56 |
Yardanico | oh well | 18:57 |
Yardanico | I will need to rebuild LOS 14.1 zip myself then :) | 18:57 |
Yardanico | that's not a big deal, I'm gonna do it tomorrow | 18:57 |
r0kk3rz | do sensors work in LOS? | 18:59 |
Yardanico | r0kk3rz, yes they do, but xiaomi provides only 64-bit sensor libs for my device, that's why they don't work in SFOS | 18:59 |
Yardanico | and it's the same for redmi 4x/redmi note 4 ports | 18:59 |
r0kk3rz | ah ok | 19:04 |
Yardanico | well, idk what to do about video playback, so the error can be *maybe* fixed by using updated venus firmware, but that can only be done if system is using treble (vendor partition can contain firmware) | 19:28 |
Yardanico | https://github.com/freemarkw/android_device_xiaomi_markw/commit/148c92f1583fca1174a1a305cb8fc32cd21613f8 | 19:28 |
Yardanico | or wait, maybe I can still provide my own | 19:28 |
mal | Yardanico: pretty sure the issue is something else | 19:44 |
mal | assuming video playback works in android | 19:45 |
Yardanico | mal, yes it works in LOS 14.1 which I use as a base | 19:45 |
ghosalmartin | mal: have you hit any devices yet that break under using CONFIG_VT because I think its now impossible for me to enable :P | 19:55 |
ghosalmartin | ive used guhls config and managed to get it to build but it still corrupt the shit outta the build to the point where it doesnt hit the init script. the kernels own init main or even console-ramoops | 19:56 |
ghosalmartin | literally outta ideas now on how to get this device into telnet :P | 19:59 |
mal | ghosalmartin: nope, it's quite odd how they have managed to break that | 20:00 |
mal | ghosalmartin: what device was that? | 20:00 |
ghosalmartin | mal: mi mix 2. it is very odd. i read somewhere on google they were abandoning CONFIG_VT but we'll see | 20:02 |
ghosalmartin | seems something wayy too major to break | 20:02 |
mal | isn't that quite basic thing, wondering what kind of hacks they have do to break it | 20:03 |
ghosalmartin | am wondering how they've managed to break it that the entire kernel becomes corrupt tbh | 20:03 |
ghosalmartin | and it seems the files havent really changed for it | 20:03 |
ghosalmartin | mal, do you have a link handy to the configfs devices kernel please? | 20:06 |
r0kk3rz | grep for CONFIG_VT to check for anything else that requires it | 20:07 |
ghosalmartin | is CONFIG_VT all that important/? | 20:09 |
mal | ghosalmartin: xa2 uses configfs https://github.com/mer-hybris/android_kernel_sony_msm/tree/hybris-sony-aosp-8.1.0_r20_20180402 | 20:10 |
ghosalmartin | ta | 20:10 |
mal | ghosalmartin: there is a branch of usb-moded with configfs support in mer-core, not yet merged | 20:12 |
ghosalmartin | mal, id be amazed if i get that far :P | 20:13 |
mal | I was just testing phone calls in android 8, no audio but otherwise seemed to work | 20:14 |
ghosalmartin | noicee :P the weird thing is the CONFIG_VT breaks the kernel so badly i need to do a clean build otherwise the kernel is tainted for good | 20:16 |
mal | wtf | 20:21 |
ghosalmartin | exactly my thoughts on the matter | 20:23 |
ghosalmartin | ...think it could just be my build machine? | 20:24 |
ghosalmartin | its the only factor left | 20:24 |
ghosalmartin | well enabling any of these breaks it too CONFIG_RD_BZIP2=y | 20:28 |
ghosalmartin | CONFIG_RD_LZMA=y | 20:28 |
ghosalmartin | CONFIG_RD_XZ=y | 20:28 |
ghosalmartin | CONFIG_RD_LZO=y | 20:28 |
ghosalmartin | CONFIG_RD_LZ4=y | 20:28 |
ghosalmartin | CONFIG_PROC_DEVICETREE=y | 20:28 |
ghosalmartin | CONFIG_TMPFS_XATTR=y | 20:28 |
ghosalmartin | CONFIG_MEMCG_KMEM=y | 20:28 |
mal | ghosalmartin: that was 15.1? | 20:28 |
ghosalmartin | yes | 20:28 |
mal | ghosalmartin: maybe point me to the needed stuff and I can try to build a kernel for you | 20:29 |
ghosalmartin | this https://github.com/ghosalmartin/android_kernel_xiaomi_msm8998 branch hybris-15.1? | 20:29 |
mal | I probably need the other repos too so I can build it the usual way | 20:30 |
ghosalmartin | this repo https://github.com/ghosalmartin/android_device_xiaomi_chiron | 20:30 |
ghosalmartin | not sure what else is required | 20:30 |
mal | that has some dependencies | 20:31 |
ghosalmartin | https://github.com/LineageOS/android_device_xiaomi_msm8998-common | 20:31 |
ghosalmartin | think thats all three required repos | 20:32 |
ghosalmartin | tbf if you have a 15.1 codebase you can just breakfast chiron and itll pull all the appropriate repos in | 20:34 |
mal | hmm, why is repo sync failing | 20:42 |
mal | repo command is not very good with error messages | 20:44 |
mal | fatal: Couldn't find remote ref refs/heads/master | 20:44 |
mal | why not tell which repo is causing that | 20:44 |
mal | it seems I need to do repo init again, not sure why | 20:48 |
ghosalmartin | mal: none of them have a master, or are you repo syncing the entire manifest? | 20:55 |
mal | ghosalmartin: I was just trying to sync the devices repos, maybe it tried to check something else also | 21:02 |
mal | ghosalmartin: it seems github is slow so I won't build today | 21:02 |
ghosalmartin | mal: fair enough, thanks :) | 21:02 |
mal | ghosalmartin: kernel is syncing 50 KiB/s | 21:05 |
mal | ghosalmartin: so it will take a while | 21:05 |
ghosalmartin | mal: yeah ive noticed github have weird moments | 21:05 |
ghosalmartin | am going to try and get a build that gets me atleast some kind of console-ramoops and then got from there | 21:05 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!