@@ -97,33 +97,33 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
97 | 97 | # requires activation via kernel parameter or sysfs |
|
98 | 98 | # see e.g. https://askubuntu.com/a/472227 for a summary of ZSWAP (vs ZRAM etc.) |
|
99 | 99 | # and e.g. https://wiki.archlinux.org/index.php/zswap for parameters etc. |
|
100 |
set_kernel_config ZPOOL y |
|
|
101 |
set_kernel_config ZSWAP y |
|
|
102 |
set_kernel_config ZBUD y |
|
|
103 |
set_kernel_config Z3FOLD y |
|
|
104 |
set_kernel_config ZSMALLOC y |
|
|
105 |
set_kernel_config PGTABLE_MAPPING y |
|
|
100 | set_kernel_config ZPOOL y | |
|
101 | set_kernel_config ZSWAP y | |
|
102 | set_kernel_config ZBUD y | |
|
103 | set_kernel_config Z3FOLD y | |
|
104 | set_kernel_config ZSMALLOC y | |
|
105 | set_kernel_config PGTABLE_MAPPING y | |
|
106 | 106 | fi |
|
107 | 107 | |
|
108 | 108 | if [ "$KERNEL_VIRT" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then |
|
109 | 109 | # enable basic KVM support; see e.g. |
|
110 | 110 | # https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=210546&start=25#p1300453 |
|
111 |
set_kernel_config VIRTUALIZATION y |
|
|
112 |
set_kernel_config KVM y |
|
|
113 |
set_kernel_config VHOST_NET m |
|
|
114 |
set_kernel_config VHOST_CROSS_ENDIAN_LEGACY y |
|
|
111 | set_kernel_config VIRTUALIZATION y | |
|
112 | set_kernel_config KVM y | |
|
113 | set_kernel_config VHOST_NET m | |
|
114 | set_kernel_config VHOST_CROSS_ENDIAN_LEGACY y | |
|
115 | 115 | fi |
|
116 | 116 | #See https://github.com/raspberrypi/linux/issues/2177#issuecomment-354647406 |
|
117 | 117 | # Netfilter kernel support |
|
118 | 118 | if [ "$KERNEL_NF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then |
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
|
122 |
|
|
|
123 |
|
|
|
124 |
|
|
|
119 | set_kernel_config CONFIG_NETFILTER_XTABLES m | |
|
120 | set_kernel_config CONFIG_NF_DUP_NETDEV m | |
|
121 | set_kernel_config CONFIG_NF_NAT_SIP m | |
|
122 | set_kernel_config CONFIG_NF_TABLES_ARP m | |
|
123 | set_kernel_config CONFIG_NF_TABLES_BRIDGE m | |
|
124 | set_kernel_config NF_TABLES m | |
|
125 | 125 | set_kernel_config CONFIG_BRIDGE_EBT_BROUTE m |
|
126 |
set_kernel_config CONFIG_BRIDGE_EBT_T_FILTER m |
|
|
126 | set_kernel_config CONFIG_BRIDGE_EBT_T_FILTER m | |
|
127 | 127 | set_kernel_config CONFIG_BRIDGE_NF_EBTABLES m |
|
128 | 128 | set_kernel_config CONFIG_IP6_NF_IPTABLES m |
|
129 | 129 | set_kernel_config CONFIG_IP6_NF_MATCH_AH m |
@@ -205,15 +205,15 if [ "$BUILD_KERNEL" = true ] ; then | |||
|
205 | 205 | set_kernel_config CONFIG_NF_TABLES_NETDEV m |
|
206 | 206 | set_kernel_config NETFILTER_XTABLES m |
|
207 | 207 | fi |
|
208 | ||
|
208 | ||
|
209 | 209 | #https://groups.google.com/forum/#!topic/linux.gentoo.user/_2aSc_ztGpA |
|
210 | 210 | #https://github.com/torvalds/linux/blob/master/init/Kconfig#L848 |
|
211 | 211 | # Enables BPF syscall for systemd-journald |
|
212 | 212 | if [ "$KERNEL_BPF" = true ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] ) ; then |
|
213 | set_kernel_config CONFIG_BPF_SYSCALL y | |
|
213 | set_kernel_config CONFIG_BPF_SYSCALL y | |
|
214 | 214 | set_kernel_config CONFIG_CGROUP_BPF y |
|
215 | 215 | fi |
|
216 | ||
|
216 | ||
|
217 | 217 | #Revert to previous directory |
|
218 | 218 | popd |
|
219 | 219 | |
@@ -387,8 +387,8 if [ "$KERNEL_ARCH" = arm64 ] && ( [ "$RPI_MODEL" = 3 ] || [ "$RPI_MODEL" = 3P ] | |||
|
387 | 387 | rm -fr "${temp_dir}" |
|
388 | 388 | |
|
389 | 389 | # Set permissions of the kernel sources |
|
390 |
chown -R root:root "${R}/boot/ |
|
|
391 |
|
|
|
390 | chown -R root:root "${R}/boot/" | |
|
391 | chown -R root:root "${R}/lib" | |
|
392 | 392 | fi |
|
393 | 393 | |
|
394 | 394 | # Check if kernel installation was successful |
General Comments 0
Vous devez vous connecter pour laisser un commentaire.
Se connecter maintenant