一,zynq petalinux配置开机自启动
1,环境变量和导入.hdf硬件:版本:vivado2017.4,linux-xlnx-xilinx-v2017.4
source /opt/Xilinx/Vivado/2017.4/settings64.sh
source /opt/pkg/petalinux/settings.sh
petalinux-create --type project --template zynq --name test_autostart
petalinux-config --get-hw-description ../linux_base.sdk
cd /test_autostart
2,建立shell脚本文件的app工程:petalinux-create -t apps --template install -n startup --enable
进入test_autostart/project-spec/meta-user/recipes-apps/startup中修改startup.bb文件
#
# This file is the startup recipe.
#
SUMMARY = "Simple startup application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://startup \
"
S = "${WORKDIR}"
FILESEXTRAPATHS_prepend