Building the Hardware
TracNav menu
-
User Guide
- Copyright Information
- Acknowledgements
- Terminology
- Introduction
-
PetaLinux Overview...
-
Working with PetaLinux - The Basics
- Overview
- Loading the settings file
- Selecting a Platform
- PetaLinux Configuration
- Building your Hardware
- Working with AutoConfig
- Building PetaLinux
- Booting your System
-
Customising PetaLinux...
-
Advanced Topics...
-
Debugging...
-
PetaLinux Bootloader Solutions...
-
Supported Reference Designs...
- PetaLinux Tools Reference
- Getting Help
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 to 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.
