##// END OF EJS Templates
Added: Disable RPi2/3 under-volt warnings (from michaelfranzl PR)
drtyhlpr -
r130:1d1cdd5d20ec
parent child
Show More
@@ -214,6 +214,9 Create an initramfs that that will be loaded during the Linux startup process. `
214 ##### `ENABLE_IFNAMES`=true
214 ##### `ENABLE_IFNAMES`=true
215 Enable automatic assignment of predictable, stable network interface names for all local Ethernet, WLAN interfaces. This might create complex and long interface names. This parameter is only supported if the Debian release `stretch` is used.
215 Enable automatic assignment of predictable, stable network interface names for all local Ethernet, WLAN interfaces. This might create complex and long interface names. This parameter is only supported if the Debian release `stretch` is used.
216
216
217 ##### `DISABLE_UNDERVOLT_WARNINGS`=
218 Disable RPi2/3 under-voltage warnings and overlays. Setting the parameter to ´1´ will disable the warning overlay. Setting it to ´2´ will additionally allow RPi2/3 turbo mode when low-voltage is present.
219
217 #### SSH settings:
220 #### SSH settings:
218 ##### `SSH_ENABLE_ROOT`=false
221 ##### `SSH_ENABLE_ROOT`=false
219 Enable password root login via SSH. This may be a security risk with default password, use only in trusted environments. `ENABLE_ROOT` must be set to `true`.
222 Enable password root login via SSH. This may be a security risk with default password, use only in trusted environments. `ENABLE_ROOT` must be set to `true`.
@@ -123,6 +123,11 if [ "$ENABLE_SPI" = true ] ; then
123 fi
123 fi
124 fi
124 fi
125
125
126 # Disable RPi2/3 under-voltage warnings
127 if [ ! -z "$DISABLE_UNDERVOLT_WARNINGS" ] ; then
128 echo "avoid_warnings=${DISABLE_UNDERVOLT_WARNINGS}" >> "${BOOT_DIR}/config.txt"
129 fi
130
126 # Install kernel modules blacklist
131 # Install kernel modules blacklist
127 mkdir -p "${ETC_DIR}/modprobe.d/"
132 mkdir -p "${ETC_DIR}/modprobe.d/"
128 install_readonly files/modules/raspi-blacklist.conf "${ETC_DIR}/modprobe.d/raspi-blacklist.conf"
133 install_readonly files/modules/raspi-blacklist.conf "${ETC_DIR}/modprobe.d/raspi-blacklist.conf"
@@ -146,6 +146,7 ENABLE_IPTABLES=${ENABLE_IPTABLES:=false}
146 ENABLE_SPLITFS=${ENABLE_SPLITFS:=false}
146 ENABLE_SPLITFS=${ENABLE_SPLITFS:=false}
147 ENABLE_INITRAMFS=${ENABLE_INITRAMFS:=false}
147 ENABLE_INITRAMFS=${ENABLE_INITRAMFS:=false}
148 ENABLE_IFNAMES=${ENABLE_IFNAMES:=true}
148 ENABLE_IFNAMES=${ENABLE_IFNAMES:=true}
149 DISABLE_UNDERVOLT_WARNINGS=${DISABLE_UNDERVOLT_WARNINGS:=}
149
150
150 # Kernel compilation settings
151 # Kernel compilation settings
151 BUILD_KERNEL=${BUILD_KERNEL:=false}
152 BUILD_KERNEL=${BUILD_KERNEL:=false}
@@ -213,6 +214,12 if [ "$ENABLE_WIRELESS" = true ] && [ "$RPI_MODEL" != 3 ] ; then
213 exit 1
214 exit 1
214 fi
215 fi
215
216
217 # Check if DISABLE_UNDERVOLT_WARNINGS parameter value is supported
218 if [ "$DISABLE_UNDERVOLT_WARNINGS" != 1 ] && [ "$DISABLE_UNDERVOLT_WARNINGS" != 2 ] ; then
219 echo "error: DISABLE_UNDERVOLT_WARNINGS=${DISABLE_UNDERVOLT_WARNINGS} is not supported"
220 exit 1
221 fi
222
216 # Set compiler packages and build RPi2/3 Linux kernel if required by Debian release
223 # Set compiler packages and build RPi2/3 Linux kernel if required by Debian release
217 if [ "$RELEASE" = "jessie" ] ; then
224 if [ "$RELEASE" = "jessie" ] ; then
218 COMPILER_PACKAGES="linux-compiler-gcc-4.8-arm g++ make bc"
225 COMPILER_PACKAGES="linux-compiler-gcc-4.8-arm g++ make bc"
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant