[yocto] [meta-raspberrypi][PATCH v2 0/4] Add support for 4.1 kernel with vc4 DRM/KMS driver

Javier Martinez Canillas javier at osg.samsung.com
Thu Aug 13 10:07:19 PDT 2015


Hello Andrei,

This series adds support for Eric Anholt's v4.1 kernel, that has support
for the vc4 DRM/KMS driver. Which is the new open source graphics driver
stack for the Raspberry Pi to be used instead of the userland driver.

This is a second version of the series which addresses feedback provided
by Andreas Müller, Khem Raj, Petter Mabäcker and you. The first version
of the series can be found at [0]. Some of the v1 patches have already
been picked and are now in the meta-raspberrypi master branch.

The v4.1 kernel is under heavy development so is a work-in-progress and
should not be used in production. That's why it's not set as the default
virtual/kernel provider but the user can change the default providers in
case wants to use the VC4 driver.

But even when it's still a development kernel, having the recipe in the
meta-raspberrypi will allow people to test it. We have been using it in
the Tizen RPi2 port [1] for some time. The patches in the series are for:

Patch 1/4 allows to set the mask_gpu_interrupt0 option in config.txt

Patch 2/4 adds a recipe for the 4.1 and some patches to make it stable

Patch 3/4 Documents how to switch the default providers for vc4 gfx stack

Patch 4/4 Adds a section to the README that explains that two gfx stacks
are available and that the user can change the default providers.

As discussed in v1, the following has to be added in local.conf to build:

KERNEL_DEVICETREE = " \
    bcm2708-rpi-b.dtb \
    bcm2708-rpi-b-plus.dtb \
    bcm2709-rpi-2-b.dtb \
    \
    overlays/hifiberry-amp-overlay.dtb \
    overlays/hifiberry-dac-overlay.dtb \
    overlays/hifiberry-dacplus-overlay.dtb \
    overlays/hifiberry-digi-overlay.dtb \
    overlays/iqaudio-dac-overlay.dtb \
    overlays/iqaudio-dacplus-overlay.dtb \
    overlays/lirc-rpi-overlay.dtb \
    overlays/pps-gpio-overlay.dtb \
    overlays/w1-gpio-overlay.dtb \
    overlays/w1-gpio-pullup-overlay.dtb \
    "

[0]: https://www.mail-archive.com/yocto@yoctoproject.org/msg25164.html
[1]: http://blogs.s-osg.org/tizen-rpi2-now-supporting-3d-acceleration/

Best regards,
Javier

Changes in v2:
 - Fix commit message about mask GPU irq option. Suggested by Andrei Gherzan.
- Add a linux-raspberrypi-vc4 recipe insted of a linux-raspberrypi one.
  Suggested by Petter Mabäcker, Andreas Müller and Andrei Gherzan.
- Split the readme change in a separate patch. Suggested by Andrei Gherzan.
- Don't make the vc4 patches inclusion conditional since will always be
  needed when choosing the recipe. Suggested by Andrei Gherzan.
- Don't add a feature and allow users to change the default provider manually
  aided by a comment. Suggested by Andreas Müller and Andrei Gherzan.

Derek Foreman (3):
  rpi-config: Allow to mask GPU irqs
  linux-raspberrypi: Add a 4.1 linux kernel with vc4 support
  rpi-default-providers: Document how to switch providers for vc4 gfx
    stack

Javier Martinez Canillas (1):
  README: Add a section about graphic stacks

 README                                             |  31 ++++--
 conf/machine/include/rpi-default-providers.inc     |  10 ++
 recipes-bsp/bootfiles/rpi-config_git.bb            |   6 ++
 ..._defconfig-Enable-config-options-for-vc4-.patch |  48 +++++++++
 ...-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch |  85 +++++++++++++++
 .../0003-drm-vc4-Use-the-fbdev_cma-helpers.patch   | 115 +++++++++++++++++++++
 .../0004-drm-vc4-Allow-vblank-to-be-disabled.patch |  26 +++++
 .../0005-drm-vc4-Disable-KMS-operations.patch      |  95 +++++++++++++++++
 .../linux/linux-raspberrypi-vc4/defconfig          |   1 +
 recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb  |  12 +++
 10 files changed, 421 insertions(+), 8 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0001-ARM-bcm2709_defconfig-Enable-config-options-for-vc4-.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0002-ARM-dts-Fix-i2c-for-bcm2709-RPI2-B-board.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0003-drm-vc4-Use-the-fbdev_cma-helpers.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0004-drm-vc4-Allow-vblank-to-be-disabled.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/0005-drm-vc4-Disable-KMS-operations.patch
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4/defconfig
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-vc4_4.1.bb

-- 
2.4.3




More information about the yocto mailing list