Hello, still trying to get to the bottom of what is happening with i2c on the Odroid C4.
I haven’t found any solutions to i2c yet by looking through the forum. I’m just trying to get an INA3221 and a few other devices working as apart of a robotics project.
I’m currently on DietPi 9.6.1
I have looked into the /boot/dietpiEnv.txt to change the overlays. The /boot/dtb/amlogic/overlay readme file said that I could add i2c8, however this didn’t work. I have tried every configuration of i2cA, B, 1, 2, 3. Nothing has worked so far.
Next I turned to the official Odroid Wiki since I thought I was doing something wrong.
On this webpage: OdroidWiki
I found some useful tips about using device-tree-compiler and fdtget to get the status of the I2C bus devices. This didn’t work with the device trees in /boot/dtb-6.6.37-current-meson64 (Honestly I thought it was worth a try, but the kernel versions are quite different.)
I also looked to see if there were any kernel modules loaded in relation to i2c. I didn’t find any. I did find the video modules though, which probably is why the HDMI is showing up on I2C, but nothing else.
Finally, I checked Armbian’s guidance for overlays here: Armbian (Allwinner)
I did notice that they specify this:
Notes regarding SPI and I2S overlays
Activating a device on SPI or I2S bus may require more than one overlay. In case a bus overlay like spi0 or i2s0 exist for the target SoC they need to be activated in addition to a slave device overlay (provided or custom/user-made).
With their example overlays Env.txt looking like this:
overlays=w1-gpio uart1 i2c0 spi-spidev
So logically I found two modules that looked like they might need to be activated in accordance with this guidance. That was both w1-gpio and w1AB-gpio. I added those to my overlays and rebooted. Still nothing.
Armbian’s final guidance is this:
Debugging
As overlays and overlay parameters are applied by the u-boot, it is impossible to get any debugging information (such as error messages) from the OS. Serial console on UART 0 is required to debug DT overlay related problems.
Before I go further, I think I’m in over my head here and I need some help to solve this one.
For now in the project I can probably use a separate microcontroller as a crutch with serial, but the best solution would be to use one of the two busses that are already on the board. I would seriously appreciate any guidance anyone can give, as I’m trying to get at least one of my projects close to some kind of completion lol.
Thanks for your time,
– James