Results 1 to 2 of 2

Thread: SPI with Kali on RPi3

  1. #1

    SPI with Kali on RPi3

    So SPI isn't working for me, I've been searching and searching, and trying different things.

    I have the spi_bcm2835 loaded, but if I load spidev, it doesn't show up with lsmod, and I don't have any /dev/spidev* devices.

    I have spi under sys:

    find /sys/ -iname 'spi*'
    /sys/bus/spi
    /sys/bus/spi/drivers/spidev
    /sys/bus/platform/drivers/spi-bcm2835
    /sys/class/spi_master
    /sys/class/spidev
    /sys/firmware/devicetree/base/soc/spi@7e204000
    /sys/firmware/devicetree/base/soc/spi@7e204000/spidev@0
    /sys/firmware/devicetree/base/soc/spi@7e204000/spidev@0/spi-max-frequency
    /sys/firmware/devicetree/base/soc/spi@7e204000/spidev@1
    /sys/firmware/devicetree/base/soc/spi@7e204000/spidev@1/spi-max-frequency
    /sys/firmware/devicetree/base/soc/gpio@7e200000/spi0_pins
    /sys/firmware/devicetree/base/__symbols__/spi0
    /sys/firmware/devicetree/base/__symbols__/spi0_pins
    /sys/firmware/devicetree/base/aliases/spi0
    /sys/firmware/devicetree/base/__overrides__/spi
    /sys/kernel/debug/tracing/events/spi
    /sys/kernel/debug/tracing/events/spi/spi_master_idle
    /sys/kernel/debug/tracing/events/spi/spi_master_busy
    /sys/kernel/debug/tracing/events/spi/spi_message_submit
    /sys/kernel/debug/tracing/events/spi/spi_message_start
    /sys/kernel/debug/tracing/events/spi/spi_message_done
    /sys/kernel/debug/tracing/events/spi/spi_transfer_start
    /sys/kernel/debug/tracing/events/spi/spi_transfer_stop
    /sys/module/spi_bcm2835
    /sys/module/spidev


    I did a bunch more searching and came up with an interesting post somewhere on the web that said he couldn't get SPI working unless spidev was compiled into the kernel.

    Does anyone else have spi working? do I need to compile it into the kernel?

    I noticed by default the config.txt file doesn't exist, and when I created it, it doesn't seem to make a difference. does Kali use this file? are there other ways to pass parameters to the kernel on boot?

    I'm compiling on the device right now but running out of space so I'll probably setup an environment to cross compile it when I have time, if I have to.

    Thanks for any help in advance.

  2. #2
    So you guys should get a good laugh out of this, after compiling new kernels with spidev build in....I found out I had "dtparm=spi=on" in my /boot/config.txt instead of "dtparm=spi=on".

    Got my /dev/spidev interfaces now lol

Similar Threads

  1. Kali USB Boot from RPi3
    By wzhang5460 in forum ARM Archive
    Replies: 0
    Last Post: 2017-11-18, 18:22
  2. How i installed kali on rPi3
    By Kali12345678 in forum How-To Archive
    Replies: 0
    Last Post: 2017-09-14, 00:50
  3. New kali image for RPi3?
    By k13pt0 in forum ARM Archive
    Replies: 0
    Last Post: 2016-08-18, 02:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •