@@ -123,7 +123,7 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
123 | 123 | fi |
|
124 | 124 | |
|
125 | 125 | # enable basic KVM support; see https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453 |
|
126 | if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then | |
|
126 | if [ "$KERNEL_VIRT" = true ] && { [ "$RPI_MODEL" = 2 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ]; } ; then | |
|
127 | 127 | set_kernel_config CONFIG_HAVE_KVM_IRQCHIP y |
|
128 | 128 | set_kernel_config CONFIG_HAVE_KVM_ARCH_TLB_FLUSH_ALL y |
|
129 | 129 | set_kernel_config CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT y |
@@ -537,8 +537,8 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
537 | 537 | fi |
|
538 | 538 | |
|
539 | 539 | else # BUILD_KERNEL=false |
|
540 | if [ "$SET_ARCH" = 64 ] && { [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; } ; then | |
|
541 | ||
|
540 | if [ "$SET_ARCH" = 64 ] | |
|
541 | if [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
542 | 542 | # Use Sakakis modified kernel if ZSWAP is active |
|
543 | 543 | if [ "$KERNEL_ZSWAP" = true ] || [ "$KERNEL_VIRT" = true ] || [ "$KERNEL_NF" = true ] || [ "$KERNEL_BPF" = true ] ; then |
|
544 | 544 | RPI3_64_KERNEL_URL="${RPI3_64_BIS_KERNEL_URL}" |
@@ -549,6 +549,14 else # BUILD_KERNEL=false | |||
|
549 | 549 | |
|
550 | 550 | # Fetch kernel dl |
|
551 | 551 | as_nobody wget -O "${temp_dir}"/kernel.tar.xz -c "$RPI3_64_KERNEL_URL" |
|
552 | fi | |
|
553 | if [ "$SET_ARCH" = 64 ] && [ "$RPI_MODEL" = 4 ] ; then | |
|
554 | # Create temporary directory for dl | |
|
555 | temp_dir=$(as_nobody mktemp -d) | |
|
556 | ||
|
557 | # Fetch kernel dl | |
|
558 | as_nobody wget -O "${temp_dir}"/kernel.tar.xz -c "$RPI4_64_KERNEL_URL" | |
|
559 | fi | |
|
552 | 560 | |
|
553 | 561 |
|
|
554 | 562 | tar -xJf "${temp_dir}"/kernel.tar.xz -C "${temp_dir}" |
@@ -566,15 +574,15 else # BUILD_KERNEL=false | |||
|
566 | 574 | chown -R root:root "${R}/lib/modules" |
|
567 | 575 | fi |
|
568 | 576 | |
|
569 | # Install Kernel from hypriot comptabile with all Raspberry PI | |
|
570 | if [ "$SET_ARCH" = 32 ] ; then | |
|
577 | # Install Kernel from hypriot comptabile with all Raspberry PI (dunno if its compatible with RPI4 - better compile your own kernel) | |
|
578 | if [ "$SET_ARCH" = 32 ] && [ "$RPI_MODEL" != 4 ] ; then | |
|
571 | 579 | # Create temporary directory for dl |
|
572 | 580 | temp_dir=$(as_nobody mktemp -d) |
|
573 | 581 | |
|
574 | 582 | # Fetch kernel |
|
575 | 583 | as_nobody wget -O "${temp_dir}"/kernel.deb -c "$RPI_32_KERNEL_URL" |
|
576 | 584 | |
|
577 |
# Copy downloaded |
|
|
585 | # Copy downloaded kernel package | |
|
578 | 586 | mv "${temp_dir}"/kernel.deb "${R}"/tmp/kernel.deb |
|
579 | 587 | |
|
580 | 588 | # Set permissions |
@@ -112,7 +112,7 if [ "$ENABLE_TURBO" = true ] ; then | |||
|
112 | 112 | echo "boot_delay=1" >> "${BOOT_DIR}/config.txt" |
|
113 | 113 | fi |
|
114 | 114 | |
|
115 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ; then | |
|
115 | if [ "$RPI_MODEL" = 0 ] || [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ]; then | |
|
116 | 116 | |
|
117 | 117 | # Bluetooth enabled |
|
118 | 118 | if [ "$ENABLE_BLUETOOTH" = true ] ; then |
@@ -106,7 +106,7 if [ "$ENABLE_WIRELESS" = true ] ; then | |||
|
106 | 106 | temp_dir=$(as_nobody mktemp -d) |
|
107 | 107 | |
|
108 | 108 | # Fetch firmware binary blob for RPI3B+ |
|
109 | if [ "$RPI_MODEL" = 3P ] ; then | |
|
109 | if [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ] ; then | |
|
110 | 110 | # Fetch firmware binary blob for RPi3P |
|
111 | 111 | as_nobody wget -q -O "${temp_dir}/brcmfmac43455-sdio.bin" "${WLAN_FIRMWARE_URL}/brcmfmac43455-sdio.bin" |
|
112 | 112 | as_nobody wget -q -O "${temp_dir}/brcmfmac43455-sdio.txt" "${WLAN_FIRMWARE_URL}/brcmfmac43455-sdio.txt" |
@@ -74,7 +74,7 if [ "$ENABLE_NEXMON" = true ] && [ "$ENABLE_WIRELESS" = true ]; then | |||
|
74 | 74 | cp -f "${NEXMON_ROOT}"/patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac43430-sdio.bin "${WLAN_FIRMWARE_DIR}"/brcmfmac43430-sdio.bin |
|
75 | 75 | fi |
|
76 | 76 | |
|
77 | if [ "$RPI_MODEL" = 3P ] ; then | |
|
77 | if [ "$RPI_MODEL" = 3P ] || [ "$RPI_MODEL" = 4 ] ; then | |
|
78 | 78 | cd "${NEXMON_ROOT}"/patches/bcm43455c0/7_45_154/nexmon || exit |
|
79 | 79 | sed -i -e 's/all:.*/all: $(RAM_FILE)/g' ${NEXMON_ROOT}/patches/bcm43455c0/7_45_154/nexmon/Makefile |
|
80 | 80 | make clean |
@@ -67,8 +67,11 RPI_32_KERNELHEADER_URL=${RPI_32_KERNELHEADER_URL:=https://github.com/hypriot/rp | |||
|
67 | 67 | RPI3_64_BIS_KERNEL_URL=${RPI3_64_BIS_KERNEL_URL:=https://github.com/sakaki-/bcmrpi3-kernel-bis/releases/download/4.14.80.20181113/bcmrpi3-kernel-bis-4.14.80.20181113.tar.xz} |
|
68 | 68 | # Default precompiled 64bit kernel |
|
69 | 69 | RPI3_64_DEF_KERNEL_URL=${RPI3_64_DEF_KERNEL_URL:=https://github.com/sakaki-/bcmrpi3-kernel/releases/download/4.14.80.20181113/bcmrpi3-kernel-4.14.80.20181113.tar.xz} |
|
70 | # Sakaki BIS Kernel RPI4 | |
|
71 | RPI4_64_DEF_KERNEL_URL=https://github.com/sakaki-/bcm2711-kernel-bis/releases/download/4.19.59.20190724/bcm2711-kernel-bis-4.19.59.20190724.tar.xz | |
|
70 | 72 | # Generic |
|
71 | 73 | RPI3_64_KERNEL_URL=${RPI3_64_KERNEL_URL:=$RPI3_64_DEF_KERNEL_URL} |
|
74 | RPI4_64_KERNEL_URL=${RPI3_64_KERNEL_URL:=$RPI4_64_DEF_KERNEL_URL} | |
|
72 | 75 | # Kali kernel src - used if ENABLE_NEXMON=true (they patch the wlan kernel modul) |
|
73 | 76 | KALI_KERNEL_URL=${KALI_KERNEL_URL:=https://github.com/Re4son/re4son-raspberrypi-linux.git} |
|
74 | 77 |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant