Ater setting up my Raspberry Pi Zero W with DietPi v150 I activated I2C module via the
dietpi-config tool. However, I need to use SPI in addition and since there is no such option in the config tool I decided to go the manual way and edit
/boot/config.txt. The original part of the file looks like this:
Which I changed into:
After saving the file and double-checking its contents again I rebooted the system by
sudo reboot and reconnected via
I wanted to check whether the SPI module has been loaded correctly. So I typed
lsmod | grep 'spi*' which printed nothing. So it seems that the module was not loaded and I tried
ls /dev/sp* which raised
ls: cannot access /dev/sp*: No such file or directory.
In order to get a clue about what was going on here I had a look into
Which shows that SPI module should not be activated when booting the system. Since I edited the file, as described above, I think that somewhat replaces the
/boot/config.txt with the default one during boot process.
I had another look around the Internet and found this forum entry which is essentially the same procedure I used to enable SPI module and check its activation. Since they use DietPi as well, I am a bit confues about what is going on here.
Does anyone which process is overriding my edited
/boot/config.txt during start-up or how I am able to enable the SPI module on DietPi?