@@ -67,7 +67,14 A comma separated list of additional packages to be installed by apt after boots | |||||
67 |
|
67 | |||
68 | #### General system settings: |
|
68 | #### General system settings: | |
69 | ##### `RPI_MODEL`=2 |
|
69 | ##### `RPI_MODEL`=2 | |
70 |
Specifiy the target Raspberry Pi hardware model. The script at this time supports the |
|
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 | ##### `RELEASE`="jessie" |
|
79 | ##### `RELEASE`="jessie" | |
73 | 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. |
|
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 | # Raspberry Pi model configuration |
|
43 | # Raspberry Pi model configuration | |
44 | RPI_MODEL=${RPI_MODEL:=2} |
|
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 | RPI2_DTB_FILE=${RPI2_DTB_FILE:=bcm2709-rpi-2-b.dtb} |
|
55 | RPI2_DTB_FILE=${RPI2_DTB_FILE:=bcm2709-rpi-2-b.dtb} | |
46 | RPI2_UBOOT_CONFIG=${RPI2_UBOOT_CONFIG:=rpi_2_defconfig} |
|
56 | RPI2_UBOOT_CONFIG=${RPI2_UBOOT_CONFIG:=rpi_2_defconfig} | |
|
57 | #bcm2710-rpi-3-b.dtb (Used for Pi 3 model B) | |||
47 | RPI3_DTB_FILE=${RPI3_DTB_FILE:=bcm2710-rpi-3-b.dtb} |
|
58 | RPI3_DTB_FILE=${RPI3_DTB_FILE:=bcm2710-rpi-3-b.dtb} | |
48 | RPI3_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
59 | RPI3_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig} | |
49 | RPI3B_DTB_FILE=${RPI3B_DTB_FILE:=bcm2710-rpi-3-b-plus.dtb} |
|
60 | #bcm2710-rpi-3-b-plus.dtb (Used for Pi 3 model B+) | |
50 | RPI3B_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
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 | # Debian release |
|
64 | # Debian release | |
53 | RELEASE=${RELEASE:=jessie} |
|
65 | RELEASE=${RELEASE:=jessie} | |
@@ -58,10 +70,17 COLLABORA_KERNEL=${COLLABORA_KERNEL:=3.18.0-trunk-rpi2} | |||||
58 | if [ "$KERNEL_ARCH" = "arm64" ] ; then |
|
70 | if [ "$KERNEL_ARCH" = "arm64" ] ; then | |
59 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi3_defconfig} |
|
71 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi3_defconfig} | |
60 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel8.img} |
|
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 | else |
|
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 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig} |
|
80 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcm2709_defconfig} | |
63 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} |
|
81 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} | |
64 | fi |
|
82 | fi | |
|
83 | ||||
65 | if [ "$RELEASE_ARCH" = "arm64" ] ; then |
|
84 | if [ "$RELEASE_ARCH" = "arm64" ] ; then | |
66 | QEMU_BINARY=${QEMU_BINARY:=/usr/bin/qemu-aarch64-static} |
|
85 | QEMU_BINARY=${QEMU_BINARY:=/usr/bin/qemu-aarch64-static} | |
67 | else |
|
86 | else | |
@@ -226,16 +245,25 COMPILER_PACKAGES="" | |||||
226 | set +x |
|
245 | set +x | |
227 |
|
246 | |||
228 | # Set Raspberry Pi model specific configuration |
|
247 | # Set Raspberry Pi model specific configuration | |
229 |
if [ "$RPI_MODEL" = |
|
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 | DTB_FILE=${RPI2_DTB_FILE} |
|
258 | DTB_FILE=${RPI2_DTB_FILE} | |
231 | UBOOT_CONFIG=${RPI2_UBOOT_CONFIG} |
|
259 | UBOOT_CONFIG=${RPI2_UBOOT_CONFIG} | |
232 | elif [ "$RPI_MODEL" = 3 ] ; then |
|
260 | elif [ "$RPI_MODEL" = 3 ] ; then | |
233 | DTB_FILE=${RPI3_DTB_FILE} |
|
261 | DTB_FILE=${RPI3_DTB_FILE} | |
234 | UBOOT_CONFIG=${RPI3_UBOOT_CONFIG} |
|
262 | UBOOT_CONFIG=${RPI3_UBOOT_CONFIG} | |
235 | BUILD_KERNEL=true |
|
263 | BUILD_KERNEL=true | |
236 |
elif [ "$RPI_MODEL" = 3 |
|
264 | elif [ "$RPI_MODEL" = 3P ] ; then | |
237 |
DTB_FILE=${RPI3 |
|
265 | DTB_FILE=${RPI3P_DTB_FILE} | |
238 |
UBOOT_CONFIG=${RPI3 |
|
266 | UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG} | |
239 | BUILD_KERNEL=true |
|
267 | BUILD_KERNEL=true | |
240 | else |
|
268 | else | |
241 | echo "error: Raspberry Pi model ${RPI_MODEL} is not supported!" |
|
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