Skip to content

Commit 98914fb

Browse files
rpardiniigorpecovnik
authored andcommitted
mekotronics-r58x-pro: mainline u-boot (and LCD support) also for vendor branch
- this unifies board config; vendor branch only gets a different DTB name and bluetooth stuff extra on top of edge - drop usage of shared vendor/mekotronics config fragments
1 parent 5a8ec10 commit 98914fb

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

config/boards/mekotronics-r58x-pro.csc

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ declare -g IMAGE_PARTITION_TABLE="gpt"
1313
# Does not have a UEFI_EDK2_BOARD_ID
1414

1515
if [[ "${BRANCH}" == "vendor" || "${BRANCH}" == "legacy" ]]; then
16+
# Attention: does _not_ use the vendor/mekotronics shared config anymore; mainline u-boot also for vendor kernel.
17+
1618
display_alert "$BOARD" "vendor/legacy configuration applied for $BOARD / $BRANCH" "info"
17-
declare -g BOOTCONFIG="mekotronics_r58x-rk3588_defconfig" # vendor u-boot; with NVMe and a DTS
1819
declare -g BOOT_FDT_FILE="rockchip/rk3588-blueberry-edge-v12-maizhuo-linux.dtb" # different for vendor
19-
# Source shared vendor configuration; it does BOOT_SCENARIO="spl-blobs" & hciattach - common to all vendor-kernel Meko's
20-
source "${SRC}/config/sources/vendors/mekotronics/mekotronics-rk3588.conf.sh"
21-
return 0 # this returns early so below code is only for current/edge branches
20+
21+
# For the bluetooth
22+
declare -g BLUETOOTH_HCIATTACH_PARAMS="-s 115200 /dev/ttyS6 bcm43xx 1500000" # For the bluetooth-hciattach extension
23+
enable_extension "bluetooth-hciattach" # Enable the bluetooth-hciattach extension
24+
25+
# For the u-boot-menu extension (build with 'EXT=u-boot-menu')
26+
declare -g SRC_CMDLINE="loglevel=7 console=ttyS2,1500000 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory swapaccount=1"
2227
fi
2328

2429
# For current/edge branches:
@@ -57,8 +62,6 @@ function pre_config_uboot_target__meko_r58x_pro_patch_rockchip_common_boot_order
5762
}
5863

5964
function pre_config_uboot_target__meko_r58x_pro_patch_uboot_dtsi_for_ums() {
60-
[[ "${BRANCH}" == "vendor" ]] && return 0 # Not for 'vendor' branch, which uses 2017.09 vendor u-boot from Radxa
61-
6265
display_alert "u-boot for ${BOARD}" "u-boot: add to u-boot dtsi for UMS" "info" # avoid a patch, just append to the dtsi file
6366
# Append to the t6 u-boot dtsi file with stuff for enabling gadget/otg/peripheral mode
6467
cat <<- EOD >> arch/arm/dts/rk3588-mekotronics-r58x-pro-u-boot.dtsi

0 commit comments

Comments
 (0)