-
-
Couldn't load subscription status.
- Fork 2.7k
Armbian-install script fixes #8654
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
base: main
Are you sure you want to change the base?
Armbian-install script fixes #8654
Conversation
WalkthroughThe PR changes packages/bsp/common/usr/bin/armbian-install. For MTD boot paths, the script now sets or appends a Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/bsp/common/usr/bin/armbian-install(2 hunks)
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: tabrisnet
PR: armbian/build#0
File: :0-0
Timestamp: 2025-08-30T06:56:33.372Z
Learning: In Armbian kernel configuration, the BTRFS configuration logic preserves existing settings (whether built-in 'y' or module 'm') and only sets BTRFS_FS to module when it was previously disabled or not set, achieving "allow but not require" flexibility while maintaining backward compatibility.
📚 Learning: 2025-09-01T06:11:43.476Z
Learnt from: wei633
PR: armbian/build#8557
File: config/bootscripts/boot-xpressreal-t3.cmd:0-0
Timestamp: 2025-09-01T06:11:43.476Z
Learning: In Armbian boot scripts without initramfs support, UUID= and LABEL= style device paths cannot be used for rootdev as they require initramfs to resolve during boot. Only direct device paths (/dev/mmcblkXpY) or PARTUUID= references (which U-Boot can resolve) will work.
Applied to files:
packages/bsp/common/usr/bin/armbian-install
📚 Learning: 2025-06-04T23:45:38.860Z
Learnt from: djurny
PR: armbian/build#8272
File: config/bootscripts/boot-mvebu.cmd:182-186
Timestamp: 2025-06-04T23:45:38.860Z
Learning: In config/bootscripts/boot-mvebu.cmd, the `fdtfile` variable is mandatory for booting and is pre-set by U-Boot, but can be overridden via armbianEnv.txt. If `fdtfile` is empty, the subsequent device tree file search logic will eventually fail and trigger the critical error "Cannot find DT!" with proper error handling.
Applied to files:
packages/bsp/common/usr/bin/armbian-install
5bec10d to
6efe6ca
Compare
|
this isn't a blocker, just a request: can you test if this boots with |
|
@tabrisnet unfortunately, I can't get the board to boot from MTD even with ext4. It's an issue I am also going to try and find the cause of. But right now I can probably only reproduce the boot from SD, root on sata case. If that's enough, I can try it. |
sounds reasonable; please be sure to mention which FS are on |
|
Finally managed to install and boot, had to reconfigure u-boot. Setting Building a custom kernel to make btrfs a module. |
|
@tabrisnet boots with root as btrfs, btrfs as module, no separate |
|
woohoo 🥳 🎉
Thank you for confirming.
I've been on a bit of a "modulize all the things" kick in the Armbian kernel build system, and this is good info for some of the misgivings I had and was given by other maintainers.
Mind you, my rule has been: either inessential to boot or inessential for basic functionality of the system/board; with a heavy focus on "will 90% of users use this functionality, or will making this thing a module adversely affect users of the board".
Next question I need to solve: how much does zstd module [de]compression [on disc or in the initramfs] slow down boot on low end SOCs like the H5 or S905x.
Sent from myPhone.
|
Description
rootfstypeinarmbianEnv.txtin the boot from mtd, system on sata/nvme scenariobtrfscommand when the btrfs filesystem is selected, and prompt the user whether to install it or not.The first fix is an attempt to fix AR-2556 (armbian/config#233) but the original issue doesn't provide a way to reproduce, so i cannot verify if this does actually solve the issue. There's no mention of what boot method is used and where the root partition is installed to. If the
rootfstypein/boot/armbianEnv.txthas no effect in the "boot from MTD" scenario, it could be excluded from this PR.The
btrfscheck was introduced to make it more obvious what the issue is when the user select btrfs root andbtrfs-progspackage is not installed, as the script would only fail on "Partition too small" withAvailable: <empty string> MBas the message.For the
btrfscheck, I have several points I'd like to get opinions on:btrfs-progsif the user selected a btrfs filesystem?How Has This Been Tested?
On Radxa Rock 5B+ with a sata ssd
armbian-installwith boot from MTD, selectingbtrfsfilesystem type and checking/boot/armbianEnv.txtin the resulting partition forrootfstype=btrfsarmbian-install, selectingbtrfsfilesystem type for the root partition with and withoutbtrfs-progsinstalledChecklist: