Commit Graph

125 Commits

Author SHA1 Message Date
Otavio Salvador
e2432d3bb4 layer.conf: Add Dynamic Layer mechanism
This allow for bbappend files to be enabled when specific layers are
included.

Change-Id: Iecbcf0de85a64aad71605b60ecd3d9a2586fae85
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-09-27 11:16:31 +01:00
Paul Barker
c26e9d3df5 rpi-base.inc: Set dependencies for creating wic images
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-24 20:39:35 +01:00
Paul Barker
e9bb7f0c6d Support using u-boot with Image format for raspberrypi3-64
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-24 20:39:35 +01:00
Paul Barker
43e0169ab7 rpi-base.inc: Simplify setting of IMAGE_BOOT_FILES
Signed-off-by: Paul Barker <pbarker@toganlabs.com>
2017-09-24 20:39:35 +01:00
Khem Raj
bb51049ebe raspberrypi3-64: Use vc4-fkms-v3d overlay for rpi64
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>
2017-09-20 15:50:20 +01:00
Andrea Galbusera
04a33eadfb rpi-base: wic: generate entries for u-boot
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-06-30 11:46:21 +01:00
Michal Mazurek
d9dbfe6536 raspberrypi3-64.conf: Don't use raspberrypi as MACHINEOVERRIDES
The current setup broke the build for rpi3-64 when we wanted to port
some changes from rpi3 to rpi0.

Signed-off-by: Michal Mazurek <michal@resin.io>
2017-06-26 14:51:06 +01:00
Gianfranco Costamagna
e28e6e6422 raspberrypi0.conf: make SERIAL_CONSOLE overridable from outside
currently there is no way to override the default SERIAL_CONSOLE,
 this variable needs to be set only if the developer didn't set it already from
 another layer.

Signed-off-by: Gianfranco Costamagna <gianfranco.costamagna@abinsula.com>
2017-05-16 12:54:04 +02:00
Andrea Galbusera
8527a396d3 rpi-base: fix make_dtb_boot_files() for raspberrypi3-64
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-21 18:01:08 +01:00
Andrei Gherzan
decdacf30c raspberrypi3.conf: Use a stand alone machine configuration
As well make all the variables assigned in a way that they can be
overwritten so we can give maximum flexibility to distros.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:02:28 +01:00
Andrei Gherzan
0d28786dac raspberrypi3-64.conf: Make SERIAL_CONSOLE overwritable
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:00:02 +01:00
Andrei Gherzan
b05e5e32a4 raspberrypi2.conf: Make SERIAL_CONSOLE overwritable
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-21 17:00:02 +01:00
Andrei Gherzan
e8682225ef raspberrypi.conf: Have the ability to overwrite SERIAL_CONSOLE
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-20 12:22:49 +01:00
Andrei Gherzan
962ba44ec8 raspberrypi0-wifi.conf: Use a stand alone machine configuration
As well make all the variables assigned in a way that they can be
overwritten so we can give maximum flexibility to distros.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-19 18:43:48 +01:00
Rob Woolley
e11d38f8dc pitft: Include the pitft35r dtbo files
Include the pitft35r device tree blobs in the filesystem of the image.

Signed-off-by: Rob Woolley <rob.woolley@windriver.com>
2017-04-17 02:22:33 +01:00
Andrei Gherzan
723f04622f
raspberrypi0-wifi.conf: Add machine configuration file
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-14 21:12:17 +01:00
Andrei Gherzan
66e0e37ce3
rpi-base.inc: Include dtb for RPI0 WiFi
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-04-14 21:11:49 +01:00
Maciej Borzecki
c01466aabb rpi-base: wic: generate entries for device tree files
Augment IMAGE_BOOT_FILES with entries picking up proper dtb[o]s. This allows for
building usable wic images once again.

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
2017-03-11 04:39:15 -08:00
Khem Raj
8873478623 linux-raspberrypi: Default to 4.9 kernel
4.9 is now declared stable for raspberrypi

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-03-11 04:39:12 -08:00
Khem Raj
9d418db5ed raspberrypi3-64.conf: Add vc4graphics to MACHINE_FEATURES
Userland wont work in 64bit mode

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:53:15 +01:00
Khem Raj
f81e9ac1bb rpi-default-versions.inc: Use fallback weak assignment
This lets machines use ?= to choose their preferred kernel
e.g. 64bit rpi3 needs 4.9 minimum but default right now
is 4.4

At the same time it keeps the option for user to override
any of these settings via config metadata e.g. local.conf

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:53:14 +01:00
Khem Raj
9eee2833c3 raspberrypi3-64.conf: Specifiy rpi3-64bit dtbs
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:53:08 +01:00
Khem Raj
0be123e5b8 raspberrypi3-64.conf: Use 4.9 as default kernel
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:53:00 +01:00
Khem Raj
9ed927caae rpi-default-providers: Let mesa provide libgbm
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:52:58 +01:00
Herve Jourdain
36a3895d4e Add raspberrypi3-64.conf
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2017-02-16 20:52:57 +01:00
Paul Barker
67e0216492 u-boot: Fix boot on rpi3
U-boot configured with 'rpi_2_config' does not boot on a RaspberryPi 3.
Instead we need to configure with 'rpi_3_32b_config'.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2017-02-16 01:11:36 +01:00
Andrei Gherzan
8f1511d72d rpi-base.inc: Include dtb file for CM1 and CM3
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-01-20 20:15:12 +01:00
Andrei Gherzan
9d4b68dc77 raspberrypi*.conf: Minor tweaks
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-01-20 20:15:12 +01:00
Andrei Gherzan
f43dd79dcc raspberrypi-cm3.conf: Add dummy machine for CM3 (alias for RPi2)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-01-20 20:15:12 +01:00
Andrei Gherzan
3ea6f9f455 raspberrypi-cm.conf: Add dummy machine for CM1 (alias for RPi1)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2017-01-20 20:15:12 +01:00
Andreas Müller
c40558173f rpi-base.inc: remove input modules form XSERVER
This is nothing a BSP has to decide

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-12-29 19:51:37 +01:00
Andreas Müller
d77f3d46e3 rpi-base.inc: add xserver-xorg-extension-glx to XSERVER for vc4 enabled
make glxinfo/glggears/.. work

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
2016-12-29 19:51:34 +01:00
piotr.lewicki
44d41bf3e9 raspberrypi3.conf: fix typo for BCM43430
Signed-off-by: Piotr Lewicki <piotr.lewicki@elfin.de>
2016-11-16 12:53:58 +01:00
Jonathan Liu
ab39653ed0 rpi-base.inc: Include pi3-disable-bt-overlay.dtb
This is used to disable Bluetooth and restore the serial console.

Signed-off-by: Jonathan Liu <net147@gmail.com>
2016-11-08 09:34:47 +01:00
Paul Barker
1f24992a3c rpi-base.inc: Don't install kernel image into rootfs
The kernel image is installed into the FAT32 boot partition and does not need to
also be installed into the rootfs.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2016-10-31 15:58:23 +01:00
Khem Raj
760ddd0f18 Switch to using 4.4 as default kernel
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-09-21 17:15:01 +01:00
Carlos Alberto Lopez Perez
ed84c2c8a2 vc4graphics: Support X11 with the VC4 driver.
* We need to use the X11 modesetting driver with VC4.

  * We need to build at least the mesa swrast DRI driver.
   (its already the default so don't overwrite it to empty)

Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2016-09-21 17:14:59 +01:00
Herve Jourdain
5d2722c33b raspberrypi3.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:19 +01:00
Herve Jourdain
824b78c4f0 raspberrypi2.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:17 +01:00
Herve Jourdain
dfce95fa3d raspberrypi0.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:16 +01:00
Herve Jourdain
224b9e9a39 raspberrypi.conf: set the default value of VC4_CMA_SIZE to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:12 +01:00
Herve Jourdain
0035bc8d80 rpi-base.inc: add vc4-kms-v3d to the overlays to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:11 +01:00
Herve Jourdain
6e535ddabb rpi-default-providers.inc: change default providers to support vc4graphics
Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:51:10 +01:00
Herve Jourdain
09b76a43f6 rpi-base.inc: support for .dtbo files for dtb overlays
Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb.
Add support for .dtbo variant of overlays for the default KERNEL_DEVICETREE variable
(the list will be turned into "-overlay.dtb" by linux-raspberry-base.bbclass, if needed, depending on the kernel version)

Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
2016-09-21 16:46:48 +01:00
Paul Barker
d49bd07c5b u-boot: Use mainline u-boot recipe from oe-core
The repository used by u-boot-rpi has not been updated since 2012. In the
meantime, mailine u-boot has gained Raspberry Pi support. All we need to do is
set UBOOT_MACHINE to an appropriate value in the machine config files.

Currently configs are only provided for raspberrypi and raspberrypi2. The master
branch of u-boot now also appears to have a config file for raspberrypi3 so
support for this can be added in the future when u-boot is upgraded in oe-core.

The mainline u-boot recipe creates the file "u-boot.bin" instead of
"u-boot.img".

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2016-07-08 12:17:41 +01:00
Andrei Gherzan
c4ddf87db2 rpi-base.inc: Include pi3-miniuart-bt-overlay.dtb
This is used to switch BT from ttyUSB0 to ttyS0 (miniUART).

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
2016-04-25 09:05:09 +02:00
Trevor Woerner
e2603e56d6 raspberrypi*.conf: Serial console definition split
The latest raspberrypi3 puts its console on ttyS0 instead of ttyAMA0 (like all
the preceding boards). Therefore pull this definition out of the common
include file and add it separately for each MACHINE.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
2016-04-21 21:16:56 +02:00
Petter Mabäcker
3bd9b1bce4 rpi-base.inc: Add overlay for rpi-ft5406
rpi-ft5406 is an enabler for Official Raspberry Pi 7 inch
touchscreen support.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:18:21 +02:00
Petter Mabäcker
197266a2aa rpi-base.inc: Remove deprecated MACHINE_FEATURES
Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:17:56 +02:00
Petter Mabäcker
9797874a23 pitft: Add support for pitft28r
The support for PiTFT 28 inch resistive touchscreen is optional
and can be enabled by adding below in local.conf:

MACHINE_FEATURES += "pitft pitft28r"

While at it also fix a minor typo in README.

Signed-off-by: Petter Mabäcker <petter@technux.se>
2016-04-13 03:16:02 +02:00