Support Orange Pi R1 Plus LTS

This commit is contained in:
orangepi-xunlong
2021-11-23 19:33:55 +08:00
parent 6b47b95b7c
commit 31d8885bd5
7 changed files with 354 additions and 135 deletions

View File

@@ -26,7 +26,7 @@ else # rk3328
fi
if [[ $BOARD == orangepir1plus ]]; then
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
BOOT_USE_BLOBS=yes
BOOT_SOC=rk3328
@@ -49,7 +49,7 @@ case $BRANCH in
current)
KERNELPATCHDIR='rockchip64-'$BRANCH
KERNELBRANCH="branch:orange-pi-5.8-rockchip64"
KERNELBRANCH="branch:orange-pi-5.10-rockchip64"
LINUXFAMILY=rockchip64
LINUXCONFIG='linux-rockchip64-'$BRANCH
@@ -334,7 +334,7 @@ family_tweaks()
fi
fi
if [[ $BOARD == orangepir1plus ]]; then
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
# rename USB based network to lan0

View File

@@ -5,7 +5,7 @@ BOOTPATCHDIR="u-boot-rockchip64-mainline"
family_tweaks_bsp()
{
if [[ $BOARD == orangepir1plus ]]; then
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
install -m 755 $EXTER/packages/blobs/rockchip/set_r1plus_lan_mac.sh $destination/usr/bin/
fi
@@ -14,9 +14,7 @@ family_tweaks_bsp()
family_tweaks_s()
{
if [[ $BOARD == orangepir1plus ]]; then
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
if [[ $BOARD =~ orangepir1plus|orangepir1plus-lts ]]; then
cat <<-EOF > "${SDCARD}"/etc/rc.local
#!/bin/sh -e