/srv/irclogs.ubuntu.com/2022/08/17/#ubuntu-arm.txt

johkHi, has someone got the pivariety ARDUCAM driver to compile on ubuntu-server 22.04 (5.15)?07:10
johkit complains about missing .dtb make rules07:39
johk("make[2]: *** No rule to make target 'arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dtb', needed by '__build'.  Stop.")07:39
johk@waveform?08:09
waveformjohk, ooh -- interesting question. Can't say I've tried it but I do have one of the IMX519 arducam's lying around ... somewhere here (which I vaguely recall needed some surgery on raspbian to get working)10:51
johkunfortunately I need ROS2 and therefore ubuntu :)10:51
waveformjohk, I'll see if I can get that working on jammy (I did recently get the v2 module based on the imx219 working jammy with libcamera, but not the v1 as there's some issue in our version of the ov5647 kernel module)10:52
johkoh10:53
waveform(I think the issue's fixed upstream, but it hasn't made it into our kernel version on jammy yet -- I need to retry that on kinetic when I get a mo)10:53
johkI'l try to compile using the full source, only tried the headers only way 10:54
waveformanyway, I'll see if I can get the arducam I've got here working on jammy and hopefully that'll give us some hints (my guess is there's some path differences looking at the error you've got but I can probably figure those out with the one I've got here)10:54
johkhmm wo komme ich unter ubuntu an die default rasbian build config ?11:19
johk(für den kernel?)11:19
johk(in rasbian gibt es wohl ein bcm2711_defconfig Eintrag im Makefile)11:20
johkhttps://www.raspberrypi.com/documentation/computers/linux_kernel.html11:20
johkah hier. https://github.com/sakaki-/bcm2711-kernel11:23
johkother errors11:40
waveformjohk, okay, got the IMX519 partially working under libcamera (haven't got the auto-focus working, but a preview is fine). However, it appears that one's going to be fairly easy because the imx519 kernel module is already in the ubuntu kernel (albeit without the ak7375 bits for the focus motor). Just digging into what's required for the IMX230 one you're using12:52
johkok12:52
johkwaveform, mine is the B0353 model from arducam12:52
waveformah, the global shutter 2.3MP one ... why did I think you were using the 21MP one? Anyway, I'll dig into that one12:54
waveformjohk, oh -- this is interesting -- it might be easy to get somewhere with this after all. Apparently we've already got the arducam-pivariety kernel module and d-t from upstream in the ubuntu kernel too, so it *should* be a simple matter of manually specifying the overlay to at least get things started13:17
johkok?13:18
johkI was looking for that but was not successful13:18
waveformjohk, can you try adding "dtoverlay=arducam-pivariety" to the end of /boot/firmware/config.txt and rebooting. I'm assuming you've got the camera already installed on the board. Once it's rebooted, try "dmesg | grep arducam" and we'll see if the kernel module has loaded and detected anything 13:18
waveformoh, make that "sudo dmesg | grep arducam" (I keep forgetting dmesg requires sudo these day)13:19
johkI'm always contemplating to just use root on these devices... but then the world hates you.13:20
johk[    9.526853] arducam-pivariety 10-000c: pivariety_read: Reading register 0x103 failed13:21
johk[    9.540814] arducam-pivariety 10-000c: probe failed13:21
waveformhmm, okay that sounds like it loaded the module but the module didn't find anything. Let me see what version of the module we've got in the linux-raspi source...13:22
waveformthe version we've got in the 5.15 sources (used by jammy) is definitely behind the master on the Arducam-pivariety repo, but I've not found exactly where they've defined the sensors it supports yet...13:29
johkhmm not sure13:34
johklots and lots of naming differences arducam vs pivariety13:35
waveformyeah, it seems that the older version we have in the jammy kernel sources is called arducam-pivariety, whilst in the current master branch of their repo it's renamed to arducam ... just working on seeing if I can get that compiling with the kernel headers on a fresh jammy installation13:36
=== JanC_ is now known as JanC
johkwaveform: I have to leave soon, any news? What time zone are you in?14:32
waveformjohk, I'm in the UK timezone -- not much news yet; I hit the same dtb issue you did with building make dtbs -- got around that one (with some pain -- I'll tackle the kernel team on that) and hit another issue which I'm going to have another crack at after I finish the afternoon meetings14:33
johkok14:35
johkwaveform: I'm in the CET timezone. Not sure if I can pop in this evening, but I'll be here again tomorrow latest.14:36
waveformjohk, okay -- I'll keep plugging away at it -- see you later!14:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!