Skip to content

Commit 3c27378

Browse files
committed
rpi: Add Raspberry Pi 5 full-image config.
Notes: This contains a patch to add additional kernel modules to enable the SPI interface of the Raspberry Pi 5. This patch enables the following modules (other changes were automatically introduced): CONFIG_SPI_DESIGNWARE=y CONFIG_SPI_DW_MMIO=y This also contains the following Redis configuration: ignore-warnings ARM64-COW-BUG This is needed as in the past there was an issue that could cause data-corruption. This has been fixed in the Linux kernel, but as Redis is not able to detect if the change has implemented or not, it will not start without the above configuration. See also #128.
1 parent 277dcbf commit 3c27378

File tree

14 files changed

+9392
-0
lines changed

14 files changed

+9392
-0
lines changed

conf/full_raspberrypi_bcm27xx_bcm2712/.config

Lines changed: 7113 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
________ _ _____ __ __ _
2+
/ ____/ /_ (_)________ / ___// /_____ ______/ /__ (_)___
3+
/ / / __ \/ / ___/ __ \\__ \/ __/ __ `/ ___/ //_/ / / __ \
4+
/ /___/ / / / / / / /_/ /__/ / /_/ /_/ / /__/ ,< _ / / /_/ /
5+
\____/_/ /_/_/_/ / .___/____/\__/\__,_/\___/_/|_(_)_/\____/
6+
/_/
7+
8+
Documentation and copyright information:
9+
> www.chirpstack.io
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright (C) 2014-2016 OpenWrt.org
2+
# Copyright (C) 2017 LEDE project
3+
4+
. /lib/functions/uci-defaults.sh
5+
. /lib/functions.sh
6+
. /lib/functions/system.sh
7+
8+
board_config_update
9+
10+
board=$(board_name)
11+
12+
case "$board" in
13+
raspberrypi,2-model-b |\
14+
raspberrypi,2-model-b-rev2 |\
15+
raspberrypi,3-model-b |\
16+
raspberrypi,3-model-b-plus |\
17+
raspberrypi,400 |\
18+
raspberrypi,4-compute-module |\
19+
raspberrypi,4-model-b |\
20+
raspberrypi,500 |\
21+
raspberrypi,5-compute-module |\
22+
raspberrypi,5-model-b |\
23+
raspberrypi,model-b |\
24+
raspberrypi,model-b-plus |\
25+
raspberrypi,model-b-rev2)
26+
ucidef_set_interface_lan "eth0" "dhcp"
27+
;;
28+
29+
raspberrypi,model-zero-2 |\
30+
raspberrypi,model-zero-w)
31+
ucidef_set_interface_lan "wlan0"
32+
;;
33+
esac
34+
35+
board_config_flush
36+
37+
exit 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh /etc/rc.common
2+
3+
USE_PROCD=1
4+
START=95
5+
STOP=10
6+
7+
REDIS_BIN="/usr/bin/redis-server"
8+
REDIS_CONFIG="/etc/redis.conf"
9+
REDIS_PID="/var/run/redis.pid"
10+
REDIS_DATA="/var/lib/redis"
11+
REDIS_DATA_PERSISTENT="/srv/redis"
12+
13+
start_service() {
14+
mkdir -p "$REDIS_DATA_PERSISTENT"
15+
ln -s "$REDIS_DATA_PERSISTENT" "$REDIS_DATA"
16+
procd_open_instance redis
17+
procd_set_param command "$REDIS_BIN" "$REDIS_CONFIG"
18+
procd_close_instance
19+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
log_dest syslog
2+
3+
listener 1883
4+
allow_anonymous true

0 commit comments

Comments
 (0)