##// END OF EJS Templates
Small fixes
drtyhlpr -
r429:05c30886f68b
parent child
Show More
@@ -2,7 +2,7
2 2 ########################################################################
3 3 # rpi23-gen-image.sh 2015-2017
4 4 #
5 # Advanced Debian "stretch" and "buster" bootstrap script for RPi2/3
5 # Advanced Debian "stretch" and "buster" bootstrap script for Raspberry Pi
6 6 #
7 7 # This program is free software; you can redistribute it and/or
8 8 # modify it under the terms of the GNU General Public License
@@ -36,7 +36,7 fi
36 36
37 37 # Introduce settings
38 38 set -e
39 echo -n -e "\n#\n# RPi2/3 Bootstrap Settings\n#\n"
39 echo -n -e "\n#\n# RPi 0/1/2/3 Bootstrap Settings\n#\n"
40 40 set -x
41 41
42 42 # Raspberry Pi model configuration
@@ -202,14 +202,14 set +x
202 202
203 203 # Setup architecture specific settings
204 204 if [ -n "$SET_ARCH" ] ; then
205 # 64 bit configuration
205 # 64-bit configuration
206 206 if [ "$SET_ARCH" = 64 ] ; then
207 # General 64 bit depended settings
207 # General 64-bit depended settings
208 208 QEMU_BINARY=${QEMU_BINARY:=/usr/bin/qemu-aarch64-static}
209 209 KERNEL_ARCH=${KERNEL_ARCH:=arm64}
210 210 KERNEL_BIN_IMAGE=${KERNEL_BIN_IMAGE:="Image"}
211 211
212 # Board specific settings
212 # Raspberry Pi model specific settings
213 213 if [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
214 214 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-arm64"
215 215 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi3_defconfig}
@@ -217,19 +217,19 if [ -n "$SET_ARCH" ] ; then
217 217 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel8.img}
218 218 CROSS_COMPILE=${CROSS_COMPILE:=aarch64-linux-gnu-}
219 219 else
220 echo "error: Only Raspberry PI 3 and 3B+ support 64 bit"
220 echo "error: Only Raspberry PI 3 and 3B+ support 64-bit"
221 221 exit 1
222 222 fi
223 223 fi
224 224
225 # 32 bit configuration
225 # 32-bit configuration
226 226 if [ "$SET_ARCH" = 32 ] ; then
227 # General 32 bit dependend settings
227 # General 32-bit dependend settings
228 228 QEMU_BINARY=${QEMU_BINARY:=/usr/bin/qemu-arm-static}
229 229 KERNEL_ARCH=${KERNEL_ARCH:=arm}
230 230 KERNEL_BIN_IMAGE=${KERNEL_BIN_IMAGE:="zImage"}
231 231
232 # Hardware specific settings
232 # Raspberry Pi model specific settings
233 233 if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] ; then
234 234 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armel"
235 235 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig}
@@ -238,7 +238,7 if [ -n "$SET_ARCH" ] ; then
238 238 CROSS_COMPILE=${CROSS_COMPILE:=arm-linux-gnueabi-}
239 239 fi
240 240
241 # Hardware specific settings
241 # Raspberry Pi model specific settings
242 242 if [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then
243 243 REQUIRED_PACKAGES="${REQUIRED_PACKAGES} crossbuild-essential-armhf"
244 244 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig}
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant