Commit 0e36b8df authored by Angus Ainslie (Purism)'s avatar Angus Ainslie (Purism)
Browse files add a script to update the redpine firmware

Signed-off-by: default avatarAngus Ainslie (Purism) <>
parent 670c880d
show_warning() {
echo "Redpine SDIO module $1 already loaded the upgrade will probably not work."
echo "If it does not please blacklist $1 in /etc/modprobe/librem5-devkit.conf"
echo "then reboot and try the upgrade again."
MODULES=$(lsmod | grep rsi_sdio)
if [ -z "${MODULES}" ]; then
show_warning $1
MODULES=$(lsmod | grep redpine_sdio)
if [ -z "${MODULES}" ]; then
show_warning $1
set -e
tar -xf rsi_firmware.tar
tar -xf rsi_upgrade.tar
mkdir -p /lib/firmware
cp RS9116_NLINK_WLAN_BT_IMAGE.HW1_2.rps /lib/firmware/RS9116_NLINK_WLAN_BT_IMAGE.rps
modprobe bluetooth
modprobe cfg80211
modprobe mac80211
modprobe rfkill
insmod ./rsi_91x.ko dev_oper_mode=13 rsi_zone_enabled=1
insmod ./rsi_sdio.ko
sleep 5
rm /lib/firmware/RS9116_NLINK_WLAN_BT_IMAGE.rps
echo "Please remove the blacklist and reboot now."
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment