aboutsummaryrefslogtreecommitdiffstats
path: root/common
AgeCommit message (Collapse)Author
2019-03-18common/gstreamer: wayland isnt supported so remove it from plugins-badArsalan H. Awan
This disables the wayland PACKAGECONFIG of gstreamer1.0-plugins-bad as we do not support wayland. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-03-15Merge pull request #604 from ArsalanHAwan/swu-failsafeAwais Belal
SWUpdate Failsafe Implementation
2019-03-08swupdate/amd-wdt: do not stop wdt as swupdate implementation needs itArsalan H. Awan
Mentor SWUpdate as a part of its Failsafe Update mechanism implementation requires the WDT to keep running. So lets not disable it. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-03-08swupdate/initrdscripts: integrate amd-wdt in GRUB cfg for SWU failsafeArsalan H. Awan
This alters the init-install-efi.sh script by integrating the AMD-WDT in GRUB cfg of MEL installation to implement SWUpdate Failsafe Update mechanism. The AMD Watchdog is started as soon as a menuentry is selected by calling the setup_wdt function. It sets the WDT timeout of 60s by default which can be changed as needed. We also introduce a variable "mel_wdt" which allows user to disable the WDT in case the user is doing kernel debugging or so and wants the system to keep running. If WDT is detected to be fired & SWU was performed, then we fallback to last working state, else we do a normal boot. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-03-06swupdate/grub: AMD Watchdog Driver & API support for GRUB cfg/consoleArsalan H. Awan
SWUpdate Failsafe Update mechanism requires watchdog timer support to detect a failed update, and to get the WDT triggered in case of a system hang for that matter. This adds AMD Watchdog Driver & Watchdog API support for GRUB allowing us to access and configure the WDT from GRUB configuration and console. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-02-25systemd: fix mmc device dissectionAwais Belal
The systemd gpt autogenerator dissects each device for partition information. MMC devices having special partition layout containing fixed boot0/1 and rpmb partitions cause a failure during dissection and during boot we get: systemd-gpt-auto-generator[102]: Failed to dissect: Input/output error The fix is an upstream backport. https://github.com/endlessm/systemd/pull/81 Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-02-20amd-common-conf: specify MEL supported IoT packagegroupsArsalan H. Awan
This specifies the supported MEL IOT_PACKAGES for AMD BSPs as required by mel-iot layer. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-02-15libdrm: use a more aligned value for PVAwais Belal
This is more of a good practise and lets the user know the exact version more easily rather than digging through the source. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-02-08Merge pull request #601 from abelal/update_manifestWade Farnsworth
m4: drop patches already incorporated upstream
2019-02-08m4: drop patches already incorporated upstreamAwais Belal
These patches are now present in oe-core so we do not need to keep a copy here. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-02-08systemd: fix udev-hwdb postinst disablementAwais Belal
This was done in 165f830fda9fbde5feef4c336ceb7c95532a635d but used a different override than what was required. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-29amd-common-configurations: disable SWDESC_INCLUDE_BOOT_FILESAwais Belal
While creating the .swu through MEL's swupdate classes the contents of IMAGE_BOOT_FILES are processed in order to collect all the artifacts. While our BSPs produce a live image containing the rootfs as a loop device in the boot partition. This creates a circular dependency where the do_image_ext4 starts depending on itself. Fix this by forcing swupdate classes to not include these boot files. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-29amd-common-configurations: provide swupdate supportAwais Belal
This enables swupdate support for the AMD platforms by providing swupdate as its machine features depending on the available layers. Also, fixes a few variables required by MEL's swupdate implementation. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-29initramfs-module-install-efi: manipulate the installer for SWUpdateAwais Belal
This fixes/modifies things as per the SWUpdate support being implemented for the MEL platforms. Covers the following 1. partitioning scheme as per dual-copy approach. 2. drop blacklist of the boot device in installed image required by swupdate. 3. deploy kernels and rootfs as <image>A to conform with dual copy approach. 4. implement grub.env approach to pick up kernel and rootfs from the environment to support fallback mechanism. 5. implement fallback mechanism. 6. do not set rootfs as rw, the MEL scheme is to use ro when supporting swupdate. 7. do not set a timeout for grub menu in installed image as this will simply delay boot. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-18swupdate: basic support for AMD platformsAwais Belal
This enables GRUB under SWUpdate which is the bootloader used by AMD platforms and deploys the bl-kernels files in accordance with the support being enabled for AMD platforms. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-18core-image-minimal-install-initramfs: drop illegal POST process cmdAwais Belal
The sw-description is not available for initramfs images so drop the post process commands as it fails otherwise. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-18glib-2.0, udev-hw_db: disable postinstall hooksAwais Belal
GIO modules and udev's hw_db requires postinstallation hooks which fail due to current tools not supporting qemu execution on AMD builds. So, such hooks are deferred to first-boot which in case of swupdate is not possible as the rootfs is read-only. Simply disable these postinstall hooks. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-17Merge pull request #596 from abelal/minor_fixesWade Farnsworth
Minor fixes
2019-01-17amd-common-configurations: fix MACHINE_FEATURES manipulationAwais Belal
Not using immediate expansion causes circular dependencies in some cases so avoid such issues while depending on EXTRA_IMAGE_FEATURES. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-17amd-common-configurations: drop syslinux supportAwais Belal
We do not support legacy boots so using syslinux does not make any sense at the moment and dropping such metadata would allow easier maintenance. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-11Merge pull request #594 from abelal/dockerWade Farnsworth
linux-yocto_4.14: enable configurations to support docker
2019-01-10Revert "common/conf: remove vmlinux from KERNEL_IMAGETYPES..."Arsalan H. Awan
This reverts commit 570b7302369a337111cb247cebe19e0ec0e47ccb as it is fixed in meta-mentor->sumo: 922ef38be26e22b98a15388f66fa0d2770d50cc0 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2019-01-04linux-yocto_4.14: enable configurations to support dockerAwais Belal
This enables kernel configurations to be able to support the virtualization feature, the goal for now is to simply support docker not the whole virtualization layer. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2019-01-02linux-yocto: update eMMC patches for the common layerAwais Belal
The earlier patchset is not as stable and we've seen issues with it on different revisions of the v1000 target hardware. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-12-21linux-yocto_4.14: enable basic driversAwais Belal
Most of our BSPs require these drivers and they have been part of earlier releases so enabling them for the new kernel makes the most sense. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-12-19eject: fix build with glibc 2.28+Awais Belal
This is essentially a backport of http://cgit.openembedded.org/meta-openembedded/commit/meta-oe/recipes-support/eject?id=00eb88d1ce5c53d02b5a9a70af09f2e714e5234e Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-12-18gzip: fix build with glibc 2.28+Arsalan H. Awan
This is a backport from oe-core master and is required for mel-lite as it uses gcc8.2 based on glibc 2.28 Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-12-03common/conf: remove vmlinux from KERNEL_IMAGETYPES to reduce img sizeArsalan H. Awan
MEL adds vmlinux to KERNEL_IMAGETYPES which ends up in the rootfs of the image being built where it is not needed by us, and as a side-effect, it results in increasing the size of the image by a considerable amount. Therefore we do this change, and we'll remove it from here once fixed in MEL. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-11-28grub-efi: add efibootmgr as a runtime dependencyAwais Belal
This was earlier fixed in fcfe5490920de9c9b62c7ec106fe1a731d0b2061 but we lost the change while cleaning up our repositories thinking that it was already submitted upstream. efibootmgr is an actual runtime dependency for grub-efi. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-27Merge pull request #586 from abelal/4.14-commonWade Farnsworth
Move 4.14 patches to common
2018-11-27common/linux-yocto: separate out AMD eMMC patchesAwais Belal
Just like we've bisected for the XGBE fragment, this now allows the eMMC patches to be overriden from other BSPs which want to modify/drop the fragment. We're dropping the fragment name from the snowyowl layer SRC_URI because the common append now provides it already. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-27common/linux-yocto: separate out AMD XGBE patchesAwais Belal
Separate out XGBE patches from the GPU patches fragment. We apply this on all the BSPs and any BSP that wants to override the fragment can simply provide the same named fragment from its own layer. We're dropping the fragment name from the snowyowl layer SRC_URI because the common append now provides it already. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-24linux-yocto: move v1000 patches to commonAwais Belal
These patches apply to other BSPs as well which utilize the amdgpu driver so move these to common. There are patches against XGBE and other peripherals in the same list which will be split in the upcoming commits so BSPs not requiring the subsets can modify or drop the fragments as needed. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-20mentor-industrial: drop unneeded fragmentsAwais Belal
We're not supporting the MEL add-on anymore. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-16Merge pull request #583 from ArsalanHAwan/wic-optimizationWade Farnsworth
Wic Optimizations
2018-11-15wic/amd-usbimage.wks: reduce image sizeArsalan H. Awan
This cuts down the unnecessary free space in the image by setting the --overhead-factor to 1.0, therefore reduces the image size of amd-usbimage.wks & makes it easier to handle while transferring or flashing to a USB etc. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-11-15wic/amd-usbimage.wks: set appropriate label considering other DISTROsArsalan H. Awan
This changes the partition label of amd-usbimage.wks wic image from "mel-live" to the default "boot", therefore makes it suitable to be used for MEL as well as open yocto (or other) DISTROs. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-11-15mini-x-session: do not force a display sizeAwais Belal
The mini-x-session forces a display size of 1024x768 which is way too low where our platforms support 4k displays. Simply remove the forcing of the display size from the session manager so the maximum is picked up automatically. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-14mesa: drop unused patchesAwais Belal
Although the patches were removed from SRC_URI during the upgrade process the actual patch files were left behind. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-14common: drop all the 4.9 kernel metadataAwais Belal
None of the BSPs are currently based on the 4.9 kernel so drop the common metadata as well. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-13Merge pull request #579 from abelal/mpv_updatesWade Farnsworth
MPV updates
2018-11-13mpv: upgrade to 0.28.2Awais Belal
This upgrades mpv to 0.28.2 which is the stable version of the first release that works with libva 2.x which is what we're supporting now. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-13ffmpeg: upgrade to 4.0.2Awais Belal
We need to upgrade ffmpeg to satisfy the upgrade of mpv which in turn is required for the libva upgrade. This is backported from the oe-core master branch. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-13mpv: additionally depend on libva-x11Awais Belal
MPV also needs to depend on our libva-x11 stub package in order to pick up all the configurations correctly. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-13libva-utils: depend on libva-x11 additionallyAwais Belal
libva-utils requires x11 components explicitly which we have split out for taking care of a circular dependency between mesa and libva. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-13libva: upgrade to 2.1.0Awais Belal
This upgrades the libva integration to 2.1.0 while updating mesa and gstreamer1.0-vaapi to use the new created mechanism for circular dependency resolution between mesa and libva. These changes cannot be split for the same reason. The new dependency chain is libva-x11 -> mesa -> libva. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-12xf86-video-amd: upgrade to 18.0.1 for amdgpuAwais Belal
This upgrades the amdgpu component of the xf86-video-amd to 18.0.1. Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-12mesa: upgrade to 18.1.1Awais Belal
Signed-off-by: Awais Belal <awais_belal@mentor.com>
2018-11-08common/IMAGE_FSTYPES: drop "hddimg" in favor of "wic"Arsalan H. Awan
This drops hddimg support as the functionality offered by this is also available through the wic image "amd-usbimage.wks" which is enabled as a default wic image. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
2018-11-08common: add wic images supportArsalan H. Awan
This adds support for wic images for AMD BSPs by adding "wic" to IMAGE_FSTYPES. This commit also creates a "amd-usbimage.wks" file as a default wic image for AMD BSPs, which uses the bootimg-partition wic source plugin to create a bootable image. The contents of this image can be set via IMAGE_BOOT_FILES variable. This commit populates the image with the files same as in hddimg, therefore supports both grub EFI boot and syslinux legacy boot. The IMAGE_BOOT_FILES variable can be overridden to support any bootloader such as: systemd, or any other files that are required to be deployed into the wic image can be added here. This resulting image can be flashed on a USB, and supports both "boot" and "install" options in the bootloader menu. Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>