@@ -173,6 +173,9 Allow the installation of non-free Debian packages that do not comply with the D | |||
|
173 | 173 | ##### `ENABLE_WIRELESS`=false |
|
174 | 174 | Download and install the [closed-source firmware binary blob](https://github.com/RPi-Distro/firmware-nonfree/raw/master/brcm) that is required to run the internal wireless interface of the Raspberry Pi model `3`. This parameter is ignored if the specified `RPI_MODEL` is not `3`. |
|
175 | 175 | |
|
176 | ##### `ENABLE_BLUETOOTH`=false | |
|
177 | Enable Bluetooth interface on the RPi0/3. | |
|
178 | ||
|
176 | 179 | ##### `ENABLE_RSYSLOG`=true |
|
177 | 180 | If set to false, disable and uninstall rsyslog (so logs will be available only |
|
178 | 181 | in journal files) |
@@ -104,7 +104,10 if [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |||
|
104 | 104 | if [ "$ENABLE_CONSOLE" = true ] && [ "$ENABLE_UBOOT" = false ] ; then |
|
105 | 105 | echo "dtoverlay=pi3-disable-bt" >> "${BOOT_DIR}/config.txt" |
|
106 | 106 | echo "enable_uart=1" >> "${BOOT_DIR}/config.txt" |
|
107 | else | |
|
107 | fi | |
|
108 | fi | |
|
109 | ||
|
110 | if [ "$ENABLE_BLUETOOTH" = true ] ; then | |
|
108 | 111 |
|
|
109 | 112 |
|
|
110 | 113 | |
@@ -142,7 +145,6 if [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |||
|
142 | 145 |
|
|
143 | 146 |
|
|
144 | 147 |
|
|
145 | fi | |
|
146 | 148 | |
|
147 | 149 | # Create firmware configuration and cmdline symlinks |
|
148 | 150 | ln -sf firmware/config.txt "${R}/boot/config.txt" |
@@ -107,28 +107,26 if [ "$ENABLE_WIRELESS" = true ] ; then | |||
|
107 | 107 | as_nobody wget -q -O "${temp_dir}/brcmfmac43455-sdio.bin" "${WLAN_FIRMWARE_URL}/brcmfmac43455-sdio.bin" |
|
108 | 108 | as_nobody wget -q -O "${temp_dir}/brcmfmac43455-sdio.txt" "${WLAN_FIRMWARE_URL}/brcmfmac43455-sdio.txt" |
|
109 | 109 | as_nobody wget -q -O "${temp_dir}/brcmfmac43455-sdio.clm_blob" "${WLAN_FIRMWARE_URL}/brcmfmac43455-sdio.clm_blob" |
|
110 | ||
|
111 | # Move downloaded firmware binary blob | |
|
112 | mv "${temp_dir}/brcmfmac43455-sdio."* "${WLAN_FIRMWARE_DIR}/" | |
|
113 | ||
|
114 | # Set permissions of the firmware binary blob | |
|
115 | chown root:root "${WLAN_FIRMWARE_DIR}/brcmfmac43455-sdio."* | |
|
116 | chmod 600 "${WLAN_FIRMWARE_DIR}/brcmfmac43455-sdio."* | |
|
110 | 117 | elif [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 0 ] ; then |
|
111 | 118 | # Fetch firmware binary blob for RPi3 |
|
112 | 119 | as_nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.bin" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.bin" |
|
113 | 120 | as_nobody wget -q -O "${temp_dir}/brcmfmac43430-sdio.txt" "${WLAN_FIRMWARE_URL}/brcmfmac43430-sdio.txt" |
|
114 | fi | |
|
115 | 121 | |
|
116 | 122 |
|
|
117 | if [ "$RPI_MODEL" = 3P ] ; then | |
|
118 | mv "${temp_dir}/brcmfmac43455-sdio."* "${WLAN_FIRMWARE_DIR}/" | |
|
119 | elif [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 0 ] ; then | |
|
120 | 123 |
|
|
121 | fi | |
|
122 | ||
|
123 | # Remove temporary directory for firmware binary blob | |
|
124 | rm -fr "${temp_dir}" | |
|
125 | 124 | |
|
126 | 125 |
|
|
127 | if [ "$RPI_MODEL" = 3P ] ; then | |
|
128 | chown root:root "${WLAN_FIRMWARE_DIR}/brcmfmac43455-sdio."* | |
|
129 | chmod 600 "${WLAN_FIRMWARE_DIR}/brcmfmac43455-sdio."* | |
|
130 | elif [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 0 ] ; then | |
|
131 | 126 |
|
|
132 | 127 | chmod 600 "${WLAN_FIRMWARE_DIR}/brcmfmac43430-sdio."* |
|
133 | 128 | fi |
|
129 | ||
|
130 | # Remove temporary directory for firmware binary blob | |
|
131 | rm -fr "${temp_dir}" | |
|
134 | 132 | fi |
@@ -112,6 +112,7 APT_PROXY=${APT_PROXY:=""} | |||
|
112 | 112 | APT_SERVER=${APT_SERVER:="ftp.debian.org"} |
|
113 | 113 | |
|
114 | 114 | # Feature settings |
|
115 | ENABLE_BLUETOOTH=${ENABLE_BLUETOOTH:=false} | |
|
115 | 116 | ENABLE_CONSOLE=${ENABLE_CONSOLE:=true} |
|
116 | 117 | ENABLE_I2C=${ENABLE_I2C:=false} |
|
117 | 118 | ENABLE_SPI=${ENABLE_SPI:=false} |
@@ -387,6 +388,14 else | |||
|
387 | 388 | fi |
|
388 | 389 | fi |
|
389 | 390 | |
|
391 | if [ "$ENABLE_BLUETOOTH" = true ] ; then | |
|
392 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
393 | if [ "$ENABLE_CONSOLE" = false ] ; then | |
|
394 | APT_INCLUDES="${APT_INCLUDES},bluetooth,bluez" | |
|
395 | fi | |
|
396 | fi | |
|
397 | fi | |
|
398 | ||
|
390 | 399 | # Check if root SSH (v2) public key file exists |
|
391 | 400 | if [ -n "$SSH_ROOT_PUB_KEY" ] ; then |
|
392 | 401 | if [ ! -f "$SSH_ROOT_PUB_KEY" ] ; then |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant