- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The general scheme of building preloader is composed of:
handoff -> preloader config + u-boot-spl source code -> binary
So it is usually "automatic" build without any customization.
Yet, it seems that sometimes there might be a need to manually modify the code before building the binary:
https://rocketboards.org/foswiki/Documentation/PreloaderUbootCustomization131
I try to understand when do we manually change code.
I read somewhere that enabling the bridge is done from preloader:
https://www.intel.com/content/www/us/en/programmable/support/support-resources/knowledge-base/embedded/2016/how-and-when-can-i-enable-the-fpga2sdram-bridge-on-cyclone-v-soc.html
Does it mean that some file should be modified in order to enable the bridge or is it part of the code generator ?
When do we need to manually modify the generated code ?
Thank you,
ranran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ranran,
Here is an example; for enabling HPS-to-FPGA Bridges from the preloader, the preloader will check the status of the FPGA then automatically enables bridges that are configured in Qsys/platform designer (Standard) and the BSP if the FPGA is configured.
For more information, I reckon you refer to GSRD v13.1 - Programming FPGA from HPS.
Regards.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
If you decide to have some hardware changes in your design for example, then you will need to customize your preloader to include the hardware.
To enable bridges you can refer here page 10.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
I try to ask if enabling the bridge is done as part of generating the preload file, or does it require manually modifying the file before compilation ?
Thank you very much,
ranran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi ranran,
Here is an example; for enabling HPS-to-FPGA Bridges from the preloader, the preloader will check the status of the FPGA then automatically enables bridges that are configured in Qsys/platform designer (Standard) and the BSP if the FPGA is configured.
For more information, I reckon you refer to GSRD v13.1 - Programming FPGA from HPS.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I understand from this that the enabling is done as part of code generation, and does not require to manually modify the source code before compilation.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I did find more info here : https://rocketboards.org/foswiki/view/Documentation/GSRD131ProgrammingFPGA ,
which state that in order to enable the bridge we need to run:
If the hardware design is utilizing the bridges between HPS and FPGA, and additional command needs to be run in order to enable the bridges:
# run bridge_enable_handoff
But what happens if there is no u-boot ? How then do we enable the bridge ?
Is it that we should use this method only when HPS configures FPGA ?
Does it mean that if both starts individually, then we can enable bridge at preloader ?
Thanks,
ranran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Apologize for that, here is an updated version doc that could guide you thoroughly:
https://rocketboards.org/foswiki/Documentation/AVCVGSRDLTS
Jump straight to Cyclone V Getting Started Guides.
The answer to your question is that, that FPGA can be configure from uboot by using an .rbf image. I suggest you run through the guides in the above link.
It means that if you decide to have hardware utilizing the bridges between HPS and FPGA, then the command is need to enable the bridges. Again I highly recommend that you check out the above guidelines which might help you.
Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have followed this guide.
Yet, I don't understand the issue of enabling bridge:
From the reading I assumed that preloader enables the bridge.
So, I don't understand why this command is needed.
Also note that some system run baremetal application immediately after preloader (no u-boot in the middle).
In those cases there is no such u-boot command.
I still haven't find from this document why we need to enable bridge if they are already enabled.
Thank you for the time,
ran
![](/skins/images/C4F7392A5C68ACA60290C9576F107044/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page