Building PetaLinux
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
The PetaLinux build process entails the following tasks.
- Build the Linux Kernel
- Build GNU tools
- Build the Root Filesystem
- Build the U-Boot bootloader
Build Procedure
Change into the $PETALINUX/software/petalinux-dist directory.
$ cd $PETALINUX/software/petalinux-dist
Execute the following command to start the build process.
$ yes "" | make oldconfig dep all
This step will take a while to complete. During the build process the build message will be printed on the console. If any error occurs, rectify the error and repeat this process.
Output Images
Once the build process is completed, all the images are located in both the $PETALINUX/software/petalinux-dist/images and the /tftpboot directory.
The following table describes the output images from this build process.
| Image Name | Descriptions |
| Linux Kernel | |
| image.bin | The Linux kernel and root filesystem image in binary format |
| image.elf | The Linux kernel and root filesystem image in ELF format |
| image.srec | The Linux kernel and root filesystem image in SREC format |
| image.ub | The Linux kernel and root filesystem image in U-Boot format |
| linux.bin | Binary image - kernel only, no filesystem |
| romfs.img | The ROMFS image in binary format |
| U-Boot | |
| u-boot.bin | The U-Boot image in binary format |
| u-boot.srec | The U-Boot image in SREC format |
| u-boot-s.bin | The relocatable U-Boot image in binary format |
| u-boot-s.elf | The relocatable U-Boot image in ELF format |
| u-boot-s.srec | The relocatable U-Boot image in SREC format |
| ub.config.img | U-Boot platform configuration script in binary format |
