2020-11-18 21:32:40 +00:00
|
|
|
# Rockchip RK3328 quad core 1GB-4GB GBE eMMC USB3 WiFi
|
|
|
|
|
BOARD_NAME="Station M1"
|
2024-06-29 13:59:00 +00:00
|
|
|
BOARDFAMILY="rockchip64"
|
|
|
|
|
BOOT_SOC="rk3328"
|
2023-06-19 15:30:35 +00:00
|
|
|
BOARD_MAINTAINER="150balbes"
|
2024-06-29 13:59:00 +00:00
|
|
|
BOOTCONFIG="roc-cc-rk3328_defconfig"
|
|
|
|
|
KERNEL_TARGET="current,edge"
|
2024-08-21 09:43:41 +00:00
|
|
|
KERNEL_TEST_TARGET="current"
|
2020-11-18 21:32:40 +00:00
|
|
|
FULL_DESKTOP="yes"
|
|
|
|
|
BOOT_LOGO="desktop"
|
2020-11-28 15:52:34 +00:00
|
|
|
BOOT_FDT_FILE="rockchip/rk3328-roc-pc.dtb"
|
2021-07-07 14:15:34 +00:00
|
|
|
ASOUND_STATE="asound.state.station-m1"
|
2023-03-21 14:40:22 +00:00
|
|
|
|
|
|
|
|
function post_family_tweaks__station_m1() {
|
2024-07-08 15:00:38 +00:00
|
|
|
display_alert "$BOARD" "Installing board tweaks" "info"
|
2023-03-21 14:40:22 +00:00
|
|
|
|
|
|
|
|
cp -R $SRC/packages/blobs/rtl8723bt_fw/* $SDCARD/lib/firmware/rtl_bt/
|
2024-06-29 13:59:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Mainline U-Boot
|
|
|
|
|
function post_family_config__station_m1_use_mainline_uboot() {
|
|
|
|
|
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
|
|
|
|
|
|
2025-11-13 07:46:16 +00:00
|
|
|
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"
|
2024-07-06 22:16:58 +00:00
|
|
|
declare -g BOOTBRANCH="tag:v2024.07"
|
2024-06-29 13:59:00 +00:00
|
|
|
declare -g BOOTPATCHDIR="v2024.07/board_${BOARD}"
|
|
|
|
|
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
|
2023-03-21 14:40:22 +00:00
|
|
|
|
2024-06-29 13:59:00 +00:00
|
|
|
# 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
|
|
|
|
|
}
|
2023-03-21 14:40:22 +00:00
|
|
|
}
|