Add raspberrypi3-64.conf
PATCH 1/9 Add raspberrypi3-64.conf
From: Herve Jourdain <[email protected]>
--- conf/machine/raspberrypi3-64.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/machine/raspberrypi3-64.conf
conf/machine/raspberrypi3-64.conf new file +15 -0
@@ -0,0 +1,15 @@ +#@TYPE: Machine +#@NAME: RaspberryPi 3 Development Board +#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode + +MACHINEOVERRIDES = "raspberrypi3:raspberrypi:${MACHINE}" + +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" + +require conf/machine/include/arm/arch-armv8.inc +include conf/machine/include/rpi-base.inc + +SERIAL_CONSOLE = "115200 ttyS0" +VC4_CMA_SIZE ?= "cma-256" + +UBOOT_MACHINE = "rpi_3_config"
Signature · 1 line
2.11.1
PATCH 2/9 rpi-default-providers: Let mesa provide libgbm
--- conf/machine/include/rpi-default-providers.inc | 1 + 1 file changed, 1 insertion(+)
conf/machine/include/rpi-default-providers.inc +1 -0
@@ -6,4 +6,5 @@ PREFERRED_PROVIDER_virtual/egl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4 PREFERRED_PROVIDER_virtual/libgles2 ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "userland", d)}" PREFERRED_PROVIDER_virtual/libgl ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}" PREFERRED_PROVIDER_virtual/mesa ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}" +PREFERRED_PROVIDER_libgbm ?= "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "mesa", "mesa-gl", d)}" PREFERRED_PROVIDER_jpeg ?= "jpeg"
Signature · 1 line
2.11.1
PATCH 3/9 raspberrypi3-64.conf: Use 4.9 as default kernel
In reply to Khem Raj--- conf/machine/raspberrypi3-64.conf | 2 ++ 1 file changed, 2 insertions(+)
conf/machine/raspberrypi3-64.conf +2 -0
@@ -13,3 +13,5 @@ SERIAL_CONSOLE = "115200 ttyS0" VC4_CMA_SIZE ?= "cma-256" UBOOT_MACHINE = "rpi_3_config" + +PREFERRED_VERSION_linux-raspberrypi ?= "4.9.%"
Signature · 1 line
2.11.1
PATCH 4/9 linux-raspberrypi_dev.bb: Add recipe for tracking development tip
In reply to Khem Raj--- recipes-kernel/linux/linux-raspberrypi_dev.bb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-kernel/linux/linux-raspberrypi_dev.bb
recipes-kernel/linux/linux-raspberrypi_dev.bb new file +8 -0
@@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" + +LINUX_VERSION ?= "4.9.0-rc7" + +SRCREV = "10da0c942de1830b48dfbfb5d68ec00af7ca7c43" +SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ +" +require linux-raspberrypi.inc
Signature · 1 line
2.11.1
Re: [meta-raspberrypi][PATCH 4/9] linux-raspberrypi_dev.bb: Add recipe for tracking development tip
Quoted 12 lines · On Wed, 8 Feb 2017 21:48:58 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-kernel/linux/linux-raspberrypi_dev.bb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 recipes-kernel/linux/linux-raspberrypi_dev.bbrecipes-kernel/linux/linux-raspberrypi_dev.bb new file +0
-0
recipes-kernel/linux/linux-raspberrypi_dev.bb line 8
Quoted 8 lines
recipes-kernel/linux/linux-raspberrypi_dev.bb new file +8
-0@@ -0,0 +1,8 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" + +LINUX_VERSION ?= "4.9.0-rc7" + +SRCREV = "10da0c942de1830b48dfbfb5d68ec00af7ca7c43" +SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ +" +require linux-raspberrypi.inc
Can we hold off on this and target 4.10 here when it comes out in a week or two instead of 4.9-rc7? I find it confusing to have the _dev recipe be behind the _4.9 recipe.
PATCH 5/9 linux-raspberrypi_4.9.bb: Upgrade to 4.9.5
In reply to Khem Raj--- recipes-kernel/linux/linux-raspberrypi_4.9.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-raspberrypi_4.9.bb +2 -2
@@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.9.4" +LINUX_VERSION ?= "4.9.5" -SRCREV = "8b0be887f834e7eccf0de3edf630003880779a5f" +SRCREV = "fd03479116aebe4a9faf64e108b3ab7eeb8cb71a" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ " require linux-raspberrypi.inc
Signature · 1 line
2.11.1
PATCH 6/9 userland: Upgrade to latest and implement triple buffering for wayland
In reply to Khem Raj--- ...13-Implement-triple-buffering-for-wayland.patch | 85 ++++++++++++++++++++++ recipes-graphics/userland/userland_git.bb | 3 +- 2 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 recipes-graphics/userland/userland/0013-Implement-triple-buffering-for-wayland.patch
recipes-graphics/userland/userland/0013-Implement-triple-buffering-for-wayland.patch new file +85 -0
@@ -0,0 +1,85 @@ +From 81f421b051c726bbe180ee5f7d93cf13a3935904 Mon Sep 17 00:00:00 2001 +From: Jeff Wannamaker <[email protected]> +Date: Thu, 19 Jan 2017 18:56:07 +0000 +Subject: [PATCH 13/13] Implement triple buffering for wayland + +Change from double to triple buffering for wayland. This enables higher frame rates without tearing artifacts by allowing both the glFinish and the buffer release interlock to operate without pushing the frame period to two vertical intervals + +Signed-off-by: Jeff Wannamaker <[email protected]> +--- + interface/khronos/egl/egl_client.c | 3 ++- + interface/khronos/egl/egl_client_surface.c | 8 ++++++++ + interface/khronos/egl/egl_client_surface.h | 11 +++++++++++ + 3 files changed, 21 insertions(+), 1 deletion(-) + +diff --git a/interface/khronos/egl/egl_client.c b/interface/khronos/egl/egl_client.c +index 13a110c..0380274 100644 +--- a/interface/khronos/egl/egl_client.c ++++ b/interface/khronos/egl/egl_client.c +@@ -2323,7 +2323,8 @@ EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surf) + + buffer_temp = surface->front_wl_buffer; + surface->front_wl_buffer = surface->back_wl_buffer; +- surface->back_wl_buffer = buffer_temp; ++ surface->back_wl_buffer = surface->middle_wl_buffer; ++ surface->middle_wl_buffer = buffer_temp; + + configid = egl_config_to_id(surface->config); + color = egl_config_get_color_format(configid); +diff --git a/interface/khronos/egl/egl_client_surface.c b/interface/khronos/egl/egl_client_surface.c +index 9a9582c..10b3b04 100644 +--- a/interface/khronos/egl/egl_client_surface.c ++++ b/interface/khronos/egl/egl_client_surface.c +@@ -402,12 +402,14 @@ EGL_SURFACE_T *egl_surface_create( + if (type == WINDOW && wl_display) { + surface->wl_egl_window = (struct wl_egl_window*)win; + surface->front_wl_buffer = NULL; ++ surface->middle_wl_buffer = NULL; + surface->back_wl_buffer = allocate_wl_buffer( + surface->wl_egl_window, color); + resource = surface->back_wl_buffer->resource; + } else { + surface->wl_egl_window = NULL; + surface->front_wl_buffer = NULL; ++ surface->middle_wl_buffer = NULL; + surface->back_wl_buffer = NULL; + resource = DISPMANX_NO_HANDLE; + } +@@ -696,6 +698,12 @@ void egl_surface_free(EGL_SURFACE_T *surface) + surface->back_wl_buffer = 0; + } + ++ if (surface->middle_wl_buffer) { ++ wl_buffer_destroy(surface->middle_wl_buffer->wl_buffer); ++ free(surface->middle_wl_buffer); ++ surface->middle_wl_buffer = 0; ++ } ++ + if (surface->front_wl_buffer) { + wl_buffer_destroy(surface->front_wl_buffer->wl_buffer); + free(surface->front_wl_buffer); +diff --git a/interface/khronos/egl/egl_client_surface.h b/interface/khronos/egl/egl_client_surface.h +index e328b77..58a3184 100644 +--- a/interface/khronos/egl/egl_client_surface.h ++++ b/interface/khronos/egl/egl_client_surface.h +@@ -313,6 +313,17 @@ typedef struct { + struct wl_dispmanx_client_buffer *front_wl_buffer; + + /* ++ middle_wl_buffer ++ ++ Validity: ++ type == WINDOW ++ ++ Invariant: ++ client-side information about the wl_buffer in the middle ++ */ ++ struct wl_dispmanx_client_buffer *middle_wl_buffer; ++ ++ /* + back_wl_buffer + + Validity: +-- +2.7.1 +
recipes-graphics/userland/userland_git.bb +2 -1
@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "bb15afe33b313fe045d52277a78653d288e04f67" +SRCREV = "0f015eaa17add5bca00ecf8a354ea62e19bd7920" SRC_URI = "\ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
@@ -32,6 +32,7 @@ SRC_URI = "\ file://0010-Fix-for-framerate-with-nested-composition.patch \ file://0011-build-shared-library-for-vchostif.patch \ file://0012-implement-buffer-wrapping-interface-for-dispmanx.patch \ + file://0013-Implement-triple-buffering-for-wayland.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
2.11.1
PATCH 7/9 linux-raspberrypi_4.9.bb: Upgrade to 4.9.8
In reply to Khem Raj--- recipes-kernel/linux/linux-raspberrypi_4.9.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
recipes-kernel/linux/linux-raspberrypi_4.9.bb +2 -2
@@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.9.5" +LINUX_VERSION ?= "4.9.8" -SRCREV = "fd03479116aebe4a9faf64e108b3ab7eeb8cb71a" +SRCREV = "a5204ea3b15aa8eaaf2c3c7db7dfb177a84af730" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ " require linux-raspberrypi.inc
Signature · 1 line
2.11.1
Re: [meta-raspberrypi][PATCH 7/9] linux-raspberrypi_4.9.bb: Upgrade to 4.9.8
Quoted 10 lines · On Wed, 8 Feb 2017 21:49:01 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-kernel/linux/linux-raspberrypi_4.9.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-kernel/linux/linux-raspberrypi_4.9.bb +0
-0
recipes-kernel/linux/linux-raspberrypi_4.9.bb line 8
Quoted 10 lines
recipes-kernel/linux/linux-raspberrypi_4.9.bb +2
-2@@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.9.5" +LINUX_VERSION ?= "4.9.8" -SRCREV = "fd03479116aebe4a9faf64e108b3ab7eeb8cb71a" +SRCREV = "a5204ea3b15aa8eaaf2c3c7db7dfb177a84af730" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ " require linux-raspberrypi.inc
Can we squash this with the upgrade to 4.9.5?
Re: [meta-raspberrypi][PATCH 7/9] linux-raspberrypi_4.9.bb: Upgrade to 4.9.8
Quoted 18 lines · Paul Barker
Quoted 15 lines · On Wed, 8 Feb 2017 21:49:01 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-kernel/linux/linux-raspberrypi_4.9.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)recipes-kernel/linux/linux-raspberrypi_4.9.bb +1
-1@@ -1,8 +1,8 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" -LINUX_VERSION ?= "4.9.5" +LINUX_VERSION ?= "4.9.8"
Quoted 8 lines
recipes-kernel/linux/linux-raspberrypi_4.9.bb line 8
Quoted 5 lines
recipes-kernel/linux/linux-raspberrypi_4.9.bb +1
-1-SRCREV = "fd03479116aebe4a9faf64e108b3ab7eeb8cb71a" +SRCREV = "a5204ea3b15aa8eaaf2c3c7db7dfb177a84af730" SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y \ " require linux-raspberrypi.incCan we squash this with the upgrade to 4.9.5?
sent a v2.
PATCH 8/9 userland: Upgrade to latest
In reply to Khem Raj--- recipes-graphics/userland/userland_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-graphics/userland/userland_git.bb +1 -1
@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "0f015eaa17add5bca00ecf8a354ea62e19bd7920" +SRCREV = "d35be767ce54ba46893ffa6d612b6b9d490b1e4e" SRC_URI = "\ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
Signature · 1 line
2.11.1
Re: [meta-raspberrypi][PATCH 8/9] userland: Upgrade to latest
Quoted 10 lines · On Wed, 8 Feb 2017 21:49:02 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-graphics/userland/userland_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-graphics/userland/userland_git.bb +0
-0
recipes-graphics/userland/userland_git.bb COMPATIBLE_MACHINE = "raspberrypi" · line 22
Quoted 8 lines
recipes-graphics/userland/userland_git.bb +1
-1@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "0f015eaa17add5bca00ecf8a354ea62e19bd7920" +SRCREV = "d35be767ce54ba46893ffa6d612b6b9d490b1e4e" SRC_URI = "\ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \
Can we squash this with the other userland upgrade in this series?
Re: [meta-raspberrypi][PATCH 8/9] userland: Upgrade to latest
Quoted 19 lines · Paul Barker
Quoted 16 lines · On Wed, 8 Feb 2017 21:49:02 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-graphics/userland/userland_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-graphics/userland/userland_git.bb +1
-1@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "0f015eaa17add5bca00ecf8a354ea62e19bd7920" +SRCREV = "d35be767ce54ba46893ffa6d612b6b9d490b1e4e"
Quoted 4 lines
recipes-graphics/userland/userland_git.bb COMPATIBLE_MACHINE = "raspberrypi" · line 22
Quoted 2 lines
recipes-graphics/userland/userland_git.bb +0
-0SRC_URI = "\ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \Can we squash this with the other userland upgrade in this series?
I intentionally, did not since I did not want to rebase my master, and both bumps are tested individually over period of time. since my master is used by others I did not want to make it painful for them when it merged into master the first set has been posted few weeks ago to ml already which is still pending.
Re: [meta-raspberrypi][PATCH 8/9] userland: Upgrade to latest
In reply to Paul BarkerQuoted 19 lines · Paul Barker
Quoted 16 lines · On Wed, 8 Feb 2017 21:49:02 -0800 Khem Raj <[email protected]> wrote:
Signed-off-by Khem Raj <[email protected]>--- recipes-graphics/userland/userland_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)recipes-graphics/userland/userland_git.bb +1
-1@@ -16,7 +16,7 @@ COMPATIBLE_MACHINE = "raspberrypi" SRCBRANCH = "master" SRCFORK = "raspberrypi" -SRCREV = "0f015eaa17add5bca00ecf8a354ea62e19bd7920" +SRCREV = "d35be767ce54ba46893ffa6d612b6b9d490b1e4e"
Quoted 5 lines
recipes-graphics/userland/userland_git.bb COMPATIBLE_MACHINE = "raspberrypi" · line 22
Quoted 2 lines
recipes-graphics/userland/userland_git.bb +0
-0SRC_URI = "\ git://github.com/${SRCFORK}/userland.git;protocol=git;branch=${SRCBRANCH} \Can we squash this with the other userland upgrade in this series?
sent a v2.
PATCH 9/9 firmware: Update to 20161215 release
In reply to Khem Raj--- recipes-bsp/common/firmware.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
recipes-bsp/common/firmware.inc +3 -3
@@ -1,10 +1,10 @@ -RPIFW_DATE ?= "20161125" +RPIFW_DATE ?= "20161215" RPIFW_SRC_URI ?= "https://github.com/raspberrypi/firmware/archive/1.${RPIFW_DATE}.tar.gz" RPIFW_S ?= "${WORKDIR}/firmware-1.${RPIFW_DATE}" SRC_URI = "${RPIFW_SRC_URI}" -SRC_URI[md5sum] = "a9281d2869e2d7673a83d41bacfa66c2" -SRC_URI[sha256sum] = "744e050630621c70991c91e0ee8663dc2f579e743583ca762b13b00bc75859bc" +SRC_URI[md5sum] = "ddd7645988360d7ef267b48c32293ad7" +SRC_URI[sha256sum] = "bda18f2affb50053940fd88c3f3bec5af9a4b4ced753d01107a2b106cfb02d13" PV = "${RPIFW_DATE}"
Signature · 1 line
2.11.1
Quoted 21 lines · Khem Raj
From: Herve Jourdain <[email protected]>
Signed-off-by Herve Jourdain <[email protected]>Signed-off-by Khem Raj <[email protected]>--- conf/machine/raspberrypi3-64.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/machine/raspberrypi3-64.confconf/machine/raspberrypi3-64.conf new file +5
-0@@ -0,0 +1,15 @@ +#@TYPE: Machine +#@NAME: RaspberryPi 3 Development Board +#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode + +MACHINEOVERRIDES = "raspberrypi3:raspberrypi:${MACHINE}"
conf/machine/raspberrypi3-64.conf line 15
Quoted 10 lines
conf/machine/raspberrypi3-64.conf new file +10
-0+ +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" + +require conf/machine/include/arm/arch-armv8.inc +include conf/machine/include/rpi-base.inc + +SERIAL_CONSOLE = "115200 ttyS0" +VC4_CMA_SIZE ?= "cma-256" + +UBOOT_MACHINE = "rpi_3_config"
I know it's 2017, but what are the real advantages of rpi3-64 over rpi3? Should I care (or use it)?
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 30 lines · Gary Thomas
Quoted 29 lines · Khem Raj
From: Herve Jourdain <[email protected]>
Signed-off-by Herve Jourdain <[email protected]>Signed-off-by Khem Raj <[email protected]>--- conf/machine/raspberrypi3-64.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/machine/raspberrypi3-64.confconf/machine/raspberrypi3-64.conf new file +3
-0@@ -0,0 +1,15 @@ +#@TYPE: Machine +#@NAME: RaspberryPi 3 Development Board +#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bitsmode
conf/machine/raspberrypi3-64.conf new file +8
-0+ +MACHINEOVERRIDES = "raspberrypi3:raspberrypi:${MACHINE}" + +MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430" + +require conf/machine/include/arm/arch-armv8.inc +include conf/machine/include/rpi-base.inc +
Quoted 8 lines
conf/machine/raspberrypi3-64.conf line 15
Quoted 5 lines
conf/machine/raspberrypi3-64.conf new file +4
-0+SERIAL_CONSOLE = "115200 ttyS0" +VC4_CMA_SIZE ?= "cma-256" + +UBOOT_MACHINE = "rpi_3_config"I know it's 2017, but what are the real advantages of rpi3-64 over rpi3? Should I care (or use it)?
rpi3-64 is more appropriate for headless server kind of workloads atleast thats what I am trying to use it. It also performs better with aarch64 ISA in some usecases.