aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2017-04-28qemuboot-xilinx.bbclass: Rework qemu-xilinx setupNathan Rossi
This change reworks how the meta-xilinx layer enables and provides the custom version of QEMU based on Xilinx's fork of QEMU. The existing implementation relied on the single sysroot which was changed in oe-core such that now recipes have their own sysroots (RSS support). Additionally oe-core now provides the QEMU binaries to the runqemu script via the 'qemu-helper-native' recipes sysroot as opposed to the image sysroot. These rework changes allow for a single machine to select the targeted QEMU version as well as to provide the qemuboot config specific to the targeted QEMU version. The selection of QEMU version is now handled by PREFERRED_PROVIDER mechanics with the meta-xilinx layer providing an additional recipe that is equivalent to qemu-helper-native and which also provides said target allowing for the machine to select via the use of PREFERRED_PROVIDER_qemu-helper-native. This recipe (qemu-xilinx-helper-native) however instead provides the sysroot populated with qemu-xilinx instead of qemu. Additionally the XILINX_QEMUBOOT variable is replaced with the qemuboot-xilinx.bbclass, this provides the overrides for setting up qemu-xilinx specific QB_* args. Additionally this bbclass points runqemu at the qemu-xilinx-helper-native sysroot for QEMU binaries. These changes also work towards making the meta-xilinx layer better handle multiple qemuboot.conf variants as well as handling different QEMU versions. This change also removes the 'qemu-system-xilinx' MACHINE_FEATURES, this is due to MACHINE_FEATURES no longer being available for native recipes. Additionally there is no longer any logic that needs to know this any way. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-04-26device-tree: Improve, clean up and remove MACHINE_DEVICETREENathan Rossi
This change improves and does a number of clean up to the device-tree recipe. This includes adding support for building overlays, default inclusion of kernel device tree sources, updated license value and general clean ups to the logic. This change also removes the support for MACHINE_DEVICETREE, and additionally the now unused xilinx-utils.bbclass. Note: In order to support overlays dtc version 1.4.3 or newer is needed, currently in oe-core only 1.4.2 is available. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-04-26machine-xilinx-qemu.inc: Don't use MACHINE_DEVICETREE for dtb detectionNathan Rossi
Avoid using the MACHINE_DEVICETREE variable for detection of the device tree that needs to be loaded. Instead only rely on IMAGE_BOOT_FILES or KERNEL_DEVICETREE. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-04-26device-tree.bbappend: Move use of MACHINE_DEVICETREE to SRC_URINathan Rossi
Remove the use of MACHINE_DEVICETREE for providing sources to device-tree, instead provide the device tree sources as SRC_URI entires. Whilst this was already being done automatically by the MACHINE_DEVICETREE logic it also created a non-standard way of providing the device tree sources to the recipe. The setup of SRC_URI is done via the use of a device-tree.bbappend instead of directly in the device-tree.bb recipe itself. This is for two reason, separation of the source from the build logic as well as to provide an example for how a user can extend the device-tree recipe to provide custom device tree sources in their layer. This change also moves the paths to the sources around, this is to align the names of the directories to match the OVERRIDES so that when expanding the file paths it will search the subdirs based on the OVERRIDES or machine names. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-04-26linux/config: Enable ZYNQMP_PM_API_DEBUGFS for linux-xlnx kernelsNathan Rossi
Enable the ZYNQMP_PM_API_DEBUGFS option to expose information about the PM API. This generally useful even when not debugging. Additionally this is enabled by the zynqmp defconfig in linux-xlnx. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-04-26README.booting.md: Update and add notesNathan Rossi
Remove mention of 'u-boot-dtb.img' which is no longer generated. Add a small paragraph directing users to look at the Yocto dev manual for information about generating partitioned/disk images with wic. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-04-26README.*: Fix up bullet point nestingNathan Rossi
Fix up the indent for nested bullet lists. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-04-26machine-xilinx-default.inc: Remove linux-yocto version pinningNathan Rossi
Use the newest available on targets that default to using linux-yocto. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Acked-by: Alistair Francis <alistair.francis@xilinx.com>
2017-04-26zybo-linux-bd.bb: Depend on unzip-native instead of unzipNathan Rossi
This recipe uses unzip, however it was depending on the targets unzip as opposed to unzip-native. Because of this it was using the hosts unzip during the build which is no longer valid with newer oe-core. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-03-31arch-microblaze.inc: Consolidate MicroBlaze tune featuresNathan Rossi
This change adds the 'arch-microblaze.inc' architecture tune features include which provides all the relevant tune features for MicroBlaze. This include replaces the 'tune-microblaze-features.inc' include, which is not actually a valid TUNE. This change results in the MicroBlaze tune and tune feature include tree matching the layout of meta/. This change additionally consolidates all the smaller includes (feature-microblaze-*.inc) into larger sets or into the arch-microblaze.inc. This makes the package arch string ordering much clearer as well as removing the large number of variables uses to set the TUNE_CCARGS. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-31feature-microblaze-versions.inc: Clean up and consolidationNathan Rossi
Clean up the MicroBlaze versions tunes as well and improve the TUNECONFLICTS for version features so that the conflicts matrix is automatically generated. Additionally consolidate the version features into a single include. Improve and generate the "-mcpu=" and package strings based on the version feature. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-31linux: Drop unused patchNathan Rossi
This was only used for linux-yocto 4.8 kernels, and is no longer used. So remove it. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-31linux-yocto: drop 4.8 recipesMischan Toosarani-Hausberger
openembedded-core dropped the 4.8 recipes: http://git.openembedded.org/openembedded-core/commit/?id=466e6e45ca04a07ebe1b1f52de747f077b362d54 Signed-off-by: Mischan Toosarani-Hausberger <mischan@iviso.at> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-24device-tree/microzed-zynq7.dts: Replace with kernel source versionNathan Rossi
Replace the existing device tree content with the content of the zynq-microzed.dts from the kernel source. Specifically based on commit df2f3c48b9cd51e2612a1598342769d09d849f39. This resolves the issues with the ethernet phy as well as adding pinctrl for USB. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-24linux/config: Enable ZynqMP FPGA manager for linux-xlnx kernelsNathan Rossi
The ZynqMP FPGA manager driver is available in linux-xlnx kernels, enable it for them. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-24linux-yocto: Enable linux-yocto and linux-yocto-tiny as wildcardNathan Rossi
Enable linux-yocto and linux-yocto-tiny kernels via a wildcard bbappend. This allows for enabling kernels without having to explicitly create bbappends for each version. Patches are still applied in versioned bbappends. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-24binutils: Drop MicroBlaze RELA patch, fixed in 2.28Nathan Rossi
The MicroBlaze RELA issue is resolved in binutils 2.28, the patch is no longer required, drop the patch from SRC_URI and delete the patch. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-24linux-xlnx-dev: Skip version sanity check and update versionNathan Rossi
Skip the kernel version sanity checking, in the same way that linux-yocto-dev does. Also update the version number and fall back commit id. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-12u-boot-xlinx: Workaround to trigger network based jtagbootJason
Currently the jtagboot cmd fails when jtagmemboot failed. This is because the jtagmemboot returns false when it fail the itest.w or the booti failed. Thus the network based jtagboot cmd never gets triggered. The jtagboot can't be purely base on the itest.w because sometimes the dhcp command triggers the Image download which has valid image in the ram. This passes the itest.w and iminfo test but fail the booti. This patch triggers the network based jtagboot cmd if jtagmemboot failed. Signed-off-by: Jason Wu <jason.hy.wu@gmail.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-10qemu-xilinx: Updates for libgcrypt and improved qemu.incNathan Rossi
Update the append to work with the improved qemu.inc. Enable gcrypt PACKAGECONFIG options. In order to enable libgcrypt the QEMU configure must be patched to handle pkg-config support for libgcrypt. This is because upstream libgcrypt does not provide pkg-config support but OE does. The solution used works around the need to patch QEMU, by implementing the patch as a sed replace so that a patch does not need to be used and maintained across versions. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-03-09machine-xilinx-default.inc: Remove UBOOT_OFEMBED for UBOOT_BINARYNathan Rossi
Both u-boot-xlnx and u-boot (mainline) now agree on the name for the output binary which includes the dtb. Additionally both versions load 'u-boot.img' from SPL. The UBOOT_OFEMBED variable and conditional value setting are no longer needed. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-16xf86-video-armsoc: Update to 1.4.1Nathan Rossi
Update to the 1.4.1 version of the armsoc driver to handle compatibility with newer versions of X11 as available in oe-core. Modify the driver patch to work with the new version which auto-detects which drmmode driver to use. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-16linux-xlnx: Update to the xilinx-v2016.4 releaseNathan Rossi
Update the linux-xlnx recipe to point at the xilinx-v2016.4 release. Note that this changes the naming convention for the .bb file, this has no affect on the value of PV since it is specific in the recipe itself. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-16zcu102-zynqmp: Default qemuboot to using Xilinx QEMUNathan Rossi
Currently the mainline QEMU is lacking full support for emulating the ZCU102 board. So use the more functional Xilinx QEMU for this board. Also reformat some of the appends to QB_* variables for clarity. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-02-16u-boot-xlnx: For ZynqMP setup auto-boot for JTAG loadingNathan Rossi
When booting a ZynqMP machine configured to boot from JTAG, setup U-Boot to attempt to automatically load the kernel, rootfs and device tree from default memory locations. This enables auto-booting for QEMU allowing for a completely automated boot up when using qemu-xilinx. Note the patch in this change is not acceptable for upstreaming in its current form. The upstream maintainer would however accept a similar change that uses FIT instead of individual components. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
2017-02-16u-boot-xlnx: Update to xilinx-v2016.4 releaseNathan Rossi
Update the u-boot-xlnx recipe to the xilinx-v2016.04 release. Note that this changes the naming convention for the .bb file, this has no affect on the value of PV since it is specified in the recipe itself. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-16docs/*: Remove old documentationNathan Rossi
The documentation in the docs/ directory is now out dated and was replaced with the README.*.md files in the root of the repository. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-16linux/linux-*.inc: Add 'name' field to the kmeta type sourcesNathan Rossi
When using the source archive class (for license compliance purposes) it is unable to determine the name for the kmeta type sources. Explicitly give the kmeta source entries 'name' values in the format 'kmeta-*'. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-14zcu102-zynqmp: fix machine name in confJean-Francois Dagenais
Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-11qemu: mainline: Remove patches for mainline QEMUAlistair Francis
OE-Core updated to QEMU 2.8 and these patches are no longer required. Just delete all changes made to mainline QEMU in meta-xilinx. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-02qemu-xilinx: Add support for building extensible SDKAlistair Francis
This patch allows the user to build an extensible SDK including the Xilinx fork of QEMU. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-01linux-yocto*_4.9.bbappend: Enable linux-yocto 4.9Nathan Rossi
Enable linux-yocto and linux-yocto-tiny 4.9 kernels. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-01u-boot_*.bbappend: Change u-boot bbappend to wildcardNathan Rossi
This append no longer provides patches and only includes the platform init injection support. As such this append can apply generally to 'u-boot' versions. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-01glibc-*.bbappend: Update appends for glibc 2.25Nathan Rossi
Update the appends to apply for glibc 2.25. The MicroBlaze patch still applies for this version. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-01conf/machine/*.conf: Move to QB_NETWORK_DEVICE for QEMU targetsNathan Rossi
Move the setup of network devices to the new QB_NETWORK_DEVICE variable, this avoids the need to configure slirp or tap options from the machine configuration. Additionally this provides the benefit of letting runqemu handle the setup of tap and slirp arguments, allowing for it to provide features such as host-guest port forwarding for slirp. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Tested-by: Alistair Francis <alistair.francis@xilinx.com>
2017-02-01linux/config: Add "CONFIG_USB_ULPI" for zynq7Nathan Rossi
Some boards use USB PHYs that need to be communicated with via ULPI. Enable CONFIG_USB_ULPI. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-02-01device-tree: Remove zynq7-base.dtsiNathan Rossi
This include has been deprecated for two releases. It is now completely obsolete and being removed. Remove the deprecation warning message as well. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-28qemu-xilinx: Update to the 2017.1 developmentAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-28qemu-devicetrees: Update to the 2017.1 developmentAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-28qemu-xilinx: Disable static option for qemu nativesdkAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-28qemu-devicetrees: Change the basename argumentsAlistair Francis
The basename '-s' argument is not universially supported on all platforms. Remove the argument to allow all platforms to build the device trees. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-23linux-xlnx.inc: Add KERNELURIVineeth Chowdary Karumanchi
Add KERNELURI for custom kernel url's Signed-off-by: Vineeth Chowdary Karumanchi <vineethchowz.chowdary@xilinx.com> Reviewed-by: Manjukumar Harthikote Matha <manjukumar.harthikote-matha@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-18zcu102: Add support for running Xilinx's QEMUAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-18machine-xilinx-qemu.inc: Add support for starting Xilinx's QEMUAlistair Francis
This patch adds support to the general include file to boot Xilinx's QEMU machines. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-18zynqmp: Consolidate the QEMU dependenciesAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2017-01-18qemu-xilinx: Apply a display port fix patchAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2016-12-27qemu: Rename the Xilinx releases to match the Xilinx versionsAlistair Francis
Rename the Xilinx QEMU and QEMU device tree versions to match the Xilinx releases. Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2016-12-21u-boot-xlnx_2016.07: Backport fix for memory corruptionNathan Rossi
Backport the dram_init* memory corruption fix, this resolves issues with some configurations where the dram_init function for zynq/zynqmp would trash non-relocated locations in memory due to the use of static variables before bss initialization. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2016-12-21linux-yocto_4.8: Resolve CONFIG_DEBUG_RODATA for ZynqNathan Rossi
This patch resolves a previous commit (ea4ca65aaf) which only mitigated the issue caused due to CONFIG_DEBUG_RODATA for Zynq. This issue has been properly fixed in the next version of the kernel (v4.10) and this change backports the patch to the v4.8 kernel for linux-yocto(-tiny). Additionally this change removes the forced disabling of CONFIG_DEBUG_RODATA allowing for Zynq platforms to use the feature without issue. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
2016-12-21qemu-devicetrees: Update to Xilinx's 2016.4 releaseAlistair Francis
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com> Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>