From 8231f97534812cb0c6ab8d500eff44d3880fdac5 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 23 Nov 2023 16:08:16 +0200 Subject: [PATCH] rpi-config: reintroduce start_x Add a patch to reintroduce configuration start_x. This patch has been submitted to the upstream of of the RPi-config GitHub repo: https://github.com/Evilpaul/RPi-config/pull/8 This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- .../0001-config.txt-reintroduce-start_x.patch | 55 +++++++++++++++++++ recipes-bsp/bootfiles/rpi-config_git.bb | 1 + 2 files changed, 56 insertions(+) create mode 100644 recipes-bsp/bootfiles/rpi-config/0001-config.txt-reintroduce-start_x.patch diff --git a/recipes-bsp/bootfiles/rpi-config/0001-config.txt-reintroduce-start_x.patch b/recipes-bsp/bootfiles/rpi-config/0001-config.txt-reintroduce-start_x.patch new file mode 100644 index 00000000..c6c51c95 --- /dev/null +++ b/recipes-bsp/bootfiles/rpi-config/0001-config.txt-reintroduce-start_x.patch @@ -0,0 +1,55 @@ +From ce27f7e22b2cd7453a425e08780a338a71301961 Mon Sep 17 00:00:00 2001 +From: Leon Anavi +Date: Mon, 20 Nov 2023 15:19:15 +0200 +Subject: [PATCH] config.txt: reintroduce start_x + +Reintroduce configuration "start_x". Based on the experience with +Yocto/OpenEmbedded layer meta-raspberrypi, it has been observed +that Raspberry Pi 4B 4GB may fail to enable the camera if +"start_x=1" is at the end of the file. Therefore, "start_x=1" +is expected in config.txt template and it has been set to replace +the original occurrence, which is at the middle of the file. +Also update revision and date stamp. + +GitHub pull request: https://github.com/Evilpaul/RPi-config/pull/8 + +Upstream-Status: Submitted + +Signed-off-by: Leon Anavi +--- + config.txt | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/config.txt b/config.txt +index 1cf7b29..e28ed02 100644 +--- a/config.txt ++++ b/config.txt +@@ -1,7 +1,7 @@ + ################################################################################ + ## Raspberry Pi Configuration Settings + ## +-## Revision 17, 2021/08/15 ++## Revision 18, 2023/11/20 + ## + ## Details taken from the eLinux wiki and official Raspberry Pi documentation. + ## For up-to-date information please refer to links below. +@@ -760,6 +760,16 @@ + ## Camera Settings + ################################################################################ + ++## start_x ++## Set to "1" to enable the camera module. ++## ++## Enabling the camera requires gpu_mem option to be specified with a value ++## of at least 128. ++## ++## Default 0 ++## ++#start_x=0 ++ + ## disable_camera_led + ## Turn off the red camera led when recording video or taking a still + ## picture. +-- +2.39.2 + diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index 80b8fcba..ee0f407b 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -9,6 +9,7 @@ COMPATIBLE_MACHINE = "^rpi$" SRCREV = "6ac2d832c6c3b208e2669f50ec1abf2c20cb7ff4" SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=https;branch=master \ + file://0001-config.txt-reintroduce-start_x.patch \ " S = "${WORKDIR}/git"