##// END OF EJS Templates
All other RPI devices added
Unknown -
r254:e2c8cfd64f4b
parent child
Show More
@@ -67,7 +67,14 A comma separated list of additional packages to be installed by apt after boots
67 67
68 68 #### General system settings:
69 69 ##### `RPI_MODEL`=2
70 Specifiy the target Raspberry Pi hardware model. The script at this time supports the Raspberry Pi models `2`,`3` and `3B`. `BUILD_KERNEL`=true will automatically be set if the Raspberry Pi model `3` or `3B` is used.
70 Specifiy the target Raspberry Pi hardware model. The script at this time supports the following Raspberry Pi models:
71 `0` = Used for Raspberry Pi 0 and Raspberry Pi 0 W
72 `1` = Used for Pi 1 model A and B
73 `1P` = Used for Pi 1 model B+ and A+
74 `2` = Used for Pi 2 model B
75 `3` = Used for Pi 3 model B
76 `3P` = Used for Pi 3 model B+
77 `BUILD_KERNEL`=true will automatically be set if the Raspberry Pi model `3` or `3P` is used.
71 78
72 79 ##### `RELEASE`="jessie"
73 80 Set the desired Debian release name. The script at this time supports the bootstrapping of the Debian releases "jessie", "stretch" and "buster". `BUILD_KERNEL`=true will automatically be set if the Debian releases `stretch` or `buster` are used.
@@ -42,12 +42,24 set -x
42 42
43 43 # Raspberry Pi model configuration
44 44 RPI_MODEL=${RPI_MODEL:=2}
45 #bcm2708-rpi-0-w.dtb (Used for Pi 0 and PI 0W)
46 RPI0_DTB_FILE=${RPI0_DTB_FILE:=bcm2708-rpi-0-w.dtb}
47 RPI0_UBOOT_CONFIG=${RPI0_UBOOT_CONFIG:=rpi_defconfig}
48 #bcm2708-rpi-b.dtb (Used for Pi 1 model A and B)
49 RPI1_DTB_FILE=${RPI1_DTB_FILE:=bcm2708-rpi-b.dtb}
50 RPI1_UBOOT_CONFIG=${RPI1_UBOOT_CONFIG:=rpi_defconfig}
51 #bcm2708-rpi-b-plus.dtb (Used for Pi 1 model B+ and A+)
52 RPI1P_DTB_FILE=${RPI1P_DTB_FILE:=bcm2708-rpi-b-plus.dtb}
53 RPI1P_UBOOT_CONFIG=${RPI1P_UBOOT_CONFIG:=rpi_defconfig}
54 #bcm2709-rpi-2-b.dtb (Used for Pi 2 model B)
45 55 RPI2_DTB_FILE=${RPI2_DTB_FILE:=bcm2709-rpi-2-b.dtb}
46 56 RPI2_UBOOT_CONFIG=${RPI2_UBOOT_CONFIG:=rpi_2_defconfig}
57 #bcm2710-rpi-3-b.dtb (Used for Pi 3 model B)
47 58 RPI3_DTB_FILE=${RPI3_DTB_FILE:=bcm2710-rpi-3-b.dtb}
48 59 RPI3_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig}
49 RPI3B_DTB_FILE=${RPI3B_DTB_FILE:=bcm2710-rpi-3-b-plus.dtb}
50 RPI3B_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig}
60 #bcm2710-rpi-3-b-plus.dtb (Used for Pi 3 model B+)
61 RPI3P_DTB_FILE=${RPI3P_DTB_FILE:=bcm2710-rpi-3-b-plus.dtb}
62 RPI3P_UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG:=rpi_3_32b_defconfig}
51 63
52 64 # Debian release
53 65 RELEASE=${RELEASE:=jessie}
@@ -58,10 +70,17 COLLABORA_KERNEL=${COLLABORA_KERNEL:=3.18.0-trunk-rpi2}
58 70 if [ "$KERNEL_ARCH" = "arm64" ] ; then
59 71 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi3_defconfig}
60 72 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel8.img}
73 elif [RPI_MODEL] = 0 || [RPI_MODEL = 1] || [RPI_MODEL = 1P]
74 #RASPBERRY PI 1, PI ZERO, PI ZERO W, AND COMPUTE MODULE DEFAULT Kernel BUILD CONFIGURATION
75 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig}
76 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img}
61 77 else
78 #RASPBERRY PI 2, PI 3, PI 3+, AND COMPUTE MODULE 3 DEFAULT Kernel BUILD CONFIGURATION
79 #https://www.raspberrypi.org/documentation/linux/kernel/building.md
62 80 KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig}
63 81 KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img}
64 82 fi
83
65 84 if [ "$RELEASE_ARCH" = "arm64" ] ; then
66 85 QEMU_BINARY=${QEMU_BINARY:=/usr/bin/qemu-aarch64-static}
67 86 else
@@ -226,16 +245,25 COMPILER_PACKAGES=""
226 245 set +x
227 246
228 247 # Set Raspberry Pi model specific configuration
229 if [ "$RPI_MODEL" = 2 ] ; then
248 elif [ "$RPI_MODEL" = 0 ] ; then
249 DTB_FILE=${RPI2_DTB_FILE}
250 UBOOT_CONFIG=${RPI2_UBOOT_CONFIG}
251 elif [ "$RPI_MODEL" = 1 ] ; then
252 DTB_FILE=${RPI2_DTB_FILE}
253 UBOOT_CONFIG=${RPI2_UBOOT_CONFIG}
254 elif [ "$RPI_MODEL" = 1P ] ; then
255 DTB_FILE=${RPI2_DTB_FILE}
256 UBOOT_CONFIG=${RPI2_UBOOT_CONFIG}
257 elif [ "$RPI_MODEL" = 2 ] ; then
230 258 DTB_FILE=${RPI2_DTB_FILE}
231 259 UBOOT_CONFIG=${RPI2_UBOOT_CONFIG}
232 260 elif [ "$RPI_MODEL" = 3 ] ; then
233 261 DTB_FILE=${RPI3_DTB_FILE}
234 262 UBOOT_CONFIG=${RPI3_UBOOT_CONFIG}
235 263 BUILD_KERNEL=true
236 elif [ "$RPI_MODEL" = 3B ] ; then
237 DTB_FILE=${RPI3B_DTB_FILE}
238 UBOOT_CONFIG=${RPI3B_UBOOT_CONFIG}
264 elif [ "$RPI_MODEL" = 3P ] ; then
265 DTB_FILE=${RPI3P_DTB_FILE}
266 UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG}
239 267 BUILD_KERNEL=true
240 268 else
241 269 echo "error: Raspberry Pi model ${RPI_MODEL} is not supported!"
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant