|
| 1 | +# Rockchip RK3566 quad core, dual GBe NIC |
| 2 | +BOARD_NAME="FriendlyElec NanoPi R3S" |
| 3 | +BOARDFAMILY="rk35xx" |
| 4 | +BOARD_MAINTAINER="" |
| 5 | +BOOTCONFIG="nanopi-r3s-rk3566_defconfig" |
| 6 | +KERNEL_TARGET="edge" |
| 7 | +#KERNEL_TEST_TARGET="edge" |
| 8 | +FULL_DESKTOP="yes" |
| 9 | +BOOT_LOGO="desktop" |
| 10 | +BOOT_FDT_FILE="rockchip/rk3566-nanopi-r3s.dtb" |
| 11 | +IMAGE_PARTITION_TABLE="gpt" |
| 12 | +BOOT_SCENARIO="spl-blobs" |
| 13 | +BOOTFS_TYPE="fat" # Only for vendor/legacy |
| 14 | + |
| 15 | +function post_family_config_branch_edge__use_mainline_dtb_name() { |
| 16 | + unset BOOT_FDT_FILE # boot.scr will use whatever u-boot detects and sets 'fdtfile' to |
| 17 | + unset BOOTFS_TYPE # mainline u-boot can boot ext4 directly |
| 18 | +} |
| 19 | + |
| 20 | +# Override family config for this board; let's avoid conditionals in family config. |
| 21 | +# vendor support not there yet |
| 22 | +function post_family_config__nanopi-r3s_use_vendor_uboot() { |
| 23 | + BOOTSOURCE='https://github.com/radxa/u-boot.git' |
| 24 | + BOOTBRANCH='branch:rk35xx-2024.01' |
| 25 | + BOOTPATCHDIR="u-boot-radxa-latest" |
| 26 | + |
| 27 | + UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin" |
| 28 | + |
| 29 | + unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd |
| 30 | + |
| 31 | + function write_uboot_platform() { |
| 32 | + dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none |
| 33 | + } |
| 34 | +} |
| 35 | + |
| 36 | +function post_family_config_branch_edge__nanopi-r3s_use_mainline_uboot() { |
| 37 | + BOOTCONFIG="nanopi-r3s-rk3566_defconfig" |
| 38 | + BOOTSOURCE="https://github.com/u-boot/u-boot" |
| 39 | + BOOTBRANCH="tag:v2024.10" |
| 40 | + BOOTPATCHDIR="v2024.10" |
| 41 | + |
| 42 | + UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin" |
| 43 | + |
| 44 | + unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd |
| 45 | + |
| 46 | + function write_uboot_platform() { |
| 47 | + dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none |
| 48 | + } |
| 49 | +} |
0 commit comments