@@ -134,6 +134,12 Set the IP address for the second NTP server. | |||||
134 | ##### `ENABLE_CONSOLE`=true |
|
134 | ##### `ENABLE_CONSOLE`=true | |
135 | Enable serial console interface. Recommended if no monitor or keyboard is connected to the RPi2/3. In case of problems fe. if the network (auto) configuration failed - the serial console can be used to access the system. |
|
135 | Enable serial console interface. Recommended if no monitor or keyboard is connected to the RPi2/3. In case of problems fe. if the network (auto) configuration failed - the serial console can be used to access the system. | |
136 |
|
136 | |||
|
137 | ##### `ENABLE_I2C`=false | |||
|
138 | Enable I2C interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](http://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins. | |||
|
139 | ||||
|
140 | ##### `ENABLE_SPI`=false | |||
|
141 | Enable SPI interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](http://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins. | |||
|
142 | ||||
137 | ##### `ENABLE_IPV6`=true |
|
143 | ##### `ENABLE_IPV6`=true | |
138 | Enable IPv6 support. The network interface configuration is managed via systemd-networkd. |
|
144 | Enable IPv6 support. The network interface configuration is managed via systemd-networkd. | |
139 |
|
145 |
@@ -257,6 +257,22 if [ "$ENABLE_SOUND" = true ] ; then | |||||
257 | sed -i "s/^# snd_bcm2835/snd_bcm2835/" "${R}/lib/modules-load.d/rpi2.conf" |
|
257 | sed -i "s/^# snd_bcm2835/snd_bcm2835/" "${R}/lib/modules-load.d/rpi2.conf" | |
258 | fi |
|
258 | fi | |
259 |
|
259 | |||
|
260 | # Enable I2C interface | |||
|
261 | if [ "$ENABLE_I2C" = true ] ; then | |||
|
262 | echo "dtparam=i2c_arm=on" >> "${BOOT_DIR}/config.txt" | |||
|
263 | sed -i "s/^# i2c-bcm2708/i2c-bcm2708/" "${R}/lib/modules-load.d/rpi2.conf" | |||
|
264 | sed -i "s/^# i2c-dev/i2c-dev/" "${R}/lib/modules-load.d/rpi2.conf" | |||
|
265 | fi | |||
|
266 | ||||
|
267 | # Enable SPI interface | |||
|
268 | if [ "$ENABLE_SPI" = true ] ; then | |||
|
269 | echo "dtparam=spi=on" >> "${BOOT_DIR}/config.txt" | |||
|
270 | echo "spi-bcm2708" >> "${R}/lib/modules-load.d/rpi2.conf" | |||
|
271 | if [ "$RPI_MODEL" = 3 ] ; then | |||
|
272 | sed -i "s/spi-bcm2708/spi-bcm2835/" "${R}/lib/modules-load.d/rpi2.conf" | |||
|
273 | fi | |||
|
274 | fi | |||
|
275 | ||||
260 | # Install kernel modules blacklist |
|
276 | # Install kernel modules blacklist | |
261 | mkdir -p "${ETC_DIR}/modprobe.d/" |
|
277 | mkdir -p "${ETC_DIR}/modprobe.d/" | |
262 | install_readonly files/modules/raspi-blacklist.conf "${ETC_DIR}/modprobe.d/raspi-blacklist.conf" |
|
278 | install_readonly files/modules/raspi-blacklist.conf "${ETC_DIR}/modprobe.d/raspi-blacklist.conf" |
@@ -112,6 +112,8 APT_SERVER=${APT_SERVER:="ftp.debian.org"} | |||||
112 |
|
112 | |||
113 | # Feature settings |
|
113 | # Feature settings | |
114 | ENABLE_CONSOLE=${ENABLE_CONSOLE:=true} |
|
114 | ENABLE_CONSOLE=${ENABLE_CONSOLE:=true} | |
|
115 | ENABLE_I2C=${ENABLE_I2C:=false} | |||
|
116 | ENABLE_SPI=${ENABLE_SPI:=false} | |||
115 | ENABLE_IPV6=${ENABLE_IPV6:=true} |
|
117 | ENABLE_IPV6=${ENABLE_IPV6:=true} | |
116 | ENABLE_SSHD=${ENABLE_SSHD:=true} |
|
118 | ENABLE_SSHD=${ENABLE_SSHD:=true} | |
117 | ENABLE_NONFREE=${ENABLE_NONFREE:=false} |
|
119 | ENABLE_NONFREE=${ENABLE_NONFREE:=false} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant