2022-01-11 14:26:11 +00:00
|
|
|
# Rockchip RK3568 quad core 2GB-4GB GBE eMMC NVMe SATA USB3 WiFi
|
2021-12-26 15:37:49 +00:00
|
|
|
BOARD_NAME="Station P2"
|
2024-06-29 13:59:16 +00:00
|
|
|
BOARDFAMILY="rockchip64"
|
|
|
|
|
BOOT_SOC="rk3568"
|
2024-07-25 10:28:46 +00:00
|
|
|
BOARD_MAINTAINER=""
|
2023-07-25 11:43:46 +00:00
|
|
|
KERNEL_TARGET="current,edge"
|
2024-08-21 09:43:41 +00:00
|
|
|
KERNEL_TEST_TARGET="current"
|
2021-12-26 15:37:49 +00:00
|
|
|
FULL_DESKTOP="yes"
|
|
|
|
|
BOOT_LOGO="desktop"
|
2024-07-25 10:28:46 +00:00
|
|
|
BOOT_FDT_FILE="rockchip/rk3568-roc-pc.dtb"
|
2021-12-26 15:37:49 +00:00
|
|
|
ASOUND_STATE="asound.state.station-p2"
|
|
|
|
|
IMAGE_PARTITION_TABLE="gpt"
|
2023-03-21 14:40:22 +00:00
|
|
|
|
2024-06-29 13:59:16 +00:00
|
|
|
# Mainline U-Boot
|
|
|
|
|
function post_family_config__station_p2_use_mainline_uboot() {
|
|
|
|
|
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
|
|
|
|
|
|
|
|
|
|
declare -g BOOTCONFIG="generic-rk3568_defconfig" # Use generic defconfig which should boot all RK3568 boards
|
|
|
|
|
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
|
2024-07-06 22:16:58 +00:00
|
|
|
declare -g BOOTBRANCH="tag:v2024.07"
|
2024-06-29 13:59:16 +00:00
|
|
|
declare -g BOOTPATCHDIR="v2024.07/board_${BOARD}"
|
|
|
|
|
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency
|
|
|
|
|
|
|
|
|
|
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"
|
|
|
|
|
|
|
|
|
|
# Disable stuff from rockchip64_common; we're using binman here which does all the work already
|
|
|
|
|
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
|
|
|
|
|
|
|
|
|
|
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
|
|
|
|
|
function write_uboot_platform() {
|
|
|
|
|
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
|
|
|
|
|
}
|
|
|
|
|
}
|