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

@ -0,0 +1,11 @@
# Rockchip RK3328 quad core 1GB 2xGBE USB2
BOARD_NAME="OPI R1+ LTS"
BOARDFAMILY="rockchip64"
BOOTCONFIG="orangepi_r1_plus_lts_rk3328_defconfig"
KERNEL_TARGET="current"
DEFAULT_CONSOLE="serial"
MODULES="g_serial"
MODULES_BLACKLIST="rockchipdrm analogix_dp dw_mipi_dsi dw_hdmi gpu_sched lima hantro_vpu"
SERIALCON="ttyS2:1500000,ttyGS0"
BUILD_DESKTOP="no"
BOOT_FDT_FILE="rockchip/rk3328-orangepi-r1-plus-lts.dtb"

View File

@ -8,4 +8,4 @@ MODULES="g_serial"
MODULES_BLACKLIST="rockchipdrm analogix_dp dw_mipi_dsi dw_hdmi gpu_sched lima hantro_vpu" MODULES_BLACKLIST="rockchipdrm analogix_dp dw_mipi_dsi dw_hdmi gpu_sched lima hantro_vpu"
SERIALCON="ttyS2:1500000,ttyGS0" SERIALCON="ttyS2:1500000,ttyGS0"
BUILD_DESKTOP="no" BUILD_DESKTOP="no"
BOOT_FDT_FILE="rockchip/rk3328-orangepi-r1plus.dtb" BOOT_FDT_FILE="rockchip/rk3328-orangepi-r1-plus.dtb"

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@ -449,3 +449,14 @@ orangepir1plus current focal cli
orangepir1plus current buster minimal stable yes orangepir1plus current buster minimal stable yes
orangepir1plus current bionic minimal stable yes orangepir1plus current bionic minimal stable yes
orangepir1plus current focal minimal stable yes orangepir1plus current focal minimal stable yes
# orangepir1plus-lts
orangepir1plus-lts current buster cli stable yes
orangepir1plus-lts current bionic cli stable yes
orangepir1plus-lts current focal cli stable yes
orangepir1plus-lts current buster minimal stable yes
orangepir1plus-lts current bionic minimal stable yes
orangepir1plus-lts current focal minimal stable yes

View File

@ -156,7 +156,8 @@ if [[ -z $BOARD ]]; then
options+=("orangepioneplus" "Allwinner H6 quad core 1GB RAM GBE") options+=("orangepioneplus" "Allwinner H6 quad core 1GB RAM GBE")
options+=("orangepizero2" "Allwinner H616 quad core 512MB/1GB RAM WiFi/BT GBE SPI") options+=("orangepizero2" "Allwinner H616 quad core 512MB/1GB RAM WiFi/BT GBE SPI")
options+=("orangepi4" "Rockchip RK3399 hexa core 4GB RAM GBE eMMc USB3 USB-C WiFi/BT") options+=("orangepi4" "Rockchip RK3399 hexa core 4GB RAM GBE eMMc USB3 USB-C WiFi/BT")
options+=("orangepir1plus" "Rockchip RK3328 quad core 1GB RAM 2xGBE USB2 SPI") options+=("orangepir1plus" "Rockchip RK3328 quad core 1GB RAM 2xGBE 8211E USB2 SPI")
options+=("orangepir1plus-lts" "Rockchip RK3328 quad core 1GB RAM 2xGBE YT8531C USB2 SPI")
menustr="Please choose a Board." menustr="Please choose a Board."
BOARD=$(whiptail --title "${titlestr}" --backtitle "${backtitle}" \ BOARD=$(whiptail --title "${titlestr}" --backtitle "${backtitle}" \