Skip to content

Commit

Permalink
Add separate family for rock 5b - rockchip-rk3588
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 28, 2022
1 parent 1320a5c commit c86b090
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 21 deletions.
2 changes: 1 addition & 1 deletion config/boards/rock-5b.wip
@@ -1,6 +1,6 @@
# Radxa RK3588 SoC
BOARD_NAME="Rock 5B"
BOARDFAMILY="rk35xx" # but will have its own LINUXFAMILY. this is a vendor kernel
BOARDFAMILY="rockchip-rk3588"
BOOTCONFIG="rock-5b-rk3588_defconfig"
KERNEL_TARGET="legacy"
FULL_DESKTOP="yes"
Expand Down
27 changes: 7 additions & 20 deletions config/sources/families/rk35xx.conf
@@ -1,15 +1,8 @@
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"

if [[ $BOARD == rock-3a ]]; then
BOOTSOURCE='https://github.com/radxa/u-boot.git'
BOOTBRANCH='branch:stable-4.19-rock3'
BOOTPATCHDIR="u-boot-rk35xx"
elif [[ $BOARD == rock-5b ]]; then
BOOTSOURCE='https://github.com/radxa/u-boot.git'
BOOTBRANCH='branch:stable-5.10-rock5'
BOOTPATCHDIR="u-boot-rock-5b" # this is a vendor u-boot, totally separate
BOOTDIR="u-boot-rock-5b" # use separate build dir, vendor u-boot
fi
BOOTSOURCE='https://github.com/radxa/u-boot.git'
BOOTBRANCH='branch:stable-4.19-rock3'
BOOTPATCHDIR="u-boot-rk35xx"
OVERLAY_PREFIX='rk35xx'

case $BRANCH in
Expand All @@ -18,22 +11,16 @@ case $BRANCH in
UBOOT_COMPILER="aarch64-linux-gnu-"
UBOOT_USE_GCC='< 8.0'
BOOTDIR='u-boot-rockchip64'
KERNELSOURCE='https://github.com/radxa/kernel'
KERNELBRANCH='branch:stable-4.19-rock3'
KERNELDIR='linux-rockchip64'
KERNELPATCHDIR='rk35xx-legacy'
if [[ $BOARD == rock-3a ]]; then
KERNELSOURCE='https://github.com/radxa/kernel'
KERNELBRANCH='branch:stable-4.19-rock3'
KERNELPATCHDIR='rk35xx-legacy'
BOOT_FDT_FILE="rockchip/rk3568-rock-3-a.dtb"
elif [[ $BOARD == rock-5b ]]; then
KERNELSOURCE='https://github.com/radxa/kernel'
KERNELBRANCH='branch:stable-5.10-rock5'
KERNELPATCHDIR='rk3588-legacy'
LINUXCONFIG=linux-rk3588-rock5b-legacy
LINUXFAMILY="rk3588-radxa-rock5b" # added by rpardini -- gotta be its own family to not conflict with rock-3a
fi

;;

# temporary until kernel 5.16 is well supported for rockchip64
# it has to be its own family too
edge)
Expand Down
29 changes: 29 additions & 0 deletions config/sources/families/rockchip-rk3588.conf
@@ -0,0 +1,29 @@
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"

BOOTSOURCE='https://github.com/radxa/u-boot.git'
BOOTBRANCH='branch:stable-5.10-rock5'
BOOTPATCHDIR="u-boot-rockchip-rk3588"

OVERLAY_PREFIX='rockchip-rk3588'

case $BRANCH in

legacy)
UBOOT_COMPILER="aarch64-linux-gnu-"
UBOOT_USE_GCC='< 8.0'
BOOTDIR='u-boot-rockchip64'
KERNELDIR='linux-rockchip64'
KERNELSOURCE='https://github.com/radxa/kernel'
KERNELBRANCH='branch:stable-5.10-rock5'
KERNELPATCHDIR='rockchip-rk3588-legacy'

;;

esac

prepare_boot_configuration

family_tweaks_bsp()
{
:
}

0 comments on commit c86b090

Please sign in to comment.