##// END OF EJS Templates
a
Unknown -
r458:17a59b052c06
parent child
Show More
@@ -165,7 +165,7 Enable onboard Bluetooth interface on the RPi0/3/3P. See: https://spellfoundry.c
165 Enable Bluetooth to use this. Adds overlay to swap UART0 with UART1. Enabling (slower) Bluetooth and full speed serial console. - RPI `0` `3` `3P` have a fast `hardware UART0` (ttyAMA0) and a `mini UART1` (ttyS0)! RPI `1` `1P` `2` only have a `hardware UART0`. `UART0` is considered better, because is faster and more stable than `mini UART1`. By default the Bluetooth modem is mapped to the `hardware UART0` and `mini UART` is used for console. The `mini UART` is a problem for the serial console, because its baudrate depends on the cpu frequency, which is changing on runtime. Resulting in a volatile baudrate and thus in an unusable serial console.
165 Enable Bluetooth to use this. Adds overlay to swap UART0 with UART1. Enabling (slower) Bluetooth and full speed serial console. - RPI `0` `3` `3P` have a fast `hardware UART0` (ttyAMA0) and a `mini UART1` (ttyS0)! RPI `1` `1P` `2` only have a `hardware UART0`. `UART0` is considered better, because is faster and more stable than `mini UART1`. By default the Bluetooth modem is mapped to the `hardware UART0` and `mini UART` is used for console. The `mini UART` is a problem for the serial console, because its baudrate depends on the cpu frequency, which is changing on runtime. Resulting in a volatile baudrate and thus in an unusable serial console.
166
166
167 ##### `ENABLE_TURBO`=false
167 ##### `ENABLE_TURBO`=false
168 Enable Turbo mode. This setting locks cpu at highest frequency. As setting ENABLE_CONSOLE=true locks RPI to lowest CPU speed, this is can be used additionally to lock cpu hat max speed. Need a good power supply and probably cooling for the Raspberry PI.
168 VOIDS WARRANTY! Enable Turbo mode - NO overclocking. This setting locks cpu at highest frequency. As setting ENABLE_CONSOLE=true locks RPI to lowest CPU speed, this is can be used additionally to lock cpu hat max speed. Need a good power supply and probably cooling for the Raspberry PI.
169
169
170 ##### `ENABLE_I2C`=false
170 ##### `ENABLE_I2C`=false
171 Enable I2C interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
171 Enable I2C interface on the RPi2/3. Please check the [RPi2/3 pinout diagrams](https://elinux.org/RPi_Low-level_peripherals) to connect the right GPIO pins.
@@ -113,6 +113,7 if [ "$BUILD_KERNEL" = true ] ; then
113 set_kernel_config CONFIG_IP_NF_TARGET_SYNPROXY m
113 set_kernel_config CONFIG_IP_NF_TARGET_SYNPROXY m
114 set_kernel_config CONFIG_NETFILTER_XT_MATCH_CGROUP m
114 set_kernel_config CONFIG_NETFILTER_XT_MATCH_CGROUP m
115 set_kernel_config CONFIG_NETFILTER_XT_MATCH_IPCOMP m
115 set_kernel_config CONFIG_NETFILTER_XT_MATCH_IPCOMP m
116 set_kernel_config CONFIG_NETFILTER_XT_MATCH_SOCKET m
116 set_kernel_config CONFIG_NFT_FIB_INET m
117 set_kernel_config CONFIG_NFT_FIB_INET m
117 set_kernel_config CONFIG_NFT_FIB_IPV4 m
118 set_kernel_config CONFIG_NFT_FIB_IPV4 m
118 set_kernel_config CONFIG_NFT_FIB_IPV6 m
119 set_kernel_config CONFIG_NFT_FIB_IPV6 m
@@ -120,7 +121,7 if [ "$BUILD_KERNEL" = true ] ; then
120 set_kernel_config CONFIG_NFT_OBJREF m
121 set_kernel_config CONFIG_NFT_OBJREF m
121 set_kernel_config CONFIG_NFT_RT m
122 set_kernel_config CONFIG_NFT_RT m
122 set_kernel_config CONFIG_NFT_SET_BITMAP m
123 set_kernel_config CONFIG_NFT_SET_BITMAP m
123 set_kernel_config CONFIG_NF_CONNTRACK_TIMEOUT m
124 set_kernel_config CONFIG_NF_CONNTRACK_TIMEOUT y
124 set_kernel_config CONFIG_NF_LOG_ARP m
125 set_kernel_config CONFIG_NF_LOG_ARP m
125 set_kernel_config CONFIG_NF_SOCKET_IPV4 m
126 set_kernel_config CONFIG_NF_SOCKET_IPV4 m
126 set_kernel_config CONFIG_NF_SOCKET_IPV6 m
127 set_kernel_config CONFIG_NF_SOCKET_IPV6 m
@@ -67,6 +67,9 fi
67 #locks cpu at max frequency
67 #locks cpu at max frequency
68 if [ "$ENABLE_TURBO" = true ] ; then
68 if [ "$ENABLE_TURBO" = true ] ; then
69 echo "force_turbo=1" >> "${BOOT_DIR}/config.txt"
69 echo "force_turbo=1" >> "${BOOT_DIR}/config.txt"
70 # helps to avoid sdcard corruption when force_turbo is enabled.
71 echo "boot_delay=1" >> "${BOOT_DIR}/config.txt"
72
70 fi
73 fi
71
74
72 if [ "$ENABLE_PRINTK" = true ] ; then
75 if [ "$ENABLE_PRINTK" = true ] ; then
@@ -21,7 +21,7 if [ "$ENABLE_NEXMON" = true ] && [ "$ENABLE_WIRELESS" = true ]; then
21 chown -R root:root "${R}"/tmp/nexmon
21 chown -R root:root "${R}"/tmp/nexmon
22
22
23 # Set script Root
23 # Set script Root
24 NEXMON_ROOT="${R}"/tmp/nexmon
24 export NEXMON_ROOT="${R}"/tmp/nexmon
25
25
26 # Remove temporary directory for nexmon sources
26 # Remove temporary directory for nexmon sources
27 rm -fr "${temp_dir}"
27 rm -fr "${temp_dir}"
@@ -35,14 +35,16 if [ "$ENABLE_NEXMON" = true ] && [ "$ENABLE_WIRELESS" = true ]; then
35 # Setup Enviroment: see https://github.com/NoobieDog/nexmon/blob/master/setup_env.sh
35 # Setup Enviroment: see https://github.com/NoobieDog/nexmon/blob/master/setup_env.sh
36 #ARCH="${KERNEL_ARCH}"
36 #ARCH="${KERNEL_ARCH}"
37 #SUBARCH="${KERNEL_ARCH}"
37 #SUBARCH="${KERNEL_ARCH}"
38 KERNEL="${KERNEL_IMAGE}"
38 export KERNEL="${KERNEL_IMAGE}"
39 ARCH=arm
39 export ARCH=arm
40 SUBARCH=arm
40 export SUBARCH=arm
41 CC="${NEXMON_ROOT}"/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-
41 export CC="${NEXMON_ROOT}"/buildtools/gcc-arm-none-eabi-5_4-2016q2-linux-x86/bin/arm-none-eabi-
42 CCPLUGIN="${NEXMON_ROOT}"/buildtools/gcc-nexmon-plugin/nexmon.so
42 export CCPLUGIN="${NEXMON_ROOT}"/buildtools/gcc-nexmon-plugin/nexmon.so
43 ZLIBFLATE="zlib-flate -compress"
43 export ZLIBFLATE="zlib-flate -compress"
44 Q=@
44 export Q=@
45 NEXMON_SETUP_ENV=1
45 export NEXMON_SETUP_ENV=1
46 export HOSTUNAME=$(uname -s)
47 export PLATFORMUNAME=$(uname -m)
46 #. ./setup_env.sh
48 #. ./setup_env.sh
47
49
48 # Make nexmon
50 # Make nexmon
@@ -81,7 +83,25 if [ "$ENABLE_NEXMON" = true ] && [ "$ENABLE_WIRELESS" = true ]; then
81 cp -f "${NEXMON_ROOT}"/patches/bcm43455c0/7_45_154/nexmon/brcmfmac43455-sdio.bin "${WLAN_FIRMWARE_DIR}"/brcmfmac43455-sdio.bin
83 cp -f "${NEXMON_ROOT}"/patches/bcm43455c0/7_45_154/nexmon/brcmfmac43455-sdio.bin "${WLAN_FIRMWARE_DIR}"/brcmfmac43455-sdio.bin
82 fi
84 fi
83
85
86 # Install kernel module
87 "${LIB_DIR}"/modules/${KERNEL_VERSION}/
88
84 #Revert to previous directory
89 #Revert to previous directory
85 cd "${WORKDIR}" || exit
90 cd "${WORKDIR}" || exit
86
91
87 fi
92 fi
93
94 ## To make the RPi load the modified driver after reboot
95 # Find the path of the default driver at reboot
96 # e.g. '/lib/modules/4.14.71-v7+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko'
97 PATH_OF_DEFAULT_DRIVER_AT_REBOOT=$(modinfo brcmfmac | grep -m 1 -oP "^filename:(\s*?)(.*)$" | sed -e 's/^filename:\(\s*\)\(.*\)$/\2/g')
98 # Backup the original driver
99 mv $PATH_OF_DEFAULT_DRIVER_AT_REBOOT "$PATH_OF_DEFAULT_DRIVER_AT_REBOOT.orig"
100 # Copy the modified driver (Kernel 4.14)
101 if is_pizero ; then
102 cp ./patches/bcm43430a1/7_45_41_46/nexmon/brcmfmac_4.14.y-nexmon/brcmfmac.ko $PATH_OF_DEFAULT_DRIVER_AT_REBOOT
103 else
104 cp ./patches/bcm43455c0/7_45_154/nexmon/brcmfmac_4.14.y-nexmon/brcmfmac.ko $PATH_OF_DEFAULT_DRIVER_AT_REBOOT
105 fi
106 # Probe all modules and generate new dependency
107 depmod -a No newline at end of file
@@ -80,7 +80,7 chroot_remove_cc() {
80 #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh
80 #https://github.com/sakaki-/bcmrpi3-kernel-bis/blob/master/conform_config.sh
81 set_kernel_config() {
81 set_kernel_config() {
82 # flag as $1, value to set as $2, config must exist at "./.config"
82 # flag as $1, value to set as $2, config must exist at "./.config"
83 TGT="${1}"
83 TGT="CONFIG_${1#CONFIG_}"
84 REP="${2}"
84 REP="${2}"
85 if grep -q "^${TGT}[^_]" .config; then
85 if grep -q "^${TGT}[^_]" .config; then
86 sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config
86 sed -i "s/^\(${TGT}=.*\|# ${TGT} is not set\)/${TGT}=${REP}/" .config
General Comments 0
Vous devez vous connecter pour laisser un commentaire. Se connecter maintenant