rockchip: fix baudrate for Radxa E25
According to the documentation[1], the serial baudrate of E25 is
115.2 Kbps, and setting it to 1.5 Mbps will cause onboard CH340B
USB-UART chip unstable.
Since mainline TPL is yet available, download patched TPL binary
from Radxa.
1. https://wiki.radxa.com/Rock3/CM/CM3I/E25/getting_started
Fixes: https://github.com/openwrt/openwrt/issues/15814
Fixes: f7c732bf9e
("rockchip: add Radxa E25 board support")
Tested-by: FUKAUMI Naoki <naoki@radxa.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15870
Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
9a8111fb25
commit
7a96d36188
4 changed files with 35 additions and 1 deletions
|
@ -37,9 +37,33 @@ define Trusted-Firmware-A/rk3568
|
||||||
TPL:=rk35/rk3568_ddr_1560MHz_v1.21.bin
|
TPL:=rk35/rk3568_ddr_1560MHz_v1.21.bin
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Trusted-Firmware-A/rk3568-e25
|
||||||
|
NAME:=Radxa E25 board
|
||||||
|
BUILD_SUBTARGET:=armv8
|
||||||
|
ATF:=rk35/rk3568_bl31_v1.44.elf
|
||||||
|
TPL:=rk35/rk3568_ddr_1560MHz_uart2_m0_115200_v1.21.bin
|
||||||
|
endef
|
||||||
|
|
||||||
TFA_TARGETS:= \
|
TFA_TARGETS:= \
|
||||||
rk3566 \
|
rk3566 \
|
||||||
rk3568
|
rk3568 \
|
||||||
|
rk3568-e25
|
||||||
|
|
||||||
|
ifeq ($(BUILD_VARIANT),rk3568-e25)
|
||||||
|
TPL_FILE:=rk3568_ddr_1560MHz_uart2_m0_115200_v1.21.bin
|
||||||
|
define Download/rk3568-tpl-e25
|
||||||
|
FILE:=$(TPL_FILE)
|
||||||
|
URL:=https://github.com/radxa/rkbin/raw/5696fab20dcac57c1458f72dc7604ba60e553adf/bin/rk35/
|
||||||
|
HASH:=1815f9649dc5661a3ef184b052da39286e51453a66f6ff53cc3e345d65dfabd4
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(eval $(call Download,rk3568-tpl-e25))
|
||||||
|
$(call Build/Prepare/Default)
|
||||||
|
|
||||||
|
$(CP) $(DL_DIR)/$(TPL_FILE) $(PKG_BUILD_DIR)/bin/rk35/
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
|
@ -174,6 +174,8 @@ endef
|
||||||
|
|
||||||
define U-Boot/radxa-e25-rk3568
|
define U-Boot/radxa-e25-rk3568
|
||||||
$(U-Boot/rk3568/Default)
|
$(U-Boot/rk3568/Default)
|
||||||
|
DEPENDS:=+PACKAGE_u-boot-$(1):trusted-firmware-a-rk3568-e25
|
||||||
|
TPL:=rk3568_ddr_1560MHz_uart2_m0_115200_v1.21.bin
|
||||||
NAME:=E25
|
NAME:=E25
|
||||||
BUILD_DEVICES:= \
|
BUILD_DEVICES:= \
|
||||||
radxa_e25
|
radxa_e25
|
||||||
|
|
|
@ -109,6 +109,7 @@ define Device/radxa_e25
|
||||||
DEVICE_MODEL := E25
|
DEVICE_MODEL := E25
|
||||||
SOC := rk3568
|
SOC := rk3568
|
||||||
DEVICE_DTS := rockchip/rk3568-radxa-e25
|
DEVICE_DTS := rockchip/rk3568-radxa-e25
|
||||||
|
BOOT_SCRIPT := radxa-e25
|
||||||
UBOOT_DEVICE_NAME := radxa-e25-rk3568
|
UBOOT_DEVICE_NAME := radxa-e25-rk3568
|
||||||
DEVICE_PACKAGES := kmod-r8169 kmod-ata-ahci-platform
|
DEVICE_PACKAGES := kmod-r8169 kmod-ata-ahci-platform
|
||||||
endef
|
endef
|
||||||
|
|
7
target/linux/rockchip/image/radxa-e25.bootscript
Normal file
7
target/linux/rockchip/image/radxa-e25.bootscript
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
part uuid ${devtype} ${devnum}:2 uuid
|
||||||
|
|
||||||
|
setenv bootargs "console=ttyS2,115200 earlycon=uart8250,mmio32,0xfe660000 root=PARTUUID=${uuid} rw rootwait";
|
||||||
|
|
||||||
|
load ${devtype} ${devnum}:1 ${kernel_addr_r} kernel.img
|
||||||
|
|
||||||
|
bootm ${kernel_addr_r}
|
Loading…
Reference in a new issue