aboutsummaryrefslogtreecommitdiffstats
path: root/conf/machine/include
AgeCommit message (Collapse)Author
2020-11-04rpi-default-settings: Replace default parselogs with parselogs_rpiKhem Raj
rpi kernel spits out additional errors in kernel logs which should be ignored, there is no easy way to extend parselogs testcase other than inheriting it into another testcase and use that testcase instead Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-26rpi-default-versions: Switch defaults to 5.4Pierre-Jean Texier
Linux Kernel 5.4 is now considered stable. See [1] to check the current apt stable kernel. [1] - https://github.com/raspberrypi/firmware/blob/stable/extra/uname_string7 Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-08-10Generalize the naming of the bootfiles deploy directoryJeff Ithier
The raspberry pi 4 variant has a BCM2711 chip, however it still uses the same boot files as the BCM2835 used in previous generations. This change generalizes the naming of the directory generated in the $DEPLOY_DIR to avoid the implication that the files are only meant for the BCM2835. Signed-off-by: Jeff Ithier <ithijme@gmail.com>
2020-08-10conf/machine/include/rpi-base.inc: Added can1 interface to bspcolin
The device tree only supports a single CAN interface. This prevents compatiblity with dual-CAN boards like the PiCAN2 Duo. The mcp2515-can1 device tree blob for overlay was added to RPI_KERNEL_DEVICETREE_OVERLAYS in order to support dual-CAN hats. Signed-off-by: Colin McAllister <colinmca242@gmail.com>
2020-08-10Revert "Generalize the naming of the bootfiles deploy directory"Andrei Gherzan
This reverts commit a907c3261ef583f898803706cd596d372c6644cb.
2020-07-27Generalize the naming of the bootfiles deploy directoryJeff Ithier
The raspberry pi 4 variant has a BCM2711 chip, however it still uses the same boot files as the BCM2835 used in previous generations. This change generalizes the naming of the directory generated in the $DEPLOY_DIR to avoid the implication that the files are only meant for the BCM2835. Signed-off-by: Jeff Ithier <ithijme@gmail.com>
2020-07-23rpi-base: add SERIAL_CONSOLES_CHECK to default to SERIAL_CONSOLESChristopher Clark
As per the example in the bsp-guide, and the qemu and other machine configs. Assists when running virtualized, where serial console device can differ. Signed-off-by: Christopher Clark <christopher.w.clark@gmail.com>
2020-07-14rpi-base.inc: Include modules if IR is enabledLeon Anavi
Add kernel modules gpio-ir and gpio-ir-tx to variable MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS if ENABLE_IR is set to 1. Variable ENABLE_IR enables infrared support (for LIRC). This change affects images based on packagegroup-core-boot, including the core-image-minimal image. For other images (based on packagegroup-base) kernel modules are provide through variable MACHINE_EXTRA_RRECOMMENDS. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-14rpi-base.inc: Add infrared dtboLeon Anavi
Add device tree binary overlays gpio-ir-tx and gpio-ir-tx to support peripherals for sending and receiving infrared signals. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
2020-04-30rpi-base.inc: Include modules if I2C is enaledLeon Anavi
Add kernel modules i2c-dev and i2c-bcm2708 to variable MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS if ENABLE_I2C is set to 1. This affects images based on packagegroup-core-boot, including the core-image-minimal image. For other images (based on packagegroup-base) kernel modules are provide through variable MACHINE_EXTRA_RRECOMMENDS. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
2020-04-20rpi-base.inc: Add kernel modules to all imagesLeon Anavi
Add kernel modules, including i2c-dev and i2c-bcm2708, to variable MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS. This way kernel modules will be present in all images based on packagegroup-core-boot, including the core-image-minimal image. Otherwise, if modules, are in variable MACHINE_EXTRA_RRECOMMENDS they will be added only in images based on packagegroup-base, which does not include the core-image-minimal or core-image-full-cmdline images. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
2020-04-08rpi-base: Drop old dtbo namesKhem Raj
pi3-disable-bt is renamed to disable-bt and pi3-miniuart-bt is renamed to miniuart-bt in 2014, now with 5.4 these are not recognised anymore and miniuart-bt and disable-bt are already part of RPI_KERNEL_DEVICETREE_OVERLAYS Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-08rpi-u-boot-scr: Set u-boot-default-script as providerFabio Berton
Add u-boot-default-script to the PROVIDES variable to make easier to replace boot script in another layer just by changing PREFERRED_PROVIDER_u-boot-default-script variable. Set rpi-u-boot-scr as the default provider for meta-raspberrypi. Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
2020-03-31rpi-base.conf: add disable-bt.dtbo and miniuart-bt.dtbo overlays.Orne Brocaar
Closes #602. Signed-off-by: Orne Brocaar <info@brocaar.com>
2020-01-24rpi-base.inc: use wic.bz2 for all rpi machines by defaultPierre-Jean Texier
This change moves the default image for all rpi machines. We moved from rpi-sdimg to wic.bz2. Also enable wic.bmap image generation. From the documentation in [1], Bmaptool is a generic tool for creating the block map (bmap) for a file and copying files using the block map. The idea is that large files, like raw system image files, can be copied or flashed a lot faster and more reliably with bmaptool than with traditional tools, like "dd" or "cp". Example: $: sudo bmaptool copy <image-name>.wic.xz /dev/<your-block-device> [1] - https://github.com/intel/bmap-tools Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
2020-01-24gstreamer1.0-omx: let virtual/libomxil dependency to pull userlandMartin Jansa
* and adjust VIRTUAL-RUNTIME_libomxil to pull runtime provider for libomxil Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2020-01-14Add support for PiTFT 2.8" with capacitive touchErik Botö
Add support for the Adafruit PiTFT Plus 320x240 2.8" TFT with Capacitive Touchscreen, using the same patterns used for the other versions of the PiTFT screens. Signed-off-by: Erik Botö <erik.boto@gmail.com>
2019-09-16rpi-base.inc: Introduce DISABLE_VC4GRAPHICSAndrei Gherzan
Since we enabled vc4graphics by default[1], there is no easy way to disable it if needed. This patch introduces a variable (DISABLE_VC4GRAPHICS) which when set to '1' will not add 'vc4graphics' to MACHINE_FEATURES forcing the old behaviour. One could use it in 'local.conf' for example. [1] https://github.com/agherzan/meta-raspberrypi/pull/417 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-07-18rpi-base.inc: Enabling open-source vc4graphics driver for all RPI platformsRiyaz
Vc4graphics enables drm backend on wayland Compositor (weston & westeros) Appending vc4graphics machine feature to use mesa drivers for OpenGL and V4l2 for video. Signed-off-by: Riyaz <Riyaz.l@ltts.com>
2019-06-30rpi-base.inc: Include the "fake" KMS dtboAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-06-30rpi-base: Rename the rpi0w dtbAndrei Gherzan
This change is following the rename in the kernel: commit 6f91b5dbfdb62a434571a73f2dc15181963e3bea Author: Phil Elwell <phil@raspberrypi.org> Date: Tue May 28 16:36:04 2019 +0100 Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-06-30rpi-base.inc: Include rpi4 dtbAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2019-05-29rpi-default-versions: Switch defaults to 4.19Khem Raj
4.19 is now declared stable, see https://github.com/raspberrypi/linux/issues/2931#issuecomment-494016355 Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-04-24linux-raspberrypi: Switch default back to 4.14.yPaul Barker
The 4.19.y kernel is not yet considered stable upstream as discussed in the following GitHub issues: https://github.com/agherzan/meta-raspberrypi/issues/410 https://github.com/raspberrypi/linux/issues/2931 Signed-off-by: Paul Barker <paul@betafive.co.uk>
2019-02-24machines: Switch default kernel to 4.19Khem Raj
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-24dtbo: Remove lirc-rpi overlayKhem Raj
kernel 4.19 does not have this overlay Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-18rpi-default-providers.inc: use virtual/libgbm instead of libgbmMing Liu
This is to be consistent with the latest OE. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
2018-12-12Add Pican2 supportFabien Lahoudere
In order to make Pican 2 work, we : - add mcp2515.dto to the overlay list - add a variable to enable it in local.conf - create a udev rule to mount interface http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
2018-10-31rpi-base.inc: Add gpio-key to the device tree overlaysOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-31rpi-base.inc: Sort device tree overlaysOtavio Salvador
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-09-11rpi-base.inc: Build rpi-poe dtb overlayAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-07-26rpi-base.inc: Split overlays and dtbs from KERNEL_DEVICETREEAndrei Gherzan
This is helpful for example in the cases where the kernel doesn't provide all the dtbs in arm64 as in arm. Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-07-20rpi-base.inc: update IMAGE_BOOT_FILES for change in oe-coreJonathan Haigh
[Issue #285] -- https://github.com/agherzan/meta-raspberrypi/issues/285 The openembedded-core commit 1860d9d3c62e2e94cd68a809385873ffd8270b6d changed the names of DTB files in the deploy directory - they are no longer prefixed with "${KERNEL_IMAGETYPE}-". Update make_dtb_boot_files (which generates entries in IMAGE_BOOT_FILES) to take this change into account. Signed-off-by: Jonathan Haigh <jonathan.haigh@arm.com>
2018-06-04rpi-base.inc: install at86rf233 overlayAnton Gerasimov
Controlled with ENABLE_AT86RF variable Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2018-05-05rpi-base.inc: add dwc2 overlayPeter A. Bigot
This along with some module and connman magic allows a RaspberryPi Zero Wireless to tether to a host over USB. dtoverlay=dwc2,dr_mode=peripheral modprobe g_ether connman enable gadget connman tether gadget on Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-03-29rpi-base.inc: Add Raspberry Pi 3B+ dtbAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-03-07rpi-base.inc: set default wic kickstart filePeter A. Bigot
While wic is not a standard image, adding it to IMAGE_FSTYPES in local.conf will fail unless a WKS_FILE is provided. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
2018-02-28linux-raspberrypi: Change default version to 4.14.yPaul Barker
This matches the change made in the upstream firmware repository earlier in February. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-02-28Fix do_image_rpi_sdimg/do_image_wic dependenciesPaul Barker
The dependency resolution code in bitbake has recently been optimized and this seems to have slightly changed the behaviour of do_image_rpi_sdimg and do_image_wic. We ensure that the main build artifacts are present by depending on the relevant do_deploy and do_populate_sysroot tasks. However, we need to ensure that other build tasks for these dependencies have also been executed before we try to create our image. This can be achieved by adding a recursive dependency on do_build, so that the do_build tasks of all recipes in the dependency chain of do_image_rpi_sdimg/do_image_wic are executed before the image function itself is executed. The original issue seen here was that 'recipedata' files were not copied to 'tmp/deploy/licenses' as do_populate_lic for each dependency had not been ran before the image creation function. The write_deploy_manifest function from license.bbclass (listed in IMAGE_POSTPROCESS_COMMAND) therefore failed. Adding the recursive dependency on do_build fixes this issue, ensuring do_populate_lic runs before do_image_rpi_sdimg/do_image_wic. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2018-01-26rpi-base.inc: Include udev-rules-rpi in MACHINE_EXTRA_RRECOMMENDSAndrei Gherzan
Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2018-01-11rpi-base.inc: use $KERNEL_PACKAGE_NAME for the kernel package nameRicardo Salveti
The kernel class is now using $KERNEL_PACKAGE_NAME to set the default kernel package name in order to allow alternate kernel flavors. This fixes the following bitbake warning: Variable key RDEPENDS_${KERNEL_PACKAGE_NAME}-base (${KERNEL_PACKAGE_NAME}-image) replaces original key RDEPENDS_kernel-base (). Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
2017-11-27rpi-base.inc: Fix KERNEL_IMAGETYPE assignmentPaul Barker
We can't just override KERNEL_IMAGETYPE in machine-specific conf files without breaking the implementation of RPI_USE_U_BOOT. Instead we need to define a new KERNEL_IMAGETYPE_DIRECT variable which will control the value when u-boot is not in use. This new variable may then be overridden as needed without breaking our u-boot support. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-11-10raspberrypi3-64: set default kernel to ImageLoys Ollivier
Fixes: 50fd319205d8 for raspberrypi3-64. Fixes: #153 For raspberrypi3-64 set default kernel image to "Image". "zImage" are not supported by arm64 platforms. And ".gz" images are not handled by bootloader yet. Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
2017-11-08rpi-base.inc: KERNEL_IMAGETYPE default to zImageAndrei Gherzan
We used to have this as the default but there was a bug at some point in the firmware which didn't work with compressed kernel images. We switched to Image and never changed it back even though that bug is long history. In this way we will stop carrying 15M of a kernel image. 4M looks much better. Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
2017-09-24rpi-base.inc: Set dependencies for creating wic imagesPaul Barker
We need to ensure that the bootloader and firmware files are present in the deploy directory before creating wic images. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-09-24Support using u-boot with Image format for raspberrypi3-64Paul Barker
For raspberrypi3-64 we need to use the Image or Image.gz format with u-boot instead of the legacy uImage format. We also need to issue the 'booti' command to boot the kernel instead of 'bootm'. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-09-24rpi-base.inc: Simplify setting of IMAGE_BOOT_FILESPaul Barker
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-06-30rpi-base: wic: generate entries for u-bootAndrea Galbusera
This commit allow wic generated images to work when we want u-boot to load the kernel image. Augment IMAGE_BOOT_FILES with the proper entries when KERNEL_IMAGETYPE is "uImage". More specifically add u-boot image and boot.scr to deployed files and give the proper name to the kernel image accordingly. Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-04-21rpi-base: fix make_dtb_boot_files() for raspberrypi3-64Andrea Galbusera
Building the stock wic image for raspberrypi3-64 failed to find dtbs listed in IMAGE_BOOT_FILES. This patch updates the make_dtb_boot_files() function to account for dtbs listed in KERNEL_DEVICETREE that do include a path prefix: this is the case for things like broadcom/bcm2710-rpi-3-b.dtb (the dts dir layout in the kernel sources is different for arm64). Use the same approach already used for overlays/ dir. While at it also fix a typo in dtb overlay code path comments. Signed-off-by: Andrea Galbusera <gizero@gmail.com>
2017-04-17pitft: Include the pitft35r dtbo filesRob Woolley
Include the pitft35r device tree blobs in the filesystem of the image. Signed-off-by: Rob Woolley <rob.woolley@windriver.com>