Hi,
I am working on Beaglebone AI with the Desktop version and I am trying to interface SPI Hardware with BB AI. I have flashed the latest image from this link (https://rcn-ee.net/rootfs/bb.org/testing/2021-11-29/buster-lxqt/am57xx-debian-10.11-lxqt-armhf-2021-11-29-4gb.img.xz) and edited the uEnv.txt to change the dtb to am5729-beagleboneai-roboticscape.dtb. Thereby in /dev/ folder spidev1.0 and spidev1.1 is available and Using config-pin, I configured Pin P9.28 to P9.31 for SPI. SPI 1.0 is getting open, but writing and reading into SPI is not happening. Please do the needful.
Few BB-AI board information:
root@beaglebone:~# uname -a
Linux beaglebone 4.19.94-ti-r68 #1buster SMP PREEMPT Thu Sep 16 15:32:31 UTC 2021 armv7l GNU/Linux
root@beaglebone:~# sudo /opt/scripts/tools/version.sh
git:/opt/scripts/:[1583f354594aabfaff08dee2a4aabdfe61433024]
model:[BeagleBoard.org_BeagleBone_AI]
dogtag:[BeagleBoard.org Debian Buster LXQt Image 2021-11-29]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2021.04-g702ea30b (Nov 19 2021 - 00:11:11 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am5729-beagleboneai-roboticscape.dts]
UBOOT: Loaded Overlay:[BBORG_FAN-A000.kernel]
kernel:[4.19.94-ti-r68]
nodejs:[v10.24.0]
device-tree-override:[dtb=am5729-beagleboneai-roboticscape.dtb]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-customizations]:[1.20210810.1-0~buster+20210810]
pkg:[bb-usb-gadgets]:[1.20211012.0-0~buster+20211012]
pkg:[bb-wl18xx-firmware]:[1.20210922.2-0~buster+20211007]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input bluetooth netdev gpio admin tisdk weston-launch cloud9ide]
cmdline:[console=ttyS0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 20.952934] remoteproc remoteproc0: 58820000.ipu is available
[ 20.955997] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 20.956017] remoteproc remoteproc0: powering up 58820000.ipu
[ 20.956061] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 20.956073] remoteproc remoteproc0: request_firmware failed: -2
[ 20.983450] remoteproc remoteproc1: 55020000.ipu is available
[ 21.013618] remoteproc remoteproc2: 40800000.dsp is available
[ 21.014491] remoteproc remoteproc3: 41000000.dsp is available
[ 21.025969] remoteproc remoteproc1: powering up 55020000.ipu
[ 21.025993] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3751356
[ 21.026257] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
[ 21.026283] remoteproc remoteproc2: powering up 40800000.dsp
[ 21.026351] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
[ 21.026366] remoteproc remoteproc2: request_firmware failed: -2
[ 21.038552] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
[ 21.038673] remoteproc remoteproc3: powering up 41000000.dsp
[ 21.038717] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
[ 21.038730] remoteproc remoteproc3: request_firmware failed: -2
[ 21.304562] remoteproc remoteproc1: registered virtio0 (type 7)
[ 21.304577] remoteproc remoteproc1: remote processor 55020000.ipu is now up
[ 31.309416] remoteproc remoteproc1: crash detected in 55020000.ipu: type watchdog
[ 31.317024] remoteproc remoteproc1: crash detected in 55020000.ipu: type watchdog
[ 31.324681] remoteproc remoteproc1: handling crash #1 in 55020000.ipu
[ 31.331579] remoteproc remoteproc1: recovering 55020000.ipu
[ 31.358121] remoteproc remoteproc1: stopped remote processor 55020000.ipu
[ 31.358136] remoteproc remoteproc1: powering up 55020000.ipu
[ 31.373879] remoteproc remoteproc1: Booting fw image dra7-ipu2-fw.xem4, size 3751356
[ 31.467380] remoteproc remoteproc1: registered virtio0 (type 7)
[ 31.467394] remoteproc remoteproc1: remote processor 55020000.ipu is now up
[ 38.588851] remoteproc remoteproc4: 4b234000.pru is available
[ 38.589463] remoteproc remoteproc5: 4b238000.pru is available
[ 38.591880] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.592065] remoteproc remoteproc6: releasing 4b2b8000.pru
[ 38.717818] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.718351] remoteproc remoteproc6: releasing 4b2b8000.pru
[ 38.724092] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.724641] remoteproc remoteproc6: releasing 4b2b8000.pru
dmesg | grep pru
[ 36.227007] pruss_uio_shmem 4b200000.pruss_shmem: Allocating gdev
[ 36.227022] pruss_uio_shmem 4b200000.pruss_shmem: Allocating info
[ 36.239131] pruss_uio_shmem 4b200000.pruss_shmem: Requesting resource
[ 36.239164] pruss_uio_shmem 4b200000.pruss_shmem: Mapping resource
[ 36.239205] pruss_uio_shmem 4b200000.pruss_shmem: Registering with uio driver
[ 36.239521] pruss_uio_shmem 4b200000.pruss_shmem: Saving platform data
[ 36.241661] pruss_uio_shmem 4b280000.pruss_shmem: Allocating gdev
[ 36.241671] pruss_uio_shmem 4b280000.pruss_shmem: Allocating info
[ 36.241681] pruss_uio_shmem 4b280000.pruss_shmem: Requesting resource
[ 36.241703] pruss_uio_shmem 4b280000.pruss_shmem: Mapping resource
[ 36.241721] pruss_uio_shmem 4b280000.pruss_shmem: Registering with uio driver
[ 36.242013] pruss_uio_shmem 4b280000.pruss_shmem: Saving platform data
[ 38.509299] pruss 4b280000.pruss: platform_get_irq_byname failed for host8 : -6
[ 38.588851] remoteproc remoteproc4: 4b234000.pru is available
[ 38.588962] pru-rproc 4b234000.pru: PRU rproc node pru@4b234000 probed successfully
[ 38.589463] remoteproc remoteproc5: 4b238000.pru is available
[ 38.589554] pru-rproc 4b238000.pru: PRU rproc node pru@4b238000 probed successfully
[ 38.591880] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.592065] remoteproc remoteproc6: releasing 4b2b8000.pru
[ 38.717818] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.718351] remoteproc remoteproc6: releasing 4b2b8000.pru
[ 38.724092] remoteproc remoteproc6: releasing 4b2b4000.pru
[ 38.724641] remoteproc remoteproc6: releasing 4b2b8000.pru
dmesg | grep pinctrl-single
[ 1.207172] pinctrl-single 4a003400.pinmux: 282 pins, size 1128
[ 1.576805] pinctrl-single 4a003400.pinmux: pin PIN231 already requested by 44000000.ocp:P8_03_pinmux; cannot claim for rcleds
[ 1.588285] pinctrl-single 4a003400.pinmux: pin-231 (rcleds) status -22
[ 1.594958] pinctrl-single 4a003400.pinmux: could not request pin 231 (PIN231) from group cape_pins_rc on device pinctrl-single
dmesg | grep gpio-of-helper
[ 1.219301] gpio-of-helper 44000000.ocp:cape-universal: ready
lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END
Thanks and Regards,
Mahaboob