-
-
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
base: main
Are you sure you want to change the base?
Conversation
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.
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 |
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.