Enable SPI1 and I2C on BBB Wireless - Debian10 - Kernel 6.1

Dear all,

I am trying to enable SPI1 and I2C on the BBB wireless which runs on Debian 10 and kernel 6.1.12-bone-rt-r15. The Debian image is the AM3358 Debian 10.3 2020-04-06 1GB SD console image from BeagleBoard.

If I understood correctly, to enable SPI, I have to add the corresponding DTBOs to the /boot/uEnv.txt. However, after adding the SPI dtbo, I still don’t see SPI showing up in /dev/ .

Although I2C is in /dev/, somehow I cannot initiate I2C communication in a program.

Here is the output from running /opt/scripts/tools# ./version.sh. Hopefully it helps a bit with identifying the issue.

git:/opt/scripts/:[]
eeprom:[A335BNLTBWA51712EW001740]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Buster Console Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2017.01-00006-g55e748eda0 (Jan 18 2017 - 13:01:45)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.01-00006-g55e748eda0]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-wireless.dts]
kernel:[6.1.12-bone-rt-r15]
/boot/uEnv.txt Settings:
/uEnv.txt exists, uboot overlays is DISABLED, remove /uEnv.txt
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-I2C1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-PWM0-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr3=/lib/firmware/BB-PWM2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-SPIDEV1-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20221108.0-0~buster+20221108]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~buster+20220816]
pkg:[bb-wl18xx-firmware]:[1.20221201.0-0~buster+20221201]
pkg:[kmod]:[26-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev gpio pwm eqep remoteproc admin spi iio i2c docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=tty0 console=ttyO0,115200n8 root=/dev/mmcblk0p1 rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[    2.251157] remoteproc remoteproc0: wkup_m3 is available
[    2.720250] remoteproc remoteproc0: powering up wkup_m3
[    2.720276] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    2.720506] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   33.237518] remoteproc remoteproc1: 4a334000.pru is available
[   33.245212] remoteproc remoteproc2: 4a338000.pru is available
[   35.278098] Bluetooth: hci0: change remote baud rate command in firmware
[   51.843746] Bluetooth: hci0: change remote baud rate command in firmware
dmesg | grep pru
[   33.237518] remoteproc remoteproc1: 4a334000.pru is available
[   33.245212] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    2.262244] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 7392:a812 Edimax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thank you in advance.

The script is reporting, you have a file named: /uEnv.txt, so /boot/uEnv.txt is being ignored…

Regards,

Thanks Robert! I’m sorry for not spotting that message :smiling_face_with_tear: It was obvious…

Indeed, after removing the extra uEnv.txt, I can use I2C now. However SPI still does not show up in /dev/.

This is the output from running version.sh again. Do you think the bb-cape-overlays version being too old could cause problems?

Thanks!

eeprom:[A335BNLTBWA51712EW001740]
model:[TI_AM335x_BeagleBone_Black_Wireless]
dogtag:[BeagleBoard.org Debian Buster Console Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2019.04-00002-g07d5700e21 (Mar 06 2020 - 11:24:55 -0600)]:[location: dd MBR]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2017.01-00006-g55e748eda0 (Jan 18 2017 - 13:01:45)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.01-00006-g55e748eda0]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-wireless.dts]
UBOOT: Loaded Overlay:[BB-I2C1-00A0]
UBOOT: Loaded Overlay:[BB-PWM0-00A0]
UBOOT: Loaded Overlay:[BB-PWM2-00A0]
kernel:[6.1.12-bone-rt-r15]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-I2C1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-PWM0-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr3=/lib/firmware/BB-PWM2-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-SPIDEV1-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20221108.0-0~buster+20221108]
pkg:[bb-usb-gadgets]:[1.20220816.0-0~buster+20220816]
pkg:[bb-wl18xx-firmware]:[1.20221201.0-0~buster+20221201]
pkg:[kmod]:[26-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev gpio pwm eqep remoteproc admin spi iio i2c docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[    2.256088] remoteproc remoteproc0: wkup_m3 is available
[    2.730183] remoteproc remoteproc0: powering up wkup_m3
[    2.730208] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    2.730427] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   33.785078] remoteproc remoteproc1: 4a334000.pru is available
[   33.799312] remoteproc remoteproc2: 4a338000.pru is available
[   34.998400] Bluetooth: hci0: change remote baud rate command in firmware
[   51.587857] Bluetooth: hci0: change remote baud rate command in firmware
dmesg | grep pru
[   33.785078] remoteproc remoteproc1: 4a334000.pru is available
[   33.799312] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    2.267488] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
lsusb
Bus 001 Device 002: ID 7392:a812 Edimax Technology Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

okay, this might take a seril port to debug, but looking above, do you see those:

UBOOT: Loaded Overlay:[BB-I2C1-00A0]

That comes from this magic: bb.org-overlays/src/arm/BB-I2C1-00A0.dts at master · beagleboard/bb.org-overlays · GitHub

	/*
	 * Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
	 */
	fragment@0 {
		target-path="/";
		__overlay__ {

			chosen {
				overlays {
					BB-I2C1-00A0 = __TIMESTAMP__;
				};
			};
		};
	};

Which is purely used to help us know that the overlay got properly loaded…

So, assuming /lib/firmware/BB-SPIDEV1-00A0.dtbo actually exists and u-boot loaded it? (check serial) it’s either missing that helper above or wasn’t loaded…

Edit, the above is still useful, but i bet, shows an awesome warning…

dmesg | grep -i spi

make sure you use a valid options now: src/arm/overlays/BB-SPIDEV0-00A0.dts · v6.1.x · BeagleBoard.org / BeagleBoard-DeviceTrees · GitLab

compatible = "rohm,dh2228fv";

Regards,

Thanks for the suggestion!

Indeed like you said, seems like uBoot didn’t load BB-SPIDEV1-00A0.dtbo. Here is the serial output from boot:

For the dmesg commend, nothing was returned. So I guess it confirmed that SPIDEV1 is not loaded.

Sorry I’m quite new to device trees. When you say to use a valid option, do you mean to change the compatible entry in SPIDEV1 and recompile it?

U-Boot SPL 2017.01-00006-g55e748eda0 (Jan 18 2017 - 13:01:45)
Trying to boot from MMC2

U-Boot 2017.01-00006-g55e748eda0 (Jan 18 2017 - 13:01:45 -0600), Build: jenkins-                                                                                                                                                             github_Bootloader-Builder-503

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

Board: BeagleBone Black
Model: BeagleBone Black Wireless
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
Could not get PHY for cpsw: addr 0
cpsw
Press SPACE to abort autoboot in 2 seconds
board_name=[BBBW] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
2168 bytes read in 34 ms (61.5 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-6.1.12-bone-rt-r15 ...
10240512 bytes read in 686 ms (14.2 MiB/s)
loading /boot/dtbs/6.1.12-bone-rt-r15/am335x-boneblack-wireless.dtb ...
97968 bytes read in 55 ms (1.7 MiB/s)
debug: [uboot_fdt_buffer=] ...
debug: [uboot_overlay_addr0=/lib/firmware/BB-I2C1-00A0.dtbo] ...
loading /lib/firmware/BB-I2C1-00A0.dtbo ...
1102 bytes read in 229 ms (3.9 KiB/s)
debug: [uboot_overlay_addr2=/lib/firmware/BB-PWM0-00A0.dtbo] ...
loading /lib/firmware/BB-PWM0-00A0.dtbo ...
1400 bytes read in 368 ms (2.9 KiB/s)
debug: [uboot_overlay_addr3=/lib/firmware/BB-PWM2-00A0.dtbo] ...
loading /lib/firmware/BB-PWM2-00A0.dtbo ...
1400 bytes read in 114 ms (11.7 KiB/s)
loading /boot/initrd.img-6.1.12-bone-rt-r15 ...
7333428 bytes read in 507 ms (13.8 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mm                                                                                                                                                             cblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 r                                                                                                                                                             ng_core.default_quality=100 quiet] ...
debug: [bootz 0x82000000 0x88080000:6fe634 88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   reserving fdt memory region: addr=88000000 size=19000
   Loading Ramdisk to 8f901000, end 8ffff634 ... OK
   Loading Device Tree to 8f8e5000, end 8f900fff ... OK

Starting kernel ...

[    0.001799] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001806] This ensures that you still see kernel messages. Please
[    0.001809] update your kernel commandline.
[    2.174724] omap_voltage_late_init: Voltage driver support not added
[    2.175007] PM: Cannot get wkup_m3_ipc handle
[    2.484459] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    2.538961] l3-aon-clkctrl:0000:0: failed to disable
[    2.541163] PM: Cannot get wkup_m3_ipc handle
rootfs: recovering journal

And I checked /lib/firmware/, both BB-SPIDEV0-00A0.dtbo and BB-SPIDEV1-00A0.dtbo are in there.

I don’t know if this helps but here are all the entries in /lib/firmware/

ACME-revB.dtbo                              BB-P9_27-LED-00A0.dtbo           PB-I2C1-MPU-9DOF-CLICK.dtbo
AM335X-20-00A0.dtbo                         BB-PWM-TIMER-P8.07.dtbo          PB-I2C1-RTC-6-CLICK.dtbo
AM335X-I2C1-400-00A0.dtbo                   BB-PWM-TIMER-P8.08.dtbo          PB-I2C1-RTC-CLICK.dtbo
AM335X-I2C2-400-00A0.dtbo                   BB-PWM-TIMER-P8.09.dtbo          PB-I2C1-RTC-PCF8523.dtbo
AM335X-PRU-RPROC-4-14-TI-00A0.dtbo          BB-PWM-TIMER-P8.10.dtbo          PB-I2C1-TLV320AIC3104.dtbo
AM335X-PRU-RPROC-4-14-TI-PRUCAPE-00A0.dtbo  BB-PWM0-00A0.dtbo                PB-I2C1-WEATHER-CLICK.dtbo
AM335X-PRU-RPROC-4-19-TI-00A0.dtbo          BB-PWM1-00A0.dtbo                PB-I2C2-ACCEL-TECHLAB-CAPE.dtbo
AM335X-PRU-RPROC-4-19-TI-PRUCAPE-00A0.dtbo  BB-PWM2-00A0.dtbo                PB-I2C2-MPU-9DOF-CLICK.dtbo
AM335X-PRU-UIO-00A0.dtbo                    BB-RELAY-4PORT-00A0.dtbo         PB-I2C2-RTC-6-CLICK.dtbo
BB-ADC-00A0.dtbo                            BB-RTC-01-00A0.dtbo              PB-I2C2-RTC-CLICK.dtbo
BB-BBBMINI-00A0.dtbo                        BB-SPI0-ADS8688-0A00.dtbo        PB-I2C2-RTC-PCF8523.dtbo
BB-BBBW-WL1835-00A0.dtbo                    BB-SPI0-AT86RF233-00A0.dtbo      PB-I2C2-WEATHER-CLICK.dtbo
BB-BBGG-WL1835-00A0.dtbo                    BB-SPI0-CC2520-00A0.dtbo         PB-MCP2515-SPI1.dtbo
BB-BBGW-WL1835-00A0.dtbo                    BB-SPI0-MCP23S08-00A0.dtbo       PB-MIKROBUS-0.dtbo
BB-BBGW-WL1835-1BIT-00A0.dtbo               BB-SPI0-MCP3008-00A0.dtbo        PB-MIKROBUS-1.dtbo
BB-BELA-B2.dtbo                             BB-SPI1-LTC2947-00A0.dtbo        PB-PWM-RGB-TECHLAB-CAPE.dtbo
BB-BONE-4D4C-01-00A1.dtbo                   BB-SPIDEV0-00A0.dtbo             PB-PWM-TIMER-P1.20.dtbo
BB-BONE-4D4N-01-00A1.dtbo                   BB-SPIDEV1-00A0.dtbo             PB-PWM-TIMER-P1.26.dtbo
BB-BONE-4D4R-01-00A1.dtbo                   BB-UART1-00A0.dtbo               PB-PWM-TIMER-P1.28.dtbo
BB-BONE-4D5C-01-00A1.dtbo                   BB-UART1-RTSCTS-00A0.dtbo        PB-PWM-TIMER-P2.27.dtbo
BB-BONE-4D5N-01-00A1.dtbo                   BB-UART2-00A0.dtbo               PB-PWM-TIMER-P2.31.dtbo
BB-BONE-4D5R-01-00A1.dtbo                   BB-UART2-00A1.dtbo               PB-SPI0-ETH-CLICK.dtbo
BB-BONE-4D7C-01-00A1.dtbo                   BB-UART2-RTSCTS-00A0.dtbo        PB-SPI0-ETH-WIZ-CLICK.dtbo
BB-BONE-4D7N-01-00A1.dtbo                   BB-UART3-00A0.dtbo               PB-SPI0-MICROSD-CLICK.dtbo
BB-BONE-4D7R-01-00A1.dtbo                   BB-UART4-00A0.dtbo               PB-SPI0-OLEDB-CLICK.dtbo
BB-BONE-AUDI-02-00A0.dtbo                   BB-UART4-E-INK.dtbo              PB-SPI0-OLEDC-CLICK.dtbo
BB-BONE-BACONE-00A0.dtbo                    BB-UART4-RS485-00A0.dtbo         PB-SPI0-RTC-5-CLICK.dtbo
BB-BONE-CRYPTO-00A0.dtbo                    BB-UART4-RTSCTS-00A0.dtbo        PB-SPI0-THUNDER-CLICK.dtbo
BB-BONE-DVID-01-00A3.dtbo                   BB-UART5-00A0.dtbo               PB-SPI1-7SEG-TECHLAB-CAPE.dtbo
BB-BONE-LCD3-01-00A2.dtbo                   BB-UART5-RTSCTS-00A0.dtbo        PB-SPI1-ETH-CLICK.dtbo
BB-BONE-LCD4-01-00A1.dtbo                   BB-VIEW-LCD4-01-00A0.dtbo        PB-SPI1-ETH-WIZ-CLICK.dtbo
BB-BONE-LCD5-01-00A1.dtbo                   BB-VIEW-LCD7-01-00A0.dtbo        PB-SPI1-MICROSD-CLICK.dtbo
BB-BONE-LCD7-01-00A1.dtbo                   BB-W1-P9.12-00A0.dtbo            PB-SPI1-OLEDB-CLICK.dtbo
BB-BONE-LCD7-01-00A2.dtbo                   BB-mBC1-ETH-CLICK.dtbo           PB-SPI1-OLEDC-CLICK.dtbo
BB-BONE-LCD7-01-00A3.dtbo                   BB-mBC1-ETH-WIZ-CLICK.dtbo       PB-SPI1-RTC-5-CLICK.dtbo
BB-BONE-NH7C-01-A0.dtbo                     BB-mBC1-RTC-5-CLICK.dtbo         PB-SPI1-THUNDER-CLICK.dtbo
BB-BONE-REACH-00A0.dtbo                     BB-mBC1-RTC-6-CLICK.dtbo         PB-UART4-GNSS-4-CLICK.dtbo
BB-BONE-REACH-00B0.dtbo                     BB-mBC2-ETH-CLICK.dtbo           PB-UART4-GNSS-5-CLICK.dtbo
BB-BONE-REPLICAP-00A4.dtbo                  BB-mBC2-ETH-WIZ-CLICK.dtbo       PB-UART4-TESEO-LIV3F.dtbo
BB-BONE-REPLICAP-00B1.dtbo                  BB-mBC2-RTC-5-CLICK.dtbo         PB-USB0-HOST.dtbo
BB-BONE-REPLICAP-00B2.dtbo                  BB-mBC2-RTC-6-CLICK.dtbo         PB-USB1-OTG.dtbo
BB-BONE-REPLICAP-00B3.dtbo                  BB-mBC2-UART1-TESEO-LIV3F.dtbo   PB-USB1-PERIPHERAL.dtbo
BB-BONE-REPLICAP-0A4A.dtbo                  BB-mBC3-ETH-CLICK.dtbo           PB-eqep2.dtbo
BB-BONE-REPLICAP-0B3A.dtbo                  BB-mBC3-ETH-WIZ-CLICK.dtbo       RTL8192E
BB-BONE-SERL-03-00A1.dtbo                   BB-mBC3-RTC-5-CLICK.dtbo         RoboticsCape-00A0.dtbo
BB-BONE-WL1835MOD-00A0.dtbo                 BB-mBC3-RTC-6-CLICK.dtbo         am335x-pru0-fw
BB-BONE-WL1837-00A0.dtbo                    BB-mBC3-UART1-TESEO-LIV3F.dtbo   am335x-pru0-fw.sleep
BB-BONE-WTHR-01-00B0.dtbo                   BB-mBC4-ETH-CLICK.dtbo           am335x-pru1-fw
BB-BONE-eMMC1-01-00A0.dtbo                  BB-mBC4-ETH-WIZ-CLICK.dtbo       am335x-pru1-fw.sleep
BB-CAN0-00A0.dtbo                           BB-mBC4-RTC-6-CLICK.dtbo         am33xx_pwm-00A0.dtbo
BB-CAN1-00A0.dtbo                           BB-mBC4-UART4-TESEO-LIV3F.dtbo   am57xx-pru1_0-fw
BB-CAPE-DISP-CT4-00A0.dtbo                  BBAI_BB-BONE-FACE-8CH-00A0.dtbo  am57xx-pru1_0-fw.sleep
BB-CTAG-SW-16CH-00A0.dtbo                   BBAI_BB-BONE-LCD4-01-00A1.dtbo   am57xx-pru1_1-fw
BB-CTAG-SW-8CH-00A0.dtbo                    BBAI_BB-BONE-LCD7-01-00A2.dtbo   am57xx-pru1_1-fw.sleep
BB-GATEWAY-WL1837-00A0.dtbo                 BBAI_BB-BONE-LCD7-01-00A3.dtbo   am57xx-pru2_0-fw
BB-GPIO-GROVE-BUTTON.dtbo                   BBAI_BBORG_COMMS-00A2.dtbo       am57xx-pru2_0-fw.sleep
BB-GPIO-GROVE-LED.dtbo                      BBAI_BBORG_MOTOR-00A2.dtbo       am57xx-pru2_1-fw
BB-GPIO-HCSR04.dtbo                         BBAI_BBORG_RELAY-00A2.dtbo       am57xx-pru2_1-fw.sleep
BB-GPIO-P9813.dtbo                          BBAI_TEMPLATE.dtbo               ar3k
BB-GREEN-HDMI-00A0.dtbo                     BBBLUE-GP0-SPI-00A0.dtbo         ar5523.bin
BB-HDMI-CEC-TDA998x-00A0.dtbo               BBBLUE-MPU9250-00A0.dtbo         ar7010.fw
BB-HDMI-TDA998x-00A0.dtbo                   BBBLUE-UDA1334-00A0.dtbo         ar7010_1_1.fw
BB-I2C1-00A0.dtbo                           BBIM-00A0.dtbo                   ar9271.fw
BB-I2C1-ADS1115.dtbo                        BBORG_COMMS-00A2.dtbo            ath10k
BB-I2C1-BME280.dtbo                         BBORG_DISPLAY18-00A2.dtbo        ath3k-1.fw
BB-I2C1-FAST-00A0.dtbo                      BBORG_DISPLAY70-00A2.dtbo        ath6k
BB-I2C1-JHD1802.dtbo                        BBORG_GAMEPUP-00A2.dtbo          ath9k_htc
BB-I2C1-MCP7940X-00A0.dtbo                  BBORG_LOAD-00A2.dtbo             bb-justboom-amp-00A0.dtbo
BB-I2C1-PCA9685-00A0.dtbo                   BBORG_MOTOR-00A2.dtbo            bb-justboom-dac-00A0.dtbo
BB-I2C1-RTC-DS3231.dtbo                     BBORG_PROTO-00A2.dtbo            bb-justboom-digi-00A0.dtbo
BB-I2C1-RTC-PCF8563.dtbo                    BBORG_RELAY-00A2.dtbo            bbb.io
BB-I2C1-SSD1306.dtbo                        BBORG_SERVO-00A2.dtbo            beaglelogic-00A0.dtbo
BB-I2C2-00A0.dtbo                           BBORG_TECHLAB-00A2.dtbo          bone_eqep0-00A0.dtbo
BB-I2C2-ADXL34X.dtbo                        BEAGLEBOY-0013.dtbo              bone_eqep1-00A0.dtbo
BB-I2C2-BME280.dtbo                         BW-ICE40Cape-00A0.dtbo           bone_eqep2-00A0.dtbo
BB-I2C2-FAST-00A0.dtbo                      BW-ICE40CapeV2-00A0.dtbo         bone_eqep2b-00A0.dtbo
BB-I2C2-LIS331DLH.dtbo                      DLPDLCR2000-00A0.dtbo            brcm
BB-I2C2-MPR121.dtbo                         DVK530-LCD4-01-00A0.dtbo         cape-CBB-Serial-r01.dtbo
BB-I2C2-PCF8523-00A0.dtbo                   EEPROM.dtbo                      cape-bone-ibb-00A0.dtbo
BB-I2C2-RTC-DS1307.dtbo                     GHI-DB-NH5C-00A0.dtbo            cape-bone-mrf24j40-00A0.dtbo
BB-I2C2-RTC-DS1338.dtbo                     GHI-LCD-00A0.dtbo                cypress
BB-I2C2-RTC-DS3231.dtbo                     GHI-TH-NH43C-00A0.dtbo           dev-USB-PWR-CTL-00A1.dtbo
BB-I2C2-RTC-MCP7940X.dtbo                   GHI-TH-NH43R-00A0.dtbo           htc_7010.fw
BB-I2C2-SHT3X.dtbo                          GHI-TH-NH7C-00A0.dtbo            htc_9271.fw
BB-I2C2-VL53L0X.dtbo                        M-BB-BBG-00A0.dtbo               qca
BB-LCD-ADAFRUIT-18-SPI0-00A0.dtbo           M-BB-BBGG-00A0.dtbo              rtl_bt
BB-LCD-ADAFRUIT-18-SPI1-00A0.dtbo           M-BB-OSD3358-SM-RED-00A0.dtbo    rtl_nic
BB-LCD-ADAFRUIT-24-SPI0-00A0.dtbo           M-BB-OSD3358-SM-RED-00A1.dtbo    rtlwifi
BB-LCD-ADAFRUIT-24-SPI1-00A0.dtbo           MCP2515-SPI0.dtbo                seeed-4mic-voicecard-00A0.dtbo
BB-MIKROBUS-CAPE-1.dtbo                     NL-AB-BBBC-00D0.dtbo             ti-connectivity
BB-MIKROBUS-CAPE-2.dtbo                     NL-AB-BBCL-00B0.dtbo             uio_pruss_enable-00A0.dtbo
BB-MIKROBUS-CAPE-3.dtbo                     OSD3358-00A0.dtbo                wil6210.brd
BB-MIKROBUS-CAPE-4.dtbo                     PB-CAN0-00A0.dtbo                wil6210.fw
BB-NHDMI-TDA998x-00A0.dtbo                  PB-CAN1-00A0.dtbo

That’s also very very old, it didn’t go beyond uboot_overlay_addr3, in your serial log… don’t remember exactly when i added add4+…

sudo apt update
sudo apt install bb-u-boot-am335x-evm
sudo /opt/u-boot/bb-u-boot-am335x-evm/install.sh

Regards,

Ah so it’s the uBoot too old.

Yes after the update I do see spidev0.0 spidev0.1 under /dev/. Are the dot in the spidevs normal?
I thought it would be something like spidev1

Since I only added BB-SPIDEV1-00A0.dtbo in /boot/uEnv.txt, is it normal to have both spidev0.0 and spidev0.1 showing up?

Thanks!

Correct, we’ve always exported 2 modes for spidev, going way back to 3.8.x era… src/arm/overlays/BB-SPIDEV0-00A0.dts · v6.1.x · BeagleBoard.org / BeagleBoard-DeviceTrees · GitLab

If you look real close, one has the spi-cpha; flag enabled…

Why… well that was decided a long time ago, it’s just been that way forever…

Regards,

1 Like

Thanks! I will mark this thread as solved