cm4: tc358743 on cam0 no longer working
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.
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
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.
I'm not interested in doing contracts for bespoke functionality - please don't ask.
Re: cm4 cam0 no longer working
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=trueCode: 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))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
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.
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.
I'm not interested in doing contracts for bespoke functionality - please don't ask.
Re: cm4: tc358743 on cam0 no longer working
thanks for the quick fix, this worked.
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Media centres
- Gaming
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion