-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rockchip-rk3588: rock-5b current, edge: u-boot: bump to mainline 2024.10-rc3 #7135
Open
alexl83
wants to merge
6
commits into
armbian:main
Choose a base branch
from
alexl83:rk3588-rock-5b-mainline_bump-uboot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c955695
rockchip-rk3588: rock-5b current, edge: u-boot: bump to mainline 2024…
alexl83 f3465d3
comment an actual comment (prepend with #)
alexl83 875771a
Merge branch 'main' into rk3588-rock-5b-mainline_bump-uboot
alexl83 ff324a6
Merge branch 'main' into rk3588-rock-5b-mainline_bump-uboot
alexl83 4d4d95c
Merge branch 'main' into rk3588-rock-5b-mainline_bump-uboot
alexl83 d8f24ef
Merge branch 'main' into rk3588-rock-5b-mainline_bump-uboot
alexl83 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
|
@@ -27,16 +27,39 @@ function post_family_tweaks__rock5b_naming_audios() { | |
return 0 | ||
} | ||
|
||
# Mainline u-boot or Kwiboo's tree | ||
# Mainline u-boot tree | ||
function post_family_config_branch_edge__rock-5b_use_mainline_uboot() { | ||
display_alert "$BOARD" "mainline (next branch) u-boot overrides for $BOARD / $BRANCH" "info" | ||
|
||
declare -g BOOTCONFIG="rock5b-rk3588_defconfig" # override the default for the board/family | ||
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc | ||
declare -g BOOTSOURCE="https://github.com/Kwiboo/u-boot-rockchip.git" # We ❤️ Kwiboo's tree | ||
declare -g BOOTBRANCH="branch:rk3xxx-2024.04" # commit:31522fe7b3c7733313e1c5eb4e340487f6000196 as of 2024-04-01 | ||
declare -g BOOTPATCHDIR="v2024.04-rock5b-radxa" # empty; defconfig changes are done in hook below | ||
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory | ||
declare -g BOOTCONFIG="rock5b-rk3588_defconfig" # override the default for the board/family | ||
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" # We ❤️ Mainline tree | ||
declare -g BOOTBRANCH="tag:v2024.10-rc3" # commit:d11a60610e17373331ad17b6c5c31735cf9fffa8 as of 2024-08-20 | ||
declare -g BOOTPATCHDIR="v2024.10-rock5b-radxa" # empty; defconfig changes are done in hook below | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can use BOOTPATCHDIR="v2024.10", since |
||
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory | ||
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 | ||
} | ||
} | ||
|
||
# Mainline u-boot tree | ||
function post_family_config_branch_current__rock-5b_use_mainline_uboot() { | ||
display_alert "$BOARD" "mainline (next branch) u-boot overrides for $BOARD / $BRANCH" "info" | ||
|
||
declare -g BOOTCONFIG="rock5b-rk3588_defconfig" # override the default for the board/family | ||
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" # We ❤️ ainline tree | ||
declare -g BOOTBRANCH="tag:v2024.10-rc3" # commit:d11a60610e17373331ad17b6c5c31735cf9fffa8 as of 2024-08-20 | ||
declare -g BOOTPATCHDIR="v2024.10-rock5b-radxa" # empty; defconfig changes are done in hook below | ||
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory | ||
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 | ||
|
||
|
@@ -51,7 +74,7 @@ function post_family_config_branch_edge__rock-5b_use_mainline_uboot() { | |
} | ||
|
||
function post_config_uboot_target__extra_configs_for_rock5b_mainline_environment_in_spi() { | ||
[[ "${BRANCH}" != "edge" ]] && return 0 | ||
[[ "${BRANCH}" != "edge" && "${BRANCH}" != "current" ]] && return 0 | ||
|
||
display_alert "$BOARD" "u-boot configs for ${BOOTBRANCH} u-boot config BRANCH=${BRANCH}" "info" | ||
run_host_command_logged scripts/config --set-val CONFIG_ENV_IS_NOWHERE "n" | ||
|
@@ -60,6 +83,10 @@ function post_config_uboot_target__extra_configs_for_rock5b_mainline_environment | |
run_host_command_logged scripts/config --set-val CONFIG_ENV_OVERWRITE "y" | ||
run_host_command_logged scripts/config --set-val CONFIG_ENV_SIZE "0x20000" | ||
run_host_command_logged scripts/config --set-val CONFIG_ENV_OFFSET "0xc00000" | ||
run_host_command_logged scripts/config --set-val CONFIG_BOARD_RNG_SEED "y" | ||
run_host_command_logged scripts/config --set-val ARMV8_CRYPTO "n" #broken as per 2024.10-rc3 | ||
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA1 "n" #broken as per 2024.10-rc3 | ||
run_host_command_logged scripts/config --set-val ARMV8_CE_SHA256 "n" #broken as per 2024.10-rc3 | ||
} | ||
|
||
# Include fw_setenv, configured to point to the correct spot on the SPI Flash | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better idea to add function without branch notation and use if-return in order to avoid code duplication