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.
Practical Checklist
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
-
Confirm that you are working in the BeagleBone's SSH shell.
hostname uname -a -
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 asi2c-0ori2c-2. -
Display each available device or adapter name.
tail -v -n +1 /sys/bus/i2c/devices/*/name -
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 entry | Name | Role |
|---|---|---|
0-0024 | tps65217 | Power-management IC (PMIC) |
0-004c | it66122 | HDMI-related integrated circuit |
0-0050 | 24c256 | Serial EEPROM at address 0x50 |
2-0054–2-0057 | 24c256 | EEPROM-address entries on bus 2 |
i2c-0, i2c-2 | OMAP I2C adapter | I²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.
-
Choose a device from the previous list. The following commands use the PMIC at
0-0024only if that entry exists.ls -l /sys/bus/i2c/devices/0-0024/ -
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 -
Check the driver symlink and uevent information.
readlink -f /sys/bus/i2c/devices/0-0024/driver cat /sys/bus/i2c/devices/0-0024/uevent -
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.
-
On your computer, download the i2c-tools v4.3 source archive from:
Save it in your
Downloadsdirectory.If the browser gave it a different filename, substitute that filename instead. This command runs on your computer, not on the BeagleBone.
-
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. -
Return to the existing BeagleBone SSH terminal and confirm the archive arrived.
cd ~ ls -lh i2c-tools-4.3.zipThe archive should be listed in the
debianuser's home directory. -
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.3normally extracts toi2c-tools-4.3/. Use the directory name displayed bylsif it differs. -
Enter the source directory and compile the tools locally on the BeagleBone.
cd ~/i2c-tools-4.3 make -
Install the compiled utilities and confirm their location.
sudo make install ls -l /usr/local/sbin/i2cdetect /usr/local/sbin/i2cdumpThe upstream source installation commonly places administrative utilities in
/usr/local/sbin. Check the actual installation output if they appear elsewhere. -
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 -VTo 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 -
List the I²C adapters without probing any device addresses.
i2cdetect -li2c-0 i2c OMAP I2C adapter I2C adapter i2c-2 i2c OMAP I2C adapter I2C adapterCompare the results with the
i2c-*entries in/sys/bus/i2c/devices/. -
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.3These 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.
-
Find the PMIC's name, if present.
cat /sys/bus/i2c/devices/0-0024/name -
Inspect whether a driver owns the device.
readlink -f /sys/bus/i2c/devices/0-0024/driver -
Consult the TPS65217 datasheet. Identify the device's responsibilities and locate its register descriptions.
-
Linux may refuse a userspace request to access the same address while a driver manages that device, because the kernel owns it.