Activate a user I2C bus

Hello everyone I have a problem with I2C. I am trying to configure a user bus for another device that i need to run on my BBAI.
I followed these steps: congifured pin 17 and 18 as i2c pins and made so to enable them after each startup, follwing config-pin beaglebone start up · GitHub.

When i run “sudo show-pins | sort” I can see that the status of the pin is changed from default to I2C 4 .

But if i run i2cdetect -l I only have the default i2c 0 and 3 bus displaying, and indeed connecting the SDA and SCL to 18 and 17 pins, I see no device.

How can I solve this issue? Somebody has suggestion or a link with steps I can follow to activate the other I2c?

Thank you!

You will need to modify extlinux.conf.

I was wandering if the same procedure i was using for CAN, coming from Deepak Katrhi in Google SoC might also work for it :

After having installed bb_overlays

- git clone https://github.com/lorforlinux/bb.org-overlays.git
- cd bb.org-overlays
- git checkout bone_can
- make
- sudo cp src/arm/BONE-CAN0.dtbo /lib/firmware/
- For the BBAI, use BONE-CAN0.dtbo and / or BONE-CAN1.dtbo

- sudo nano /boot/uEnv.txt



enable_uboot_overlays=1 
uboot_overlay_addr4=/lib/firmware/BONE-CAN0.dtbo
uboot_overlay_addr5=/lib/firmware/BONE-CAN1.dtbo

Hi @ALEX_PARK thank you for the reply. I exactky followed the steps you linked me to:

debian@BeagleBone:~$ cd /opt/source/dtb-5.10-ti-arm64/
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ git pull
Already up to date.
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ make
debian@BeagleBone:/opt/source/dtb-5.10-ti-arm64$ sudo make install
Then add:

fdtoverlays /overlays/BONE-I2C1.dtbo 

But this is what happened:

`debian@beaglebone:/opt/source/dtb-5.4-ti$ sudo make install fdtoverlays /overlays/BONE-I2C1.dtbo 
mkdir -p /boot/dtbs/4.19.94-ti-r73/ 
cp -v src/arm/*.dtb /boot/dtbs/4.19.94-ti-r73/ 'src/arm/am335x-abbbi.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-abbbi.dtb'
 'src/arm/am335x-bone-uboot-univ.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bone-uboot-univ.dtb' 'src/arm/am335x-bone.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bone.dtb'
 'src/arm/am335x-boneblack-uboot-univ.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-boneblack-uboot-univ.dtb' 
'src/arm/am335x-boneblack-uboot.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-boneblack-uboot.dtb' 'src/arm/am335x-boneblack-wireless.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-boneblack-wireless.dtb' 'src/arm/am335x-boneblack.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-boneblack.dtb'
 'src/arm/am335x-boneblue.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-boneblue.dtb' 
'src/arm/am335x-bonegreen-gateway.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bonegreen-gateway.dtb' 'src/arm/am335x-bonegreen-wireless-uboot-univ.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bonegreen-wireless-uboot-univ.dtb'
'src/arm/am335x-bonegreen-wireless.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bonegreen-wireless.dtb' 'src/arm/am335x-bonegreen.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-bonegreen.dtb'
 'src/arm/am335x-osd3358-sm-red.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-osd3358-sm-red.dtb' 'src/arm/am335x-pocketbeagle.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-pocketbeagle.dtb' 'src/arm/am335x-sancloud-bbe.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am335x-sancloud-bbe.dtb' 'src/arm/am5729-beagleboneai.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am5729-beagleboneai.dtb' 'src/arm/am57xx-beagle-x15-revb1.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am57xx-beagle-x15-revb1.dtb' 'src/arm/am57xx-beagle-x15-revc.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am57xx-beagle-x15-revc.dtb' 'src/arm/am57xx-beagle-x15.dtb' -> '/boot/dtbs/4.19.94-ti-r73/am57xx-beagle-x15.dtb' 
'src/arm/omap3-beagle-xm-ab.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap3-beagle-xm-ab.dtb' 
'src/arm/omap3-beagle-xm.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap3-beagle-xm.dtb' 'src/arm/omap3-beagle.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap3-beagle.dtb' 
'src/arm/omap4-panda-a4.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap4-panda-a4.dtb'
 'src/arm/omap4-panda-es.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap4-panda-es.dtb' 
'src/arm/omap4-panda.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap4-panda.dtb' 
'src/arm/omap4-sdp.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap4-sdp.dtb'
'src/arm/omap5-uevm.dtb' -> '/boot/dtbs/4.19.94-ti-r73/omap5-uevm.dtb'
 make: *** No rule to make target 'fdtoverlays'. Stop.`

And as soon as I reboot it, it is not booting any more and so now i have to reflash it again. Do you have any suggestion to avoid it to happen?