Return to the Design Tutorials Overview.
Create a new XSDK workspace.
% cd $TRD_HOME/rpu1/perfapm-server % xsdk -workspace . && |
Copy the generated perfapm-server executable into the PetaLinux BSP.
% cp perfapm-server/Debug/perfapm-server.elf $TRD_HOME/apu/petalinux_bsp/components/apps/perfapm_server/data/ |
The petalinux-config step can be skipped if this was already done in a previous module
% cd $TRD_HOME/apu/petalinux_bsp % petalinux-config --get-hw-description=./hw-description --oldconfig |
Select the device-tree matching design module 4 and build all Linux image components. If you have run petalinux-build in a previous module, the build step will be incremental.
% cd subsystems/linux/configs/device-tree % cp system-dm4.dts system-top.dts % petalinux-build % cd - |
Create a boot image
% cd images/linux % petalinux-package --boot --bif=dm4.bif --force |
Copy the generated images to the dm4 SD card directory
% mkdir -p $TRD_HOME/images/dm4 % cp autostart.sh BOOT.BIN image.ub $TRD_HOME/images/dm4/ |
Create a new XSDK workspace.
% cd $TRD_HOME/apu/perfapm-client % xsdk -workspace . && |
Copy the generated perfapm-client-test executable to the dm4 SD card directory.
% mkdir -p $TRD_HOME/images/dm4/bin % cp $TRD_HOME/apu/perfapm-client/perfapm-client-test/Debug/perfapm-client-test.elf $TRD_HOME/images/dm4/bin |
Run the perfapm-client-test application:
% perfapm-client-test.elf |