Friday, 2020-11-06

T42<simonschmeisser> Thaodan: sorry, but which package? there's sailfish-browser, qtmozembed and gecko-dev involved (at least) and I couldn't find documentation in an obvious location in either one08:49
T42<simonschmeisser> mal: gmp-droid sounds like it is android specific? is there a desktop/upstream linux equivalent?08:51
malgmp-droid is similar to gst-droid which we use for hardware codecs09:11
malgmp-droid is for browser, gst-droid for everything else09:11
T42<simonschmeisser> mal: understood, but pinephone is not android based so I was wondering if there is some equivalent ... but I don't expect this to stop the browser from working at all either09:38
malthat is not relevant for the pinephone browser issue09:38
malwe need to investigate if using hardware decoding using native linux ways is possible in browser09:39
T42<simonschmeisser> mal: I was hoping to figure one thing out for myself ... but where do I configure the LED? The section on ngfd in the HADK is still todo unfortunately10:12
malled is in mce configuration10:14
T42<simonschmeisser> mal: thanks, path changed and now it works again :)10:28
T42<simonschmeisser> mal: is the flash/torch LED handled in the same way in mce?10:41
malflash is handled normally by android side, not sure how native ports handle that, is gstreamer doing that automatically?10:42
T42<simonschmeisser> camera is not working yet, but it can be controller via /sys/class/leds/white\:flash/10:44
T42<simonschmeisser> the camera will be a bigger project involving libcamera10:45
mallibcamera has gstreamer support so might not be too complicated, I have libcamera built for sfos already for future testing10:48
T42<simonschmeisser> yes, but it needs to support the actual hardware, that's the bigger project I assume10:49
malwhat camera controller does the device have?10:52
malhttps://git.linuxtv.org/libcamera.git/tree/src/libcamera/pipeline/simple/simple.cpp#n53 vs https://github.com/sailfish-on-dontbeevil/kernel-megi/blob/orange-pi-5.10-sfos/arch/arm64/configs/pinephone_defconfig#L36710:54
mal@adampigg can you config pinephone uses sun6i camera controller?10:55
mal*confirm10:56
T42<simonschmeisser> mal: yes, sun6i-csi10:57
malso there should be some kind of support in libcamera for that already10:58
T42<simonschmeisser> oh, wow, I'll test in the afternoon10:59
T42<sm0lman> Hi, I have a Fairphone 3, does anyone know if there is a working port for this device?11:11
malI have almost fully working fairphone 3 port but it's not public yet11:14
piggzmal: how should libcamera be used within a sailfish app?13:37
malpiggz: it has a normal gstreamer plugin in the git repo, afaik you just install the gst plugin13:42
malpiggz: https://git.linuxtv.org/libcamera.git/tree/src/gstreamer13:43
T42Paul Davis %lastname% was added by: Paul Davis %lastname%14:09
T42<simonschmeisser> mal: I'm trying to build your libcamera package, where can I find libv4l2?14:09
T42<adampigg> @simonschmeisser its in the native-common repos14:11
T42<simonschmeisser> ah thanks, I installed a new 3.4 target and forgot to add this again14:12
T42<adampigg> @simonschmeisser you are working on the pinephone?14:13
T42<simonschmeisser> yes, my jolla1 died so I need a new phone ...14:14
T42<simonschmeisser> or did you mean litteraly compiling on it? I'm using the platform sdk14:19
T42<adampigg> no, but if you are assisting the the port, may aswell join the tg group14:21
T42<simonschmeisser> mal: your libcamera does not build for me on 3.4 because of ../src/libcamera/pub_key.cpp:90:12: error: ‘gnutls_pubkey_verify_data2’ was not declared in this scope14:50
T42<simonschmeisser> (and because it wouldn't find doxygen and graphviz dot, but these can be disabled)14:51
malthat new version is still broken in my repo, I didn't yet fix it14:52
malthat gnutls thing looks familiar14:52
piggzi said that too :D14:53
mal@simonschmeisser if you are building locally remember to add -p to the end of build command14:54
malso it will apply the patches during mb2 build14:54
T42<simonschmeisser> ah, ok, MartijnBraam also said it no longer works14:54
malI use it often14:54
T42<simonschmeisser> ok, now it seems to compile :)14:58
T42<simonschmeisser> a bit further ...14:59
malneed proper disabling of documentation probably15:00
malhmm, did I forget to push a new version, I'm pretty sure I had disabled documentation15:00
piggzu mist have missed it, https://build.merproject.org/package/show/nemo:devel:hw:pine:dontbeevil/libcamera15:01
malI need to check where my sources are locally15:02
mal@simonschmeisser piggz I pushed a build fix now15:16
piggzrebuidling15:17
malI disabled qcam for now15:17
maland added simple pipeline15:17
T42<simonschmeisser> thanks! MartijnBraam told me it doesn't work anymore however ... but let's see15:18
mal@simonschmeisser I just used build -p when doing my local test build15:21
malare you sure you use it correctly15:22
T42<adampigg> @simonschmeisser libcamera built https://build.merproject.org/package/show/nemo:devel:hw:pine:dontbeevil/libcamera15:47
T42<simonschmeisser> I build and installed it locally already but the test command does not work unfortunately as gstreamer seems not to like the plugin?15:49
T42<simonschmeisser> gst-launch-1.0 -v libcamerasrc camera-name="Camera 1" ! videoconvert ! autovideosink15:49
T42<simonschmeisser> WARNING: erroneous pipeline: no element "libcamerasrc"15:49
maltry removing ~/.cache/gstreamer or something like that first15:54
T42<simonschmeisser> gst-inspect-1.0 coredumps on the file ... not a good sign I guess16:12
malthen use gdb to check where, if possible16:12
T42<simonschmeisser> gnutls ...16:14
T42<simonschmeisser> #0  0xf7573d7e in asn1_delete_structure2 () from /usr/lib/libtasn1.so.616:14
T42<simonschmeisser> #1  0xf780c2d8 in gnutls_pubkey_import () from /usr/lib/libgnutls.so.2616:14
T42<simonschmeisser> #2  0x00000000 in ?? ()16:14
T42<simonschmeisser> #0  0xf7573d7e in asn1_delete_structure2 () from /usr/lib/libtasn1.so.616:19
T42<simonschmeisser> #1  0xf780c2d8 in gnutls_pubkey_import (key=0xfffeedbc, data=<optimized out>, format=<optimized out>) at gnutls_pubkey.c:74416:19
T42<simonschmeisser> #2  0x00000000 in ?? ()16:19
malok, so it needs some fixing then16:25
malmy gnutls patch was untested build fix16:25
T42<simonschmeisser> hehe16:26
malI don't have yet any device to test that16:28
malcamera support on my mainline device is untested and missing some device tree entries16:28
T42<simonschmeisser> I assume it will crash anyway16:29
T42<simonschmeisser> likely the data format in gnutls has changed as well and your patch is somewhat too optimistic16:29
T42<simonschmeisser> I'll try if it works without gnutls16:36
mal@simonschmeisser can you install debug symbols for gnutls16:44
maland for libtasn16:45
T42<simonschmeisser> ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Could not find any supported camera on this system.16:46
T42<simonschmeisser> I just set HAVE_GNUTLS to 0 and now it "works"16:47
T42<simonschmeisser> will install your version again later and install libtasn16:48
malcan you strace the new failure16:50
malthat camera not found issue16:50
T42<simonschmeisser> mal: https://paste.ubuntu.com/p/n5xkSKvQTw/17:01
mal@simonschmeisser line 63 https://git.linuxtv.org/libcamera.git/tree/README.rst#n6317:06
malalthough not sure how relevant that is17:11
T42<simonschmeisser> https://paste.ubuntu.com/p/snSMfMc7ts/  somewhat longer backtrace17:19
T42<simonschmeisser> this version of gnutls seems "slightly dated", are there plans to update?17:41
T42<simonschmeisser> it seems to look at the wrong device ... /dev/media0 is cedrus device for video decoding18:02
T42<adampigg> @simonschmeisser [it seems to look at the wrong device ... /dev/ …], env variables to override?18:13
T42<simonschmeisser> MartijnBraam says: the flash driver doesn't work, if it's in the dtb the whole media node won't come up18:14
T42<simonschmeisser> that's why there is actually no media node for the camera18:14
T42<simonschmeisser> can I change the dtb on device?18:15
T42<simonschmeisser> ah, the "b" stands for binary I guess ...18:17
T42<simonschmeisser> Adam Pigg: where does the dtb actually come from?18:29
T42<adampigg> its from the kernel build18:40
T42<simonschmeisser> https://gitlab.com/postmarketOS/pmaports/-/blob/master/main/linux-postmarketos-allwinner/0005-dts-pinephone-Disable-flash-led-in-OV5640-node.patch20:06
T42<simonschmeisser> this is what we need to do20:06
T42<ankaos> hı. how fix this problem? https://del.dog/ghitedihyv.txt20:27
maldoes that happen when doing make hybris-hal?20:30
T42<ankaos> now repo sync other device20:38
T42<adampigg> @simonschmeisser [this is what we need to do], ok, i can add that, im already using some patches from that repo anyway22:10

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