Commit Graph

96 Commits

Author SHA1 Message Date
Mikko Ylinen
85c16a907f intel-*: wic: drop recursive task depedency to do_bootimg
do_image_wic (in image_types.bbclass) deals with the task dependency
to do_bootimg if live images are built.

It's redundant to set do_bootimg as a recrdeptask in the machine
configurations so remove it.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-01-17 10:03:26 -08:00
Mikko Ylinen
a7941f79f6 intel-*: build dosfs/mtools for wic image creation
intel-* machines default to an EFI bootloader which runs from an EFI
system partition (ESP). Also, the ESP needs to be vfat formatted.

Make sure the dosfs/mtools used by wic and its plugins that deal with
vfat are built and available (without depending on do_bootimg) when
wic images are being created.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2017-01-17 10:03:15 -08:00
Ross Burton
466196fa2f vaapi: remove as recipes moved to oe-core
libva and gstreamer-vaapi are now part of oe-core, so remove them.

The package names were changed to reflect the naming scheme, so update the
machine configurations to follow.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2016-12-15 10:27:18 -08:00
Todor Minchev
48c335a46e rmc: add support for alternative EFI bootloaders
RMC was previously configured to work only with the systemd-boot EFI
bootloader. With this commit we can specify alternative bootloaders by
setting the RMC_BOOTLOADER variable in local.conf. If RMC_BOOTLOADER is
not set systemd-boot will be used by default.

Signed-off-by: Todor Minchev <todor.minchev@linux.intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2016-12-15 10:27:18 -08:00
Rahul Kumar Gupta
35d60f13bb intel-core*: Add ASPEED Xserver driver
Include support for ASPEED Technology graphics card driver to
intel-corei7-64 and intel-core2-32. So that intel common BSP can
support platforms like MohonPeak (Intel Atom Processor C2000 Product
Family) which using this graphics card.

Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-28 12:45:06 -08:00
Rahul Kumar Gupta
61634f89a8 intel-core*: add ttyS1 to SERIAL_CONSOLES
Some of Intel boards are using ttyS1 also. So ttyS1 is added to
SERIAL_CONSOLES inorder to provide login prompts on the console.

Signed-off-by: Rahul Kumar Gupta <rahul.kumarxx.gupta@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-28 12:45:06 -08:00
California Sullivan
c1f260ba7f conf/machine/intel-core*: Change WKS_FILE to systemd-bootdisk-uuid
Overriding systemd-bootdisk.wks unconditionally was against Yocto
Project's compatibility requirements, so our version needed to be
renamed.

Change our conf files to use the renamed version.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-10 07:48:05 -08:00
Saul Wold
6e05e7f82a meta-intel.inc: Add MACHINEOVERRIDE for meta-intel
This allows to have one override mechansim for meta-intel instead of having
multiple machine overrides.

This replaces using rmc in DISTRO_FEATURES which was a bad idea to set in
layer.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-02 16:19:51 -07:00
Saul Wold
233b271e17 meta-intel.inc: remove setting rmc in DISTRO_FEATURES
We should not be changing DISTRO_FEATUES within a layer.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-02 13:50:46 -07:00
Saul Wold
da4795aa91 layer.conf: Remove BBMASK'ing items
Having BBMASKS and DISTRO_FEATURES causes issue with sstate in certain situations

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-02 13:50:46 -07:00
Saul Wold
8649d6b5b1 intel-corei7-64: Use SERIAL_CONSOLES to add ttyS2
Some Intel boards use ttyS0 and others use ttyS2, include both serial
ports inorder to provide login prompts on the console.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-02 13:50:46 -07:00
Jianxun Zhang
53597ed63d quark: amend EFI Bootloader option
We cannot override the current EFI bootloader selection with
another "EFI_PROVIDER=..." in a local.conf in a build/conf
directory when it is specified by "=" syntax in the current
conf file for quark.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-01 08:23:15 -07:00
Jianxun Zhang
15ac2f84ed quark: explicitly set boot entry in bootloader
This is to get rid of "install" option when booting quark with
an image in hddimg format. EFI installer doesn't work on quark
at this point.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-11-01 08:23:15 -07:00
Saul Wold
3da6553f63 meta-intel: Enable RMC by default
This enables the Runtime Machine Configuration feature, which
allows use to support multiple machines that have different
kernel commandline option as well as different startup requirements
to work from the base MACHINE configuration.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-10-20 11:12:30 -07:00
Saul Wold
755c4a95e9 intel-quark: Add WIC image creation
This adds WIC Image support to the Quark Intel BSPs, these
are all designed to be copied to MicroSD Cards via dd.  This will create
an efi boot partition along with a user space partition.

It is not currently setup to have an install target, it only has a live boot
target.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-10-17 08:07:53 -07:00
Saul Wold
a7cc7abcc9 intel-core*: Add support for wic images
This adds WIC Image support to the core2 and corei7 Intel BSPs, these
are all designed to be copied to USB sticks via dd.  This will create
an efi boot partition along with a user space partition.

It is not currently setup to have an install target, it only has a live boot
target.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-10-17 08:07:53 -07:00
California Sullivan
31abb97302 meta-intel.inc: Bump PREFERRED_VERSION_linux-yocto to 4.8
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-09-15 08:43:56 -07:00
California Sullivan
d2b70b5c98 meta-intel.inc: Soft set PREFERRED_PROVIDER_virtual/kernel
This makes it easier for others inheriting meta-intel to use their own
kernel.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-09-15 08:43:51 -07:00
Jianxun Zhang
96cd0d7428 rmc: Add recipe and bbclass for RMC feature
RMC Feature is based on RMC project, systemd-boot, EFI installer
to enable a single generic image, built for multiple platforms,
automatically applies customization and quirks specific to a type
of boards at runtime.

In another word, you will see a single image behaves differently
and intelligently according to the type of board it is running on.

To Enable this feature: add the two lines in conf file:
DISTRO_FEATURES_append = " rmc"
EFI_PROVIDER = "rmc-systemd-boot"

Based on Saul Wold's initial work on a feature switch, RMC patches
in systemd-boot, installer and gnu-efi aren't built unless the
feature is enabled.

For a supported board, this feature can :
() show and boot with board-specific boot entries in boot menu
in live-boot and post-installation.

() apply a kernel cmdline fragment to the end of cmdline to boot
Linux kernel. This is effective for any boot entry user chooses in
boot menu.

() create directory and deploy files only for the type of the
running board to target's file systems. What left on target after
installation is just same as the result from installing a conventional
image customized for a single type of hardware.

To add support of new boards, a new variable RMC_BOARD_DATA_DIRS
is the interface to developers. How-to information will be provided
with examples in following patches.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Reviewed-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2016-08-03 17:37:41 -05:00
Jianxun Zhang
7d00922e1c quark: Switch gummiboot to systemd-boot
The systemd-boot is the old gummiboot merged into systemd project.
We have enabled systemd-boot as a standalone EFI bootloader in OE,
also with updated wic plugin to support specifying "systemd-boot"
as bootloader in wks files.

Assuming these are good enough to replace gummiboot for quark,
this change does it.

Signed-off-by: Jianxun Zhang <jianxun.zhang@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2016-07-28 12:09:21 -05:00
Tom Zanussi
e352344a36 intel-common-pkgarch: Set common PACKAGE_ARCH for linux-yocto-tiny
The linux-yocto-tiny metadata assumes the common PACKAGE_ARCH but
without this is actually machine-specific and broken.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2016-05-26 20:59:33 -05:00
Tom Zanussi
0e86d961bc conf/machine/README: Remove
All content has been moved to the top-level README.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-04-29 07:15:31 -07:00
California Sullivan
d9727db3e7 conf/machine/intel-*: Add rootwait to APPEND variables
When using the init-install-efi.sh scripts from oe-core to install to a
USB stick, we do not get the "rootwait" kernel command line option.
Without the rootwait option we get a kernel panic when
attempting to boot from the installed USB stick.

This patch adds rootwait to the kernel command line of all intel-*
MACHINEs as a temporary workaround. This could potentially impact boot
times with devices that do not require it, but in testing with a
Silverjaw lure and SSD on a MinnowBoard Max, it did not have a noticable
impact.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-04-26 09:42:21 -07:00
California Sullivan
c6efc3ea16 machine: add i915 firmware to initramfs for intel-core* MACHINEs
Skylake and Broxton graphics require firmware blobs to run properly.
The firmware must be built into the initramfs since the i915 driver is
built into the kernel and won't have rootfs access on initialization.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-03-29 11:45:33 -07:00
Saul Wold
cdbf029110 meta-intel.inc: Update INTRD to INITRD_LIVE
This address a boot issue based on using the new bootimg code that
makes a distiction between Live and VM type of image so they can
co-exisit.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-03-03 15:48:25 -08:00
California Sullivan
aaab29ad03 machine: move PREFERRED_VERSION/PREFERRED_PROVIDER to meta-intel.inc
This information is the same across all meta-intel supported MACHINEs,
so we can move it to a shared location.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2016-02-22 14:53:15 -08:00
California Sullivan
95e3bea7f6 machine: update PREFERRED_VERSION to 4.4 for intel-core* and intel-quark
This makes us use the new 4.4 kernel by default.

Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
2016-02-22 14:53:15 -08:00
Alejandro Hernandez
324918de46 gma500_gfx: Avoid inserting gma500_gfx module for certain devices
The gma500_gfx driver will match certain devices on which it causes incorrect functionality,
we want to avoid inserting this module, basicallly blacklist it for specific hardware,
but still allow it to work on other hardware by default; usually when we have an already working system,
using udev rules would do the job, but since we are building it, it is impossible to blacklist
a driver when a certain udev rule matches, since rootfs isn't writeable at this point during boot time,
the solution is to use modprobe install, which runs a certain command instead of inserting a matching module
this command needs to insert the module manually afterwards and have a flag --ignore-install
so it doesn't create an infinite loop executing itself everytime it wants to insert the module,
busybox's modprobe doesnt provide this functionality, so a small hack had to be used to avoid
the infite loop instead.

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2016-02-19 07:52:09 -08:00
Saul Wold
9abce0aa9f intel-core2-32: fix SERIAL_CONSOLES line
This should be SERIAL_CONSOLES with ; setting between baud and device.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-11-02 14:05:10 -08:00
Joonas Lahtinen
4a761ccaf1 conf: Add a direct path to common recipes
By adding the direct path to recipes in common directories we allow
upper layers to further extend the recipes.

Without the patch the extending recipes look like this:

	require common/recipes-foo/bar/baz.inc

With this patch the include can be written like in other layers:

	require recipes-foo/bar/baz.inc

Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-10-27 08:07:02 -07:00
Saul Wold
0d73402b4f intel-quark-common: Add no-asm config to openssl
This causes the build to not use Assembly code which contains invalid
CMOV instructions.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-10-02 08:14:48 -07:00
WU CHIA CHUAN
84c049b9cb meta-intel: meta-romley BSP retirement from YP 2.0
Remove meta-romley BSP layer from meta-intel master branch
which is targeting for YP 2.0.

A heads-up email was sent to the meta-intel mailing list for
requesting any feedback regarding retirement of these BSP.
Since there is no concern, we assume that it is agreed upon
and thus this patch to retire the BSP.

The "MAINTAINERS file" and "conf/machine/README file" are updated to
reflect removal of the BSP.

We expect intel-corei7-64 machine is continued to be used to support
the platform and dpdk recipe under meta-romley is now supported under
meta-isg/common/recipes-extended/dpdk.

Signed-off-by: WU CHIA CHUAN <chia.chuan.wu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-09-29 18:05:49 -07:00
Saul Wold
94890cec95 intel-quark-common: disable padlock code
The padlock code is a subset of x86 hardware acceleration code. It uses
the cmov instruction which is invalid on Quark based hardware, so we
disable this code.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-09-16 10:33:37 -07:00
Saul Wold
a9c38306c9 intel-core2-32: Allow for multiple tty console types
Adding the ttyPCH0 will allow of the platforms that have the EG20T Hardware
to get both kernel console output and login prompt.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-08-28 14:25:29 -07:00
Saul Wold
4172351baa Remove older platform specific BSPs
The intel-core* BSPs supercede these older BSPs therefore it's time
to remove these older platform specific bsps.

Bump LAYERVERSION to 3 to allow the Autobuilder to know that these
BSPs have been removed.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-08-28 14:25:29 -07:00
Saul Wold
adc8064908 intel-quark: add CFLAGS for kernel to no use lock prefix
The kernel needs to have the EXTRA_CFLAGS based via a variable as
it does not pick up the CLFAGS from the tune file.  Quark based
kernel should not use the lock prefix.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-08-19 07:39:30 -07:00
Saul Wold
cef3648754 intel-quark: use the 4.1 linux-yocto kernel
Use the 4.1 kernel which is now the default in oe-core

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-08-19 07:39:30 -07:00
Saul Wold
9168b1a87d intel-core*: use the 4.1 linux-yocto kernel
Use the 4.1 kernel which is now the default in oe-core

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-08-19 07:39:30 -07:00
Saul Wold
2ff5876595 intel-quark: Introduce new BSP for Quark/X1000 SOC
This new BSP is for the Quark/X1000 and related series that need
the limited no-lock-prefix.

Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-07-08 10:26:08 -07:00
Cristian Iorga
664a37854c intel-corei7-64: add nfc machine feature
add support for the generic NFC stack

Partial fix for [YOCTO #7451].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-06-01 09:24:06 -07:00
Cristian Iorga
b52fe1d9e2 intel-core2-32: add nfc machine feature
add support for the generic NFC stack

Partial fix for [YOCTO #7451].

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
2015-06-01 09:24:04 -07:00
Ross Burton
dcb2710376 intel-core*: use gstreamer-vaapi-1.0 directly instead of gst-va-intel
No need for a layer of indirection when that layer only has one option.
Previously with EMGD there was a choice, but not anymore.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2015-02-27 10:11:59 -08:00
Nitin A Kamble
367fd4758d meta-intel.inc: Remove kernel customization for poky-lsb images
This is handled in oe-core now, remove the redundant code.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2015-02-24 14:54:02 -08:00
Darren Hart
cd83c1248d Update LSB preferred version to 3.14 LTSI
LSB images prefer to build with LTSI. Update to 3.14, now that 3.10 has
been removed.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2015-02-20 13:32:33 -08:00
Darren Hart
86bae8895a intel-core*: Prefer 3.19 for the Intel common BSPs
Now that 3.17 has been removed and linux-yocto-3.19 is available, set
the preferred version to 3.19.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
2015-02-20 13:32:33 -08:00
Nitin A Kamble
a3a380373b intel-microcode: Add ability to filter microcode
The microcode data file released by Intel has microcode for many Intel
processors, which by default all get installed onto the target image.
In some situations it may desirable to choose microcode for only a
selected processor or processors.  This change provides an easier way
to filter and select only the microcode of interest for BSPs from
recipe space.

A new variable, UCODE_FILTER_PARAMETERS, is introduced, which can be
defined to contain parameters to the iucode_tool which will filter the
microcode of interest for the BSP under consideration.  More
information on the iucode-tool parameters is available here:
http://manned.org/iucode-tool.

This filtering makes the generated microcode files very
machine-specific, hence making the recipe machine-specific. BSPs using
the common Intel kernel will not be using the filtered microcode, and
will be able to share the intel-microcode packages with the common
Intel package arch for the recipe.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2014-10-21 15:50:37 -05:00
Nitin A Kamble
e5427e8e75 intel-corei7-64: Add intel-ucode to MACHINE_FEATURES
Enable the Intel microcode feature for this BSP.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2014-10-21 14:40:10 -05:00
Nitin A Kamble
dd922d7cb2 intel-core2-32: Add intel-ucode to MACHINE_FEATURES
Enable the Intel microcode feature for this BSP.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Acked-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2014-10-21 14:39:49 -05:00
Nitin A Kamble
c64ade471a meta-intel: Add new intel-ucode MACHINE_FEATURE
With this change, Intel microcode support can be enabled or disabled
for any BSP by controlling the MACHINE_FEATURES variable.

Any BSP from the meta-intel layer can enable Intel microcode loading
support by adding the following line in the machine configuration.

  MACHINE_FEATURES += "intel-ucode"

This change keeps the intel-microcode feature disabled by default; it
can however be enabled as an "opt-in" feature via the MACHINE_FEATURES
variable.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2014-10-21 14:34:20 -05:00
Nitin A Kamble
c32b593803 meta-intel.inc: Use LTSI kernel for poky-lsb images
v3.10 is now the latest LTSI kernel.  Use it for all the poky-lsb
images, so that it gets validation in the QA cycles.

Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
2014-10-21 12:28:13 -05:00