forked from armbian/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'armbian/main'
- Loading branch information
Showing
90 changed files
with
3,837 additions
and
10,489 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Rockchip RK3566 quad core 2GB-8GB GBE eMMC NVMe USB3 WiFi | ||
BOARD_NAME="BigTreeTech CB2" | ||
BOARDFAMILY="rockchip64" | ||
BOARD_MAINTAINER="JohnTheCoolingFan" | ||
BOOTCONFIG="bigtreetech-cb2-rk3566_defconfig" | ||
BOOT_SOC="rk3566" | ||
KERNEL_TARGET="current,edge" | ||
KERNEL_TEST_TARGET="current" | ||
BOOT_FDT_FILE="rockchip/rk3566-bigtreetech-cb2.dtb" | ||
IMAGE_PARTITION_TABLE="gpt" | ||
BOOT_SCENARIO="spl-blobs" | ||
OVERLAY_PREFIX='rk3566' | ||
FULL_DESKTOP="yes" | ||
BOOT_LOGO="desktop" | ||
|
||
# TODO: replace with BOOT_SCENARIO=binman when it gets merged and in good shape | ||
function post_family_config__bigtreetech-cb2_uboot_overrides() { | ||
display_alert "$BOARD" "mainline u-boot overrides" "info" | ||
|
||
DDR_BLOB="rk35/rk3566_ddr_1056MHz_v1.21.bin" | ||
BL31_BLOB="rk35/rk3568_bl31_v1.44.elf" # NOT a typo, bl31 is shared across 68 and 66 | ||
|
||
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc | ||
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" | ||
declare -g BOOTBRANCH="tag:v2024.10" | ||
declare -g BOOTPATCHDIR="v2024.10/board_bigtreetech-cb2" | ||
#declare -g BOOTDIR="u-boot-${BOARD}" | ||
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin" | ||
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 | ||
} | ||
|
||
function write_uboot_platform_mtd() { | ||
declare -a extra_opts_flashcp=("--verbose") | ||
if flashcp -h | grep -q -e '--partition'; then | ||
echo "Confirmed flashcp supports --partition -- read and write only changed blocks." >&2 | ||
extra_opts_flashcp+=("--partition") | ||
else | ||
echo "flashcp does not support --partition, will write full SPI flash blocks." >&2 | ||
fi | ||
flashcp "${extra_opts_flashcp[@]}" "${1}/u-boot-rockchip-spi.bin" /dev/mtd0 | ||
} | ||
} | ||
|
||
# vim: ft=bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Rockchip RK3588 SoC octa core 4-16GB SoC eMMC USB3 NVME | ||
BOARD_NAME="CoolPi GenBook" | ||
BOARDFAMILY="rockchip-rk3588" | ||
BOARD_MAINTAINER="andyshrk" | ||
BOARD_FIRMWARE_INSTALL="-full" | ||
BOOT_SOC="rk3588" | ||
BOOTCONFIG="coolpi-cm5-genbook-rk3588_defconfig" | ||
KERNEL_TARGET="edge" | ||
FULL_DESKTOP="yes" | ||
BOOT_LOGO="desktop" | ||
BOOT_FDT_FILE="rockchip/rk3588-coolpi-cm5-genbook.dtb" | ||
BOOT_SCENARIO="spl-blobs" | ||
BOOT_SUPPORT_SPI="yes" | ||
BOOT_SPI_RKSPI_LOADER="yes" | ||
IMAGE_PARTITION_TABLE="gpt" | ||
|
||
# Mainline U-Boot | ||
function post_family_config_branch_edge__coolpi-genbook_use_mainline_uboot() { | ||
display_alert "$BOARD" "mainline (next branch) u-boot overrides for $BOARD / $BRANCH" "info" | ||
|
||
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # Mainline U-Boot | ||
unset BOOTBRANCH | ||
unset BOOTPATCHDIR | ||
declare -g BOOTBRANCH_BOARD="tag:v2025.01-rc3" | ||
declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin u-boot-rockchip-spi.bin" | ||
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 | ||
} | ||
|
||
function write_uboot_platform_mtd() { | ||
flashcp -v -p "$1/u-boot-rockchip-spi.bin" /dev/mtd0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
patch/kernel/archive/meson64-6.1/board-radxa-zero-dts-slow-down-sdio-for-working-emmc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Chen Jiali <[email protected]> | ||
Date: Tue, 23 Apr 2024 16:05:42 +0800 | ||
Subject: [PATCH 1/1] Reduce eMMC frequency to improve compatibility | ||
|
||
diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts | ||
index cf0a9be83..29ace14b4 100644 | ||
--- a/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts | ||
+++ b/arch/arm64/boot/dts/amlogic/meson-g12a-radxa-zero.dts | ||
@@ -358,7 +358,7 @@ &sd_emmc_c { | ||
cap-mmc-highspeed; | ||
mmc-ddr-1_8v; | ||
mmc-hs200-1_8v; | ||
- max-frequency = <200000000>; | ||
+ max-frequency = <150000000>; | ||
disable-wp; | ||
|
||
mmc-pwrseq = <&emmc_pwrseq>; |
Oops, something went wrong.