Migrate from https://cmakerhk.wordpress.com/2018/10/08/using-spi-on-rpi/
1 | sudo raspi-config |
Problem I have got:
“If the SPI driver was loaded, you should see the device /dev/spidev0.0”
BUT WHAT THE FUCK I DON”T HAVE THAT =.= …
http://neophob.com/2012/08/raspberry-pi-enable-the-spi-device/ (useless)
http://www.brianhensley.net/2012/07/getting-spi-working-on-the-raspberry-pi.html (USELESS)
=.= The Rpi-update will take you to the latest AND unstable version of kernal
So the official command should be
sudo apt-get update;
sudo apt-get install –reinstall raspberrypi-bootloader raspberrypi-kernal
To check your firmware:
$ uname -a
$ cat /proc/version
IT SHOULD BE VERY EASY TO turn SPI on, if everything is not right … don’t structgle. try flashing other kernal … since kernal problem is not that easy to handle >>>>> actually is impossible to handle
note:
I have tried to move the missing /dev/spidev0.0 and /dev/spidev0.1 file to that raspberry pi –>>
and hoping it will work fine… and it doesn’t work.
SPI workable kernal: Linux version 4.9.35-v7+
SPI not workable kernal: Linux version 4.14.73-v7+
Ref: https://www.raspberrypi.org/documentation/hardware/raspberrypi/spi/README.md
i2c
On bash:
i2cdetect