-
Notifications
You must be signed in to change notification settings - Fork 140
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
cv_bsp_generator: correct CONFIG macro prefixes to CFG #14
base: socfpga_v2023.04
Are you sure you want to change the base?
cv_bsp_generator: correct CONFIG macro prefixes to CFG #14
Conversation
I think there is a mistake in the changes for hps.py. The handoff file hps.xml actually contains these keywords: Only the right hand-side needs changing, so for example: |
Thanks, @truhy — good catch. Verified and fixed. |
Thanks, this was useful. Hope this can be merged! |
I've encountered problems I think they are related to this. And definitely, the problem propagates to the compiling process of u-boot using this command "make -j$(nproc)." The command generates errors about the CFG/CONFIG mismatch in files like wrap_pll_config.c, wrap_iocsr_config.c, and wrap_sdram_config.c. |
c20548d
to
0e80ac2
Compare
0e80ac2
to
c1f9e79
Compare
@zamrimuh-intel Since you made the commit mentioned above, maybe you're the right person to review this? As noted in #14 (comment), the handoff files generated by Platform Designer (QSYS) still use the $ grep '_HPS_UART1_TX' my-quartus-project/hps_isw_handoff/soc_system_hps
my-quartus-project/hps_isw_handoff/soc_system_hps/hps.xml
95: <config name='CONFIG_HPS_UART1_TX' value='0' /> Notice that the Since you've already addressed most of what this PR originally aimed to do, I've just pushed an update here which builds on your work to fix the above issue. Edit: I notice that there's now a v2023.10 branch, and have verified that this PR applies cleanly there. I'm not sure how Intel's branch policies work, so please feel free to rebase and change the PR target if appropriate! |
I might overlooked this changes. Thanks to @truhy for mentioning the correct changes it should make in first comment here. @LRitzdorf , are you able to run the bsp generation successfully after this changes? If yes then this can be verified and merged. About the rebase on the other branch, yes I will make necessary implementation to it. |
Yep, BSP generation works as expected. This should also be confirmed by a few of the comments above. For what it's worth, on my test project, I don't see any differences in the resulting header files. Presumably, this is because my project uses settings that are already the defaults? |
@zamrimuh-intel Quick reminder that this still exists, and is ready for merge whenever you feel like doing so! |
@zamrimuh-intel Hello again — as a reminder, the remaining part of this PR still needs to be merged, even on the current 2024.1 branch. Until this happens, the Cyclone V BSP generator remains partially broken. |
This PR fixes several cases of mis-named macros in the Cyclone V BSP generator scripts. Specifically, many macros use the prefix
CONFIG_
when they should useCFG_
.This issue was discovered while following RocketBoards' bootloader tutorial. Running
cv_bsp_generator.py
creates configuration header files with, at present, incorrectly-named macros. This is obvious when examining a diff of the changes, and also causes U-Boot compilation to fail.I've basically just replaced relevant instances of the incorrect
CONFIG_
prefix with the expectedCFG_
, and have tested the results on my own system. However, this is my first time contributing to anything remotely U-Boot-related, so I may have missed something — please let me know if this is the case! I'm quite familiar with Git-based development in general, and would be happy to make any relevant updates to this PR.(Also, the current PR templates includes a note about using mailing-list-based development instead of PRs, but this seems to be an artifact of the original U-Boot project. If this is indeed the case, it may be worthwhile to amend the template.)