This is an old revision of the document!
Overview
Directory structure of new (generic) ZCU102 project, project-spec/ directory.
Top-level .gitignore
*/*/config.old */*/rootfs_config.old build/ images/linux/ pre-built/linux/ .petalinux/* !.petalinux/metadata *.o *.jou *.log project-spec/meta-plnx-generated/ /components/plnx_workspace
attributes
UBOOT_DEFAULT_DEFCONFIG="xilinx_zynqmp_zcu102_revB_defconfig"
hw-description/
Empty metadata file.
configs/
config
rootfs_config
CONFIG_mtd-utils=y CONFIG_canutils=y CONFIG_openssh-sftp-server=y CONFIG_pciutils=y CONFIG_run-postinsts=y CONFIG_haveged=y CONFIG_packagegroup-core-boot=y CONFIG_packagegroup-core-ssh-dropbear=y CONFIG_tcf-agent=y CONFIG_bridge-utils=y CONFIG_hellopm=y CONFIG_udev-extraconf=y CONFIG_imagefeature-ssh-server-dropbear=y CONFIG_imagefeature-hwcodecs=y CONFIG_ROOTFS_ROOT_PASSWD="root" CONFIG_watchdog-init=y
meta-user/
conf/
layer.conf
petalinuxbsp.conf
#User Configuration #OE_TERMINAL = "tmux" # Add EXTRA_IMAGEDEPENDS default components EXTRA_IMAGEDEPENDS_append = " virtual/fsbl virtual/pmu-firmware arm-trusted-firmware qemu-devicetrees" # prevent U-Boot from deploying the boot.bin SPL_BINARY = "" #Remove all qemu contents IMAGE_CLASSES_remove = "image-types-xilinx-qemu qemuboot-xilinx" IMAGE_FSTYPES_remove = "wic.qemu-sd" EXTRA_IMAGEDEPENDS_remove = "qemu-helper-native virtual/boot-bin"
user-rootfsconfig
#Note: Mention Each package in individual line #These packages will get added into rootfs menu entry CONFIG_gpio-demo CONFIG_peekpoke
recipes-apps/
- gpio-demo
- peekpoke
recipes-bsp
- device-tree/
- u-boot/
device-tree/
device-tree.bbappend
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://system-user.dtsi"
files/
system-user.dtsi
/include/ "system-conf.dtsi"
/ {
};
pl-custom.dtsi
/ {
};
u-boot/
u-boot-xlnx_%.append
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://platform-top.h"
files/platform-top.h
#include <configs/platform-auto.h>
#define CONFIG_SYS_BOOTM_LEN 0xF000000
#define DFU_ALT_INFO_RAM \
"dfu_ram_info=" \
"setenv dfu_alt_info " \
"image.ub ram $netstart 0x1e00000\0" \
"dfu_ram=run dfu_ram_info && dfu 0 ram 0\0" \
"thor_ram=run dfu_ram_info && thordown 0 ram 0\0"
#define DFU_ALT_INFO_MMC \
"dfu_mmc_info=" \
"set dfu_alt_info " \
"${kernel_image} fat 0 1\\\\;" \
"dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0\0" \
"thor_mmc=run dfu_mmc_info && thordown 0 mmc 0\0"
/*Required for uartless designs */
#ifndef CONFIG_BAUDRATE
#define CONFIG_BAUDRATE 115200
#ifdef CONFIG_DEBUG_UART
#undef CONFIG_DEBUG_UART
#endif
#endif