Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Last updated: Friday 13 November 2026 @ 17:29:40
BeagleBone Black — Revision D

Exploring the Chips

Investigate the integrated circuits fitted to the BeagleBone Black Revision D, identify devices exposed through Linux, and relate kernel information to addresses and functions described in component datasheets.

AM335xI²CsysfsEEPROMDatasheets
Practical Checklist
Chapter checklist 0 / 4 completed

1. Understand the I²C bus

I²C (Inter-Integrated Circuit) is a synchronous serial bus used for communication between controllers and peripheral ICs. It commonly uses two signal lines: SCL (clock) and SDA (data), together with a shared ground. Devices on the same bus are distinguished by their addresses.

2. Discover the devices through sysfs

  1. Confirm that you are working in the BeagleBone's SSH shell.

    hostname
    uname -a
  2. List the entries recognised by the kernel.

    ls -l /sys/bus/i2c/devices/

    Look for peripheral entries such as 0-0024, and adapter entries such as i2c-0 or i2c-2.

  3. Display each available device or adapter name.

    tail -v -n +1 /sys/bus/i2c/devices/*/name
  4. Record the bus, hexadecimal address, name and whether each entry is an adapter or a peripheral.

Reference output

The following is an illustrative example from the original workbook, not a guaranteed result for every running kernel:

==> /sys/bus/i2c/devices/0-0024/name <==
tps65217

==> /sys/bus/i2c/devices/0-004c/name <==
it66122

==> /sys/bus/i2c/devices/0-0050/name <==
24c256

==> /sys/bus/i2c/devices/2-0054/name <==
24c256

==> /sys/bus/i2c/devices/2-0055/name <==
24c256

==> /sys/bus/i2c/devices/2-0056/name <==
24c256

==> /sys/bus/i2c/devices/2-0057/name <==
24c256

==> /sys/bus/i2c/devices/i2c-0/name <==
OMAP I2C adapter

==> /sys/bus/i2c/devices/i2c-2/name <==
OMAP I2C adapter
Sysfs entryNameRole
0-0024tps65217Power-management IC (PMIC)
0-004cit66122HDMI-related integrated circuit
0-005024c256Serial EEPROM at address 0x50
2-0054–2-005724c256EEPROM-address entries on bus 2
i2c-0, i2c-2OMAP I2C adapterI²C bus controllers

The address in 0-004c is 0x4c, not 0x34. The 24c256 identifier describes a 256-Kbit (32-KiB) EEPROM family; it does not mean 16 GB of storage. Multiple EEPROM addresses do not necessarily imply distinct physical packages.

3. Explore device properties and drivers

sysfs also exposes metadata, such as which driver owns a device. Inspect these files without changing the state of the system.

  1. Choose a device from the previous list. The following commands use the PMIC at 0-0024 only if that entry exists.

    ls -l /sys/bus/i2c/devices/0-0024/
  2. Read its kernel-provided name and modalias, when present.

    cat /sys/bus/i2c/devices/0-0024/name
    cat /sys/bus/i2c/devices/0-0024/modalias
  3. Check the driver symlink and uevent information.

    readlink -f /sys/bus/i2c/devices/0-0024/driver
    cat /sys/bus/i2c/devices/0-0024/uevent
  4. Inspect another peripheral listed on your board. Compare its address, name and driver with the PMIC.

4. Transfer and install I²C tools without Internet access

The BeagleBone Black Revision D boards in this lab do not have Internet access. Download the i2c-tools source archive on your computer, transfer it over the existing USB network using scp, then build and install the utilities on the BeagleBone. Do not use apt or attempt to download packages from the board.

  1. On your computer, download the i2c-tools v4.3 source archive from:

    i2c-tools v4.3 ZIP archive

    Save it in your Downloads directory.

    If the browser gave it a different filename, substitute that filename instead. This command runs on your computer, not on the BeagleBone.

  2. In your computer's terminal, transfer the ZIP archive to the BeagleBone over SSH.

    scp -r ~/Downloads/i2c-tools-4.3.zip debian@192.168.7.2:~/

    Enter the BeagleBone account password when prompted. The trailing :~/ places the archive in the remote user's home directory.

  3. Return to the existing BeagleBone SSH terminal and confirm the archive arrived.

    cd ~
    ls -lh i2c-tools-4.3.zip

    The archive should be listed in the debian user's home directory.

  4. Extract the archive on the BeagleBone and inspect the extracted files.

    unzip i2c-tools-4.3.zip
    ls -d i2c-tools-*/

    A GitHub tag archive for v4.3 normally extracts to i2c-tools-4.3/. Use the directory name displayed by ls if it differs.

  5. Enter the source directory and compile the tools locally on the BeagleBone.

    cd ~/i2c-tools-4.3
    make
  6. Install the compiled utilities and confirm their location.

    sudo make install
    ls -l /usr/local/sbin/i2cdetect /usr/local/sbin/i2cdump

    The upstream source installation commonly places administrative utilities in /usr/local/sbin. Check the actual installation output if they appear elsewhere.

  7. Make the installation directory available in your shell and test the tools.

    export PATH="$PATH:/usr/local/sbin"
    command -v i2cdetect
    command -v i2cdump
    i2cdetect -V

    To retain the path in future Bash sessions, add the following line to ~/.bashrc (only once), then reload it:

    printf '\nexport PATH="$PATH:/usr/local/sbin"\n' >> ~/.bashrc
    source ~/.bashrc
  8. List the I²C adapters without probing any device addresses.

    i2cdetect -l
    i2c-0   i2c             OMAP I2C adapter                        I2C adapter
    i2c-2   i2c             OMAP I2C adapter                        I2C adapter

    Compare the results with the i2c-* entries in /sys/bus/i2c/devices/.

  9. After confirming the utilities work, return to your home directory and remove only the downloaded archive and extracted source directory.

    cd ~
    rm -f i2c-tools-v4.3.zip
    rm -rf i2c-tools-4.3

    These commands remove the source files, not the utilities installed into /usr/local/sbin.

5. Investigate the PMIC without disturbing it

The tps65217 manages essential BeagleBone Black power functions. Linux normally binds a driver to it.

  1. Find the PMIC's name, if present.

    cat /sys/bus/i2c/devices/0-0024/name
  2. Inspect whether a driver owns the device.

    readlink -f /sys/bus/i2c/devices/0-0024/driver
  3. Consult the TPS65217 datasheet. Identify the device's responsibilities and locate its register descriptions.

  4. Linux may refuse a userspace request to access the same address while a driver manages that device, because the kernel owns it.

7. Review