[BBB] (5.15.x-bone) SPI not working

Can you try doing an sudo apt install bb-beagle-version

You are probably basing your custom kernel on a pretty old version of Debian. Not sure when exactly that script was added.

You can do cat /etc/dogtag

Also grep pinctrl-single /var/log/syslog will highlight any pin muxing issues

***edit ***
Have you got /opt/scripts/tools/version.sh ?

sudo beagle-version

debian@arm:~$ sudo beagle-version
eeprom:[A335BNLT00C02208SBB13007]
model:[TI_AM335x_BeagleBone_Black]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot SPL 2022.04-dirty (Apr 04 2023 - 18:10:15 +0530)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-SPIDEV0-00A0.kernel]
UBOOT: Loaded Overlay:[BB-SPIDEV1-00A0.kernel]
kernel:[5.15.95-bone-rt-r34]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr5=/boot/dtbs/5.15.95-bone-rt-r34/overlays/BB-SPIDEV1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr6=/boot/dtbs/5.15.95-bone-rt-r34/overlays/BB-SPIDEV0-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]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
WARNING:pkg:[bb-cape-overlays]:[NOT_INSTALLED]
WARNING:pkg:[bb-customizations]:[NOT_INSTALLED]
WARNING:pkg:[bb-usb-gadgets]:[NOT_INSTALLED]
WARNING:pkg:[bb-wl18xx-firmware]:[NOT_INSTALLED]
pkg:[kmod]:[28-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20210315-3]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input netdev i2c admin tisdk weston-launch bluetooth cloud9ide gpio]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait]
dmesg | grep remote
[    1.497070] remoteproc remoteproc0: wkup_m3 is available
[    1.982451] remoteproc remoteproc0: powering up wkup_m3
[    1.982481] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    1.982724] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   25.323005] remoteproc remoteproc1: 4a334000.pru is available
[   25.347779] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   25.323005] remoteproc remoteproc1: 4a334000.pru is available
[   25.347779] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[    1.515214] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.918423] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
[    1.918441] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
[    1.918452] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
[    1.924395] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
[    1.924419] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
[    1.924430] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
[    2.109276] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
[    2.109301] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
[    2.109312] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single
dmesg | grep gpio-of-helper
[    1.905547] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    1.905753] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    1.905944] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    1.906119] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    1.906522] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    1.906715] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    1.906991] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    1.907196] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    1.907381] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    1.907559] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    1.907613] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_13'
[    1.907621] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    2.038570] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[    2.038772] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[    2.039434] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[    2.039758] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[    2.039969] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[    2.040267] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[    2.040410] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[    2.040536] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[    2.040685] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[    2.040809] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[    2.041030] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[    2.041205] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[    2.041503] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[    2.041775] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[    2.041969] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[    2.042155] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[    2.042343] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[    2.042519] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[    2.042695] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[    2.046084] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[    2.046407] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[    2.046610] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[    2.047347] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[    2.047673] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[    2.047860] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[    2.048183] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[    2.048441] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[    2.048629] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[    2.048909] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[    2.049086] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[    2.049282] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[    2.049476] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[    2.049648] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[    2.049827] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[    2.054525] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[    2.054748] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[    2.054981] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[    2.055167] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[    2.055354] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[    2.055528] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[    2.055809] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[    2.056010] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[    2.056271] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[    2.056530] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[    2.056726] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[    2.056968] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[    2.057166] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[    2.057340] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[    2.057527] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[    2.057722] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[    2.057894] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[    2.058094] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[    2.058272] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[    2.058453] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[    2.058636] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[    2.058859] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[    2.059068] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[    2.059247] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[    2.059879] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[    2.060101] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[    2.060279] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[    2.060458] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[    2.060641] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[    2.060813] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[    2.060991] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[    2.061161] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[    2.061341] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[    2.061533] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[    2.061712] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[    2.061723] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

You can do cat /etc/dogtag

debian@arm:~$ cat /etc/dogtag
cat: /etc/dogtag: No such file or directory

Also grep pinctrl-single /var/log/syslog will highlight any pin muxing issues

debian@arm:~$ grep pinctrl-single /var/log/syslog 
Oct  6 19:46:19 arm kernel: [    1.462597] pinctrl-single 44e10800.pinmux: 142 pins, size 568
Oct  6 19:46:19 arm kernel: [    1.718745] pinctrl-single 44e10800.pinmux: pin PIN40 already requested by panel; cannot claim for 0-0070
Oct  6 19:46:19 arm kernel: [    1.718757] pinctrl-single 44e10800.pinmux: pin-40 (0-0070) status -22
Oct  6 19:46:19 arm kernel: [    1.718767] pinctrl-single 44e10800.pinmux: could not request pin 40 (PIN40) from group nxp_hdmi_bonelt_pins  on device pinctrl-single
Oct  6 19:46:32 arm kernel: [   31.058319] pinctrl-single 44e10800.pinmux: pin PIN107 already requested by gpio_output; cannot claim for 48038000.mcasp
Oct  6 19:46:32 arm kernel: [   31.058346] pinctrl-single 44e10800.pinmux: pin-107 (48038000.mcasp) status -22
Oct  6 19:46:32 arm kernel: [   31.058358] pinctrl-single 44e10800.pinmux: could not request pin 107 (PIN107) from group mcasp0_pins  on device pinctrl-single
Jul 19 06:49:45 arm kernel: [    1.515802] pinctrl-single 44e10800.pinmux: 142 pins, size 568
Jul 19 06:49:45 arm kernel: [    1.941989] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
Jul 19 06:49:45 arm kernel: [    1.942010] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
Jul 19 06:49:45 arm kernel: [    1.942022] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
Jul 19 06:49:45 arm kernel: [    1.948121] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
Jul 19 06:49:45 arm kernel: [    1.948144] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
Jul 19 06:49:45 arm kernel: [    1.948155] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
Jul 19 06:49:45 arm kernel: [    2.127890] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
Jul 19 06:49:45 arm kernel: [    2.127916] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
Jul 19 06:49:45 arm kernel: [    2.127928] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single
Jul 19 06:52:23 arm kernel: [    1.515534] pinctrl-single 44e10800.pinmux: 142 pins, size 568
Jul 19 06:52:23 arm kernel: [    1.940157] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
Jul 19 06:52:23 arm kernel: [    1.940177] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
Jul 19 06:52:23 arm kernel: [    1.940188] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
Jul 19 06:52:23 arm kernel: [    1.946235] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
Jul 19 06:52:23 arm kernel: [    1.946259] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
Jul 19 06:52:23 arm kernel: [    1.946270] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
Jul 19 06:52:23 arm kernel: [    2.132664] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
Jul 19 06:52:23 arm kernel: [    2.132689] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
Jul 19 06:52:23 arm kernel: [    2.132700] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single
Jul 19 06:57:01 arm kernel: [    1.515214] pinctrl-single 44e10800.pinmux: 142 pins, size 568
Jul 19 06:57:01 arm kernel: [    1.918423] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
Jul 19 06:57:01 arm kernel: [    1.918441] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
Jul 19 06:57:01 arm kernel: [    1.918452] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
Jul 19 06:57:01 arm kernel: [    1.924395] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
Jul 19 06:57:01 arm kernel: [    1.924419] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
Jul 19 06:57:01 arm kernel: [    1.924430] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
Jul 19 06:57:01 arm kernel: [    2.109276] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
Jul 19 06:57:01 arm kernel: [    2.109301] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
Jul 19 06:57:01 arm kernel: [    2.109312] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single

Have you got /opt/scripts/tools/version.sh ?
– No, I don’t have scripts folder in /opt/

debian@arm:~$ /opt/scripts/tools/version.sh
-bash: /opt/scripts/tools/version.sh: No such file or directory
debian@arm:~$ /opt/
backup/ source/

This isn’t an issue, but it will break things later…

Change:

uboot_overlay_addr5=/boot/dtbs/5.15.95-bone-rt-r34/overlays/BB-SPIDEV1-00A0.dtbo
uboot_overlay_addr6=/boot/dtbs/5.15.95-bone-rt-r34/overlays/BB-SPIDEV0-00A0.dtbo

to:

uboot_overlay_addr5=BB-SPIDEV1-00A0.dtbo
uboot_overlay_addr6=BB-SPIDEV0-00A0.dtbo
dmesg | grep pinctrl-single
[    1.515214] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.918423] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
[    1.918441] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
[    1.918452] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
[    1.924395] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
[    1.924419] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
[    1.924430] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
[    2.109276] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
[    2.109301] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
[    2.109312] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single

yeap, that’s why spi broke… let me look into it…

Regards,

@RobertCNelson

When i try to write overlays as you mentioned it is giving unable to find error during boot up.
Below i’ve attached the boot up messages after changing /boot/uEnv.txt as you mentioned.

U-Boot SPL 2019.04-00002-g31a8ae0206 (May 13 2020 - 09:26:17 -0500)
Trying to boot from MMC2
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **


U-Boot 2019.04-00002-g31a8ae0206 (May 13 2020 - 09:26:17 -0500), Build: jenkins-github_Bootloader-Builder-139

CPU  : AM335X-GP rev 2.1
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
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
cpsw, usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
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
2358 bytes read in 36 ms (63.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-5.15.95-bone-rt-r34 ...
9929216 bytes read in 666 ms (14.2 MiB/s)
debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=] ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot.dtb ...
loading /boot/dtbs/5.15.95-bone-rt-r34/am335x-boneblack-uboot.dtb ...
96922 bytes read in 91 ms (1 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-ADC-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 BB-SPIDEV1-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 BB-SPIDEV0-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo]...
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...
debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe5000, end 8ffffa99 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.95-bone-rt-r34 (devika@devika-Latitude-3410) (arm-linux-gnueabi-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38) #1 PREEMPT_RT Wed Jul 19 
10:25:16 IST 2023
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129666
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 450100K/523264K available (10240K kernel code, 1653K rwdata, 3748K rodata, 1024K init, 492K bss, 24012K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 46078 entries in 136 pages
[    0.000000] ftrace: allocated 136 pages with 2 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU priority boosting: priority 1 delay 500 ms.
[    0.000000] rcu:     RCU_SOFTIRQ processing moved to rcuc kthreads.
[    0.000000]  No expedited grace period (rcu_normal_after_boot).
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000022] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000350] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001721] Console: colour dummy device 80x30
[    0.001756] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001762] This ensures that you still see kernel messages. Please
[    0.001765] update your kernel commandline.
[    0.001793] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.020420] pid_max: default: 32768 minimum: 301
[    0.020903] LSM: Security Framework initializing
[    0.021072] landlock: Up and running.
[    0.021076] Yama: becoming mindful.
[    0.021350] AppArmor: AppArmor initialized
[    0.021362] TOMOYO Linux initialized
[    0.021403] LSM support for eBPF active
[    0.021639] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.021657] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.023383] CPU: Testing write buffer coherency: ok
[    0.023452] CPU0: Spectre v2: using BPIALL workaround
[    0.025289] Setting up static identity map for 0x80100000 - 0x80100054
[    0.025470] rcu: Hierarchical SRCU implementation.
[    0.027111] EFI services will not be available.
[    0.027957] devtmpfs: initialized
[    0.052533] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.052998] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.053030] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.058214] pinctrl core: initialized pinctrl subsystem
[    0.059342] DMI not present or invalid.
[    0.060197] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.068850] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.069485] audit: initializing netlink subsys (disabled)
[    0.070795] thermal_sys: Registered thermal governor 'fair_share'
[    0.070807] thermal_sys: Registered thermal governor 'bang_bang'
[    0.070812] thermal_sys: Registered thermal governor 'step_wise'
[    0.070816] thermal_sys: Registered thermal governor 'user_space'
[    0.071396] cpuidle: using governor ladder
[    0.071476] cpuidle: using governor menu
[    0.072513] audit: type=2000 audit(0.068:1): state=initialized audit_enabled=0 res=1
[    0.088379] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.105633] cryptd: max_cpu_qlen set to 1000
[    0.111642] raid6: skip pq benchmark and using algorithm neonx8
[    0.111658] raid6: using neon recovery algorithm
[    0.114812] iommu: Default domain type: Translated 
[    0.114825] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.117087] SCSI subsystem initialized
[    0.117447] usbcore: registered new interface driver usbfs
[    0.117543] usbcore: registered new interface driver hub
[    0.117619] usbcore: registered new device driver usb
[    0.118101] pps_core: LinuxPPS API ver. 1 registered
[    0.118109] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.118131] PTP clock support registered
[    0.120061] NetLabel: Initializing
[    0.120072] NetLabel:  domain hash size = 128
[    0.120078] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.120172] NetLabel:  unlabeled traffic allowed by default
[    0.121441] clocksource: Switched to clocksource dmtimer
[    0.249880] VFS: Disk quotas dquot_6.6.0
[    0.250005] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.250212] FS-Cache: Loaded
[    0.250609] CacheFiles: Loaded
[    0.251565] AppArmor: AppArmor Filesystem Enabled
[    0.279709] NET: Registered PF_INET protocol family
[    0.279975] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.281279] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 5120 bytes, linear)
[    0.281536] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.281567] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.281653] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[    0.281736] TCP: Hash tables configured (established 4096 bind 4096)
[    0.282048] MPTCP token hash table entries: 512 (order: 1, 12288 bytes, linear)
[    0.282152] UDP hash table entries: 256 (order: 1, 12288 bytes, linear)
[    0.282193] UDP-Lite hash table entries: 256 (order: 1, 12288 bytes, linear)
[    0.282472] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.290264] RPC: Registered named UNIX socket transport module.
[    0.290275] RPC: Registered udp transport module.
[    0.290280] RPC: Registered tcp transport module.
[    0.290283] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.290295] NET: Registered PF_XDP protocol family
[    1.271762] Initialise system trusted keyrings
[    1.272174] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.282407] zbud: loaded
[    1.285063] FS-Cache: Netfs 'nfs' registered for caching
[    1.286340] NFS: Registering the id_resolver key type
[    1.286393] Key type id_resolver registered
[    1.286399] Key type id_legacy registered
[    1.286581] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.286590] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.286633] jffs2: version 2.2. (NAND) (SUMMARY)  �© 2001-2006 Red Hat, Inc.
[    1.287676] fuse: init (API version 7.34)
[    1.381023] xor: automatically using best checksumming function   neon      
[    1.381045] Key type asymmetric registered
[    1.381051] Asymmetric key parser 'x509' registered
[    1.381236] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.381588] io scheduler mq-deadline registered
[    1.386053] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.396032] usbcore: registered new interface driver smsc95xx
[    1.398489] i2c_dev: i2c /dev entries driver

[    1.398653] Driver for 1-wire Dallas network protocol.
Welcome to Debian GNU/Linux 11 (bullseye)!

[    1.399743] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    1.399755] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[    1.400666] cpuidle: enable-method property 'ti,am3352' found operations
[    1.401333] sdhci: Secure Digital Host Controller Interface driver
[    1.401341] sdhci: Copyright(c) Pierre Ossman
[    1.401688] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.402729] hid: raw HID events driver (C) Jiri Kosina
[    1.403082] usbcore: registered new interface driver usbhid
[    1.403090] usbhid: USB HID core driver
[    1.403595] drop_monitor: Initializing network drop monitor service
[    1.404861] NET: Registered PF_INET6 protocol family
[    1.410203] Segment Routing with IPv6
[    1.410304] In-situ OAM (IOAM) with IPv6
[    1.410463] mip6: Mobile IPv6
[    1.410475] NET: Registered PF_PACKET protocol family
[    1.410886] Key type dns_resolver registered
[    1.410896] mpls_gso: MPLS GSO support
[    1.411064] ThumbEE CPU extension supported.
[    1.411083] Registering SWP/SWPB emulation handler
[    1.411089] omap_voltage_late_init: Voltage driver support not added
[    1.411367] PM: Cannot get wkup_m3_ipc handle
[    1.412173] registered taskstats version 1
[    1.412195] Loading compiled-in X.509 certificates
[    1.412598] zswap: loaded using pool lzo/zbud
[    1.413162] Key type .fscrypt registered
[    1.413173] Key type fscrypt-provisioning registered
[    1.421197] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    1.423115] Key type encrypted registered
[    1.423138] AppArmor: AppArmor sha1 policy hashing enabled
[    1.423192] ima: No TPM chip found, activating TPM-bypass!
[    1.423262] ima: Allocated hash algorithm: sha256
[    1.423355] ima: No architecture policies found
[    1.423439] evm: Initialising EVM extended attributes:
[    1.423444] evm: security.selinux
[    1.423448] evm: security.SMACK64 (disabled)
[    1.423452] evm: security.SMACK64EXEC (disabled)
[    1.423456] evm: security.SMACK64TRANSMUTE (disabled)
[    1.423460] evm: security.SMACK64MMAP (disabled)
[    1.423463] evm: security.apparmor
[    1.423467] evm: security.ima
[    1.423470] evm: security.capability
[    1.423473] evm: HMAC attrs: 0x1
[    1.449754] remoteproc remoteproc0: wkup_m3 is available
[    1.461797] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.465893] ti-sysc: probe of 44e31000.target-module failed with error -16
[    1.469241] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.471521] omap_rtc 44e3e000.rtc: already running
[    1.473152] omap_rtc 44e3e000.rtc: registered as rtc0
[    1.473200] omap_rtc 44e3e000.rtc: setting system clock to 2023-07-20T06:12:45 UTC (1689833565)
[    1.478883] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 25, base_baud = 3000000) is a 8250
[    1.483577] ti-sysc: probe of 48040000.target-module failed with error -16
[    1.495481] OMAP GPIO hardware version 0.1
[    1.501015] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    1.506086] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    1.510249] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 35, base_baud = 3000000) is a 8250
[    1.526084] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    1.526503] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    1.527126] tilcdc 4830e000.lcdc: no encoders/connectors found
[    1.536031] omap_rng 48310000.rng: Random Number Generator ver. 20
[    1.541747] random: crng init done
[    1.581486] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.583538] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.583830] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    1.583842] cpsw-switch 4a100000.switch: ALE Table size 1024
[    1.583933] cpsw-switch 4a100000.switch: cpts: overflow check period 1250 (jiffies)
[    1.583945] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[    1.584040] cpsw-switch 4a100000.switch: Detected MACID = 3c:e4:b0:01:0c:a7
[    1.586288] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[    1.603019] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    1.603051] edma 49000000.dma: TI EDMA DMA engine driver
[    1.608916] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
[    1.609235] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
[    1.616123] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
[    1.616405] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
[    1.639192] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.639385] omap-sham 53100000.sham: will run requests pump with realtime priority
[    1.642793] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.643154] omap-aes 53500000.aes: will run requests pump with realtime priority
[    1.648886] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    1.654106] l3-aon-clkctrl:0000:0: failed to disable
[    1.655328] OF: graph: no port node found in /fb@4830e000
[    1.655627] OF: graph: no port node found in /fb@4830e000
[    1.655743] tilcdc 4830e000.fb: failed to get functional clock
[    1.655803] ------------[ cut here ]------------
[    1.655809] WARNING: CPU: 0 PID: 9 at drivers/clk/clk.c:4345 tilcdc_fini+0x53/0x88
[    1.655838] Modules linked in:
[    1.655851] CPU: 0 PID: 9 Comm: kworker/u2:0 Not tainted 5.15.95-bone-rt-r34 #1
[    1.655863] Hardware name: Generic AM33XX (Flattened Device Tree)
[    1.655872] Workqueue: events_unbound deferred_probe_work_func
[    1.655897] [<c010bbbd>] (unwind_backtrace) from [<c01096dd>] (show_stack+0x11/0x14)
[    1.655923] [<c01096dd>] (show_stack) from [<c0aad845>] (dump_stack_lvl+0x19/0x1e)
[    1.655954] [<c0aad845>] (dump_stack_lvl) from [<c01228f3>] (__warn+0xbb/0xbc)
[    1.655979] [<c01228f3>] (__warn) from [<c0aa60e1>] (warn_slowpath_fmt+0x41/0x7c)
[    1.655996] [<c0aa60e1>] (warn_slowpath_fmt) from [<c074bc17>] (tilcdc_fini+0x53/0x88)
[    1.656012] [<c074bc17>] (tilcdc_fini) from [<c074be41>] (tilcdc_init.constprop.0+0x181/0x498)
[    1.656027] [<c074be41>] (tilcdc_init.constprop.0) from [<c074c18f>] (tilcdc_pdev_probe+0x37/0x74)
[    1.656040] [<c074c18f>] (tilcdc_pdev_probe) from [<c07608df>] (platform_probe+0x43/0x84)
[    1.656059] [<c07608df>] (platform_probe) from [<c075e9db>] (really_probe+0x9b/0x334)
[    1.656073] [<c075e9db>] (really_probe) from [<c075ece9>] (__driver_probe_device+0x75/0x178)
[    1.656086] [<c075ece9>] (__driver_probe_device) from [<c075ee23>] (driver_probe_device+0x37/0x9c)
[    1.656099] [<c075ee23>] (driver_probe_device) from [<c075f275>] (__device_attach_driver+0x65/0xc0)
[    1.656112] [<c075f275>] (__device_attach_driver) from [<c075d0cd>] (bus_for_each_drv+0x4d/0x80)
[    1.656136] [<c075d0cd>] (bus_for_each_drv) from [<c075eff7>] (__device_attach+0x73/0x15c)
[    1.656151] [<c075eff7>] (__device_attach) from [<c075de0b>] (bus_probe_device+0x5b/0x60)
[    1.656167] [<c075de0b>] (bus_probe_device) from [<c075e613>] (deferred_probe_work_func+0x7f/0xac)
[    1.656182] [<c075e613>] (deferred_probe_work_func) from [<c013779b>] (process_one_work+0x133/0x3e0)
[    1.656207] [<c013779b>] (process_one_work) from [<c0137f0f>] (worker_thread+0x17f/0x42c)
[    1.656224] [<c0137f0f>] (worker_thread) from [<c013cb73>] (kthread+0x123/0x14c)
[    1.656245] [<c013cb73>] (kthread) from [<c0100139>] (ret_from_fork+0x11/0x38)
[    1.656259] Exception stack(0xc19a1fb0 to 0xc19a1ff8)
[    1.656268] 1fa0:                                     00000000 00000000 00000000 00000000
[    1.656277] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.656285] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.656292] ---[ end trace 0000000000000002 ]---
[    1.659596] PM: Cannot get wkup_m3_ipc handle
[    1.662440] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 19, base_baud = 3000000) is a 8250
[    1.662754] printk: console [ttyS0]: printing thread started
[    1.662777] printk: console [ttyS0] enabled
[    1.693803] tps65217-pmic: Failed to locate of_node [id: -1]
[    1.702924] tps65217-bl: Failed to locate of_node [id: -1]
[    1.705876] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.707563] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    1.707699] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.718750] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    1.719090] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[    1.720331] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    1.720350] sdhci-omap 48060000.mmc: Got CD GPIO
[    1.720508] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    1.722126] remoteproc remoteproc0: powering up wkup_m3
[    1.722152] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    1.722373] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    1.722438] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    1.723841] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    1.753001] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    1.782075] Console: switching to colour frame buffer device 100x30
[    1.787633] mmc0: new high speed SDHC card at address 0007
[    1.788880] mmcblk0: mmc0:0007 SD32G 29.0 GiB 
[    1.792599]  mmcblk0: p1
[    1.805109] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
[    1.839395] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.839439] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    1.839724] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    1.839739] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.839748] usb usb1: Product: MUSB HDRC host driver
[    1.839755] usb usb1: Manufacturer: Linux 5.15.95-bone-rt-r34 musb-hcd
[    1.839762] usb usb1: SerialNumber: musb-hdrc.1
[    1.840640] hub 1-0:1.0: USB hub found
[    1.840696] hub 1-0:1.0: 1 port detected
[    1.855072] PM: bootloader does not support rtc-only!
[    1.855637] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
[    1.856619] input: tps65217_pwrbutton as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0b000.target-module/44e0b000.i2c/i2c-0/0-
0024/tps65217-pwrbutton/input/input0
[    1.873524] input: gpio_input as /devices/platform/gpio_input/input/input1
[    1.914594] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    1.914713] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    1.924848] devtmpfs: mounted
[    1.938787] Freeing unused kernel image (initmem) memory: 1024K
[    1.945513] Checked W+X mappings: passed, no W+X pages found
[    1.945548] Run /sbin/init as init process
[    1.979081] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[    2.759325] systemd[1]: systemd 247.3-7+deb11u1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +AC
L +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[    2.760189] systemd[1]: Detected architecture arm.
[    2.793866] systemd[1]: Set hostname to <arm>.
[    4.080032] systemd-fstab-generator[168]: Failed to create unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?
[    4.080232] systemd-fstab-generator[168]: Failed to create unit file /run/systemd/generator/-.mount, as it already exists. Duplicate entry in /etc/fstab?
[    4.334910] systemd[164]: /lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
[    5.224558] systemd[1]: Queued start job for default target Graphical Interface.
[  OK  ] Created slice system-getty.slice    5.240519] systemd[1]: Created slice system-getty.slice.
m.
[  OK  ] Created slice system-modprobe.slice[    5.264788] systemd[1]: Created slice system-modprobe.slice.
.
[    5.289214] systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice User and Session Slic[    5.316441] systemd[1]: Created slice User and Session Slice.
e.
[  OK  ] Started Dispatch Password �…ts to [    5.338825] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
Console Directory Watch.
[  OK  ] Started Forward Password R�…uests [    5.362706] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
to Wall Directory Watch.
[  OK  ] Set up automount Arbitrary�…s File[    5.387663] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
 System Automount Point.
[  OK  ] Reached target Local Encrypted Volu[    5.414492] systemd[1]: Reached target Local Encrypted Volumes.
mes.
[  OK  ] Reached target Paths.[    5.438580] systemd[1]: Reached target Paths.

[  OK  ] Reached target Remote File Systems   5.458232] systemd[1]: Reached target Remote File Systems.
[0m.
[  OK  ] Reached target Slices.[    5.482170] systemd[1]: Reached target Slices.

[  OK  ] Reached target Swap.[    5.502366] systemd[1]: Reached target Swap.

[  OK  ] Listening on Syslog Socket.[    5.534178] systemd[1]: Listening on Syslog Socket.

[  OK  ] Listening on fsck to fsckd communic[    5.555196] systemd[1]: Listening on fsck to fsckd communication Socket.
ation Socket.
[  OK  ] Listening on initctl Compatibility [    5.578859] systemd[1]: Listening on initctl Compatibility Named Pipe.
Named Pipe.
[  OK  ] Listening on Journal Audit Socket    5.603719] systemd[1]: Listening on Journal Audit Socket.
0m.
[  OK  ] Listening on Journal Socket (/dev/l[    5.627239] systemd[1]: Listening on Journal Socket (/dev/log).
og).
[  OK  ] Listening on Journal Socket.[    5.651534] systemd[1]: Listening on Journal Socket.

[  OK  ] Listening on udev Control Socket    5.675674] systemd[1]: Listening on udev Control Socket.
m.
[  OK  ] Listening on udev Kernel Socket[    5.699118] systemd[1]: Listening on udev Kernel Socket.
.
[    5.723363] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
         Mounting POSIX Message Queue File System..[    5.738665] systemd[1]: Mounting POSIX Message Queue File System...
.
         Mounting Kernel Debug File System...[    5.780582] systemd[1]: Mounting Kernel Debug File System...

[    5.826698] systemd[1]: Mounting Kernel Trace File System...
         Mounting Kernel Trace File System...
         Starting Restore / save the current clock.[    5.883200] systemd[1]: Starting Restore / save the current clock...
..
         Starting Create list of st�…odes for the curr[    5.928903] systemd[1]: Starting Create list of static device nodes for the current kernel...
ent kernel...
         Starting Load Kernel Module configfs...[    5.999665] systemd[1]: Starting Load Kernel Module configfs...

         Starting Load Kernel Module drm...[    6.046988] systemd[1]: Starting Load Kernel Module drm...

         Starting Load Kernel Module fuse...[    6.094975] systemd[1]: Starting Load Kernel Module fuse...

[    6.126716] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    6.147819] systemd[1]: Starting File System Check on Root Device...
         Starting File System Check on Root Device...
         Starting Journal Service...[    6.215606] systemd[1]: Starting Journal Service...

         Starting Load Kernel Modules...[    6.264650] systemd[1]: Starting Load Kernel Modules...

         Starting Coldplug All udev Devices...[    6.347043] systemd[1]: Starting Coldplug All udev Devices...

[  OK  ] Mounted POSIX Message Queue File Sy[    6.445115] systemd[1]: Mounted POSIX Message Queue File System.
stem.
[  OK  ] Mounted Kernel Debug File System    6.463536] systemd[1]: Mounted Kernel Debug File System.
m.
[  OK  ] Mounted Kernel Trace File System    6.488815] systemd[1]: Mounted Kernel Trace File System.
m.
[  OK  ] Finished Restore / save the current[    6.535313] systemd[1]: Finished Restore / save the current clock.
 clock.
[  OK  ] Finished Create list of st�… nodes[    6.582951] systemd[1]: Finished Create list of static device nodes for the current kernel.
 for the current kernel.
[  OK  ] Finished Load Kernel Module configf[    6.614190] systemd[1]: modprobe@configfs.service: Succeeded.
s.
[  OK  ] Finished Load Kernel Module drm[    6.638635] systemd[1]: Finished Load Kernel Module configfs.
.
[    6.671319] systemd[1]: modprobe@drm.service: Succeeded.
[  OK  ] Finished Load Kernel Module fuse    6.686030] systemd[1]: Finished Load Kernel Module drm.
m.
[    6.725388] systemd[1]: modprobe@fuse.service: Succeeded.
[    6.741991] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished File System Check on Root [    6.805916] systemd[1]: Finished File System Check on Root Device.
Device.
[  OK  ] Finished Load Kernel Modules.[    6.857999] systemd[1]: Finished Load Kernel Modules.

         Mounting FUSE Control File System...[    6.898357] systemd[1]: Mounting FUSE Control File System...

         Mounting Kernel Configuration File System.[    6.978321] systemd[1]: Mounting Kernel Configuration File System...
..
[  OK  ] Started File System Check Daemon to[    7.064980] systemd[1]: Started File System Check Daemon to report status.
 report status.
         Starting Remount Root and Kernel File Systems   7.152358] systemd[1]: Starting Remount Root and Kernel File Systems...
[0m...
         Starting Apply Kernel Variables...[    7.218934] systemd[1]: Starting Apply Kernel Variables...

[  OK  ] Mounted FUSE Control File System    7.297719] systemd[1]: Mounted FUSE Control File System.
m.
[    7.319365] systemd[1]: Mounted Kernel Configuration File System.
[  OK  ] Mounted Kernel Configuration File System.
[  OK  ] Finished Apply Kernel Variables[    7.557984] systemd[1]: Finished Apply Kernel Variables.
.
[  OK  ] Started Journal Service.[    7.643598] systemd[1]: Started Journal Service.

[    7.685251] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[    7.689668] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
[  OK  ] Finished Remount Root and Kernel Fi[    7.691146] EXT4-fs (mmcblk0p1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
le Systems.
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting Create System Users...
[    8.058847] systemd-journald[190]: Received client request to flush runtime journal.
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Rule-based Manage�…for Device Events and Files...
[  OK  ] Finished Coldplug All udev Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Finished Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target System Time Set.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Periodic ext4 Onli�…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
         Starting Remove Stale Onli�…t4 Metadata Check Snapshots...
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting User Login Management...
         Starting WPA supplicant...
[  OK  ] Started System Logging Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
[  OK  ] Finished Remove Stale Onli�…ext4 Metadata Check Snapshots.
[  OK  ] Started Network Manager.
         Starting Hostname Service...
[  OK  ] Started User Login Management.
[  OK  ] Started Modem Manager.
[  OK  ] Started Hostname Service.
         Starting Network Manager Script Dispatcher Service...
[  OK  ] Started Network Manager Script Dispatcher Service.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Reached target Hardware activated USB gadget.
[  OK  ] Listening on Load/Save RF �…itch Status /dev/rfkill Watch.
[   23.145864] remoteproc remoteproc1: 4a334000.pru is available
[   23.182367] remoteproc remoteproc2: 4a338000.pru is available
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
         Starting Raise network interfaces...
[   24.006874] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
[   24.099666] SMSC LAN8710/LAN8720 4a101000.mdio:00: attached PHY driver (mii_bus:phy_addr=4a101000.mdio:00, irq=POLL)
[   26.178458] cpsw-switch 4a100000.switch eth0: Link is Up - 100Mbps/Full - flow control off
[   26.178533] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Finished Raise network interfaces.
[  OK  ] Reached target Network.
         Starting A high performanc�… and a reverse proxy server...
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Finished Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started A high performance�…er and a reverse proxy server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.

Debian GNU/Linux 11 arm ttyS0

dmesg | grep pinctrl-single
[    1.515214] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.918423] pinctrl-single 44e10800.pinmux: pin PIN56 already requested by ocp:P8_27_pinmux; cannot claim for panel
[    1.918441] pinctrl-single 44e10800.pinmux: pin-56 (panel) status -22
[    1.918452] pinctrl-single 44e10800.pinmux: could not request pin 56 (PIN56) from group mylcdc1_pins_default  on device pinctrl-single
[    1.924395] pinctrl-single 44e10800.pinmux: pin PIN14 already requested by ocp:P8_16_pinmux; cannot claim for gpio_output
[    1.924419] pinctrl-single 44e10800.pinmux: pin-14 (gpio_output) status -22
[    1.924430] pinctrl-single 44e10800.pinmux: could not request pin 14 (PIN14) from group gpio_output  on device pinctrl-single
[    2.109276] pinctrl-single 44e10800.pinmux: pin PIN38 already requested by ocp:P8_10_pinmux; cannot claim for gpio_input
[    2.109301] pinctrl-single 44e10800.pinmux: pin-38 (gpio_input) status -22
[    2.109312] pinctrl-single 44e10800.pinmux: could not request pin 38 (PIN38) from group gpio_input  on device pinctrl-single

I fixed all these errors by commenting enable_uboot_cape_universal=1 in /boot/uEnv.txt

debian@arm:~$ dmesg | grep pinctrl-single
[    1.461765] pinctrl-single 44e10800.pinmux: 142 pins, size 568
debian@arm:~$ 

But now also SPI status is same, it is not writing values and i’m not getting sclk.

Thanks,
Anusha

When you followed the instructions on the link provided, did you also build u-boot ?
Because you should have a newer version than that shown. It is also possible why the overlays did not load after you made the changes Robert suggested

I would add, I think those instructions may be a little out of date, but @RobertCNelson would be able to tell you for sure.

@benedict.hewson

Yes, I followed the same instructions on link[Debian: Getting Started with the BeagleBone Black - Linux Guides - Electronic Component and Engineering Solution Forum - TechForum │ Digi-Key] provided to install and build the u-boot.

Bootloader: U-Boot

Das U-Boot – the Universal Boot Loader: http://www.denx.de/wiki/U-Boot
Depending on your Linux Distribution, you will also need a host gcc and other tools, so with Debian/Ubuntu start with installing the build-essential meta package.

#Requirements
sudo apt install bison build-essential flex swig

Download:

#user@localhost:~$
git clone -b v2022.04 https://github.com/u-boot/u-boot --depth=1
cd u-boot/

Patches:

#user@localhost:~/u-boot$
git pull --no-edit https://git.beagleboard.org/beagleboard/u-boot.git v2022.04-bbb.io-am335x-am57xx

Configure and Build:

#user@localhost:~/u-boot$
make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=${CC}

Thanks,
Anusha

@RobertCNelson ,
Please let us know if we missed any instructions as @benedict.hewson mentioned that instructions provided on [Debian: Getting Started with the BeagleBone Black - Linux Guides - Electronic Component and Engineering Solution Forum - TechForum │ Digi-Key]
this link is out of date. It would really helpful if you share the latest instructions.

Thanks,
Anusha

I am just following the instructions to see if it works for me. compiling kernel now. will be a few minutes

Ok, so now followed the instructions mostly from your link.

I skipped the TI BSP part as it should not effect the results.

Basically these are the instructions - (when building the kernel, when the config menu comes up, I just exited as by default it should work )

cd ~/tmp
mkdir RCN
cd RCN
wget -c https://rcn-ee.com/rootfs/eewiki/minfs/debian-11.5-minimal-armhf-2022-10-06.tar.xz
pwd
wget -c https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11
wget -c https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/11.3.0/x86_64-gcc-11.3.0-nolibc-arm-linux-gnueabi.tar.xz
tar -xf x86_64-gcc-11.3.0-nolibc-arm-linux-gnueabi.tar.xz
vi setenv
. ./setenv 
echo $CC
${CC}gcc --version
git clone -b v2022.04 https://github.com/u-boot/u-boot --depth=1
cd u-boot/
git pull --no-edit https://git.beagleboard.org/beagleboard/u-boot.git v2022.04-bbb.io-am335x-am57xx
make ARCH=arm CROSS_COMPILE=${CC} distclean
make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig
make ARCH=arm CROSS_COMPILE=${CC}
cd ..
git clone https://github.com/RobertCNelson/bb-kernel ./kernelbuildscripts
cd kernelbuildscripts/
git checkout origin/am33x-rt-v5.15 -b tmp
./build_kernel.sh
sudo apt install lz4
./build_kernel.sh
sudo apt-get install lzma libmpc-dev
./build_kernel.sh
ls
cd ..
ls
lsblk
export DISK=/dev/mmcblk0
sudo dd if=/dev/zero of=${DISK} bs=1M count=10
sudo dd if=./u-boot/MLO of=${DISK} count=2 seek=1 bs=128k
sudo dd if=./u-boot/u-boot-dtb.img of=${DISK} count=4 seek=1 bs=
sudo dd if=./u-boot/u-boot-dtb.img of=${DISK} count=4 seek=1 bs=384k
sudo sfdisk --version
sudo sfdisk ${DISK} <<-__EOF__
4M,,L,*
__EOF__

sudo mkfs.ext4 -V
sudo mkfs.ext4 -L rootfs -O ^metadata_csum,^64bit ${DISK}p1
sudo mkdir -p /media/rootfs/
sudo mount ${DISK}p1 /media/rootfs/
sudo mkdir -p /media/rootfs/opt/backup/uboot/
sudo cp -v ./u-boot/MLO /media/rootfs/opt/backup/uboot/
sudo cp -v ./u-boot/u-boot-dtb.img /media/rootfs/opt/backup/uboot/
export kernel_version=5.15.119-bone-rt-r40
sudo tar xfvp ./debian-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
sync
sudo sh -c "echo 'uname_r=${kernel_version}' >> /media/rootfs/boot/uEnv.txt"
sudo cp -v ./kernelbuildscripts/deploy/${kernel_version}.zImage /media/rootfs/boot/vmlinuz-${kernel_version}
sudo mkdir -p /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./kernelbuildscripts/deploy/${kernel_version}-dtbs.tar.gz -C /media/rootfs/boot/dtbs/${kernel_version}/
sudo tar xfv ./kernelbuildscripts/deploy/${kernel_version}-modules.tar.gz -C /media/rootfs/
sudo sh -c "echo '/dev/mmcblk0p1  /  auto  errors=remount-ro  0  1' >> /media/rootfs/etc/fstab"
sudo nano /media/rootfs/etc/network/interfaces
sync
sudo umount /media/rootfs
   

Then I bootedmy BBB with the new sd card.

After booting I edit uEnv.txt to contain the following

uname_r=5.15.119-bone-rt-r40

enable_uboot_overlays=1
vt.global_cursor_default=0
uboot_overlay_addr5=/boot/dtbs/5.15.95-bone-rt-r34/overlays/BB-SPIDEV1-00A0.dt>
enable_uboot_cape_universal=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1

uboot_overlay_addr5=BB-SPIDEV1-00A0.dtbo
uboot_overlay_addr6=BB-SPIDEV0-00A0.dtbo

Note the is no path on th overlay lines.

Rebooted. The overlays are loaded just fine.

I expect you have not updated u-boot.
The u-boot version I have is U-Boot 2022.04-00037-ge0d31da5 (Jul 20 2023 - 09:08:41 +0100)

Yous is dated May 2020 so pretty old.

After booting I did, as root

apt update
apt install python3-pip
pip3 install spidev

Then created this spitest.py

#!/usr/bin/python3

import spidev
spi = spidev.SpiDev()
spi.open(1,0)
spi.max_speed_hz=10000
value = spi.xfer2([85,85,85,85])
print(value)
spi.close()

And checking the output on a DSO and SPI clock is going so probably everything is fine.

I suggest you work your way through the instructions again, as you have at the very least missed or skipped the u-boot section.

*** edit I did not install any desktop or extra files other than those required to install the python spidev module.

*** edit 2. The eMMC on my board is blank. If yours isn’t and you are booting from SD make sure you hold down the button by the SD card socket.

There we go… Version of uboot is really old…

sudo apt update; sudo apt install bb-u-boot-am335x-evm

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

Regards,

It’s an old topic but it helps me.
I was able to ru SPI today.

But I need to launch :

modprobe spidev

Here is my beagle-version :

eeprom:[A335BNLT00C02208SBB15148]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Bookworm Minimal Image 2023-10-07]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2022.04-ge0d31da5 (Aug 04 2023 - 18:48:26 +0000)]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0.kernel]
UBOOT: Loaded Overlay:[BB-SPIDEV0-00A0.kernel]
UBOOT: Loaded Overlay:[BB-UART1-00A0.kernel]
UBOOT: Loaded Overlay:[BB-UART4-00A0.kernel]
kernel:[5.10.168-ti-r77]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr2=/lib/firmware/BB-UART4-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-SPIDEV0-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
WARNING:pkg:[bb-cape-overlays]:[NOT_INSTALLED]
pkg:[bb-customizations]:[1.20240119.0-0~bookworm+20240119]
pkg:[bb-usb-gadgets]:[1.20240403.0-0~bookworm+20240403]
pkg:[bb-wl18xx-firmware]:[1.20230414.0-0~bookworm+20230414]
pkg:[kmod]:[30+20221128-1]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
cmdline:[console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[   10.640569] remoteproc remoteproc0: wkup_m3 is available
[   22.168126] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[   48.097661] remoteproc remoteproc0: powering up wkup_m3
[   48.097704] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[   48.098014] remoteproc remoteproc0: remote processor wkup_m3 is now up
[   71.713877] remoteproc remoteproc1: 4a334000.pru is available
[   71.764956] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[   71.713877] remoteproc remoteproc1: 4a334000.pru is available
[   71.764956] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[   10.104583] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[   10.106273] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_03'
[   10.106302] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[   10.921057] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P8_03'
[   10.921312] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P8_04'
[   10.921529] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P8_05'
[   10.921741] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P8_06'
[   10.922233] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P8_07'
[   10.922461] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P8_08'
[   10.922668] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P8_09'
[   10.922865] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P8_10'
[   10.923082] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P8_11'
[   10.923389] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P8_12'
[   10.923719] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P8_13'
[   10.923934] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P8_14'
[   10.924131] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P8_15'
[   10.924359] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P8_16'
[   10.924577] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P8_17'
[   10.924785] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P8_18'
[   10.924988] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P8_19'
[   10.925174] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P8_20'
[   10.925370] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P8_21'
[   10.925567] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P8_22'
[   10.925758] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P8_23'
[   10.925956] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P8_24'
[   10.926172] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P8_25'
[   10.926381] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P8_26'
[   10.926604] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P8_27'
[   10.926797] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P8_28'
[   10.927017] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P8_29'
[   10.927210] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P8_30'
[   10.927527] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P8_31'
[   10.927740] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P8_32'
[   10.927939] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P8_33'
[   10.928168] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P8_34'
[   10.928357] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P8_35'
[   10.928559] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P8_36'
[   10.928764] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P8_37'
[   10.928955] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P8_38'
[   10.929156] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P8_39'
[   10.929351] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P8_40'
[   10.929544] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P8_41'
[   10.929752] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P8_42'
[   10.929962] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P8_43'
[   10.930160] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P8_44'
[   10.930356] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P8_45'
[   10.930545] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P8_46'
[   10.930773] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name='P9_11'
[   10.930986] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name='P9_12'
[   10.931189] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name='P9_13'
[   10.931493] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name='P9_14'
[   10.931696] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name='P9_15'
[   10.931913] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name='P9_16'
[   10.932106] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name='P9_17'
[   10.932311] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name='P9_18'
[   10.932518] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name='P9_19'
[   10.932710] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name='P9_20'
[   10.932909] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name='P9_21'
[   10.933108] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name='P9_22'
[   10.933331] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name='P9_23'
[   10.933547] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name='P9_24'
[   10.934069] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name='P9_25'
[   10.934302] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name='P9_26'
[   10.934512] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name='P9_27'
[   10.934710] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name='P9_28'
[   10.934914] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name='P9_29'
[   10.935113] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name='P9_30'
[   10.935428] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name='P9_31'
[   10.935655] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name='P9_41'
[   10.935866] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name='P9_91'
[   10.936101] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name='P9_42'
[   10.936311] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name='P9_92'
[   10.936323] gpio-of-helper ocp:cape-universal: ready
dmesg | grep wlcore
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

What should I do to make it start with the board ?

Thanks

https://wiki.debian.org/Modules#Automatic_loading_of_modules

1 Like

Robert,

Thanks for the link.

It seems I have found a solution to make it works as it should be in my felling.
I restart from scratch with a fresh install of the minimal debian.
I modify uEnv.txt with only SPIDEV0-00A0.dtbo loaded at “address 5”.
At reboot I saw spidev after launching lsmod | grep spidev
And rebooting many times show it works fine and I saw what I want on the scope.

One strange thing is that I only enable spidev0 but spidev1 is also present in /dev/

debian@BeagleBone:~$ ls /dev/
apm_bios         dri          log           mmcblk1rpmb  spidev0.0  tty16  tty30  tty45  tty6      uhid     vcsa6
autofs           fd           loop-control  mqueue       spidev0.1  tty17  tty31  tty46  tty60     uinput   vcsu
block            full         loop0         net          spidev1.0  tty18  tty32  tty47  tty61     urandom  vcsu1
bone             fuse         loop1         null         spidev1.1  tty19  tty33  tty48  tty62     vcs      vcsu2
btrfs-control    gpiochip0    loop2         ppp          stderr     tty2   tty34  tty49  tty63     vcs1     vcsu3
bus              gpiochip1    loop3         ptmx         stdin      tty20  tty35  tty5   tty7      vcs2     vcsu4
cachefiles       gpiochip2    loop4         ptp0         stdout     tty21  tty36  tty50  tty8      vcs3     vcsu5
char             gpiochip3    loop5         pts          tty        tty22  tty37  tty51  tty9      vcs4     vcsu6
console          hwrng        loop6         random       tty0       tty23  tty38  tty52  ttyGS0    vcs5     vhci
counter0         i2c-0        loop7         remoteproc   tty1       tty24  tty39  tty53  ttyS0     vcs6     watchdog
counter1         i2c-1        mapper        rfkill       tty10      tty25  tty4   tty54  ttyS1     vcsa     watchdog0
counter2         i2c-2        mem           rtc          tty11      tty26  tty40  tty55  ttyS2     vcsa1    watchdog1
cpu_dma_latency  iio:device0  mmcblk1       rtc0         tty12      tty27  tty41  tty56  ttyS3     vcsa2    zero
cuse             initctl      mmcblk1boot0  shm          tty13      tty28  tty42  tty57  ttyS4     vcsa3
disk             input        mmcblk1boot1  snapshot     tty14      tty29  tty43  tty58  ttyS5     vcsa4
dma_heap         kmsg         mmcblk1p1     snd          tty15      tty3   tty44  tty59  ubi_ctrl  vcsa5

I made some other tests and it appears that when on a fresh install I load in the same time SPIDEV and one UART inside uEnv.txt, spidev is not “starting”.

If I do SPIDEV fisrt, reboot and UARTs after it’s OK.

Thanks for your help.

At the end there is no need to load SPIDEV0 and 1 from uEnv.txt.
It starts without and modifying uEnv.txt to force it to launch makes it crash/stop probably…

Thanks a lot for your help. :pray:

The 2 peripheral spidev bus is always loaded when that driver is loaded.

Only the pinmux is wired to the spidev peripheral with the overlay added…

Regards,

@RobertCNelson

Thank for your explanation.
It’s clear for me.

Is the following link still up to date ?
Digikey - Debian: Getting Started with the BeagleBone Black