}if[ -z"$1"];thenhelpfiif[ -z"$2"];thenhelpfi## 删除源目录rm$1-rf## 创建项目petalinux-create --typeproject --template zynq --name$1## 导入硬件信息cd$1petalinux-config --get-hw-description$2## 使PetaLinux不删除源码echo'RM_WORK_EXCLUDE += "linux-xlnx"'>> project-spec/...
默认下 petalinux 使用的是 git 上的 uboot 代码,编译后会删除源码。如果要保留源码,可执行以下指令。使用本地的 uboot 代码则不会删除代码。 #保留 linux 源码echo 'RM_WORK_EXCLUDE += "linux-xlnx"'>> project-spec/meta-user/conf/petalinuxbsp.conf#保留 uboot 源码echo 'RM_WORK_EXCLUDE += "u-b...
增加如下配置: RM_WORK_EXCLUDE += "linux-xlnx" RM_WORK_EXCLUDE += "u-boot-xlnx" RM_WORK_EXCLUDE += "fsbl" RM_WORK_EXCLUDE += "device-tree" RM_WORK_EXCLUDE += "petalinux-user-image" 2) 进入内核代码目录projname/build/tmp/work-shared/plnx-zynqmp/kernel-source 修改对应的代码,然后执...
RM_WORK_EXCLUDE += "u-boot-xlnx" 错误"The source tree is not clean" 在使用OpenSource Linux编译流程后,再回到Petalinux的编译,执行petalinux-build会得到下列错误。需要在Linux的源代码目录,执行命令“make mrproper”,清理Linux的源代码目录。 NOTE: Executing Tasks NOTE: linux-xlnx: compiling from externa...
RM_WORK_EXCLUDE+="myapp busybox glibc" How to keep ALL build artifacts The setting that makes PetaLinux tools delete build artifacts in the first place is contained in thebuild/conf/local.conffile. INHERIT+="rm_work" If you want to keepallbuild artifacts, just add the following line to th...
如果为Linux添加了上述RM_WORK_EXCLUDE字段,PetaLinux工程在编译后,在build目录下的某一级子目录kernel-source,含有所有Linux源代码。对于PetaLinux 2019.1的ZCU106 BSP工程,Linux源代码在目录 ./build/tmp/work-shared/zcu106-zynqmp/kernel-source/。可以复制这个目录里的Linux源代码,用来使用open source流程编译。 Pet...
su root mkdir /opt/env chown -R huangshuchao:embd /opt/env/ #chown -R huangshuchao:embd /opt/env/ # 2016.4以后的petalinux不能以超级权限去安装,必须在$下安装petalinux。安装 ./petalinux-v2018.3-final-installer.run /opt/env/petalinux/2018.3 Ubuntu bash dpkg-reconfigure dash --> NO 使...
Kernel source will be available in /build/tmp/work-shared/plnx_aarch64/kernel-source only if you add this config value RM_WORK_EXCLUDE \+= "linux-xlnx" in /project-spec/meta-user/conf/petalinuxbsp.conf Selected as BestSelected as BestLikeReply4 likes jrhtech (...
sudo rm /bin/sh sudo ln -s /bin/bash /bin/sh 确认是否修改成功,我们可以执行以下指令: ls -l /bin/sh 系统将输出包含以下字段的消息,确认shell已修改成功: /bin/sh -> /bin/bash 3、Petalinux使用 3.1 创建工程 根据Petalinux工具用户文档UG1144(v2018.2)Page 17中Chapter 3 Creating...
RM_WORK_EXCLUDE += "u-boot-xlnx" 5.2. 取得Linux源代码 如果为Linux添加了上述RM_WORK_EXCLUDE字段,PetaLinux工程在编译后,在build目录下的某一级子目录kernel-source,含有所有Linux源代码。对于PetaLinux 2019.1的ZCU106 BSP工程,Linux源代码在目录 ./build/tmp/work-shared/zcu106-zynqmp/kernel-source/。可以...