summaryrefslogtreecommitdiffstats
path: root/meta-xilinx-core
Commit message (Collapse)AuthorAgeFilesLines
...
* qemuboot-xilinx.bbclass: Defaults should be ?= as classes load after confMark Hatle2022-07-281-5/+5
| | | | | | | | | | | The conf file(s) should specify board specific defaults, but if left not set should fall back to what is implemented here. Since the load order is: machine.conf -> *-generic.conf -> xilinx-machine-qemu.conf ---| |--> inherits -> qemuboot-xilinx.bbclass Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* qemu-xilinx cleanupJohn Toomey2022-07-287-125/+134
| | | | | | | | | | | | | | | | | | | | | | | Refactor qemuboot-xilinx.bbclass and machine-xilinx-qemu.inc. Following the example of the core version of qemu.bbclass and match inc file. Refactor some of the functions to make them more readable. Specifically around qemu_rootfs_params. Code may not be as compact, but it'll be easier to read (and update) in the future. Add mising qemu-system-native PREFERRED_PROVIDER (and recipe PROVIDE). This resolves the issue where occasionally you use runqemu and the qemu binary appears to be missing. *-generic.conf: Remove overrides that are the same as the default qemu settings. Remove :append operations on QB_OPT_APPEND, this allows easy override when someone includes a generic machine. Signed-off-by: John Toomey <jtoomey@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* *-generic.conf: Fix QB_NETWORK_DEVICE to use default settingsMark Hatle2022-07-282-2/+4
| | | | | | runqemu will pass in the correct network choice for the user. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* *-generic.conf: Update qemu config to remove duplicate optionsMark Hatle2022-07-284-7/+5
| | | | | | | | | | | | runqemu now appears to set -serial mon:stdio by default. This can conflict with the built in parameters. Reported by: Jeremy Puhlman <jpuhlman@mvista.com> It may look unusual, but the remaining -serial null are still required for booting. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* qemu-system-aarch64-multiarch: Add --help supportMark Hatle2022-07-281-0/+2
| | | | | | | | --help may need to be passed in and should be directed to the main APU handler. runqemu may use --help for various reasons. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* xrt_git.bb: Cleanup += usageMark Hatle2022-07-281-8/+8
| | | | | | | | | | Resolve the following warning WARNING: .../meta-xilinx/meta-xilinx-core/recipes-xrt/xrt/xrt_git.bb: EXTRA_OECMAKE:append:versal-ai-core += is not a recommended operator combination, please replace it. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* qemu-xilinx-native.inc: add meson and ninjaJeremy Puhlman2022-07-281-1/+1
| | | | | | | | ERROR: Cannot find Ninja Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* microblaze-generic: microblaze requires a device treeMark Hatle2022-07-281-1/+7
| | | | | | | | | Add the device-tree as a dependency and kc705-microblazeel is defined as the default HDF_MACHINE. Also simplify by removing the QB_DTB and using the default value. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* zynq-generic: use default QB_DTB valueMark Hatle2022-07-281-2/+0
| | | | Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* machine-xilinx-qemu.inc: Adjust function to verify fstype is validMark Hatle2022-07-281-6/+7
| | | | | | | | Simplify the function to treat microblaze as a soc_family. If we do not have initramfs_image defined, then verify wic.qemu-sd is available before returning that value, otherwise fall back to the dictionary. Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
* u-boot-xlnx: Add support for U-boot user specified dtsSandeep Gundlupet Raju2022-07-281-2/+24
| | | | | | | | | | | | | | | | | Add support for U-boot user specified dts by setting below variables in local.conf file. UBOOT_USER_SPECIFIED_DTS:pn-u-boot-xlnx = "versal-vck190-revA-x-ebm-01-revA" This will fetch user specified dts from from u-boot repo path u-boot-xlnx/arch/arm/dts/versal-vck190-revA-x-ebm-01-revA.dts when user doesn't want to use EXT_DTB from device-tree recipes. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Adjust to keep extra_oemake args blank, unless actually needed Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* Set QB_KERNEL_ROOT for zynq-genericJohn Toomey2022-07-281-0/+2
| | | | | | | | This value is passed to the kernel in order to choose the correct disk but defaults to /dev/vda which does not boot. Signed-off-by: John Toomey <jtoomey@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* u-boot-xlnx-blob.inc: Move to using UBOOT_IMAGE_BLOB_DEFAULTMark Hatle2022-07-281-1/+2
| | | | | | | | | UBOOT_IMAGE_BLOB may need a machine (override) specific default value, but we always want the user to be above to override this easily. Adding the new UBOOT_IMAGE_BLOB_DEFAULT allows us to set the default in a BSP layer, while continuing to make the UBOOT_IMAGE_BLOB setting easy for the user to adjust. Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* machine:*-generic.conf: Use += instead of appendRaju Kumar Pothuraju2022-07-284-4/+4
| | | | | | | | | | Using append enabling the FSTYPE when using the soc override in petalinux. Using += to add/reflect the value only in yocto or defined with ?= or = operators. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* zynqmp-generic.conf: Add runqemu support for zynqmp-genericRaju Kumar Pothuraju2022-07-281-6/+7
| | | | | | | | This patch will add runqemu support for zynqmp-generic machines when INITRAMFS/INITRD/EXT4 sets. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* zynq-generic.conf: Add runqemu support for zynq-genericRaju Kumar Pothuraju2022-07-281-5/+17
| | | | | | | | This patch will add runqemu support for zynq-generic machines when INITRAMFS/INITRD/EXT4 sets. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* versal-generic: Add runqemu support for versal-genericRaju Kumar Pothuraju2022-07-281-10/+8
| | | | | | | | This patch will add runqemu support for versal-generic when INITRAMFS/INITRD/EXT4 configurations. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* microblaze-generic: Add runqemu support for microblaze-genericRaju Kumar Pothuraju2022-07-281-1/+14
| | | | | | | | This patch will add runqemu support for microblaze-generic machines for INITRD/INITRAMFS types. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* machine-xilinx-qemu: Add generic functions to add qemu argsRaju Kumar Pothuraju2022-07-281-2/+57
| | | | | | | | | | | | | | This patch will add generic fuctions to add qemu args as per the configuration set and soc_family. Ex: - Adding Image, rootfs and boot.scr files for zynqmp if in case of IMAGE_INITRAMFS set. - Add boot mode as 5 for versal - Return the rootfs type per configuration - Skip adding rootfs in case of bundle image as kernel image will have it. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* qemuboot-xilinx:machine-xilinx-default: Update kernel imagesRaju Kumar Pothuraju2022-07-282-0/+5
| | | | | | | | | For zynq,microblaze qemu supports direct kernel boot by specifying kernel image name to QB_DEFAULT_KERNEL. Adjusting the kernel image based on the bundle image selection. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* image-types-xilinx-qemu: Add qemu-sd-fatimg supportRaju Kumar Pothuraju2022-07-281-3/+52
| | | | | | | | | | | | | | | | | | qemu-sd: Qemu 6.X onwards SD image should be of power of 2, this patch will read the generate qemu-sd image and find out its next power of 2 and adjust the size using qemu-img resize command. qemu-sd-fatimg: Due to circular dependencies in yocto when we enable INITRAMFS_IMAGE + wic and we need SD fat image to boot versal on qemu. For this added new image conversion type qemu-sd-fatimg, it will generate the sd fatimg containing boot.bin,boot.scr,rootfs.cpio.gz.u-boot files. Usage: IMAGE_FSTYPES += "cpio.gz.u-boot.qemu-sd-fatimg" NOTE: qemu-sd-fatimg creation is a workaround fix for circular dependencies. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* u-boot: Remove deprecated board defconfigsSandeep Gundlupet Raju2022-07-282-18/+0
| | | | | | | | Board specific u-boot defconfigs are deprecated from u-boot source, hence remove deprecated defconfigs from u-boot recipes. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* xilinx-qemu: Use addto_recipe_sysroot taskRaju Kumar Pothuraju2022-07-283-3/+17
| | | | | | | | | | | | | | | | | To populate the QEMU binaries into sysroot the populate_sysroot task isn't enough for qemu-xilinx-helper-native, we need to use addto_recipe_sysroot task. This patch will correct the mapping. u-boot-zynq-uenv failing to add DEPENDS when EXTRA_IMAGEDEPENDS has recipe:task. This patch will split the recipe name and add it to DEPENDS. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> While unusual, the PR is updated, as the qemu and qemu helper need to have the same version/pr or the path logic doesn't work properly. Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* lopper: Update srcrev for 2022Appana Durga Kedareswara rao2022-07-281-1/+1
| | | | | Signed-off-by: Appana Durga Kedareswara rao <appana.durga.kedareswara.rao@amd.com> Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* u-boot-zynq-scr: '@' should be outside the variableRaju Kumar Pothuraju2022-07-231-1/+1
| | | | | | | | Due syntax issue in defining variable the pxelinux.cfg file was not generated properly. This patch will fix that issue. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* fpgautil: Update the fpgautil helpNava kishore Manne2022-07-231-0/+6
| | | | | | | | This patch updates the fpgautil help to describe the usage of fpgautil -R Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* u-boot-zynq-scr.bb: Use the boot.cmd.generic for boot.scrRaju Kumar Pothuraju2022-07-231-2/+2
| | | | | | | | | | Using specific arch bootcmd script works only for SD bootmode. This patch will allow yocto flow to use the boot.cmd.generic script to generate the boot.scr which will support for jtag/sd/usb/qspi/ospi/nand which already used by petalinux. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* u-boot-zynq-scr: Update the image offsets as per petalinuxRaju Kumar Pothuraju2022-07-231-14/+20
| | | | | | | Update the image offsets/sizes as per the petalinux 2022.2 changes. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* u-boot-zynq-uenv: Use devnum instead sdbootdevRaju Kumar Pothuraju2022-07-231-2/+2
| | | | | | | | Use the devnum uboot env variable to detect and read the images from mmc. Signed-off-by: Raju Kumar Pothuraju <raju.kumar-pothuraju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* recipes-kernel: Add udev rules files for linux-xlnx in-tree driversSandeep Gundlupet Raju2022-07-232-0/+39
| | | | | | | | | | | | | This recipe is to add generic udev rules files for linux-xlnx in-tree drivers. - Create a new aie group. - Add udev rules for aie devices and change permissions and ownership group to "aie" so that any new user added to aie groups can access aie devices(/dev/aie0) from linux userspace. Signed-off-by: Sandeep Gundlupet Raju <sandeep.gundlupet-raju@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* zocl: This is not compatible with microblaze architectureMark Hatle2022-07-231-0/+1
| | | | Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* xserver-nodm-init: Fix FILESEXTRAPATHS : placementMark Hatle2022-07-231-1/+1
| | | | Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* libdfx_1.0.bb: Manually specify that 'libdfx' package is being replacedMark Hatle2022-07-231-0/+3
| | | | | | | | | | | | | | | | | | | The commit a64ff0bf015adcefbe691a94ac3e8ecf1a2ba911 updated the upstream source to include correct soname/soversion. Packaging was then modified to follow this example. The end result was that 'libdfx' was replaced by the automatic "libdfx1.0" package. This could result in: Error: Transaction test error: file /usr/lib/libdfx.so from install of libdfx-dev-1.0-r0.1.cortexa72_cortexa53 conflicts with file from package libdfx-1.0-r0.0.cortexa72_cortexa53 The cause was that libdfx wasn't upgraded when libdfx-dev was being installed. To resolve this we use RREPLACES, may look strange but this will instruct the system that "libdfx" is to be replaced by the dynamically generated package based on the soname. Signed-off-by: Mark Hatle <mark.hatle@amd.com> (cherry picked from commit 4dd53057341c8a88a0e89f623330f4f9a1915561) Signed-off-by: Mark Hatle <mark.hatle@amd.com>
* Updated SRCREV for 2022.1Sivaprasad Addepalli2022-07-231-1/+1
| | | | Signed-off-by: Siva Addepalli <sivaprasad.addepalli@xilinx.com>
* lopper: Update srcrev for 2022.2Ben Levinsky2022-07-231-1/+1
| | | | | | | Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit bb855e43a4dad0d55b7a8f18fba51cc09fcda71f) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* dfx-mgr: new SRCREV for xlnx_rel_v2022.1Sergei Korneichuk2022-07-231-1/+1
| | | | | | | For Kria 2022.1 Update2 Signed-off-by: Sergei Korneichuk <sergei.korneichuk@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* Updated SRCREV for 2022.1Sivaprasad Addepalli2022-07-231-1/+1
| | | | Signed-off-by: Siva Addepalli <sivaprasad.addepalli@xilinx.com>
* meta-xilinx-core:recipes-bsp:arm-trusted-firmware: Remove multiple entry of flagAkshay Belsare2022-07-231-1/+1
| | | | | | | | | | | | The flag PRELOADED_BL33_BASE is populated from petalinux for different platforms. Removing the hardcoded entry which is causing multiple instance of the same flag to the make command Signed-off-by: Akshay Belsare <Akshay.Belsare@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 1197387e16dec312ddb0a2c356ba9835d85aa15c) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* Updated SRCREV for 2022.1Siva Addepalli2022-07-231-1/+1
| | | | Signed-off-by: Siva Addepalli <sivaprasad.addepalli@xilinx.com>
* lopper: Update srcrev for 2022.2Appana Durga Kedareswara rao2022-07-231-1/+1
| | | | | | | Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 3a5ca8eda7e67dbdeb8dda1036e95745c21a47af) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* linux-xlnx: Update to latest versionMark Hatle2022-07-231-1/+1
| | | | | | | | Issue: CR-1130331 Fix USB functionality after suspect/resume Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* meta-xilinx-core:recipes-bsp:arm-trusted-firmware: Update BL32 memory sizeAkshay Belsare2022-07-231-1/+1
| | | | | | | | | | | | | PMUFW reserves memory range 0x7ff0_0000 to 0x7fff_ffff for DDR Software Self-Refresh(refer PG201, enabled by defualt). Update the ZYNQMP_BL32_MEM_SIZE to 0x0ff0_0000 and thus memory range from 0x7000_0000 to 0x7fef_ffff. Provencore uses memory range 0x7000_0000 to 0x7fdf_ffff Signed-off-by: Akshay Belsare <Akshay.Belsare@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 30d666532660082d9c3fb9d96d205fbb3f88e2f0) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* meta-xilinx-core:recipes-bsp:arm-trusted-firmware: Update PNCD NS IRQAkshay Belsare2022-07-231-1/+1
| | | | | | | | | | | | | | The SDP_PNCD_NS_IRQ flag is meant to set the NS interrupt number that will be used between ProvenCore OS and linux ProvenCore driver ATF is the one triggering this interrupt so it must be aware of its value. This value is hardcoded in ProvenCore binary as 51 As per input from ProvenRun the flag SPD_PNCD_NS_IRQ=51 is to be added, for right NS interruption to be used in PNCD Signed-off-by: Akshay Belsare <Akshay.Belsare@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit cbb8af2b3475620313fedb4fc677498b6461fb45) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* u-boot-xlnx: Move all u-boot FIT image (blob) implementation to hereMark Hatle2022-07-233-4/+159
| | | | | | | | | | | | | | The implementation appeared to have been split between meta-som and meta-xilinx-core. The core implementation should be generic and in meta-xilinx-core. Specifics for the som board (or other boards) will be captured in the board specific layers. Note: This code may be moved in the future as part of a consolidation of device tree related items. Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit b3470a5676ffb13addb446d0e8842e83b9c05eb2) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* libdfx: Remove custom do_install() taskNava kishore Manne2022-07-231-11/+1
| | | | | | | | | | | | A top-level Makefile and install rules have been added in the libdfx repo. This makes the custom do_install() task obsolete. So this patch removes the do_install() from libdfx bb file. Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit a64ff0bf015adcefbe691a94ac3e8ecf1a2ba911) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* qemu-xilinx: Disable dynamic git fetch during buildMark Hatle2022-07-231-1/+0
| | | | | | | | All fetching must happen in the do_fetch operation. Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit ce70cc1055c32d4ea22a6386d84cbc4bb0cdc39f) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* libdfx: Update bb file to align with libdfx CMake changes.Nava kishore Manne2022-07-231-5/+1
| | | | | | | | | | This patch updates bb file to align with libdfx latest CMake changes. Signed-off-by: Nava kishore Manne <nava.manne@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 2848271f22a77abd2086fa4438886f885a75e1ef) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* u-boot-xlnx.inc: stripping .dtb from BASE_DTS variableVaralaxmi Bingi2022-07-231-1/+1
| | | | | | | | | | | | | This patch will remove the .dtb from BASE_DTS as the .dtb will be added later in the python function. Signed-off-by: Varalaxmi Bingi <varalaxmi.bingi@xilinx.com> Allow CONFIG_DTFILE to be blank. Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 0c19d07c7f0bc767c160c8fcce15b30601cd6d8d) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* lopper: Update srcrev for 2022.1Appana Durga Kedareswara rao2022-07-231-1/+1
| | | | | | | Signed-off-by: Appana Durga Kedareswara rao <appana.durga.rao@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit 98ea8ecc4cea58161b0994c7519195996c41caba) Signed-off-by: Mark Hatle <mhatle@xilinx.com>
* fpga-manager-script: adding this recipe to meta-xilinxVaralaxmi Bingi2022-07-232-0/+487
| | | | | | | | | | | | | This fpgautil recipe was part of meta-xilinx-tools. This is required in decoupling flow as well till dfx mgr gets stabled and meta-xilinx-tools layer will no be there in decoupling flow. So moving this recipe to meta-xilinx. Signed-off-by: Varalaxmi Bingi <varalaxmi.bingi@xilinx.com> Signed-off-by: Mark Hatle <mhatle@xilinx.com> (cherry picked from commit e75c70e4db78afa8f5c5ec1790359ede5e8bf00e) Signed-off-by: Mark Hatle <mhatle@xilinx.com>