Hi, new to the forum. Going through various threads through the years on enabling SPI but I thought I would simply ask here what are the current instructions for current distros? Do I need to disable video and audio? I uncommented uEnv.txt those lines but that didn’t work. It looked like there are three distros to choose from (6.17x, 6.12x and 5.10-ti) and I chose 6.17x not knowing any better. Any thoughts and/or pointers is appreciated; thank you. Chris
There are two spidev overlays:
BB-SPIDEV0-00A0.dtbo
and
BB-SPIDEV1-00A0.dtbo
One conflicts with hdmi audio… So update /boot/uEnv.txt with:
enable_uboot_overlays=1
uboot_overlay_addr4=BB-SPIDEV0-00A0.dtbo
uboot_overlay_addr5=BB-SPIDEV1-00A0.dtbo
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
You can verify with sudo beagle-version
voodoo@PB2UBOOT:~$ sudo beagle-version
eeprom:[A335BNLT00D0BBB215050010]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Trixie Base Image 2025-09-05]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-gb4b56c73 (Oct 28 2025 - 17:45:28 +0000)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-gb4b56c73 (Oct 28 2025 - 17:45:28 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-SPIDEV0-00A0.kernel]
UBOOT: Loaded Overlay:[BB-SPIDEV1-00A0.kernel]
kernel:[6.18.0-rc5-bone6]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=BB-SPIDEV0-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=BB-SPIDEV1-00A0.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
Regards,
Worked like a charm; thank you ![]()
Hi,
So I can see my 2 SPI devices under /dev and was able to ask Google AI to produce code to interface an AS5147P using SP0 which actually worked. I did a little tweaking of the code and can run 2000 interations (arbitrary) and measure a magnet that is rotating underneath the device and can measure the rotational speed which on the low setting of the motor I have is around 700 rpm and the top speed is about 4,200 rpm. This motor was a simple fan purchased from Amazon that has a speed control. I made a 3d print of a plate that attaches to the fan enclosure and another part that attaches to this plate and is centered on the fan and is directly on a 3rd plate that is glued to the fan rotor. Good and cheap set-up to verify the AS5147P operation. But I have a couple of more questions if I may :
- I want to move this code to one of the PRUs but it appears this release is missing some packages to develop this code? So far I haven’t been able to get all the stuff needed onto my BBB to test the PRU.
- Of the three images that are on the BB download page, is there one that has all the stuff needed to do development of PRU code? I see (on 10/29/2025) v6.17, v6.12 amd v5.10-ti. What are the differences between them? Maybe one of them is the correct one to do development work and the others are for other purposes?
Thank you,
Chris