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