my Compile environment is ubuntun18.4+vitis 2020.2+petalinux 2020.2,
my hardware is AVET's UltraZed PCIe Carrier Card ,
my BSP package is uz3eg_pciec_base_2020_2.tar.gz.
Below is my question:
1. I created the petalinux project,and build, package the project, then copy boot.scr,BOOT.BIN, image.ub to sd card, untar rootfs.tar.gz to the EXT partition. so boot the kernel from SD card, that is ok.
2. I want to add the application binary in the PetaLinux root filesystem. I create the application with the following command.Remove existing bareamp app and copy the prebuilt ampdemo.elf into bareamp/files directory.
$ petalinux-create -t apps --template install --name bareamp --enable
3. I Modify the project-spec/meta-user/recipes-apps/bareamp/bareamp.bb to install the application binary in the RootFS as follows:
#
# This file is the bareamp recipe.
#
SUMMARY = "Simple bareamp application"
SECTION = "PETALINUX/apps"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
SRC_URI = "file://ampdemo.elf \
"
S = "${WORKDIR}"
INSANE_SKIP_${PN} = "arch"
do_install() {
# Install firmware into /lib/firmware on target
install -d ${D}/lib/firmware
install -m 0644 ${S}/ampdemo.elf ${D}/lib/firmware/ampdemo.elf
}
FILES_${PN} = "/lib/firmware/ampdemo.elf "
4. I build the project with the following command:
$ petalinux-build -c avnet-image-minimal
5. I package the project with the following command:
$ petalinux-package --boot --uboot --fpga images/linux/system.bit --force
6. copy boot.scr,BOOT.BIN, image.ub to sd card, untar rootfs.tar.gz to the EXT partition. so boot the kernel from SD card. But i can't find the directory: /lib/firmware, it seem the rootfs has not been updated?
question:
How to update my application to rootfs?