1-3. Use the petalinux-create command to create a new embedded Linux platform and choose the platform. Run the following command from the appDevDebug directory to create a new PetaLinux 1-3-1. project: [host] $ petalinux-create -t project -s INFO: Create project: INFO: Projects: INFO: * Avnet-Digilent-ZedBoard-2015.2 INFO: has been successfully installed to /home/petalinux/training/emblinux/labs/appDevDebug/ INFO: New project successfully created in /home/petalinux/training/emblinux/labs/appDevDebug/ The above command assumes that the board support package (BSP) is installed in the /opt/pkg directory. Modify the path if the BSP is in a different location. You will find the project directory (~/training/emblinux/labs/appDevDebug): Change the directory to the PetaLinux project: 1-3-2. ~/training/emblinux/labs/appDevDebug/Avnet-Digilent-ZedBoard-2015.2 1-4. Create a new application. The PetaLinux tools allow you to create user application templates for either C or C++. These templates include application source code and makefiles so that you can easily configure and compile applications for the target and install them into the root file system. Enter the following command to create a new user application inside a PetaLinux project: 1-4-1. [host] $ petalinux-create -t apps --name myapp --template c INFO: Create apps: myapp INFO: New apps successfully created in The new application you have created can be found in the directory, where <project-root> is ~/training/emblinux/labs/appDevDebug/Avnet-Digilent-ZedBoard-2015.2. To create a C++ application template, pass the --template c++ option. Change to the newly created application directory: 1-4-2.
1-3. Use the petalinux-create command to create a new embedded Linux platform and choose the platform. 1-3-1. Run the following command from the appDevDebug directory to create a new PetaLinux project: [host] $ petalinux-create -t project -s INFO: Create project: INFO: Projects: INFO: * Avnet-Digilent-ZedBoard-2015.2 INFO: has been successfully installed to /home/petalinux/training/emblinux/labs/appDevDebug/ INFO: New project successfully created in /home/petalinux/training/emblinux/labs/appDevDebug/ The above command assumes that the board support package (BSP) is installed in the /opt/pkg directory. Modify the path if the BSP is in a different location. You will find the project directory (~/training/emblinux/labs/appDevDebug): 1-3-2. Change the directory to the PetaLinux project: ~/training/emblinux/labs/appDevDebug/Avnet-Digilent-ZedBoard-2015.2 1-4. Create a new application. The PetaLinux tools allow you to create user application templates for either C or C++. These templates include application source code and makefiles so that you can easily configure and compile applications for the target and install them into the root file system. 1-4-1. Enter the following command to create a new user application inside a PetaLinux project: [host] $ petalinux-create -t apps --name myapp --template c INFO: Create apps: myapp INFO: New apps successfully created in The new application you have created can be found in the directory, where <project-root> is ~/training/emblinux/labs/appDevDebug/Avnet-Digilent-ZedBoard-2015.2. To create a C++ application template, pass the --template c++ option. 1-4-2. Change to the newly created application directory:
Petalinux_tcf-agent_debugsteps.docx