mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
uboot-rockchip: add rk3568 board support
This commit is contained in:
parent
13b92d9b2b
commit
8dbff7b4f8
@ -126,6 +126,17 @@ define U-Boot/nanopi-r4se-rk3399
|
|||||||
USE_RKBIN:=1
|
USE_RKBIN:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define U-Boot/nanopi-r5s-rk3568
|
||||||
|
BUILD_SUBTARGET:=armv8
|
||||||
|
NAME:=NANOPI-R5S
|
||||||
|
BUILD_DEVICES:= \
|
||||||
|
friendlyelec_nanopi-r5s
|
||||||
|
DEPENDS:=+PACKAGE_u-boot-nanopi-r5s-rk3568:arm-trusted-firmware-rk3568
|
||||||
|
PKG_BUILD_DEPENDS:=arm-trusted-firmware-rockchip-vendor
|
||||||
|
ATF:=rk3568_bl31_v1.34.elf
|
||||||
|
DDR:=rk3568_ddr_1560MHz_v1.13.bin
|
||||||
|
endef
|
||||||
|
|
||||||
define U-Boot/rock-pi-4-rk3399
|
define U-Boot/rock-pi-4-rk3399
|
||||||
BUILD_SUBTARGET:=armv8
|
BUILD_SUBTARGET:=armv8
|
||||||
NAME:=Rock Pi 4
|
NAME:=Rock Pi 4
|
||||||
@ -151,6 +162,7 @@ UBOOT_TARGETS := \
|
|||||||
guangmiao-g4c-rk3399 \
|
guangmiao-g4c-rk3399 \
|
||||||
nanopi-r4s-rk3399 \
|
nanopi-r4s-rk3399 \
|
||||||
nanopi-r4se-rk3399 \
|
nanopi-r4se-rk3399 \
|
||||||
|
nanopi-r5s-rk3568 \
|
||||||
rock-pi-4-rk3399 \
|
rock-pi-4-rk3399 \
|
||||||
rockpro64-rk3399 \
|
rockpro64-rk3399 \
|
||||||
doornet1-rk3328 \
|
doornet1-rk3328 \
|
||||||
@ -170,6 +182,9 @@ define Build/Configure
|
|||||||
$(SED) 's/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/' $(PKG_BUILD_DIR)/.config
|
$(SED) 's/CONFIG_TOOLS_LIBCRYPTO=y/# CONFIG_TOOLS_LIBCRYPTO is not set/' $(PKG_BUILD_DIR)/.config
|
||||||
$(SED) 's#CONFIG_MKIMAGE_DTC_PATH=.*#CONFIG_MKIMAGE_DTC_PATH="$(PKG_BUILD_DIR)/scripts/dtc/dtc"#g' $(PKG_BUILD_DIR)/.config
|
$(SED) 's#CONFIG_MKIMAGE_DTC_PATH=.*#CONFIG_MKIMAGE_DTC_PATH="$(PKG_BUILD_DIR)/scripts/dtc/dtc"#g' $(PKG_BUILD_DIR)/.config
|
||||||
echo 'CONFIG_IDENT_STRING=" OpenWrt"' >> $(PKG_BUILD_DIR)/.config
|
echo 'CONFIG_IDENT_STRING=" OpenWrt"' >> $(PKG_BUILD_DIR)/.config
|
||||||
|
ifneq ($(DDR),)
|
||||||
|
$(CP) $(STAGING_DIR_IMAGE)/$(DDR) $(PKG_BUILD_DIR)/ram_init.bin
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
define Build/InstallDev
|
||||||
|
@ -19,6 +19,9 @@ rockchip_setup_interfaces()
|
|||||||
xunlong,orangepi-r1-plus-lts)
|
xunlong,orangepi-r1-plus-lts)
|
||||||
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
ucidef_set_interfaces_lan_wan 'eth1' 'eth0'
|
||||||
;;
|
;;
|
||||||
|
friendlyelec,nanopi-r5s)
|
||||||
|
ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
ucidef_set_interface_lan 'eth0'
|
ucidef_set_interface_lan 'eth0'
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user