Difference between revisions of "DESK-XZ7-L/Development/Creating and building the Petalinux project"

From DAVE Developer's Wiki
Jump to: navigation, search
(Petalinux build)
Line 8: Line 8:
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2022/11/18
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2022/11/18
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.0-rc1 release
 
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.0-rc1 release
 +
|-
 +
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|2023/01/22
 +
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|DESK-XZ7-L-1.0.1 release
 
|-
 
|-
 
|}
 
|}
Line 21: Line 24:
 
=== Petalinux build ===
 
=== Petalinux build ===
 
To reproduce Petalinux build:
 
To reproduce Petalinux build:
* clone the repository
+
 
 +
'''Clone the repository'''
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
git clone git@git.dave.eu:desk-xz-l/petalinux.git -b desk-xz7-l-rel-1.0.0
+
git clone --recursive git@git.dave.eu:desk-xz-l/petalinux.git -b desk-xz7-l-1.0.1
 
cd petalinux
 
cd petalinux
 
</syntaxhighlight>
 
</syntaxhighlight>
* setup the Petalinux environment
+
 
 +
'''Setup the Petalinux environment'''
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
source /opt/Xilinx/petalinux/2021.2/settings.sh
 
source /opt/Xilinx/petalinux/2021.2/settings.sh
 
</syntaxhighlight>
 
</syntaxhighlight>
* update the hardware description (with the one provided as output from the Vivado project above)
+
 
 +
'''Inizialize configuration file'''
 +
 
 +
You can use the following configuration file
 +
 
 +
{| class="wikitable"
 +
|-
 +
! Config file
 +
! Boot
 +
|-
 +
| <code>config_bora</code>
 +
| uSD and QSPI-NOR
 +
|-
 +
| <code>config_borax</code>
 +
| uSD and QSPI-NOR
 +
|-
 +
| <code>config_boralite</code>
 +
| uSD and QSPI-NOR
 +
|-
 +
| <code>config_boralite_nand</code>
 +
| NAND
 +
|-
 +
| <code>config_boralite_nand_usd</code>
 +
| uSD with NAND support
 +
|}
 +
 
 +
In order to select a configuration file use the following command
 +
 
 +
<syntaxhighlight lang="bash">
 +
cp project-spec/configs/<configuration file> project-spec/configs/config
 +
</syntaxhighlight>
 +
 
 +
'''Update the hardware description'''
 +
 
 +
Hardware description come from to Vivado project. Vivado project is already cloned into Petalinux project.
 +
 
 +
To build Hardware description file, please see this page: [https://wiki.dave.eu/index.php/DESK-XZ7-L/Development/Creating_and_building_the_Vivado_project Creating and building the Vivado project]
 +
 
 +
You can use the following command to update the hardware description
 +
 
 +
<syntaxhighlight lang="bash">
 +
petalinux-config --get-hw-description vivado/vivado/<path to .xsa>
 +
</syntaxhighlight>
 +
 
 +
When applying the hardware description, the standard menuconfig interface will popup: just save the current configuration to proceed. If you won't see menuconfig interface, perform the following command
 +
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
petalinux-config --get-hw-description <path to .xsa>
+
petalinux-config --get-hw-description vivado/vivado/<path to .xsa> --silentconfig
 
</syntaxhighlight>
 
</syntaxhighlight>
* when applying the hardware description, the standard menuconfig interface will popup: just save the current configuration to proceed
 
  
* run the Petalinux build
+
'''Run the Petalinux build'''
 +
 
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
petalinux-build
 
petalinux-build

Revision as of 14:54, 22 January 2024

History
Issue Date Notes
2022/11/18 DESK-XZ7-L-1.0.0-rc1 release
2023/01/22 DESK-XZ7-L-1.0.1 release



Creating and building the Petalinux project[edit | edit source]

Reference[edit | edit source]

  • PetaLinux Tools Documentation Reference guide UG1144
  • PetaLinux Tools DocumentationCommand Line Reference Guide UG1157

Petalinux build[edit | edit source]

To reproduce Petalinux build:

Clone the repository

git clone --recursive git@git.dave.eu:desk-xz-l/petalinux.git -b desk-xz7-l-1.0.1
cd petalinux

Setup the Petalinux environment

source /opt/Xilinx/petalinux/2021.2/settings.sh

Inizialize configuration file

You can use the following configuration file

Config file Boot
config_bora uSD and QSPI-NOR
config_borax uSD and QSPI-NOR
config_boralite uSD and QSPI-NOR
config_boralite_nand NAND
config_boralite_nand_usd uSD with NAND support

In order to select a configuration file use the following command

cp project-spec/configs/<configuration file> project-spec/configs/config

Update the hardware description

Hardware description come from to Vivado project. Vivado project is already cloned into Petalinux project.

To build Hardware description file, please see this page: Creating and building the Vivado project

You can use the following command to update the hardware description

petalinux-config --get-hw-description vivado/vivado/<path to .xsa>

When applying the hardware description, the standard menuconfig interface will popup: just save the current configuration to proceed. If you won't see menuconfig interface, perform the following command

petalinux-config --get-hw-description vivado/vivado/<path to .xsa> --silentconfig

Run the Petalinux build

petalinux-build