diff options
| author | Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> | 2019-07-09 13:14:29 -0700 |
|---|---|---|
| committer | Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com> | 2019-12-09 11:04:44 -0800 |
| commit | 96436821e110d2de497ea584a3adf18e79be0b40 (patch) | |
| tree | 3613fa64e2da0af07c1046b4084b129e1cb7a422 | |
| parent | 63f4af8a7d77d0b0ca3765d278e36a6591d6f075 (diff) | |
| download | meta-xilinx-96436821e110d2de497ea584a3adf18e79be0b40.tar.gz | |
vc-p-a2197-00-versal.conf:Add versal Tenzing +SE1 board configuration
Add support to build images for vc-p-a2197-00-versal Tenzing board + SE1
board configuration
vck190-versal.conf: Rename vc-e-a2197-00-versal to vck190-versal
Rename vc-e-a2197-00-versal machine configuration to vck190-versal
with required setting of board specific yocto variables needed for
compilation of bootloader, kernel and device-tree.
- linux-xlnx is the kernel provider
- u-boot-xlnx is the u-boot provider
Signed-off-by: Swagath Gadde <swagathg@xilinx.com>
Signed-off-by: Sai Hari Chandana Kalluri <chandana.kalluri@xilinx.com>
Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
| -rw-r--r-- | meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf | 87 | ||||
| -rw-r--r-- | meta-xilinx-bsp/conf/machine/vck190-versal.conf | 86 | ||||
| -rw-r--r-- | meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.2.bb | 2 |
3 files changed, 175 insertions, 0 deletions
diff --git a/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf b/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf new file mode 100644 index 00000000..5cdfade2 --- /dev/null +++ b/meta-xilinx-bsp/conf/machine/vc-p-a2197-00-versal.conf | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | #@TYPE: Machine | ||
| 2 | #@NAME: vc-p-a2197-versal | ||
| 3 | ##@DESCRIPTION: Machine support for vc-p-a2197 versal . | ||
| 4 | |||
| 5 | SOC_VARIANT ?= "s80" | ||
| 6 | |||
| 7 | require conf/machine/include/tune-versal.inc | ||
| 8 | require conf/machine/include/machine-xilinx-overrides.inc | ||
| 9 | require conf/machine/include/machine-xilinx-default.inc | ||
| 10 | require conf/machine/include/machine-xilinx-qemu.inc | ||
| 11 | |||
| 12 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" | ||
| 13 | |||
| 14 | UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | ||
| 15 | |||
| 16 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
| 17 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
| 18 | |||
| 19 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | ||
| 20 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | ||
| 21 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
| 22 | |||
| 23 | # Default SD image build onfiguration, use qemu-sd to pad | ||
| 24 | IMAGE_CLASSES += "image-types-xilinx-qemu" | ||
| 25 | IMAGE_FSTYPES += "wic.qemu-sd" | ||
| 26 | WKS_FILES ?= "sdimage-bootpart.wks" | ||
| 27 | |||
| 28 | EXTRA_IMAGEDEPENDS += " \ | ||
| 29 | arm-trusted-firmware \ | ||
| 30 | virtual/boot-bin \ | ||
| 31 | virtual/bootloader \ | ||
| 32 | virtual/psm-firmware \ | ||
| 33 | virtual/plm \ | ||
| 34 | u-boot-zynq-scr \ | ||
| 35 | qemu-devicetrees \ | ||
| 36 | virtual/cdo \ | ||
| 37 | " | ||
| 38 | |||
| 39 | IMAGE_BOOT_FILES += " \ | ||
| 40 | boot.bin \ | ||
| 41 | system.dtb \ | ||
| 42 | Image \ | ||
| 43 | boot.scr \ | ||
| 44 | " | ||
| 45 | # This machine has a QEMU model, runqemu setup: | ||
| 46 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
| 47 | QB_MACHINE = "-M arm-generic-fdt" | ||
| 48 | QB_MEM = "-m 4096" | ||
| 49 | QB_DEFAULT_KERNEL = "none" | ||
| 50 | QB_NETWORK_DEVICE = "" | ||
| 51 | QB_KERNEL_CMDLINE_APPEND ?= "" | ||
| 52 | QB_NET = "none" | ||
| 53 | |||
| 54 | QB_DEFAULT_FSTYPE_qemuboot-xilinx = "wic.qemu-sd" | ||
| 55 | QB_OPT_APPEND_append_qemuboot-xilinx = " -boot mode=5" | ||
| 56 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | ||
| 57 | |||
| 58 | # Use the multiarch script instead of launching QEMU directly | ||
| 59 | # Use booti 80000 6000000 4000000 to launch | ||
| 60 | QB_SYSTEM_NAME_append = "-multiarch" | ||
| 61 | |||
| 62 | QB_OPT_APPEND ?= " -serial null -serial null -serial mon:stdio -display none" | ||
| 63 | |||
| 64 | QB_OPT_APPEND_append_qemuboot-xilinx = " \ | ||
| 65 | -device loader,file=${DEPLOY_DIR_IMAGE}/Image,addr=0x80000 \ | ||
| 66 | -device loader,file=${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.cpio.gz.u-boot,addr=0x6000000 \ | ||
| 67 | -device loader,file=${DEPLOY_DIR_IMAGE}/system.dtb,addr=0x4000000 \ | ||
| 68 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/board-versal-ps-vc-p-a2197-00.dtb \ | ||
| 69 | -display none \ | ||
| 70 | -net nic -net user,tftp=${DEPLOY_DIR_IMAGE} \ | ||
| 71 | " | ||
| 72 | |||
| 73 | # PLM instance args | ||
| 74 | QB_PLM_OPT = " \ | ||
| 75 | -M microblaze-fdt \ | ||
| 76 | -device loader,file=${DEPLOY_DIR_IMAGE}/BOOT-${MACHINE}_bh.bin,addr=0xF201E000,force-raw \ | ||
| 77 | -device loader,addr=0xf0000000,data=0xba020004,data-len=4 \ | ||
| 78 | -device loader,addr=0xf0000004,data=0xb800fffc,data-len=4 \ | ||
| 79 | -device loader,file=${DEPLOY_DIR_IMAGE}/CDO/pmc_cdo.bin,addr=0xf2000000,force-raw \ | ||
| 80 | -device loader,file=${DEPLOY_DIR_IMAGE}/plm-${MACHINE}.elf,cpu-num=1 \ | ||
| 81 | -device loader,addr=0xF1110624,data=0x0,data-len=4 \ | ||
| 82 | -device loader,addr=0xF1110620,data=0x1,data-len=4 \ | ||
| 83 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/board-versal-pmc-vc-p-a2197-00.dtb \ | ||
| 84 | -display none \ | ||
| 85 | " | ||
| 86 | QB_OPT_APPEND_append_qemuboot-xilinx = " -plm-args '${QB_PLM_OPT}'" | ||
| 87 | |||
diff --git a/meta-xilinx-bsp/conf/machine/vck190-versal.conf b/meta-xilinx-bsp/conf/machine/vck190-versal.conf new file mode 100644 index 00000000..919902ea --- /dev/null +++ b/meta-xilinx-bsp/conf/machine/vck190-versal.conf | |||
| @@ -0,0 +1,86 @@ | |||
| 1 | #@TYPE: Machine | ||
| 2 | #@NAME: vck-versal | ||
| 3 | ##@DESCRIPTION: Machine support for vck-versal . | ||
| 4 | |||
| 5 | SOC_VARIANT ?= "s80" | ||
| 6 | |||
| 7 | require conf/machine/include/tune-versal.inc | ||
| 8 | require conf/machine/include/machine-xilinx-overrides.inc | ||
| 9 | require conf/machine/include/machine-xilinx-default.inc | ||
| 10 | require conf/machine/include/machine-xilinx-qemu.inc | ||
| 11 | |||
| 12 | MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost" | ||
| 13 | |||
| 14 | UBOOT_MACHINE ?= "xilinx_versal_virt_defconfig" | ||
| 15 | |||
| 16 | SERIAL_CONSOLE = "115200 ttyAMA0" | ||
| 17 | SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}" | ||
| 18 | |||
| 19 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-xlnx" | ||
| 20 | PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-xlnx" | ||
| 21 | PREFERRED_PROVIDER_qemu-helper-native = "qemu-xilinx-helper-native" | ||
| 22 | |||
| 23 | # Default SD image build onfiguration, use qemu-sd to pad | ||
| 24 | IMAGE_CLASSES += "image-types-xilinx-qemu" | ||
| 25 | IMAGE_FSTYPES += "wic.qemu-sd" | ||
| 26 | WKS_FILES ?= "sdimage-bootpart.wks" | ||
| 27 | |||
| 28 | EXTRA_IMAGEDEPENDS += " \ | ||
| 29 | arm-trusted-firmware \ | ||
| 30 | virtual/boot-bin \ | ||
| 31 | virtual/bootloader \ | ||
| 32 | virtual/psm-firmware \ | ||
| 33 | virtual/plm \ | ||
| 34 | u-boot-zynq-scr \ | ||
| 35 | qemu-devicetrees \ | ||
| 36 | virtual/cdo \ | ||
| 37 | " | ||
| 38 | |||
| 39 | IMAGE_BOOT_FILES += " \ | ||
| 40 | boot.bin \ | ||
| 41 | ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/dtb', 'device-tree', 'system.dtb', '', d)} \ | ||
| 42 | Image \ | ||
| 43 | boot.scr \ | ||
| 44 | " | ||
| 45 | # This machine has a QEMU model, runqemu setup: | ||
| 46 | IMAGE_CLASSES += "qemuboot-xilinx" | ||
| 47 | QB_MACHINE = "-M arm-generic-fdt" | ||
| 48 | QB_MEM = "-m 4096" | ||
| 49 | QB_DEFAULT_KERNEL = "none" | ||
| 50 | QB_NETWORK_DEVICE = "" | ||
| 51 | QB_KERNEL_CMDLINE_APPEND ?= "" | ||
| 52 | QB_NET = "none" | ||
| 53 | |||
| 54 | QB_DEFAULT_FSTYPE_qemuboot-xilinx = "wic.qemu-sd" | ||
| 55 | QB_OPT_APPEND_append_qemuboot-xilinx = " -boot mode=5" | ||
| 56 | QB_ROOTFS_OPT_qemuboot-xilinx = " -drive if=sd,index=1,file=@ROOTFS@,format=raw" | ||
| 57 | |||
| 58 | # Use the multiarch script instead of launching QEMU directly | ||
| 59 | # Use booti 80000 6000000 4000000 to launch | ||
| 60 | QB_SYSTEM_NAME_append = "-multiarch" | ||
| 61 | |||
| 62 | QB_OPT_APPEND ?= " -serial null -serial null -serial mon:stdio -display none" | ||
| 63 | |||
| 64 | QB_OPT_APPEND_append_qemuboot-xilinx = " \ | ||
| 65 | -device loader,file=${DEPLOY_DIR_IMAGE}/Image,addr=0x80000 \ | ||
| 66 | -device loader,file=${DEPLOY_DIR_IMAGE}/${IMAGE_BASENAME}-${MACHINE}.cpio.gz.u-boot,addr=0x6000000 \ | ||
| 67 | -device loader,file=${DEPLOY_DIR_IMAGE}/system.dtb,addr=0x4000000 \ | ||
| 68 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/board-versal-ps-vc-p-a2197-00.dtb \ | ||
| 69 | -display none \ | ||
| 70 | -net nic -net user,tftp=${DEPLOY_DIR_IMAGE} \ | ||
| 71 | " | ||
| 72 | |||
| 73 | # PLM instance args | ||
| 74 | QB_PLM_OPT = " \ | ||
| 75 | -M microblaze-fdt \ | ||
| 76 | -device loader,file=${DEPLOY_DIR_IMAGE}/BOOT-${MACHINE}_bh.bin,addr=0xF201E000,force-raw \ | ||
| 77 | -device loader,addr=0xf0000000,data=0xba020004,data-len=4 \ | ||
| 78 | -device loader,addr=0xf0000004,data=0xb800fffc,data-len=4 \ | ||
| 79 | -device loader,file=${DEPLOY_DIR_IMAGE}/CDO/pmc_cdo.bin,addr=0xf2000000,force-raw \ | ||
| 80 | -device loader,file=${DEPLOY_DIR_IMAGE}/plm-${MACHINE}.elf,cpu-num=1 \ | ||
| 81 | -device loader,addr=0xF1110624,data=0x0,data-len=4 \ | ||
| 82 | -device loader,addr=0xF1110620,data=0x1,data-len=4 \ | ||
| 83 | -hw-dtb ${DEPLOY_DIR_IMAGE}/qemu-hw-devicetrees/multiarch/board-versal-pmc-vc-p-a2197-00.dtb \ | ||
| 84 | -display none \ | ||
| 85 | " | ||
| 86 | QB_OPT_APPEND_append_qemuboot-xilinx = " -plm-args '${QB_PLM_OPT}'" | ||
diff --git a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.2.bb b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.2.bb index f37b4a21..823ef544 100644 --- a/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.2.bb +++ b/meta-xilinx-bsp/recipes-bsp/u-boot/u-boot-xlnx_2019.2.bb | |||
| @@ -27,5 +27,7 @@ HAS_PLATFORM_INIT ?= " \ | |||
| 27 | xilinx_zynqmp_zcu1275_revA_config \ | 27 | xilinx_zynqmp_zcu1275_revA_config \ |
| 28 | xilinx_zynqmp_zcu1275_revB_config \ | 28 | xilinx_zynqmp_zcu1275_revB_config \ |
| 29 | xilinx_zynqmp_zc1254_revA_config \ | 29 | xilinx_zynqmp_zc1254_revA_config \ |
| 30 | xilinx_zynqmp_p_a2197_00_revA_config \ | ||
| 31 | xilinx_versal_vc_p_a2197_revA_x_prc_01_revA \ | ||
| 30 | " | 32 | " |
| 31 | 33 | ||
