I2C error on Jetson Nano

Hi Community

I am putting together a stereo camera platform using two Alvium 1800-158C cameras (IMX273 sensor) allied vision github and a Jetson Nano. I have a custom carrier board with two 22pin MIPI connectors to connect to the cameras which is based on the Ant Micro open source Jetson baseboard Ant Micro Github.

I have followed the instructions to build and install the Alvium drivers on the Jetson Nano. However I have a few errors that must be rectified.

From the kernel log
[ 0.601800] i2c i2c-6: of_i2c: modalias failure on /host1x/i2c@546c0000/avt_pca9548@70
[ 1.179065] avt_csi2 0-003c: No camera detected
[ 1.184066] avt_csi2 6-003c: No camera detected
[ 11.127224] tegra-i2c 7000c700.i2c: rx dma timeout txlen:28 rxlen:128
[ 11.133675] tegra-i2c 7000c700.i2c: — register dump for debugging ----
[ 11.140391] tegra-i2c 7000c700.i2c: I2C_CNFG - 0x22c00
[ 11.145529] tegra-i2c 7000c700.i2c: I2C_PACKET_TRANSFER_STATUS - 0x10001
[ 11.152226] tegra-i2c 7000c700.i2c: I2C_FIFO_CONTROL - 0x1c
[ 11.157795] tegra-i2c 7000c700.i2c: I2C_FIFO_STATUS - 0x800040
[ 11.163624] tegra-i2c 7000c700.i2c: I2C_INT_MASK - 0x6c
[ 11.168846] tegra-i2c 7000c700.i2c: I2C_INT_STATUS - 0x2
[ 11.174180] tegra-i2c 7000c700.i2c: i2c transfer timed out addr: 0x50

I believe I need to update the device tree files to reflect the
I have a few questions:

  1. What does the modalias failure mean and what can cause it?
  2. How can I start to debug the i2c error register dump?

I have not been able to find relevant documentation for either error and would appreciate any help.

If you need clarification on something, please let me know.

Thanks

1, It could be the driver name didn’t match to device tree.
2. Suggest consult with vendor to help on it.

Where should I look to confirm whether the driver name matches the device tree?

The driver should have define the driver string.

 static const struct i2c_device_id ov5693_id[] = {
1240  	{ "ov5693", 0 },
1241  	{ }
1242  };
1243  
1244  MODULE_DEVICE_TABLE(i2c, ov5693_id);
1245  
1246  static struct i2c_driver ov5693_i2c_driver = {
1247  	.driver = {
1248  		.name = "ov5693",
1249  		.owner = THIS_MODULE,
1250  		.of_match_table = of_match_ptr(ov5693_of_match),
1251  	},
1252  	.probe = ov5693_probe,
1253  	.remove = ov5693_remove,
1254  	.id_table = ov5693_id,
1255  };
1256  module_i2c_driver(ov5693_i2c_driver);

Where is this file?

It’s reference sensor kernel driver.

Ok thanks for that Shane

I just put a fresh JetPack 4.6.1 image onto a TX2-NX using the ./flash script with the board set as the . This does not have the Alvium drivers installed and the error is still present.
Can you please help me understand the debug register dump?
What does this information mean?

It means the i2c transfer on this bus has timed out. mostly due to some slave is bad in the line and may be pulling the line low.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.