How to get support for I2C in Ubuntu 22.04 and VIM4?

Hello. We are trying to create a small OLED (SSD1306) display for our VIM case.
We have done this with success on VIM3 using GPIO pins 24 to 27 on VIM3 with Ubuntu 20.04, but on VIM4 it looks like not to work - missing support, missing env.txt support to enable the overlay?

The OS report no files for port 0 or 5 in /dev (we have tried everything) or like the doc now calls port I2C A and F…

Is this not yet supported? Or is there a way to enable the I2C overlay/support in Ubuntu 22.04 with VIM4 ???

Regards
Morten Steenberg
The XVIM Team.

Yes, it is supported, you need to enable I2C with overlays.

Enable I2C F (PIN22 & PIN23): Add i2cm_f to /boot/dtb/amlogic/kvim4.dtb.overlay.env.

e.g.

$ cat /boot/dtb/amlogic/kvim4.dtb.overlay.env 
fdt_overlays=i2cm_f

After reboot you will see the device node /dev/i2c-5.

Enable I2C A (PIN25 & PIN26): Add i2cm_a to /boot/dtb/amlogic/kvim4.dtb.overlay.env.

e.g.

$ cat /boot/dtb/amlogic/kvim4.dtb.overlay.env 
fdt_overlays=i2cm_a

After reboot you will see the device node /dev/i2c-0.

Thank you.
This OLED Display is now working perfectly on Ubuntu 22.04 and VIM4, again thank you for the precise information.
Have a nice day.

Regards
Morten Steenberg
The XVIM Team

Hi, there is any way to have the i2c display as a frame buffer device ?

@Dario_Armellin which display would you like to use ?