@@ -41,6 +41,9 if [ "$BUILD_KERNEL" = true ] && [ "$ENABLE_INITRAMFS" = true ] ; then | |||||
41 | # Disable SSHD inside initramfs |
|
41 | # Disable SSHD inside initramfs | |
42 | printf "#\n# DROPBEAR: [ y | n ]\n#\n\nDROPBEAR=n\n" >> "${ETC_DIR}/initramfs-tools/initramfs.conf" |
|
42 | printf "#\n# DROPBEAR: [ y | n ]\n#\n\nDROPBEAR=n\n" >> "${ETC_DIR}/initramfs-tools/initramfs.conf" | |
43 |
|
43 | |||
|
44 | # Add cryptsetup modules to initramfs | |||
|
45 | printf "#\n# CRYPTSETUP: [ y | n ]\n#\n\nCRYPTSETUP=y\n" >> "${ETC_DIR}/initramfs-tools/conf-hook" | |||
|
46 | ||||
44 | # Dummy mapping required by mkinitramfs |
|
47 | # Dummy mapping required by mkinitramfs | |
45 | echo "0 1 crypt $(echo ${CRYPTFS_CIPHER} | cut -d ':' -f 1) ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 0 7:0 4096" | chroot_exec dmsetup create "${CRYPTFS_MAPPING}" |
|
48 | echo "0 1 crypt $(echo ${CRYPTFS_CIPHER} | cut -d ':' -f 1) ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 0 7:0 4096" | chroot_exec dmsetup create "${CRYPTFS_MAPPING}" | |
46 |
|
49 |
@@ -42,21 +42,27 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 | ||||
45 | #bcm2708-rpi-0-w.dtb (Used for Pi 0 and PI 0W) |
|
46 | #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_DTB_FILE=${RPI0_DTB_FILE:=bcm2708-rpi-0-w.dtb} | |
47 | RPI0_UBOOT_CONFIG=${RPI0_UBOOT_CONFIG:=rpi_defconfig} |
|
48 | RPI0_UBOOT_CONFIG=${RPI0_UBOOT_CONFIG:=rpi_defconfig} | |
|
49 | ||||
48 | #bcm2708-rpi-b.dtb (Used for Pi 1 model A and B) |
|
50 | #bcm2708-rpi-b.dtb (Used for Pi 1 model A and B) | |
49 | RPI1_DTB_FILE=${RPI1_DTB_FILE:=bcm2708-rpi-b.dtb} |
|
51 | RPI1_DTB_FILE=${RPI1_DTB_FILE:=bcm2708-rpi-b.dtb} | |
50 | RPI1_UBOOT_CONFIG=${RPI1_UBOOT_CONFIG:=rpi_defconfig} |
|
52 | RPI1_UBOOT_CONFIG=${RPI1_UBOOT_CONFIG:=rpi_defconfig} | |
|
53 | ||||
51 | #bcm2708-rpi-b-plus.dtb (Used for Pi 1 model B+ and A+) |
|
54 | #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} |
|
55 | RPI1P_DTB_FILE=${RPI1P_DTB_FILE:=bcm2708-rpi-b-plus.dtb} | |
53 | RPI1P_UBOOT_CONFIG=${RPI1P_UBOOT_CONFIG:=rpi_defconfig} |
|
56 | RPI1P_UBOOT_CONFIG=${RPI1P_UBOOT_CONFIG:=rpi_defconfig} | |
|
57 | ||||
54 | #bcm2709-rpi-2-b.dtb (Used for Pi 2 model B) |
|
58 | #bcm2709-rpi-2-b.dtb (Used for Pi 2 model B) | |
55 | RPI2_DTB_FILE=${RPI2_DTB_FILE:=bcm2709-rpi-2-b.dtb} |
|
59 | RPI2_DTB_FILE=${RPI2_DTB_FILE:=bcm2709-rpi-2-b.dtb} | |
56 | RPI2_UBOOT_CONFIG=${RPI2_UBOOT_CONFIG:=rpi_2_defconfig} |
|
60 | RPI2_UBOOT_CONFIG=${RPI2_UBOOT_CONFIG:=rpi_2_defconfig} | |
|
61 | ||||
57 | #bcm2710-rpi-3-b.dtb (Used for Pi 3 model B) |
|
62 | #bcm2710-rpi-3-b.dtb (Used for Pi 3 model B) | |
58 | RPI3_DTB_FILE=${RPI3_DTB_FILE:=bcm2710-rpi-3-b.dtb} |
|
63 | RPI3_DTB_FILE=${RPI3_DTB_FILE:=bcm2710-rpi-3-b.dtb} | |
59 | RPI3_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
64 | RPI3_UBOOT_CONFIG=${RPI3_UBOOT_CONFIG:=rpi_3_32b_defconfig} | |
|
65 | ||||
60 | #bcm2710-rpi-3-b-plus.dtb (Used for Pi 3 model B+) |
|
66 | #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} |
|
67 | RPI3P_DTB_FILE=${RPI3P_DTB_FILE:=bcm2710-rpi-3-b-plus.dtb} | |
62 | RPI3P_UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG:=rpi_3_32b_defconfig} |
|
68 | RPI3P_UBOOT_CONFIG=${RPI3P_UBOOT_CONFIG:=rpi_3_32b_defconfig} | |
@@ -72,7 +78,7 if [ "$KERNEL_ARCH" = "arm64" ] ; then | |||||
72 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel8.img} |
|
78 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel8.img} | |
73 | fi |
|
79 | fi | |
74 |
|
80 | |||
75 | if [ "$RPI_MODEL" = 0 || "$RPI_MODEL" = 1 || "$RPI_MODEL" = 1P ] ; then |
|
81 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 1 ] || [ "$RPI_MODEL" = 1P ] ; then | |
76 | #RASPBERRY PI 1, PI ZERO, PI ZERO W, AND COMPUTE MODULE DEFAULT Kernel BUILD CONFIGURATION |
|
82 | #RASPBERRY PI 1, PI ZERO, PI ZERO W, AND COMPUTE MODULE DEFAULT Kernel BUILD CONFIGURATION | |
77 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig} |
|
83 | KERNEL_DEFCONFIG=${KERNEL_DEFCONFIG:=bcmrpi_defconfig} | |
78 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} |
|
84 | KERNEL_IMAGE=${KERNEL_IMAGE:=kernel7.img} |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant