Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Step 2: Get the script and run it to generate the .run file.  

View file
nameyocto-migrate.sh

The above yocto-migrate.sh script will take the petalinux project as input which is specified as argument and creates the plnx-yocto-migrate.run file.

...

Code Block
$ mkdir yocto
$ cd yocto
$ repo init -u https://github.com/Xilinx/yocto-manifests.git -b <branch-name>
$ repo sync
$ chmod 666 setupsdk

Step 2: To import the petalinux data into yocto project run the plnx-yocto-migrate.run which is generated in the section 'Exporting Petalinux Project' above. This will create and extract the files into yocto/sources/petalinux directory.

Code Block
$ ./plnx-yocto-migrate.run yocto
$ ls <yocto project>/sources/petalinux/
etc  plnx-setupsdk  plnxtool.conf  project-spec

plnx-setupsdk

Setup script to add petalinux project environment into the yocto project. This will be called inside the setupsdk file if you specify the PLNX_SETUP=1.

etc/

This directory will contain the tcl script which will be used to create the uboot/device-tree configuration files Ex: system-conf.dtsi.

plnxtool.conf

Petalinux generated .conf file with yocto variables. You can edit this file as required and build in yocto project.

project-spec/

Project configuration files directory. It will have the hardware file(xsa) which was included in petalinux project.

Step 3: source the setupsdk and build 

...