AR1335 driver still not working on Raspberry Pi with Bullseye/Buster after support instructions

Hi, I’m stuck with an AR1335 driver that just won’t work on my Raspberry Pi (Arducam OBISP MIPI camera module). I already tried the method support suggested but it’s still not working, so I’m hoping someone here has other suggestions on how to proceed.

My setup:

Command I’m running:
arducamstill -t 0 -pixfmt RGB888 -w 480 -h 640
(Side note from support: they said to input RGB888 instead of RGB3.)

I also tried arducamstill -t 0 with different image formats, specifically UYVY and RGB3. With RGB3 it says the format is not supported by our camera.

Nothing is working. System log was attached in an earlier email. Any ideas?

Hi, thanks for the detailed write-up. I owe you an answer on this — I couldn’t get back to you in time earlier. Here’s what I found on my side.

First important thing: the unit we tested previously was the pre-launched version of the camera, which is NOT the same product as yours. That means our earlier test results don’t apply to your module, so please disregard them.

Key point for your camera: it can only be used on the Buster system at present. So the correct test platform is a Raspberry Pi running Buster before we do any further diagnosis.

References:

Also, the camera command format may have changed — try inputting RGB888 instead of RGB3, e.g.:
arducamstill -t 0 -pixfmt RGB888 -w 480 -h 640

Can you re-test on Buster and let me know what you get? I’ll also re-test the camera on Buster here so we have a reference.

Thanks for the reply. So I moved over to Buster as you suggested and it’s still not working. Same story as before — I used the method support provided and no luck.

Just to recap the current state:

  • Raspberry Pi 4, Buster system (also tried Bullseye earlier)
  • AR1335 / Arducam OBISP MIPI camera module
  • Instruction followed: https://www.arducam.com/emergent-v4l2-driver-for-the-lastest-rpi-update/
  • Command: arducamstill -t 0 -pixfmt RGB888 -w 480 -h 640
  • Also tried arducamstill -t 0 with UYVY and RGB3 — RGB3 still reports it’s not supported by our camera.

The system log is still the screenshot from the earlier mail. What should I try next?

Ok, I ran a test on our side with the camera on Buster so we have a clean reference point. Platform was a Raspberry Pi 4B.

System info:

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.79-v7l+ #4 SMP Thu Dec 10 10:08:29 CST 2020 armv7l GNU/Linux

pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Video devices:

pi@raspberrypi:~ $ ls /dev/video*
/dev/video0  /dev/video10  /dev/video12  /dev/video14  /dev/video16
/dev/video1  /dev/video11  /dev/video13  /dev/video15

Driver check:

pi@raspberrypi:~ $ dmesg | grep arducam
[    6.182122] Modules linked in: arducam(+) brcmfmac brcmutil sha256_generic libsha256 cfg80211 vc4 cec v3d gpu_sched rfkill drm_kms_helper raspberrypi_hwmon i2c_mux_pinctrl i2c_mux bcm2835_unicam bcm2835_codec(C) bcm2835_isp(C) v4l2_dv_timings drm bcm2835_v4l2(C) v4l2_fwnode v4l2_mem2mem bcm2835_mmal_vchiq(C) videobuf2_dma_contig drm_panel_orientation_quirks videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 i2c_bcm2835 snd_bcm2835(C) videobuf2_common snd_soc_core snd_compress videodev snd_pcm_dmaengine mc snd_pcm vc_sm_cma(C) snd_timer snd syscopyarea sysfillrect sysimgblt fb_sys_fops rpivid_mem uio_pdrv_genirq uio i2c_dev ip_tables x_tables ipv6
[    6.182684] [<bf14a508>] (v4l2_ctrl_new_custom [videodev]) from [<bf10ed5c>] (v4l2_ctrl_new_arducam.constprop.0+0xdc/0x118 [arducam])
[    6.182736] [<bf10ec80>] (v4l2_ctrl_new_arducam.constprop.0 [arducam]) from [<bf10f3e4>] (arducam_probe+0x64c/0x910 [arducam])
[    6.182775] [<bf10ed98>] (arducam_probe [arducam]) from [<c0895a60>] (i2c_device_probe+0x200/0x294)
[    6.183072] [<c089635c>] (i2c_register_driver) from [<bf07a028>] (arducam_i2c_driver_init+0x28/0x1000 [arducam])
[    6.183104] [<bf07a000>] (arducam_i2c_driver_init [arducam]) from [<c02031c8>] (do_one_initcall+0x50/0x23c)
(same module/probe/register block repeats around 6.242978, 6.243553, 6.243606, 6.243649, 6.243940, 6.243976, 6.282277, 6.282837, 6.282885, 6.282924, 6.283210, 6.283244)
[   31.834517] arducam_vddl: disabling
[   31.834537] arducam_vdig: disabling
[   31.834559] arducam_vana: disabling

Then running the camera:

pi@raspberrypi:~ $ arducamstill -t 0
Hardare version: c03114
No match to hardware version!
Device /dev/video0) opened.
Video format set: UYVY (59565955) 1920x1080
[Framerate]: 30 fps.^C

And capturing to file:

pi@raspberrypi:~ $ arducamstill -t 5000 -o test.jpg
Hardare version: c03114
No match to hardware version!
Device /dev/video0) opened.
Video format set: UYVY (59565955) 1920x1080
[Framerate]: 30 fps.
Saving image data to test.jpg successfully.

So on Buster the capture actually completes. Can you try the same commands on your end and compare?

Interesting, thanks. I’ll match your setup and run arducamstill -t 0 and arducamstill -t 5000 -o test.jpg on my Buster Pi 4.

One thing though — I keep seeing No match to hardware version! (Hardware version: c03114) in the output. Is that the actual problem I should be worried about, or is that harmless? It shows up even in your log, so I’m not sure if that’s what’s breaking things for me.

Good eye. Based on the Buster test here’s where we stand.

Root cause / observation: the camera reports No match to hardware version! (Hardware version: c03114). That message is the only remaining anomaly we can see — despite it, the capture pipeline itself works: UYVY 1920x1080 at 30 fps, and saving to file succeeds (Saving image data to test.jpg successfully.).

So the takeaway is:

  • The correct test environment is Raspbian GNU/Linux 10 (buster), armv7l, kernel 5.4.79-v7l+ (Pi 4B). Make sure you’re on that, not Bullseye.
  • Ignore the old results from the pre-launched camera — they don’t apply.
  • The default still-capture command works: arducamstill -t 5000 -o test.jpg → UYVY 1920x1080, 30 fps, image saved successfully.
  • RGB3 is not supported by your camera, so use RGB888 instead of RGB3 for the pixel format.

I’ve also sent the matching driver package to you via private message — please grab it from there and reinstall before re-testing. If capture still fails on your end after that, post the exact output of arducamstill -t 5000 -o test.jpg and we’ll dig into it further.