How can I scan for available I2C devices on the bus?
@Middleware & OS @everyone
How can I scan for available I2C devices on the bus? Am getting the error
Could not open file /dev/i2c-1: No such file or directory
, I have ensured the I2C device tree overlay is loaded using echo BB-I2C1 > /sys/devices/bone_capemgr.*/slots
, what could be wrong
Here's my prompt
Solution:Jump to solution
It seems like you are encountering an error while trying to scan for available I2C devices on the bus. The error message you mentioned,, indicates that the I2C device file is not being recognized, what type of i2c model are you using
2 Replies
This implies you are using an old (kernel 4.14) version of the BBB image - the
sys/devices/bone_capemgr*
doesn't exist on the latest version (kernel 5.10).
You may find it easier to update your BBB to the latest image.
Download it from here
https://www.beagleboard.org/distros/am335x-11-7-2023-09-02-4gb-emmc-iot-flasher
Use something like Balana Etcher to write that to a micro SD card and boot the BBB to update your eMMC.
Alternatively, you could use the image from here to just run off the micro SD card:
https://www.beagleboard.org/distros/am335x-11-7-2023-09-02-4gb-microsd-iot
That would allow you to try it and see if it provides the i2c configuration.RobertCNelson
BeagleBoard
AM335x 11.7 2023-09-02 4GB eMMC IoT Flasher
Debian image for BeagleBone Black on-board eMMC flash Kernel: 5.10.168-ti-r71 U-Boot: v2022.04 default username:password is For flashing instructions or
RobertCNelson
BeagleBoard
AM335x 11.7 2023-09-02 4GB microSD IoT
Debian image for BeagleBone Black using external microSD Kernel: 5.10.168-ti-r71 U-Boot: v2022.04 default username:password is For flashing instructions
Solution
It seems like you are encountering an error while trying to scan for available I2C devices on the bus. The error message you mentioned,, indicates that the I2C device file is not being recognized, what type of i2c model are you using