* Add BOARD_VENDOR to board configs * Add BOARD_VENDOR to all board configuration files - Added BOARD_VENDOR variable to board configuration files - Using lowercase vendor slugs (e.g., friendlyelec, radxa, xunlong) - Set 'generic' for boards without clear vendor match - TV box files (.tvb) excluded as they have no clear vendor - Enables better board categorization and vendor-specific handling * Manual adjustements on top of AI matching * Drop doubled definition and add retroid vendor
61 lines
2.7 KiB
Plaintext
61 lines
2.7 KiB
Plaintext
# Rockchip RK3576 SoC octa core 2-4-16GB RAM SoC 2x 2.5GbE eMMC USB3 WIFI
|
|
BOARD_NAME="NanoPi R76S"
|
|
BOARD_VENDOR="friendlyelec"
|
|
BOARDFAMILY="rk35xx"
|
|
BOOTCONFIG="nanopi-r76s-rk3576_defconfig"
|
|
KERNEL_TARGET="vendor,edge" # WIP: current kernel
|
|
KERNEL_TEST_TARGET="vendor,edge"
|
|
FULL_DESKTOP="yes"
|
|
BOOT_LOGO="desktop"
|
|
BOOT_FDT_FILE="rockchip/rk3576-nanopi-r76s.dtb"
|
|
BOOT_SCENARIO="spl-blobs"
|
|
IMAGE_PARTITION_TABLE="gpt"
|
|
BOARD_MAINTAINER="SuperKali"
|
|
|
|
|
|
function post_family_tweaks__nanopi-r76s_naming_audios() {
|
|
display_alert "$BOARD" "Renaming NanoPi R76S audio" "info"
|
|
|
|
mkdir -p $SDCARD/etc/udev/rules.d/
|
|
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi-sound", ENV{SOUND_DESCRIPTION}="HDMI Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
|
|
return 0
|
|
}
|
|
|
|
function post_family_config__nanopi_r76s_use_mainline_uboot() {
|
|
# Use mainline U-Boot for edge, keep vendor U-Boot for vendor branch
|
|
[[ "${BRANCH}" == "vendor" ]] && return 0
|
|
|
|
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"
|
|
|
|
declare -g BOOTDELAY=1
|
|
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git"
|
|
declare -g BOOTBRANCH="tag:v2026.01-rc2"
|
|
declare -g BOOTPATCHDIR="v2026.01"
|
|
unset BOOT_FDT_FILE
|
|
|
|
# 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 # disable stuff from rockchip64_common; we're using binman here which does all the work already
|
|
|
|
# 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
|
|
}
|
|
}
|
|
|
|
# "rockchip-common: boot SD card first, then NVMe, then mmc"
|
|
# include/configs/rockchip-common.h
|
|
# -#define BOOT_TARGETS "mmc1 mmc0 nvme scsi usb pxe dhcp"
|
|
# +#define BOOT_TARGETS "mmc0 mmc1 nvme scsi usb pxe dhcp"
|
|
# On NanoPi R76S, mmc0 is the SD card, mmc1 is the eMMC slot
|
|
function pre_config_uboot_target__nanopi_r76s_patch_rockchip_common_boot_order() {
|
|
[[ "${BRANCH}" == "vendor" ]] && return 0
|
|
|
|
declare -a rockchip_uboot_targets=("mmc0" "mmc1" "nvme" "scsi" "usb" "pxe" "dhcp") # for future make-this-generic delight
|
|
display_alert "u-boot for ${BOARD}/${BRANCH}" "u-boot: adjust boot order to '${rockchip_uboot_targets[*]}'" "info"
|
|
sed -i -e "s/#define BOOT_TARGETS.*/#define BOOT_TARGETS \"${rockchip_uboot_targets[*]}\"/" include/configs/rockchip-common.h
|
|
regular_git diff -u include/configs/rockchip-common.h || true
|
|
}
|