Friday, 2021-04-23

rinigusyesterday on the meeting, I learned that jolla updates also droid-system packages with the releases. sure enough, there is a corresponding record in SFOS changelog as well. for 4.0.1, we have "[system] Add missing library loading to fix HDR support."06:21
riniguscould someone knowing explain what was done? do you recompile android system/vendor and make new .rpms for OTA06:21
rinigusI was somehow assuming that we tend not to touch those android parts during ota, but it maybe not valid for sony devices.06:22
rinigusin particular, would be nice to know what was in that update "Add missing library loading to fix HDR support."06:23
Mister_Magisternow add display HDR support06:57
MightyHello, I would like to ask more for my port, my device is an omap4 device and thus has ducati for video acceleration it starts but at around 11 seconds it fails to load the firmware here is the dmesg https://pastebin.ubuntu.com/p/HgSD6QFqd8/09:55
T42<elros34> Mighty: do you see droid-load-firmware.sh in journal trying to load it? Do you have enabled CONFIG_FW_LOADER*?11:45
MightyNo journal files were found :(11:49
MightyAnd no that config isn't enabled, but wifi uses firmware and that works11:49
MightyBasically videos are very choppy (for eg in microtube) and I want to use it mostly for yt and vids thus im asking @elros3411:52
T42<elros34> wifi use hardcoded path for firmware. Did you explicitly disable any CONFIG_FW_LOADER? What zcat /proc/config.gz | grep -i fw_loader returns?. What do you mean journal files are not found?11:55
MightyThat command returns CONFIG_FW_LOADER=y11:57
MightyBasically it wasn't in my defconfig so I said no11:57
MightyAnd when I run journalctl I get no journal files found11:57
T42<elros34> you always check what options are enabled config.gz or .config not defconfig. Do you run journal as root?12:01
MightyI cannot run as root12:17
MightyDefaultuser is not present in sudoers file12:17
MightyAlso will check the .config file from now on :)12:18
T42<elros34> devel-su is used to gain root12:20
MightyOh right shoot I forgot that12:21
mighty17test12:23
mighty17Process '/usr/bin/droid/droid-load-firmware.sh' failed with exit code 1. @elros3412:23
mighty17`firmware[522]: Failed to find firmware ducati-m3.bin for /devices/platform/omap/omap-rproc.1/firmware/omap-rproc.1`12:23
T42<elros34> check timestamp when it happens, before or after your partitions are mounted. Also can you find that file in any partition?12:24
mighty17yes ducati-m3.bin is in `/system/vendor/firmware`12:26
mighty17it happens just before mounting12:27
mighty17https://pastebin.ubuntu.com/p/mprpjHrRmb/12:27
T42<elros34> ah you are trying to modprobe rpmsg* modules but you didn't built them as modules12:31
mighty17oh so basically those need to be built as modules?12:32
mighty17but it is vendor firmware12:34
T42<elros34> You modprobe them for a reason or you just copied that from older droid-config? If it's possible to built them as modules then thout would be best12:34
mighty17i have no clues about that :(12:35
mighty17its a proprietary file idk how its loaded12:37
T42<elros34> so follow previous porter repo if it's available and built these rpmsg* as modules12:37
mighty17https://github.com/yacuken/droid-config-espresso3g i dont think they did something different12:38
T42<elros34> https://github.com/yacuken/android_kernel_samsung_espresso10/commit/d1a3c13c5bb5a28390e31b580c9ce0d8d5d89293 I can se few modules rpmsg*=m12:41
mighty17that is no more the case in cm13 https://github.com/CyanogenMod/android_kernel_samsung_espresso10/blob/cm-13.0/arch/arm/configs/espresso_defconfig12:43
T42<elros34> show your .config  instead12:44
mighty17ok12:45
mighty17https://pastebin.ubuntu.com/p/7c5gn9b4Yf/ yes you were correct it is =y12:47
T42<Herrie1982> I saw defconfig options flipping in .config sometimes12:47
T42<Herrie1982> For LuneOS I sometimes needed to hard force them during build12:47
T42<elros34> @Herrie1982 defconfig != .config is normal if you change defconfig manually.12:48
mighty17so with menuconfig i should change?12:50
T42<Herrie1982> @elros34 I know, but usually it goes OK, but sometimes we had funny issues with some values flipping to m which caused issues12:50
mighty17herrie this is omap and samsung can break anyhow12:52
T42<elros34> yeah you don't need to but sure you can use menuconfig or xconfig. Here is my script to use xconfig. Make sure you amend your defconfig and arch https://pastebin.com/vXgWvv2u12:53
mighty17sure thing thanks a lot12:56
mighty17so now i have to rebuild the kernel and the build packages?13:07
Mister_Magistermighty17: yee proters is for oprts13:12
mighty17:D already fixed thanks to elro.s13:12
T42<elros34> make hybris-hal, make sure modules are really built then rebuild droid-hal13:16
mighty17`  CC [M]  arch/arm/plat-omap/omap_rpmsg.o` yeah i guess they are13:17
mighty17and rebuild only droid-hal right?13:17
Mister_Magisterelros is the king13:21
mighty17yes! :D13:21
T42<elros34> sometimes too nervous but trying my best..13:24
Mister_Magisteri admire so damn knowledgable people like elros mal sledges or *Kit13:27
Mister_Magisternot to mention piggz <3 xoxo13:28
mighty17they are legendary people <313:35
T42Daniel %lastname% was added by: Daniel %lastname%14:37
T42<Daniel %lastname%> has how to install the sailfish on the redmi note 6 pro?14:37
T42<Mika07> Fwd from Mika07: Total15:10
piggzwho, me????????15:22
mighty17@elros34, now nothing seems to work, only backlight is on, device isnt even detected in my pc (so no telnet/ssh)16:01
mighty17and it bootloops16:03
mighty17just changing that config caused this much issue?!16:06
malwhat did you change?16:08
mighty17CONFIG_OMAP_RPMSG=m from CONFIG_OMAP_RPMSG=y16:08
mighty17and somehow in the .config it is still =y16:09
mighty17even tho in defconfig i set it to =y16:09
mighty17 * even tho in defconfig i set it to =m16:09
malwhy did you change it?16:10
mighty17to get ducati-m3.bin working16:10
mighty17`firmware[522]: Failed to find firmware ducati-m3.bin for /devices/platform/omap/omap-rproc.1/firmware/omap-rproc.1` i was getting this error16:11
malmighty17: where is the file on the device?16:11
mighty17ducati-m3.bin is in /system/vendor/firmware16:12
mighty17https://pastebin.ubuntu.com/p/mprpjHrRmb/ here is my journalctl16:13
Mister_Magistermal: got time now for some debugging or…?16:14
malMister_Magister: why are asking like that and not telling what you are even debugging?16:15
Mister_Magistermal: i'm asking first if you have time cause if you don't then there's no point in asking question16:16
Mister_Magistertrying to be nice16:16
* Mister_Magister don't bite me :<16:16
Mister_Magisterif u dun have time i will come another day :<16:16
malwell I don't know the answer until I know what you want to debug because it might be too big thing16:17
Mister_Magisterwell okay then its again gps and yes ill grab u logs in a second16:17
mighty17mal any clues about my issue?16:18
piggzmal: as the 10ii is facing issues us porters have had to deal with ... does it also suffer from the sdcard/partition/nemo-qml-settings problem ?16:18
malpiggz: nope16:19
Mister_Magisterits not using sd*?16:19
Mister_Magisterthats weird16:19
Mister_Magisterimagine using emmc in 202116:20
malmighty17: well the firmware loader is trying to load the firmware before partitions are mounted16:21
malmighty17: you need to figure out why it wouldn't build as a module16:22
mighty17yeah, it mounts in just the next line, can i load it manually?16:22
mighty17mighty17: you need to figure out why it wouldn't build as a module, umm thats going to be hard, sources are ancient plus its omap16:22
malmighty17: so did it build as module or not?16:24
malmighty17: if you check the .config somewhere under out/16:24
mighty17yes in the .config it builds as =y not a module16:25
mighty17even tho i specified it to build as module in defconfig16:27
maldid you also set CONFIG_RPMSG=m?16:27
mighty17yes16:27
mighty17i can send you my defconfig16:27
mighty17https://pastebin.ubuntu.com/p/WFfVxqM5jV/16:28
mighty17is there a way do load it manually as with new build it bootloops now16:31
T42<elros34> so you change nothing in config and it bootloops? Probably uname -r changed, did you install new droid-hal-*-modules?16:32
mighty17yes i rebuilt everything16:32
T42<elros34> everything? Did you create new image?16:32
mighty17change nothing in config -> .config cannot be changed, i changed my defconfig16:33
mighty17new image as in the zip?16:33
T42<elros34> yes16:33
mighty17yes i did16:34
Mister_Magistermighty17: when running test_gps i'm getting this in logcat https://paste.opensuse.org/2be3a73916:36
Mister_Magisterdmesg/journal don't have anything (usefulf16:36
mighty17u pinged me :P16:37
Mister_Magistergoddamnit16:37
Mister_Magistermal:16:37
Mister_Magistermighty17: u can help too!16:37
mighty17im dumdum xD16:38
Mister_Magisterhmmm maybe i should strace test_gps16:40
malmighty17: so how did you modify the defconfig, manually or somehow with make menuconfig16:53
malMister_Magister: as usual just partial log is rarely helpful, reboot and get journal and logcat16:53
mighty17using menuconfig16:54
malMister_Magister: strace also is useful often16:54
malmighty17: well that could have changed something, did you compare the resulting .config files from old and new build?16:54
mighty17i will do that rn but the thing that i needed to change didnot change16:55
mighty17there is no difference16:56
Mister_Magistermal: its not partial log its literally everything that test_gps causes in logs16:56
Mister_Magisterthere's nothing more16:57
Mister_Magisterif you want system log then ill get u system log16:57
mighty17i think i need to make clean and do everything again :(16:59
T42<elros34> what? just revert your latest changes in kernel, droid-config. If that doesn't help then grab journal/dmesg from not working device17:00
Mister_Magistermighty17: dmesg: https://paste.opensuse.org/60643903 journal: https://paste.opensuse.org/2bfaf305 logcat: https://paste.opensuse.org/e512ab5917:01
malMister_Magister: yes but some early messages could tell if some initialization fails17:01
Mister_Magistermal: yeah just didn't know you wanted system log17:01
Mister_Magisterso here is full system log17:01
rinigushi! could someone from Jolla explain how android system/vendor are updated with OTA? see specific questions from this morning on this channe;17:01
Mister_Magistercould be bit too late though17:01
mighty17@elros34 1) yes i will revert the things 2) im asking again can i load it manually? 3) cannot get journal/dmesg if the device bootloops17:03
mighty17`bash: make: command not found` fun :'(17:03
T42<elros34> sure you can get journal, enable persistent logging according to faq then extract logs using twrp and read on your host. About loading manually: that is the point if you build something as module then you can load it manually when you want. In your case after /system/is mounted17:05
T42<elros34> how fast does it bootloop?17:06
mighty17oh persistent logging, thanks a lot and i understood about module as well now :D17:06
mighty17it takes quite some time to bootloop17:07
mighty17like few mintues17:07
T42<elros34> then journal should have reason for failure. If you claim that .config didn't change at all then I guess you updated/changed something.17:09
mighty17well i cannot ssh/telnet in device so getting jounralctl persistent isnt possible17:09
mighty17and i didnt change anything17:10
mighty17i wil redownload files from my git if needed17:10
T42<elros34> sailfish / is /data/.stowways/sailfishos/ in twrp17:12
Mister_Magistermal: journal seems to late :/17:13
Mister_Magisteri mean logcat17:14
mighty17it is blank in twrp17:15
T42<elros34> is /data partition mounted?17:15
mighty17yup17:17
mighty17ohk wait a sec17:17
Mister_Magistermal: strace https://paste.opensuse.org/5c54502417:24
Mister_Magisternothing useful ngl17:24
mighty17@elros34 `/data/.stowaways/sailfishos/var/log/journal` is blank for me17:25
mighty17i did as the hadk-faq said17:25
malMister_Magister: do you have qmi_fw.conf anywhere on the device?17:27
Mister_Magisternot in /etc /system /vendor17:27
Mister_Magisteri checked it17:28
malso nowhere on the device?17:28
Mister_Magisterhaven't checked other locations.17:28
mallooks like that is not anything critical17:28
Mister_Magisternowhere.17:29
T42<elros34> mighty17 but did you boot once after enabling persistent logging before checking that directory?17:29
mighty17ofcourse xD i did boot17:30
T42<elros34> :)17:30
mighty17as in it still bootlooped17:31
Mister_Magisteri'll download hadk and see if i can update dhd maybe that will help17:32
T42<elros34> if you are sure that journald.conf have correct settings then remove /init.log, reboot and check whether it was recreated. BTW you must have someting in host dmesg when it boots17:32
T42<elros34> mighty17 ^17:33
mighty17i dont have anything in host dmesg except usb disconnect17:33
mighty17and there is no init.log17:34
mighty17@elros3417:34
T42<elros34> if there is /data/.stowaways/sailfishos/init.log then it doesnt boot to real rootfs, it's in initramfs. Reboot straight to twrp and check whether you have /proc/last_kmsg17:35
mighty17okay17:36
mighty17@elros34, last_kmsg will give me dmesg of the twrp boot not of sailfishos17:37
malMister_Magister: is gps only thing broken?17:38
malMister_Magister: do sensors work?17:38
Mister_Magistermal: sensors do work17:39
T42<elros34> mighty17: ok then it probably doesn't crash. You must broke something in kernel that is why it fails to pass initramfs. Did you flash correct image too boot partition?17:39
Mister_Magistertest_gps doesn't work when ran as defaultuser17:39
mighty17@elros34 I don't think I broke anything, I'll rebuild with old kernel config and check17:44
T42<elros34> I see no other options, init.log is created very early in boot process when /init-debug is started17:46
malMister_Magister: only as defaultuser? does it work as root?17:46
Mister_Magisterit works as root but not as defaultuser17:46
Mister_Magisteri mean17:46
malMister_Magister: well you should have said that before17:46
Mister_Magisterit doesn't "work" but it doesn't error ou t either17:46
Mister_Magisterlemme show you17:47
Mister_Magisterhttps://paste.opensuse.org/9df1a2f8 this is root17:47
Mister_Magisterhttps://paste.opensuse.org/aad3c244 this is defaultuse17:47
Mister_Magisteron defaultuser there's error17:47
mighty17elros34 this is very weird issue :( i think ill leave it for now17:48
malMister_Magister: just to be sure, have you tested with gpsinfo app?17:48
Mister_Magisteri tested with CSD17:48
Mister_MagisterCSD says no connection17:49
malMister_Magister: still not understanding what you mean by not working as defaultuser, those look almost the same, except for the diag message17:50
Mister_Magisteryeah just that17:50
Mister_Magisterthat defaultuser posts error17:50
Mister_Magisternothing more17:50
Mister_Magistermaybe wrong use of words17:50
malI doubt that is critical17:50
Mister_Magisteroki17:50
Mister_Magisterwel gpsinfo does literally nothing17:51
maldo you see geoclue printing anything in journal?17:51
Mister_Magistermal: https://paste.opensuse.org/a13597a217:52
malMister_Magister: do those qmi messages in logcat only happen when using gps or also some other times18:07
Mister_Magisternot sure18:07
Mister_Magisterbut they definitely appear when i run test_gps18:07
malMister_Magister: and you tested close enough to a window?18:19
Mister_Magisteri did not but csd can't connect so uhhh18:19
malMister_Magister: no idea how it would fail if gpsinfo does show it can start geoclue18:21
Mister_Magisterkay then18:22
Mister_Magisteri will test18:22
Mister_Magisterwith gpstest18:22
Mister_Magistermal: i put it on balcony and nothing18:55
malMister_Magister: nothing obvious in the logs20:19
Mister_Magisteri know20:19
Mister_Magisterhence i'm asking20:20
Mister_Magistergot no lead about debugging it20:20
malstill strange that it seemed to initialize gps without issues in userspace20:24
Mister_Magisterye20:24
Mister_Magistermaybe i will just update dhd lolz20:24
malhow old libhybris do you have?20:25
Mister_Magisteras in package?20:25
malhas gps always been broken on that port?20:25
Mister_Magisterits on obs… we made fixes for it remember20:25
Mister_Magisterso that it works on old adaptations20:26
malI don't even remember which port that is20:26
Mister_Magisterport is titan20:26
Mister_Magisterbut im talking aobut the hybris20:26
Mister_Magisterhybris was broken on old adaptations20:26
Mister_Magisteri think elros had some patched hybris20:26
Mister_Magisterso we made PR and fixed it20:26
Mister_Magisterso i got that version20:26
Mister_Magistergps was working in 3.3 but stopped in 3.420:26
Mister_Magisteri could try skipping 3.4 and going straight to 4.020:27
maloh, that is then interesting if it was working before20:27
Mister_Magisteryeee20:27
Mister_Magistermind dhd wasn't updated since like 3 years20:27
Mister_Magisterits titan/thea20:27
Mister_Magisterexact device that i'm testing on is thea but they are literally the same20:28
Mister_Magistermal: if you want, im running my titan on 3.3 and i'm testing thea update on 3.420:30
Mister_Magisteron 3.3 gps is fine, on 3.4 is now20:30
Mister_Magisternot*20:30
Mister_Magisteridk if it helps im just giving any info i can20:31
maldo you see any of those qmi messages on 3.3?20:31
Mister_Magisteri do see them20:32
Mister_Magisterbut i also see othet location messages20:32
Mister_Magisterye i already got tons of info in test_gps xd20:33
Mister_Magisterhttps://paste.opensuse.org/ecf3ee3520:33
Mister_Magisterhere's log from 3.320:33
Mister_Magisterso those messages aren't lead20:33
Mister_Magisterthere's no info whatsoever20:33
Mister_Magisterdamn20:33
malon the other device there are none of the loc messages20:34
Mister_Magisterhmm wait, it could be from AGPS20:34
Mister_Magisterlemme test without GPS20:34
Mister_Magistermal: thats what i said ys20:34
Mister_Magisteryes20:34
Mister_Magisterthe 3.3 device has sim card so agps actually works20:35
Mister_Magisteridk if test_gps uses agps by default20:35
Mister_Magisterno that doesn't change anything20:35
malMister_Magister: would be interesting to know if updating dhd would change anything or not20:47
Mister_Magistermal: i might just have gotten an idea20:49
malMister_Magister: which one?20:49
Mister_Magisterwait20:49
Mister_Magisterwont say anythin untill it works lolz20:49
Mister_Magisteryep20:49
Mister_Magistergps works20:50
Mister_Magistergoddamnit motorola20:50
malwhat was it?20:50
Mister_Magistermal: i barely remembered that sometimes to fix gps on these device you need to erase modemst1 and modemst220:50
malhmm, very strange20:50
Mister_Magistertook me long enough to remember it20:50
Mister_Magisterits known issue even on android20:50
Mister_Magisterits just specific to those devices20:50
Mister_Magistersorry for wasting your time :<20:51
malnow I can do something else20:51
malalthough I did do some test builds of some packages while checking those logs20:51
Mister_Magisteryou can help me update to 4.0! :D20:51
malI still haven't gotten fp2 to work with 4.020:52
Mister_Magisterits it complicated?20:52
Mister_Magisteror you havent had time?20:52
malalthough I haven't tried in a while20:52
malno time20:52
Mister_Magisterahhh20:52
Mister_Magisteri will try just building against 4.0 target and see what i end up with20:53
malI also have almost fully working fp3 port waiting for final things before releasing the port20:53
malit has been waiting for quite a while now20:53
Mister_Magisteryou are working on fp3 port?20:53
Mister_MagisterWOOOOOW20:53
Mister_Magisterniiiiiice20:53
Mister_Magisterlegacy continues20:53
malonly some issue with fingerprint and camera (which needs a hack)20:53
Mister_Magistermal: since you are here, how is hybris17?20:53
Mister_Magisterstill worksbutcomplicated?20:53
malworks mostly but can have issues with camera20:54
malbecause it needs a hack which I need to make better20:54
Mister_Magisteri'm down with that, where can i start20:54
malmy fp3 is hybris-1720:54
Mister_Magisternice20:54
Mister_Magisteri really wanna move 5z to hybris17 just to see if modem works20:55
malsome of the custom things needed are not documented anywhere yet20:55
Mister_Magistercan you help me with it on weekend?20:55
Mister_Magisteror you don't have time…?20:55
Mister_Magisteror you just don't want to bother with me? :P20:55
malI was hoping to get some work done for those fp2 and fp3 ports20:55
Mister_Magisterah thats fine20:55
Mister_Magisteri'll then release my 3.4 updates and work on apps20:56
Mister_Magister5z can wait, noone is using it anyway20:56
malbut the early things for porting are mostly the same just some config changes and also one magic thing needed during hybris-hal build20:56
mal"export TEMPORARY_DISABLE_PATH_RESTRICTIONS=true" is needed before hybris-hal20:57
Mister_Magistermal: where are the sources? or do i sync lineage 17 tree and apply some patches (where are the patches)20:57
malMister_Magister: the usual hybris-17.1 branch and then the same applu patches thing as 16 base20:57
Mister_Magister*confus*20:57
mal?20:57
Mister_Magisterhybris17 branch of patches repo?20:57
Mister_Magisteror android tree repo20:58
malandroid manifest thingy, that downloads also patches which you then apply using the same way that was done for 16 base20:58
Mister_Magisterahh  okay20:58
Mister_Magisterhybris16 didn't have android manifest thingy i just got lineage and patches separately20:59
Mister_Magisterhence asking20:59
Mister_Magisteri can do something with that :) thanks20:59
Mister_Magistereee20:59
malMister_Magister: then you were doing it wrong20:59
Mister_Magistermanifest only goes up to hybris 16 mal20:59
Mister_Magistermal: branch wasn't even available21:00
Mister_Magisterat the time21:00
malwhat https://github.com/mer-hybris/android/tree/hybris-17.121:00
Mister_MagisterWHAT21:00
Mister_Magisterhttps://github.com/mer-hybris/local_manifests/branches/all21:00
Mister_Magisterwrong repo21:00
Mister_Magistergoddamnit21:00
Mister_Magisterim dumdum21:00
Mister_Magisterokay got you21:01
Mister_Magisterill see what i can do21:01
Mister_Magistergot some experience in wasting your time and bothering you after all :D21:01
Mister_Magisterthanks mal21:01
* Mister_Magister wishes that his joke will make mal laugh some day21:02
T42<b100dian> mighty17: I have last kernel messages in /sys/fs/pstore while in TWRP21:10
T42<b100dian> @elros34 you mentioned yesterday that I may not have mount units already up, here's a full log https://pastebin.ubuntu.com/p/H73Tm6NtPY/21:17
T42<b100dian> for example I do see contents in /vendor or /system21:18
malMister_Magister: heh21:19
Mister_MagisterI MADE HIM LAUGH21:19
Mister_MagisterWOOOO21:19
Mister_MagisterPARTY21:19
T42<elros34> @b100dian ok then ignore it21:21
malI also should try to get vulkan support into libhybris finally, it seems to be working quite well21:33
T42<b100dian> something is not right though, I was expecting /system/vendor to be directly from a partition :hmm21:35
Mister_Magistermal: can we add HDR display/playback support to sfos?21:39
malMister_Magister: does wayland support hdr?21:52
mallooks like no https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/1421:53
Mister_Magistermal: ohno21:53
maleven x11 does not support hdr21:54
Mister_Magistereeeeeeeeeee21:56
Mister_Magisterdang21:56
Mister_Magisterwith my new gstreamer player i can play HDR youtube tho21:56
Mister_Magisterxd21:56
Mister_Magisterits super bright21:56
malwondering if that color management protocol for wayland would also make it possible to create some night mode for devices22:07
Mister_Magistermal: night mode? as in blue light filter?22:19
malyes22:22
Mister_Magisterhuh22:22
Mister_Magisterohno the camera in g2 isn't working23:12
Mister_Magisterhmmm minimedia is fine23:15
Mister_Magisterbut advanced camera is fine23:19
Mister_Magisteruntill you take picutes…23:19
Mister_Magisterhmm23:19

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!