-
-
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
Add Rockchip u-boot "binman" BOOT_SCENARIO #7505
Conversation
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.
Hey @brentr, git push --force
to forked PR branches are a thing, no need to recycle PR otherwise we lose the discussion context.
But since you squashed and split I'm gonna go nit:
- Take this as an opportunity to move the blobs to armbian/rkbin, with all the others. armbian/build is already a monster git fetch. PRs to armbian/rkbin are usually merged pretty fast
- Split the commit into the one the PR title is about, and 2 others for the boards in question.
- Use
bash lib/tools/shellfmt.sh
to fix whitespace issues in the 2 board files, commit, then optionally squash into the board commits - force push & re-request review
btw, by moving the blobs to the correct repo you can get rid of the |
I hope this will include the configurations for other rockchip SoCs as well, such as rk356x and others. Will make adding new rockchip boards easier and help keep other rockchip boards up to date. |
Great opportunity for you to test; the way I see this, for a board currently using hooks to do the binman stunt, moving the vars from hook to globals, removing the hooks, and setting |
@rpardini
(Since the tools in armbian/rkbin are 7 years out of date, I honestly thought the armbian clone was obsolete. I guess it's just become a dumping ground for blobs built with the tools in rockchip-linux/rkbin.) |
@rpardini |
@rpardini I've done everything else on your punch list. |
Merged. Thanks. It is indeed a dumping ground for rk stuff; the main point being that not everyone who fetches armbian/build will need rkbins, and those are fetched on-demand anyway.
Multiple PR's != multiple commits in a single PR. In the end of the day, what will survive history here is what is in git (commits), not GitHub PR's. But really, it's fine for now -- see below, as you gain experience with git rebases those become simpler.
Hmm, rebases (and force-pushes) are essentially about rewriting history, in a controlled manner. See https://git-scm.com/book/en/v2/Git-Branching-Rebasing
Excellent. Thanks. I shall pick and test again. |
I misunderstood. In future, I'll take more care to split commits. |
- drop special handling for 3308's `legacy` branch - rpardini: note how SPI/mtd is not yet supported for this scenario Co-authored-by: Ricardo Pardini <ricardo@pardini.net> (squash/splits, shellfmt)
…an/rkbin - Move rk3308 boot blobs to armbian/rkbin - delete obsolete ones - Alter rock-s0 and rockpi-s to use the new "binman" BOOT_SCENARIO Co-authored-by: Ricardo Pardini <ricardo@pardini.net> (shellfmt; small fixes; squashes)
ff1b62e
to
b162924
Compare
You forgot this. I took the liberty then to pick, test, fix a few unrelated newline/whitespace changes, squash the blob removals out, and split the commits. I've pushed to your branch. I've also fired a build of all u-boots, some 600+, I'll post the links to GHA when they're done. That way we can be confident the stuff still builds fine. Thus far it's looking good. |
@rpardini How wide is your screen? The legacy of those years is a firm belief that lines longer than 100 chars should be avoided. |
not relevant here, discuss newline policy in a separate thread. |
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.
Heh, you squashed when you merged. Oh well. |
So much for preserving history lol. Although I wish git had some sort of "tagging" commit ranges, or un-squashing a squashed PR, although that would complicate things a lot. |
We won't force-push to |
@rpardini Is there a way to merge without squashing from the GitHub site? It looks like this is a policy set up when the repo is created: I may have missed the other options, but the default for armbian/build seems to be "Squash and merge" Should I have chosen "Create a merge commit" or "Rebase and merge"? |
@brentr you should've selected another option from the drop-down to the right of the merge button. Squash and merge squashes all the commits of the PR into a single one. A merge commit merged the two branches, preserving commits from the PR. I don't know which one is default in armbian/build, usually squash and merge is useful when the PR contains a lot of poorly organized commits and summarizing the PR changes into a single one will be fine for commit history (for example, when the PR contains a lot of commits tweaking changes from the first big commit(s)). It's too late to change it now, unless we do a whole revert PR commit and then re-merge dance which is dirty. So I'm just sharing my knowledge so that you know for the future. |
Squash and merge is the default. Found a good video with cool animations about this: Both merge (w/o squash) and rebase preserve commit history, but rebase reorders the sequence of commits, moving the most recently rebased to the head of the tree. |
Last used is default. |
@igorpecovnik |
We've "enforce linear history" enabled, so "Merge" is not an option. I think it's only "Rebase" (which is correct) and "Squash" (which is useful for some situations, but not all). The default is stored on cookie/local storage and usually reflects the last used option. |
Description
Added a new "binman" BOOT_SCENARIO to allow other Rockchip boards to use 2024.10 with without resorting to defining custom write_uboot_platform() in each board config.
Update RockPI-S and Rock S0 from u-boot v2022.04 to u-boot v2024.10 to use the new "binman" BOOT_SCENARIO as an example.
It's my hope that other Rockchip board maintainers who are using u-boot's new binman single file boot image will take advantage of this to simplify their board configs.
[GitHub issue]#7485
[Jira]https://armbian.atlassian.net/browse/AR-2535
This pull request replaces the closed, stale PR #7486
Documentation summary for feature / change
How Has This Been Tested?
Checklist:
Please delete options that are not relevant.