We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

5 posts • Page 1 of 1
Karus
Posts: 7
Joined: Sat Oct 07, 2023 7:56 am

cm4: tc358743 on cam0 no longer working

Thu Nov 13, 2025 12:04 pm

I have a few cm4 io boards and tc358743. Using recent versions of raspios the cam0 port does not function properly.

It should be pretty easy for others to test, a fresh install of raspios (uname -r 6.12.47+rpt-rpi-v8)
add the overlay to the config file and connect to cam1, run v4l2-ctl --set-edid=file=edid.txt and it will work,

connect to cam0 port instead, add ",cam0" to the overlay then try the same command and you will get an error "VIDIOC_S_EDID: failed: Inappropriate ioctl for device". /dev/video0 is still present and I get set the edid/retrieve timings on v4l-subdev0.

if I go back to an older version of raspios eg 2024年11月19日 (6.6.51+rpt-rpi-v8) then cam0 works as expected.

This is not too much of an issue for io boards with cam1, but some of the smaller carrier boards only have cam0 wired.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 18476
Joined: Wed Dec 04, 2013 11:27 am

Re: cm4 cam0 no longer working

Thu Nov 13, 2025 12:56 pm

Any errors reported in the kernel ("dmesg") or firmware ("sudo vclog -m") logs?
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Karus
Posts: 7
Joined: Sat Oct 07, 2023 7:56 am

Re: cm4 cam0 no longer working

Thu Nov 13, 2025 2:17 pm

Code: Select all

dmesg | grep tc3
[ 0.019350] /soc/csi@7e800000: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/tc358743@f
[ 0.019442] /soc/i2c0mux/i2c@0/tc358743@f: Fixed dependency cycle(s) with /soc/csi@7e800000
[ 0.020593] /soc/csi@7e800000: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/tc358743@f
[ 0.036673] /soc/i2c0mux/i2c@0/tc358743@f: Fixed dependency cycle(s) with /soc/csi@7e800000
[ 1.510985] /soc/csi@7e800000: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/tc358743@f
[ 1.511082] /soc/i2c0mux/i2c@0/tc358743@f: Fixed dependency cycle(s) with /soc/csi@7e800000
[ 6.000751] tc358743 0-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 0))

Code: Select all

sudo vclog -m
005996.286: brfs: File read: 3913 bytes
006015.511: brfs: File read: /mfs/sd/overlays/tc358743.dtbo
006047.609: Loaded overlay 'tc358743'
006047.621: dtparam: cam0=true
the dmesg output looks very similar when using cam1 which works.

Code: Select all

dmesg | grep tc3
[ 0.018415] /soc/csi@7e801000: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/tc358743@f
[ 0.018542] /soc/i2c0mux/i2c@1/tc358743@f: Fixed dependency cycle(s) with /soc/csi@7e801000
[ 0.019806] /soc/csi@7e801000: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/tc358743@f
[ 0.060666] /soc/i2c0mux/i2c@1/tc358743@f: Fixed dependency cycle(s) with /soc/csi@7e801000
[ 9.539290] tc358743 10-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 1))
It looks quite different to how it used to be (cam0 on 6.6.x instead of 6.12.x):

Code: Select all

dmesg | grep tc3
[ 0.041271] platform fe800000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/tc358743@f
[ 7.078365] platform fe800000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@0/tc358743@f
[ 7.475903] tc358743 0-000f: tc358743 found @ 0x1e (i2c-22-mux (chan_id 0))

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 18476
Joined: Wed Dec 04, 2013 11:27 am

Re: cm4 cam0 no longer working

Thu Nov 13, 2025 3:56 pm

OK, it's a dtoverlay issue resulting in the unicam driver going into Media Controller mode.

The fragment at https://github.com/raspberrypi/linux/bl ... ts#L11-L16 only ever updates csi1, even if it is being loaded with the cam0 override.

https://github.com/raspberrypi/linux/pull/7138 should fix that.
Software Engineer at Raspberry Pi Ltd. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Karus
Posts: 7
Joined: Sat Oct 07, 2023 7:56 am

5 posts • Page 1 of 1

Return to "Compute Module"

AltStyle によって変換されたページ (->オリジナル) /