[07:10] Hi, has someone got the pivariety ARDUCAM driver to compile on ubuntu-server 22.04 (5.15)? [07:39] it complains about missing .dtb make rules [07:39] ("make[2]: *** No rule to make target 'arch/arm64/boot/dts/broadcom/bcm2711-rpi-400.dtb', needed by '__build'. Stop.") [08:09] @waveform? [10:51] johk, 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] unfortunately I need ROS2 and therefore ubuntu :) [10:52] johk, 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:53] oh [10:53] (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:54] I'l try to compile using the full source, only tried the headers only way [10:54] anyway, 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) [11:19] hmm wo komme ich unter ubuntu an die default rasbian build config ? [11:19] (für den kernel?) [11:20] (in rasbian gibt es wohl ein bcm2711_defconfig Eintrag im Makefile) [11:20] https://www.raspberrypi.com/documentation/computers/linux_kernel.html [11:23] ah hier. https://github.com/sakaki-/bcm2711-kernel [11:40] other errors [12:52] johk, 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 using [12:52] ok [12:52] waveform, mine is the B0353 model from arducam [12:54] ah, the global shutter 2.3MP one ... why did I think you were using the 21MP one? Anyway, I'll dig into that one [13:17] johk, 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 started [13:18] ok? [13:18] I was looking for that but was not successful [13:18] johk, 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:19] oh, make that "sudo dmesg | grep arducam" (I keep forgetting dmesg requires sudo these day) [13:20] I'm always contemplating to just use root on these devices... but then the world hates you. [13:21] [ 9.526853] arducam-pivariety 10-000c: pivariety_read: Reading register 0x103 failed [13:21] [ 9.540814] arducam-pivariety 10-000c: probe failed [13:22] hmm, 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:29] the 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:34] hmm not sure [13:35] lots and lots of naming differences arducam vs pivariety [13:36] yeah, 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 installation === JanC_ is now known as JanC [14:32] waveform: I have to leave soon, any news? What time zone are you in? [14:33] johk, 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 meetings [14:35] ok [14:36] waveform: 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] johk, okay -- I'll keep plugging away at it -- see you later!