diff options
| author | SCVready <alejandro.solozabal@outlook.com> | 2020-07-12 14:19:28 +0100 |
|---|---|---|
| committer | Andrei Gherzan <andrei@gherzan.com> | 2021-01-12 20:57:04 +0000 |
| commit | 74deec51ded5b22b31b69b30537a6e9ed0997aea (patch) | |
| tree | 21f677d3b568b4ec148b475f381e76855d1473f5 | |
| parent | e0b4b8c5df410040e8cef7fbe257f1b9c1513355 (diff) | |
| download | meta-raspberrypi-74deec51ded5b22b31b69b30537a6e9ed0997aea.tar.gz | |
rpi-config: Relocated "start_x=1" in config.txt
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>
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index e1c330d..96f5bdf 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -117,8 +117,11 @@ do_deploy() { | |||
| 117 | 117 | ||
| 118 | # Video camera support | 118 | # Video camera support |
| 119 | if [ "${VIDEO_CAMERA}" = "1" ]; then | 119 | if [ "${VIDEO_CAMERA}" = "1" ]; then |
| 120 | echo "# Enable video camera" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | 120 | # TODO: It has been observed that Raspberry Pi 4B 4GB may fail to enable the camera if "start_x=1" is at the end |
| 121 | echo "start_x=1" >>${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt | 121 | # of the file. The underlying cause is unknown, but it can be related with a file size limitation affecting |
| 122 | # this variable. Therefore, "start_x=1" has been set to replace the original occurrence in config.txt, | ||
| 123 | # which is at the middle of the file. | ||
| 124 | sed -i '/#start_x=/ c\start_x=1' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 122 | fi | 125 | fi |
| 123 | 126 | ||
| 124 | # Offline compositing support | 127 | # Offline compositing support |
