-
-
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
nanopi-r6c: u-boot: bump to 2025.01 final, with working UMS and SD -> NVMe -> eMMC boot order #7682
base: main
Are you sure you want to change the base?
Conversation
… NVMe -> eMMC boot order - also LEDs, networking, more supported compression methods... - copypasta reigns supreme. refactor is coming, just not today - also hack the u-boot dtsi for consistent-with-Linux-mainline-DT mmc/sd numbering
function pre_config_uboot_target__r6c_patch_uboot_dtsi_for_ums() { | ||
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 | ||
cat <<- EOD >> arch/arm/dts/rk3588s-nanopi-r6c-u-boot.dtsi | ||
&u2phy0 { status = "okay"; }; | ||
&u2phy0_otg { status = "okay"; }; | ||
&usbdp_phy0 { status = "okay"; }; | ||
&usb_host0_xhci { dr_mode = "peripheral"; maximum-speed = "high-speed"; status = "okay"; }; | ||
EOD | ||
} |
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.
Doesn't this disable host mode for one of the USB ports?
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.
Yes, it's exactly the point.
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.
Alright, I'll trust that this makes sense for most people's setups 👍
|
||
declare -g BOOTBRANCH="tag:v2025.01" | ||
declare -g BOOTPATCHDIR="v2025.01" | ||
declare -g BOOTDIR="u-boot-${BOARD}" # do not share u-boot directory |
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.
Is setting a custom BOOTDIR needed specifically or just copy-paste stuff?
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.
bit of both; recently I changed the overall u-boot building code to clean the dir completely before building a target; before that, you would risk using one of the previous build that ran on the same BOOTDIR.
nanopi-r6c: u-boot: bump to 2025.01 final, with working UMS and SD -> NVMe -> eMMC boot order
EXT=uefi-edk2-rk3588