Skip to content

Commit fffd224

Browse files
Merge branch 'main' into consolidation-rocks0
2 parents 59e6636 + ac49262 commit fffd224

File tree

6 files changed

+33
-73
lines changed

6 files changed

+33
-73
lines changed

.github/workflows/pr-kernel-security-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Get changed files
3636
id: changed-files
37-
uses: tj-actions/changed-files@27ae6b33eaed7bf87272fdeb9f1c54f9facc9d99 # v46.0.3
37+
uses: tj-actions/changed-files@b74df86ccb65173a8e33ba5492ac1a2ca6b216fd # v46.0.3
3838

3939
- name: Checkout repository
4040
uses: actions/checkout@v4

.github/workflows/pr-lint-scripts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
- name: Get changed files
3232
id: changed-files
33-
uses: tj-actions/changed-files@27ae6b33eaed7bf87272fdeb9f1c54f9facc9d99 # v46.0.3
33+
uses: tj-actions/changed-files@b74df86ccb65173a8e33ba5492ac1a2ca6b216fd # v46.0.3
3434

3535
- name: List all changed files
3636
run: |

config/boards/nanopi-r3s.csc

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,12 @@ IMAGE_PARTITION_TABLE="gpt"
1111
BOOT_SCENARIO="spl-blobs"
1212

1313

14-
function post_family_config_branch_edge__use_mainline_dtb_name() {
14+
function post_family_config__use_mainline_uboot() {
15+
if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
16+
return 0
17+
fi
1518
unset BOOT_FDT_FILE # boot.scr will use whatever u-boot detects and sets 'fdtfile' to
1619
unset BOOTFS_TYPE # mainline u-boot can boot ext4 directly
17-
}
18-
19-
function post_family_config_branch_current__use_mainline_dtb_name() {
20-
unset BOOT_FDT_FILE # boot.scr will use whatever u-boot detects and sets 'fdtfile' to
21-
unset BOOTFS_TYPE # mainline u-boot can boot ext4 directly
22-
}
23-
24-
25-
function post_family_config_branch_current__nanopi-r3s_use_mainline_uboot() {
26-
BOOTCONFIG="nanopi-r3s-rk3566_defconfig"
27-
BOOTSOURCE="https://github.com/u-boot/u-boot"
28-
BOOTBRANCH="tag:v2024.10"
29-
BOOTPATCHDIR="v2024.10"
30-
31-
UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
32-
33-
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
34-
35-
function write_uboot_platform() {
36-
dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
37-
}
38-
}
39-
40-
function post_family_config_branch_edge__nanopi-r3s_use_mainline_uboot() {
4120
BOOTCONFIG="nanopi-r3s-rk3566_defconfig"
4221
BOOTSOURCE="https://github.com/u-boot/u-boot"
4322
BOOTBRANCH="tag:v2025.01"

config/boards/radxa-zero3.csc

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@ IMAGE_PARTITION_TABLE="gpt"
1212
BOOT_SCENARIO="spl-blobs"
1313
BOOTFS_TYPE="fat" # Only for vendor/legacy
1414

15-
function post_family_config_branch_edge__use_mainline_dtb_name() {
15+
function post_family_config__use_mainline_uboot_except_vendor() {
16+
# use mainline u-boot for _current_ and _edge_
17+
if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
18+
return 0
19+
fi
1620
unset BOOT_FDT_FILE # boot.scr will use whatever u-boot detects and sets 'fdtfile' to
1721
unset BOOTFS_TYPE # mainline u-boot can boot ext4 directly
18-
}
19-
20-
# Override family config for this board; let's avoid conditionals in family config.
21-
function post_family_config__radxa-zero3_use_vendor_uboot() {
22-
BOOTSOURCE='https://github.com/radxa/u-boot.git'
23-
BOOTBRANCH='branch:rk35xx-2024.01'
24-
BOOTPATCHDIR="u-boot-radxa-latest"
22+
BOOTCONFIG="radxa-zero-3-rk3566_defconfig"
23+
BOOTSOURCE="https://github.com/u-boot/u-boot"
24+
BOOTBRANCH="tag:v2025.01"
25+
BOOTPATCHDIR="v2025.01"
2526

2627
UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
2728

@@ -32,11 +33,11 @@ function post_family_config__radxa-zero3_use_vendor_uboot() {
3233
}
3334
}
3435

35-
function post_family_config_branch_edge__radxa-zero3_use_mainline_uboot() {
36-
BOOTCONFIG="radxa-zero-3-rk3566_defconfig"
37-
BOOTSOURCE="https://github.com/u-boot/u-boot"
38-
BOOTBRANCH="tag:v2024.10"
39-
BOOTPATCHDIR="v2024.10"
36+
# Override family config for this board; let's avoid conditionals in family config.
37+
function post_family_config_branch_vendor__radxa-zero3_use_vendor_uboot() {
38+
BOOTSOURCE='https://github.com/radxa/u-boot.git'
39+
BOOTBRANCH='branch:rk35xx-2024.01'
40+
BOOTPATCHDIR="u-boot-radxa-latest"
4041

4142
UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
4243

@@ -45,4 +46,4 @@ function post_family_config_branch_edge__radxa-zero3_use_mainline_uboot() {
4546
function write_uboot_platform() {
4647
dd if=$1/u-boot-rockchip.bin of=$2 seek=64 conv=notrunc status=none
4748
}
48-
}
49+
}

config/boards/rock-3a.conf

Lines changed: 11 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BOARD_MAINTAINER="ZazaBR amazingfate catalinii vamzii"
55
BOOTCONFIG="rock-3a-rk3568_defconfig"
66
BOOTCONFIG_SATA="rock-3a-sata-rk3568_defconfig"
77
KERNEL_TARGET="current,edge,vendor"
8-
KERNEL_TEST_TARGET="current"
8+
KERNEL_TEST_TARGET="current,vendor"
99
FULL_DESKTOP="yes"
1010
BOOT_LOGO="desktop"
1111
BOOT_FDT_FILE="rockchip/rk3568-rock-3a.dtb"
@@ -15,29 +15,17 @@ BOOT_SPI_RKSPI_LOADER="yes"
1515
IMAGE_PARTITION_TABLE="gpt"
1616
BOOTFS_TYPE="fat"
1717

18-
function post_family_config_branch_edge__rock-3a_use_mainline_uboot() {
19-
display_alert "$BOARD" "Mainline U-Boot overrides for $BOARD - $BRANCH" "info"
20-
unset BOOTFS_TYPE # fixes armbian-install and unneeded for modern uboot anyway
21-
declare -g BOOTCONFIG="rock-3a-rk3568_defconfig"
22-
declare -g BOOTDELAY=1
23-
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot"
24-
declare -g BOOTBRANCH="tag:v2025.01"
25-
declare -g BOOTPATCHDIR="v2025.01"
26-
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory
27-
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"
28-
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
29-
30-
# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
31-
function write_uboot_platform() {
32-
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
33-
}
34-
35-
function write_uboot_platform_mtd() {
36-
flashcp -v -p "$1/u-boot-rockchip-spi.bin" /dev/mtd0
37-
}
38-
}
18+
function post_family_config__rock-3a_use_mainline_uboot_except_vendor_and_add_sata_target() {
19+
display_alert "$BOARD" "Configuring ($BOARD) standard and sata uboot target map" "info"
20+
UBOOT_TARGET_MAP="
21+
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG spl/u-boot-spl.bin u-boot.dtb u-boot.itb;;idbloader.img u-boot.itb rkspi_loader.img
22+
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG_SATA spl/u-boot-spl.bin u-boot.dtb u-boot.itb;; rkspi_loader_sata.img"
23+
24+
# use mainline uboot for _current_ and _edge_
25+
if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
26+
return 0
27+
fi
3928

40-
function post_family_config_branch_current__rock-3a_use_mainline_uboot() {
4129
display_alert "$BOARD" "Mainline U-Boot overrides for $BOARD - $BRANCH" "info"
4230
unset BOOTFS_TYPE # fixes armbian-install and unneeded for modern uboot anyway
4331
declare -g BOOTCONFIG="rock-3a-rk3568_defconfig"
@@ -59,16 +47,7 @@ function post_family_config_branch_current__rock-3a_use_mainline_uboot() {
5947
}
6048
}
6149

62-
function post_family_config__rock3a_uboot_add_sata_target() {
63-
display_alert "$BOARD" "Configuring ($BOARD) standard and sata uboot target map" "info"
64-
65-
UBOOT_TARGET_MAP="
66-
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG spl/u-boot-spl.bin u-boot.dtb u-boot.itb;;idbloader.img u-boot.itb rkspi_loader.img
67-
BL31=$RKBIN_DIR/$BL31_BLOB $BOOTCONFIG_SATA spl/u-boot-spl.bin u-boot.dtb u-boot.itb;; rkspi_loader_sata.img"
68-
}
69-
7050
function post_uboot_custom_postprocess__create_sata_spi_image() {
71-
7251
display_alert "$BOARD" "Create rkspi_loader_sata.img" "info"
7352

7453
dd if=/dev/zero of=rkspi_loader_sata.img bs=1M count=0 seek=16

config/sources/families/include/uefi_common.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ case "${BRANCH}" in
2626
declare -g INSTALL_ARMBIAN_FIRMWARE="no"
2727
declare -g EXTRAWIFI="no"
2828
declare -g UEFI_GRUB_TIMEOUT=0
29+
declare -g QCOW2_RESIZE_AMOUNT="16G"
2930
;;
3031

3132
legacy)

0 commit comments

Comments
 (0)