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•5w ago
if it's using I2C, how about probing it once
melta101
melta101•5w ago
manually
ZacckOsiemo
ZacckOsiemo•5w 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•5w ago
using something like i2cdetect?
melta101
melta101•5w ago
it's trying to do sensor.init() but is unable to read the version ID
melta101
melta101•5w ago
yep
ZacckOsiemo
ZacckOsiemo•5w ago
Ok cool let me run it
ZacckOsiemo
ZacckOsiemo•5w ago
Linux land is just insane
ZacckOsiemo
ZacckOsiemo•5w ago
so big
ZacckOsiemo
ZacckOsiemo•5w ago
almost autosar
ZacckOsiemo
ZacckOsiemo•5w ago
Error: Could not open file /dev/i2c-1' or /dev/i2c/1': No such file or directory
ZacckOsiemo
ZacckOsiemo•5w ago
My cable could be wrong
Ming
Ming•5w ago
Are you trying to run a camera on a RPi5?
ZacckOsiemo
ZacckOsiemo•5w ago
on RPi 0 2w
Ming
Ming•5w ago
OK - similar chip...
melta101
melta101•5w ago
after that try acessing the chip ID register
attachment 0
attachment 1
32bitSaviour
32bitSaviour•5w ago
looks to me like an i2c comms issue
Ming
Ming•5w ago
It could also be not enbaled in the Device Tree
melta101
melta101•5w ago
i also feel the same
Ming
Ming•5w ago
Is there an overlay for I2C?
ZacckOsiemo
ZacckOsiemo•5w ago
software or cable
melta101
melta101•5w ago
SW
ZacckOsiemo
ZacckOsiemo•5w ago
I just enabled. i2c on raspi config
ZacckOsiemo
ZacckOsiemo•5w ago
rebooting
ZacckOsiemo
ZacckOsiemo•5w ago
then trying again
ZacckOsiemo
ZacckOsiemo•5w ago
I added an overlay to enable the camera
dtoverlay=imx219
dtoverlay=imx219
ZacckOsiemo
ZacckOsiemo•5w 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•5w ago
I seem to have enabled i2c
ZacckOsiemo
ZacckOsiemo•5w ago
but no camera yet
Ming
Ming•5w ago
That's a distinct lack of camera 🙂
ZacckOsiemo
ZacckOsiemo•5w ago
I think re hook up the cable maybe its not connected just right.
melta101
melta101•5w ago
is it logic high?
melta101
melta101•5w ago
check with a multimeter if the cable is logic high or not ifso then it a maybe cable prob then
melta101
melta101•5w ago
or pinctrl doesnt enable logic high
ZacckOsiemo
ZacckOsiemo•5w ago
I just watched a video and I realise the guy at the shop might have connected the cable upside down
ZacckOsiemo
ZacckOsiemo•5w ago
was in a rush and I just wanted it to work
ZacckOsiemo
ZacckOsiemo•5w ago
rebooting then we can check again
32bitSaviour
32bitSaviour•5w ago
Hurry potter.
ZacckOsiemo
ZacckOsiemo•5w 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•5w ago
do you mean the flex cable?
ZacckOsiemo
ZacckOsiemo•5w ago
yes sir
melta101
melta101•5w ago
Ahh, i have done that
melta101
melta101•5w ago
i feel you
ZacckOsiemo
ZacckOsiemo•5w ago
it's always a damn wire!
Ming
Ming•5w ago
No - we witnessed your debugging and problem determination skills!
melta101
melta101•5w ago
i need this kind of optimism everyday
melta101
melta101•5w ago
i need this kind of optimism everyday
ZacckOsiemo
ZacckOsiemo•5w ago
I need this kind of time to debug

Did you find this page helpful?