summaryrefslogtreecommitdiffstats
path: root/recipes-bsp/bootfiles
Commit message (Collapse)AuthorAgeFilesLines
* rpi-config: Take into consideration ENABLE_UART value of 0enableuart0Andrei Gherzan2021-11-131-2/+4
| | | | | | | | Also, validate if the value of it is not 0 or 1. Fixes: https://github.com/agherzan/meta-raspberrypi/issues/567 Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
* recipes: Update SRC_URI protocols for githubMarcel Hamer2021-11-071-1/+1
| | | | | | | Use protocols=https for GitHub SRC_URIs using the conversion script in openembedded-core. Signed-off-by: Marcel Hamer <marcel@solidxs.se>
* rpi-config: warn on config.txt lines exceeding 80 bytesZygmunt Krynicki2021-10-141-0/+6
| | | | | | | | | | | | | The Raspberry Pi firmware does not support lines exceeding 80 bytes. This is documented at https://www.raspberrypi.com/documentation/computers/config_txt.html#file-format It seems that comments can be longer but it's still best to avoid this problem instead of debug it. Detect the situation in do_deploy_append and bbwarn if the limit is exceeded. Connected to #917 Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
* rpi-cmdline: Support ethernet over USBAndrew Penner2021-09-242-1/+15
| | | | | | Support ethernet over USB via config.txt and cmdline.txt Signed-off-by: Andrew Penner <andrew.penner@protonmail.com>
* rpi-config: Allow setting hdmi_cvtOtavio Salvador2021-08-111-0/+3
| | | | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
* Convert to new override syntaxMartin Jansa2021-08-041-1/+1
| | | | | | | | | | This is the result of automated script conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rpi-cmdline: Make rootfstype easier to customizeAndrei Gherzan2021-07-221-1/+3
| | | | Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
* rpi-cmdline: Package is machine-specificPaul Barker2021-06-181-0/+2
| | | | | | | The cmdline.txt file generated by this recipe includes machine-specific information so we should set PACKAGE_ARCH appropriately. Signed-off-by: Paul Barker <paul@pbarker.dev>
* Add WM8960 soundcard supportDevendra Tewari2021-06-101-0/+8
| | | | Signed-off-by: Devendra Tewari <devendra.tewari@gmail.com>
* recipes-bsp: Add support for Raspberry Pi HD quality camerasss222132021-05-192-1/+9
| | | | Signed-off-by: Bohung-Nian <n0404.n0404@gmail.com>
* rpi-config: comment updatedSCVready2021-05-181-4/+9
| | | | | | | | | | | | | | Updated the comment that indicates there is a possible file limitation in config.txt affecting certain variables, at least the "start_x" var. This issue was originally discussed and fixed in: https://github.com/agherzan/meta-raspberrypi/pull/678 and this commit updates the comment added with the new info gathered from: https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=298129 and from a similar issue: https://github.com/raspberrypi/firmware/issues/1012 Signed-off-by: SCVready <alejandro.solozabal@outlook.com>
* rpi-cmdline: remove unnecessary spaces from cmdline.txtBartłomiej Burdukiewicz2021-02-081-1/+1
| | | | | | | | | | With current recipe formatting CMDLINE variable contains many unnecessary white spaces. This patch allow to drop unnecessary spaces at the moment of writing them to cmdline.txt. This will improve readability of cmdline.txt, /proc/cmdline and dmesg output. Signed-off-by: Bartłomiej Burdukiewicz <bartlomiej.burdukiewicz@gmail.com>
* rpi-config: Add support for CM4 host USBAurelian Zanoschi2021-02-041-0/+6
| | | | | | | | By default in case of CM4 IO board, the USB ports (header + built-in) are disabled. In order to enable them the DWC2 mode needs to be set to host. Signed-off-by: Aurelian Zanoschi <aurelian17@gmail.com>
* rpi-config: use CONFIG shell variableMartin Jansa2021-01-181-73/+74
| | | | | | | * instead of repeating //config.txt so many times, to make it a bit less error prone (as shown in previous commit) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rpi-config: fix do_deployMartin Jansa2021-01-181-1/+1
| | | | | | | * in https://github.com/agherzan/meta-raspberrypi/pull/678 this line was acidentally changed from "${BOOTFILES_DIR_NAME}" to "bcm2835-bootfiles", causing do_deploy to fail finding config.txt Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* rpi-config: Relocated "start_x=1" in config.txtSCVready2021-01-121-2/+5
| | | | | | | It seems like "start_x=1" needs to be earlier in the file to work properly on the Rapberry Pi 4 B. Fixes: #670 Signed-off-by: SCVready <alejandro.solozabal@outlook.com>
* rpi-bootfiles: Rename recipe to avoid ambiguityPaul Barker2020-11-271-0/+0
| | | | | | | The name `bootfiles` is too generic, we should use `rpi-bootfiles` instead. Signed-off-by: Paul Barker <pbarker@konsulko.com>
* bootfiles: Use BOOTFILES_DIR_NAME variablePaul Barker2020-11-271-6/+6
| | | | | | | | | This variable is set in rpi-base.inc and referenced by other recipes which need to know the location of the bootfiles. If this is overridden for any reason we need to ensure that the bootfiles recipe deploys to the correct path. Signed-off-by: Paul Barker <pbarker@konsulko.com>
* rpi-cmdline: Move cmdline.txt generation to a separate recipePaul Barker2020-11-272-2/+51
| | | | | | | | | | | | | | | Instead of generating cmdline.txt in the kernel recipe, it is generated in a standalone recipe and pulled in as a dependency of the bootfiles recipe. This simplifies the process of using a linux-yocto, linux-mainline or similiar kernel recipe instead of linux-raspberrypi. In the rpi-cmdline recipe the command line is built from fragments which can all be easily overridden. The variables `SERIAL` and `CMA` are renamed to `CMDLINE_SERIAL` and `CMDLINE_CMA` for consistency. The cmdline.txt file is created in the do_compile step to allow further customisation via do_compile_append if needed. Signed-off-by: Paul Barker <pbarker@konsulko.com>
* libcamera: Enabled camera overlays define basedMadhavan Krishnan2020-11-141-0/+6
| | | | | | | | | | | | | Added imx219.dtbo file in the overlays, and added dtoverlay in /boot/config.txt define based. To enable Sony Raspberry pi camera imx219 sensor, need to set the variable RASPBERRYPI_CAMERA_V2 as 1. In future, we can add any camera overlays here to support and use them with libcamera. Signed-off-by: Madhavan Krishnan <madhavan.krishnan@linaro.org>
* Generalize the naming of the bootfiles deploy directoryJeff Ithier2020-08-062-75/+75
| | | | | | | | | | 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>
* rpi-config: Add CAN_OSCILLATOR variable to set mcp2515 crystal frequencyJakub Luzny2020-07-291-3/+5
| | | | | | Current configuration (16MHz) is made for the PiCAN2 board that uses 16MHz crystal. This setting allows for use of Waveshare RS485 CAN HAT that has 8MHz crystal soldered (although according to Waveshare there is also a 12MHz crystal version of the board). Signed-off-by: Jakub Luzny <jakub@luzny.cz>
* rpi-config_git: Added ENABLE_DUAL_CAN build configurationcolin2020-07-231-1/+6
| | | | | | | | | | Currently ENABLE_CAN adds mcp2525-can0 to the dtoverlay. ENABLE_DUAL_CAN was added to also add mcp2515-can1 to the dtoverlay. This will allow a user to enable dual CAN when using a hat like the PiCAN 2 Duo board. Signed-off-by: Colin McAllister <colinmca242@gmail.com>
* rpi-config: Add ENABLE_IR variable for infraredLeon Anavi2020-06-241-0/+9
| | | | | | | | | | | | | | Users who want infrared device tree overlays gpio-ir and gpio-ir-tx to be set in config.txt can now easily do it through variable ENABLE_IR, for example in local.conf: ENABLE_IR = "1" By default the GPIO pin for gpio-ir is set to 18 and the pin for gpio-ir-tx is 17. Both pins can be easily changed by modifying variables GPIO_IR and GPIO_IR_TX (for example in local.conf). Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Add support for PiTFT 2.8" with capacitive touchErik Botö2020-01-141-0/+6
| | | | | | | | 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>
* raspberrypi-firmware: Update to current HEADAndrei Gherzan2019-12-201-1/+1
| | | | | | | | | | | | This RaspberryPi firmware update includes a change in the license file as well[1]. This change is for supporting customisation program. [1] https://github.com/raspberrypi/firmware/commit/dd9e9ebb5d5306e91acb135db890cf18f3a5eea2 As a result of this change, we update the hash in the bcm2835-bootfiles recipe as well. Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
* bcm2835-bootfiles: Clarify license conditionsPaul Barker2019-10-241-1/+1
| | | | | | | We define a new 'Broadcom-RPi' license and include the full text in our custom-licenses directory. Signed-off-by: Paul Barker <paul@betafive.co.uk>
* bcm2835-bootfiles: tighten up dep on rpi-configChris Laplante2019-10-091-0/+2
| | | | | | | | | | Intuitively, bcm2835-bootfiles:do_deploy should depend on rpi-config:do_deploy. This indirectly resolves a missing dep between rpi-config:do_deploy and do_image_rpi_sdimg (on an image recipe inheriting from sdcard_image-rpi.bbclass). This manifested as changes to rpi-config (e.g. setting or unsetting ENABLE_* variables) not triggering a rebuild of the SD card image. Signed-off-by: Chris Laplante <mostthingsweb@gmail.com>
* rpi-config: Check for armstub based on machine featureAndrei Gherzan2019-07-191-1/+1
| | | | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
* rpi-config: Check some config values against "1"Carton2019-07-181-5/+5
| | | | | | | | | | | | | | | | When we read the docs, we have the feelings that theses variables are boolean ones. So I was setting, for example in my distro.conf file the variable ' ENABLE_I2C = "1" ' to enable I2C. Then I wanted to disable it by simply setting 'ENABLE_I2C' to "0" but it wasn't working. So I noticed that, for example, ' ENABLE_UART ' was checked with ' = "1" ' condition and some other "boolean" was checked against ' -n ' like for ENABLE_I2C. This commit tries to have an uniform behavior for all variables that are shown in the doc under the format ' VARIABLE = "1" ' to enable them and the reader can think they are kind of 'boolean' values. Signed-off-by: Joël Carron <joel.carron@eeproperty.ch>
* rpi-config: Handle ARMSTUBAndrei Gherzan2019-07-041-0/+11
| | | | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
* firmware: Rename firmware inc file to raspberrypi-firmware.incAndrei Gherzan2019-07-041-1/+1
| | | | Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
* rpi-config: used printf to escape properlymemox_52019-02-151-1/+1
| | | | | | | Used printf command because on some systems bash doesn't escape sequences consistently. Signed-off-by: memox5 <memox_5@yahoo.com>
* Add Pican2 supportFabien Lahoudere2018-12-121-0/+6
| | | | | | | | | | | 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>
* machines: Drop VC4_CMA_SIZEKhem Raj2018-11-071-1/+1
| | | | | | setting cma is not required with latest vc4 driver Signed-off-by: Khem Raj <raj.khem@gmail.com>
* rpi-config: Use vc4-kms-v3d for raspberrypi3-64 as wellKhem Raj2018-10-041-1/+0
| | | | | | | | | | | | vc4-fkms-v3d needs dispmanx, its DRM VC4 V3D driver on top of the dispmanx display stack, this does not work with 4.14 kernel and since we always use vc4graphics on 64bit, just keep using vc4-kms-v3d dtbo which should enable right graphics Tested with core-image-sato, running glxgears with 55.5fps in raspberrypi3-64 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* meta-raspberrypi: use generic licenses in ${COMMON_LICENSE_DIR} from PokyHugo Hromic2018-06-271-1/+1
| | | | | | Keep consistency with current practices. Signed-off-by: Hugo Hromic <hhromic@gmail.com>
* rpi-config: load at86rf233 overlayAnton Gerasimov2018-06-041-0/+6
| | | | | | Controlled with ENABLED_AT86RF variable Signed-off-by: Anton Gerasimov <tossel@gmail.com>
* rpi-config: remove explicit device tree selection for raspberrypi3-64Peter A. Bigot2018-05-141-4/+0
| | | | | | The current firmware doesn't need this. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
* config_git.bb: Remove extra spaceEduardo Abinader2018-05-071-1/+1
| | | | Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
* rpi-config: add helper to enable dwc2 peripheral supportPeter A. Bigot2018-05-051-0/+6
| | | | | | | | Document and add support to easily enable USB gadget mode. Also fix a spelling error. Signed-off-by: Peter A. Bigot <pab@pabigot.com>
* Don't use RDEPENDS in recipes which don't create packagesPaul Barker2018-04-231-1/+1
| | | | | | | | RDEPENDS is fairly meaningless for recipes which don't create a package to be installed into the rootfs. Instead we should be using DEPENDS to guarantee correct ordering of build tasks. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
* Drop unnecessary dependencies and tasksPaul Barker2018-04-232-4/+9
| | | | | | | | | | | | | | We have a few recipes which only deploy files that go into the boot partition and do not create packages to be installed into the rootfs. These recipes don't need to run the usual packaging tasks so we can drop them to speed up the build a little. We also have a bunch of recipes that don't need the usual toolchain as they just copy files or invoke native commands like `mkimage`. So to speed up the build a little more we can set INHIBIT_DEFAULT_DEPS to avoid an unnecessary dependency on the toolchain. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
* rpi-config: support more commonly used config variables and update documentationHugo Hromic2018-04-201-2/+43
| | | | | | | | | | | Added support for and documented the following new extra build options: * gpu_freq overclocking option * disable boot rainbow splash screen * configure the boot delay after GPU firmware loading * configure common HDMI and composite video options Signed-off-by: Hugo Hromic <hhromic@gmail.com>
* rpi-config: fix config variables with the same initial name being overwrittenHugo Hromic2018-01-291-10/+10
|
* rpi-config: allow VC4DTBO override on raspberrypi3-64Ricardo Salveti2018-01-111-1/+1
| | | | | | Allow user to replace VC4DTBO (e.g. vc4-kms-v3d) on raspberrypi3-64. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* rpi-config: Add RPI_EXTRA_CONFIG optionPaul Barker2017-12-181-0/+3
| | | | | | | The variable RPI_EXTRA_CONFIG can be set in local.conf to append text to the Raspberry Pi config.txt file as described in the documentation. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
* rpi-config: Do not force HDMI mode for raspberrypi3-64Paul Barker2017-10-091-3/+0
| | | | | | | Forcing hdmi_drive=2 prevents the use of a DVI monitor and a HDMI-DVI converter cable. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
* raspberrypi3-64: Use vc4-fkms-v3d overlay for rpi64Khem Raj2017-09-201-2/+12
| | | | | | | | | Use correct overlay for enabled vc4 accelaration This enable 3D accelaration over dispmanx on vc4/rpi64 Enable audio over HDMI Disable overscan to avoid graphics glitches Signed-off-by: Khem Raj <raj.khem@gmail.com>
* recipe: anchor regexps in COMPATIBLE_MACHINEMartin Jansa2017-07-272-2/+2
| | | | | | | | | * bitbake is using re.match, so raspberrypi actually matches with anything ^raspberrypi.* which currently works, but it will also match with hypothetical raspberrypi-is-no-more-this-is-banana-now MACHINE which isn't intended by this COMPATIBLE_MACHINE. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>