Building the Hardware
This section provides information on building your hardware project in PetaLinux.
FS-Boot support
FS-Boot is the first-stage bootloader that is used to boot the target system. This section assumes that the FS-Boot bootloader is already added to the target hardware project. Refer to the FS-Boot Section for more information on FS-Boot.
To include FS-Boot bootloader in your hardware project, refer to the Including FS-Boot Section.
Building your Hardware
This section assumes that your hardware project is already added to the PetaLinux source tree.
If you have not added your hardware project. Refer to the Adding New Hardware Project Section for information on adding your hardware project to PetaLinux.
Change directory into your hardware project directory in PetaLinux.
cd $PETALINUX/hardware/<myproject>
Where <myproject> is the directory that holds your hardware project.
Generate Makefiles
Use the following command to generate the project Makefiles.
$ xps -nw system.xmp
% save make
% exit
Generate Bitstreams
Use the following command to generate the hardware bitstreams.
$ make -f system.make bits
This step will take a while to complete.
Generate Library Files
Use the following command to build the project libraries.
$ make -f system.make libs
Build User Application
Use the following command to build FS-Boot bootloader along with any other applications.
$ make -f system.make program
Initialise BRAM
Use the following command to initialised the BRAM.
$ make -f system.make init_bram
Once the above procedures are completed, the hardware project is built and ready to be used for downloading into the target device.
Previous:
PetaLinux Configuration
Our users say

