【Terasic友晶科技】是否每一次的硬件改动都需要更新Preloader?

初学者学习了SD卡的制作以后,就会根据自己的需求想着做一些新的修改,比如硬件上的改动。那这时候SD卡image 里面的preloader是否一定需要更新呢?
 
要回答这个问题,首先我们要了解Preloader 是什么。
 
 
The Preloader—or Secondary Program Loader (SPL)—is a piece of software that gets called from the Boot ROM with the sole purpose of setting up the system to a point that the actual bootloader (U-Boot) can be run. This involves setting up the PLLs and clocks, muxing the pins, initializing the SDRAM, and more. Since the configuration for the system can change every time you modify your Qsys system (the preloader is dependent on many of the HPS’s configuration options), you have to re-generate the preloader every time you change your hardware design.
 
 翻译:Preloader或  Secondary Program Loader (SPL) 是一种被Boot  ROM 调用的软件代码,其唯一目的是将系统配置为可以正常运行U-Boot的状态。这包括设置 PLL 和时钟、复用引脚、初始化 SDRAM 等等。由于每次修改 Qsys 系统时系统的配置都会改变(Preloader与许多 HPS 的配置选项相关),因此每次更改硬件设计时都必须重新生成预加载器。
 
其实上面的话说得还不够具体,换句话说就是:
 
Preloade 是用来初始化 HPS 的相关外设和引脚的,所以如果您的修改动作是更新了HPS组建,则需要进行Preloader的编译和更新。 
 
但如果是改动FPGA端的外设比如添加FPGA端的SW(没用动HPS的外设及接口  ),则 不用更新Preloader文件。
 

原文地址:https://www.cnblogs.com/DoreenLiu/p/15774126.html