PALcod3 / PiClusterProject

A documentation of my Raspberry Pi 4 Cluster Project
0 stars 0 forks source link

Edit raspi-config in ansible script #11

Open PALcod3 opened 2 years ago

PALcod3 commented 1 year ago

You can write the Interface Flags into /boot/config.txt. Initially the newly written image has this written inside the config.txt:

#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

So you have to check if it is written like above, or like #dtparam=spi=off or like dtparam=spi=off then change it to

dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=spi=on

If it is already like this, then do nothing.

But this has to be written as an ansible task