-
-
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
bootscripts: Allwinner: Bugfix: Remove "allwinner/" from 3 boards configurations #7535
Conversation
2c
|
Yes, it is very desirable. |
What's it? How to deal with it? ===== |
Happens to me as well. #7514 (comment) |
Build image and start on board:
OK! Test 2:
For the DTB file, the error was handled correctly, the kernel loaded, Test 3:
OK! Test 4:
In the board/sunxi/board.c#L826 file, this is a hard-coded value. I can fix this with a patch, but other users who will use other versions of u-boot |
I don't understand why Armbian uses
It seems to me this is just adding an extra layer of confusion to the boot process. Of course this can be adjusted by setting your own var in the script.
Using this logic the overlay dir can also be set as a var.
I don't do exactly this, but something like it in a boot.cmd script I've been working on. Anyway, I think removing the EDIT: |
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.
Tested on BigTreeTech CB1, no issues
Description of the problem: The kernel and in particular the linux-dtb package may have been assembled What do we have with the values of the variables by default in the u-boot? sunxi: sunxi64: And it's hard-coded in the u-boot itself. In the board/sunxi/board.c#L826 file. |
I have found a solution! This is the setexpr command. Test 4:
It cannot download a non-existent file and downloads the file by default.
|
2811464
to
7eb71a0
Compare
Test's:
2x4=8 OK! |
Test's for sunxi on board bananapi-m3: 2x4=8 OK! Check for updates and reboots as well.
I am surprised at this avant-garde behavior. After testing: |
I'm done with this |
I just downloaded this package and installed it manually. |
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.
Tested on the BPI-M4-Zero
You should only have one kernel installed.
Allwinner is good with this PR and should we alter all build configs at once? What about others - amlogic, rockchip, exotics ... are we confident to just change? Yes, its some work. |
rockchip64 - I can do it and check it out. But let's first combine this into the main one and look at the reaction of users for 2-3 months. I've rebased this relative to the main branch. |
Set the expected default path to /boot/dtb/allwinner and start analyzing if the DTB file is not found in this path. The folder with the vendor's name is now part of the path, not part of the file name. This greatly facilitates the analysis of various possible options in a simple u-boot shell.
Inform the user about the actual file that will be uploaded on the first iteration. Inform the user that it cannot be downloaded only once if the first iteration was unsuccessful.
In the second iteration, we check the path that does not contain the vendor folder. But this will also be done if the real path contains the vendor's folder and the vendor's name is contained in the DTB file name as fdtfile=allwinner/sun50i-*-bananapi-*.dtb. However, overlays will not be available. Remove "allwinner/" from all board configurations that use the boot script mechanism so that the script works correctly. Signed-off-by: The-going <[email protected]>
Use the DTB name from the u-boot default for the third iteration if the provided DTB name was not found. Also delete the duplicate of the previous iteration.
Make the script work silently when testing path options and report only the actual file being uploaded. Delete the duplicate iteration.
After that, the script successfully loads the DTB file from two possible paths and overlays. If the file does not exist, then the default file will be uploaded.
Do not inform the user if the fixup.scr file was not found.
e263251
to
c178a09
Compare
Now we can set two variables in the file armbianEnv.txt |
Description
Fix the script for it to work correctly and the three configuration files that use this script.
Remove "allwinner/" from all board configurations that use the boot script mechanism
so that the script works correctly.
Tell the user only the actual actions.
Make the script work silently when testing path options and report only the actual file
being uploaded.
Delete the duplicate iteration.
Inform interested users:
@pyavitz @JohnTheCoolingFan @amazingfate @DGxInfinitY
How Has This Been Tested?
Where the vendor folder does not exist or the DTB file name is incorrect.