Could you guys help me decipher these please

@Ming @32bitSaviour could you guys help me decipher these please
flasher@flasher:~ $ dmesg | grep -i imx219
[ 0.064637] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx219@10
[ 3.758979] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx219@10
[ 10.157833] imx219 10-0010: Error reading reg 0x0000: -121
[ 10.157873] imx219 10-0010: failed to read chip id 219
[ 10.158692] imx219: probe of 10-0010 failed with error -121
flasher@flasher:~ $ dmesg | grep -i imx219
[ 0.064637] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx219@10
[ 3.758979] platform 3f801000.csi: Fixed dependency cycle(s) with /soc/i2c0mux/i2c@1/imx219@10
[ 10.157833] imx219 10-0010: Error reading reg 0x0000: -121
[ 10.157873] imx219 10-0010: failed to read chip id 219
[ 10.158692] imx219: probe of 10-0010 failed with error -121
48 Replies
melta101
melta101•2mo ago
if it's using I2C, how about probing it once
melta101
melta101•2mo ago
manually
ZacckOsiemo
ZacckOsiemo•2mo ago
For context I am trying to get image feed off a imx219-160 camera on a raspberry pi 0 2w in headless mode
ZacckOsiemo
ZacckOsiemo•2mo ago
using something like i2cdetect?
melta101
melta101•2mo ago
it's trying to do sensor.init() but is unable to read the version ID
melta101
melta101•2mo ago
yep
ZacckOsiemo
ZacckOsiemo•2mo ago
Ok cool let me run it
ZacckOsiemo
ZacckOsiemo•2mo ago
Linux land is just insane
ZacckOsiemo
ZacckOsiemo•2mo ago
so big
ZacckOsiemo
ZacckOsiemo•2mo ago
almost autosar
ZacckOsiemo
ZacckOsiemo•2mo ago
Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory
ZacckOsiemo
ZacckOsiemo•2mo ago
My cable could be wrong
Ming
Ming•2mo ago
Are you trying to run a camera on a RPi5?
ZacckOsiemo
ZacckOsiemo•2mo ago
on RPi 0 2w
Ming
Ming•2mo ago
OK - similar chip...
melta101
melta101•2mo ago
after that try acessing the chip ID register
attachment 0
attachment 1
32bitSaviour
32bitSaviour•2mo ago
looks to me like an i2c comms issue
Ming
Ming•2mo ago
It could also be not enbaled in the Device Tree
melta101
melta101•2mo ago
i also feel the same
Ming
Ming•2mo ago
Is there an overlay for I2C?
ZacckOsiemo
ZacckOsiemo•2mo ago
software or cable
melta101
melta101•2mo ago
SW
ZacckOsiemo
ZacckOsiemo•2mo ago
I just enabled. i2c on raspi config
ZacckOsiemo
ZacckOsiemo•2mo ago
rebooting
ZacckOsiemo
ZacckOsiemo•2mo ago
then trying again
ZacckOsiemo
ZacckOsiemo•2mo ago
I added an overlay to enable the camera
dtoverlay=imx219
dtoverlay=imx219
ZacckOsiemo
ZacckOsiemo•2mo ago
Ok so now I have this
flasher@flasher:~ $ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
flasher@flasher:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
flasher@flasher:~ $ sudo i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
flasher@flasher:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
ZacckOsiemo
ZacckOsiemo•2mo ago
I seem to have enabled i2c
ZacckOsiemo
ZacckOsiemo•2mo ago
but no camera yet
Ming
Ming•2mo ago
That's a distinct lack of camera 🙂
ZacckOsiemo
ZacckOsiemo•2mo ago
I think re hook up the cable maybe its not connected just right.
melta101
melta101•2mo ago
is it logic high?
melta101
melta101•2mo ago
check with a multimeter if the cable is logic high or not ifso then it a maybe cable prob then
melta101
melta101•2mo ago
or pinctrl doesnt enable logic high
ZacckOsiemo
ZacckOsiemo•2mo ago
I just watched a video and I realise the guy at the shop might have connected the cable upside down
ZacckOsiemo
ZacckOsiemo•2mo ago
was in a rush and I just wanted it to work
ZacckOsiemo
ZacckOsiemo•2mo ago
rebooting then we can check again
32bitSaviour
32bitSaviour•2mo ago
Hurry potter.
ZacckOsiemo
ZacckOsiemo•2mo ago
Upside down cable and I have signal
flasher@flasher:~ $ libcamera-hello --list
Available cameras
-----------------
0 : imx219 [3280x2464 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx219@10)
Modes: 'SRGGB10_CSI2P' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
'SRGGB8' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [83.70 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
flasher@flasher:~ $ libcamera-hello --list
Available cameras
-----------------
0 : imx219 [3280x2464 10-bit RGGB] (/base/soc/i2c0mux/i2c@1/imx219@10)
Modes: 'SRGGB10_CSI2P' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [41.85 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
'SRGGB8' : 640x480 [206.65 fps - (1000, 752)/1280x960 crop]
1640x1232 [83.70 fps - (0, 0)/3280x2464 crop]
1920x1080 [47.57 fps - (680, 692)/1920x1080 crop]
3280x2464 [21.19 fps - (0, 0)/3280x2464 crop]
melta101
melta101•2mo ago
do you mean the flex cable?
ZacckOsiemo
ZacckOsiemo•2mo ago
yes sir
melta101
melta101•2mo ago
Ahh, i have done that
melta101
melta101•2mo ago
i feel you
ZacckOsiemo
ZacckOsiemo•2mo ago
it's always a damn wire!
Ming
Ming•2mo ago
No - we witnessed your debugging and problem determination skills!
melta101
melta101•2mo ago
i need this kind of optimism everyday
melta101
melta101•2mo ago
i need this kind of optimism everyday
ZacckOsiemo
ZacckOsiemo•2mo ago
I need this kind of time to debug

Did you find this page helpful?