-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
radxa-RockPi4: Fix identifier for RockPi 4 model A/B #123
base: released
Are you sure you want to change the base?
Conversation
Hmmm, the main discrepancy can be observed in the directory name, and that identifier. I probably copied from the directory name. I also think that this check needs a bit of rework. Not sure what should be done. That check comes from an early brick of mine, where I wrote the Platform Firmware of a compatible-enough, but not actually working board on the wrong board. Writing things in Hush is a real pain, so asking an additional question (do you want to continue anyway?) will be painful. Though we do have Nix at our disposal to somehow smooth over this. Anyway, I'm thinking that a Linux-based installer is going to be the more robust solution, as anyway it would be helpful to provide a sort of "doctor" utility, that can look at the current state of things for troubleshooting purposes. E.g. the currently installed Platform Firmware. |
Support for the RockPi4 was added by me in #85 - if you look at the git blame and history, both the path and the identifier were set by me. So you did nothing wrong as you didn't change anything. And that's what causes my confusion, because I was able to flash the version from the PR (ad7aabc) without problems.
I think that this type of validation is important to prevent users that can't help themself from bricking their hardware.
That might be a first good solution (similar to some partitioning tools where you have to type uppercase
Would be great, but especially for the RockPi4 it's a bad situation: The spi-nor is not supported (yet) in the kernel, so there is no way of communication with it from kernel/userspace. |
In hush :) |
I think this is blocked on figuring out a solution for mismatched identifiers. Or am I missing something? |
Yes and no, I think. On one hand, this PR did fix the mismatching identifier and I don't know whether it might just be caused by some u-boot internal things(?), on the other hand, it would be great to have some way of having the identification process in a more reliable shape to be strict enough to prevent problematic flashing, while allowing for some tolerances (like capitalization). |
This closes #122
I'm really confused about this. Will test the release files for the 4C, too (EDIT: 4C works fine).