B
B
Billy Milligan2018-08-06 14:35:53
linux
Billy Milligan, 2018-08-06 14:35:53

How to get SPI working on beaglebone black with debian 9.4?

On debian 7.8 everything worked fine. Recently a few new BBBs came in and I tried to boot my copy of the OS, but the boot does not work (everything is fine with the past BBBs), instead of a snake of LEDs, D4 just lights up.
I decided to switch to the latest version, it loads normally, only the problem is that SPI no longer works, everything else is fine with everything else. I am using spi1
bb.org-overlays updated
Here is my uEnv.txt:

#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

uname_r=4.14.49-ti-r54
#uuid=
#dtb=


###U-Boot Overlays###
###Documentation: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays
###Master Enable
enable_uboot_overlays=1
###
###Overide capes with eeprom
#uboot_overlay_addr0=/lib/firmware/<file0>.dtbo
#uboot_overlay_addr1=/lib/firmware/<file1>.dtbo
#uboot_overlay_addr2=/lib/firmware/<file2>.dtbo
#uboot_overlay_addr3=/lib/firmware/<file3>.dtbo
###
###Additional custom capes
uboot_overlay_addr4=/lib/firmware/BB-CAN1-00A0.dtbo
uboot_overlay_addr5=/lib/firmware/BB-SPIDEV1-00A0.dtbo
#uboot_overlay_addr6=/lib/firmware/<file6>.dtbo
#uboot_overlay_addr7=/lib/firmware/<file7>.dtbo
###
###Custom Cape
#dtb_overlay=/lib/firmware/BB-SPIDEV1-00A0.dtbo
###
###Disable auto loading of virtual capes (emmc/video/wireless/adc)
#disable_uboot_overlay_emmc=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
disable_uboot_overlay_wireless=1
disable_uboot_overlay_adc=1
###
###PRUSS OPTIONS
###pru_rproc (4.4.x-ti kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo
###pru_rproc (4.9.x-ti kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-9-TI-00A0.dtbo
###pru_rproc (4.14.x-ti kernel)
uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo
###pru_uio (4.4.x-ti, 4.9.x-ti, 4.14.x-ti & mainline/bone kernel)
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
###
###Cape Universal Enable
enable_uboot_cape_universal=1
###
###Debug: disable uboot autoload of Cape
#disable_uboot_overlay_addr0=1
#disable_uboot_overlay_addr1=1
#disable_uboot_overlay_addr2=1
#disable_uboot_overlay_addr3=1
###
###U-Boot fdt tweaks... (60000 = 384KB)
#uboot_fdt_buffer=0x60000
###U-Boot Overlays###

cmdline=coherent_pool=1M net.ifnames=0 quiet

#In the event of edid real failures, uncomment this next line:
#cmdline=coherent_pool=1M net.ifnames=0 quiet video=HDMI-A-1:[email protected]

##enable Generic eMMC Flasher:
##make sure, these tools are installed: dosfstools rsync
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

ls -al /dev/spidev* :
crw-rw---- 1 root spi 153, 1 Aug  6 11:20 /dev/spidev2.0
crw-rw---- 1 root spi 153, 0 Aug  6 11:20 /dev/spidev2.1

I can't figure out why it doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Billy Milligan, 2018-08-10
@Billy_Milligan

In general, the eMMC version has changed from 5 to 5.1 and the older version is not supported.
As I understand it, the addresses of the sections have changed.
Need to update Debian 7.9 kernel

sudo apt-get update
sudo cd /opt/scripts/tools/
sudo git pull
sudo ./update_kernel.sh
sudo reboot

Now it installs without problems. With spi on 9.4, I did not understand what the problem is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question