# Yellow screen on meta-mender using warrior branch with DISABLE\_VC4GRAPHICS + u-boot patch

**URL:** https://hub.mender.io/t/yellow-screen-on-meta-mender-using-warrior-branch-with-disable-vc4graphics-u-boot-patch/1438
**Category:** General Discussions
**Tags:** raspberry-pi-3, raspberry-pi-4
**Created:** [January 14, 2020, 9:17pm UTC](https://hub.mender.io/t/yellow-screen-on-meta-mender-using-warrior-branch-with-disable-vc4graphics-u-boot-patch/1438 "2020-01-14T21:17:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ikkysleepy](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ikkysleepy/32/156_2.png) [@ikkysleepy](https://hub.mender.io/u/ikkysleepy)
#### Post date: [January 14, 2020, 9:17pm UTC](https://hub.mender.io/t/yellow-screen-on-meta-mender-using-warrior-branch-with-disable-vc4graphics-u-boot-patch/1438/1 "2020-01-14T21:17:44Z")

</div>

I experienced a Yellow screen when using the warrior build for Raspberry Pi 3 and Pi 4 when setting DISABLE\_VC4GRAPHICS to 1. I set this variable to 1 because tvservice and libcec (hdmi) was not working and this was the only way to get it to work. There is a fix for this yellow issue but it’s not available in the meta-mender repo, see here for the patch [Yellow Screen on Raspbian Buster 2019-06-20](https://hub.mender.io/t/yellow-screen-on-raspbian-buster-2019-06-20/1136). Here is a patch for u-boot for the meta-mender layer I made that fixes the yellow u-boot issue:

Copy the file to a new directory meta-mender/meta-mender-core/recipes-bsp/u-boot/u-boot/0001-Disable-addition-of-simple-framebuffer-by-U-boot.patch

> From cad2c92cd03558461cc16c6d69035009c153ff61 Mon Sep 17 00:00:00 2001  
> From: Jorge Corona [ikkysleepy@yahoo.com](mailto:ikkysleepy@yahoo.com)  
> Date: Tue, 14 Jan 2020 12:46:48 -0800  
> Subject: [PATCH] Disable addition of simple-framebuffer by U-boot
> 
> * * *
> 
> board/raspberrypi/rpi/rpi.c | 7 -------  
> include/configs/rpi.h | 3 —  
> 2 files changed, 10 deletions(-)
> 
> diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c  
> index 8f964d6…71633b4 100644  
> — a/board/raspberrypi/rpi/rpi.c  
> +++ b/board/raspberrypi/rpi/rpi.c  
> @@ -474,13 +474,6 @@ void \*board\_fdt\_blob\_setup(void)
> 
> int ft\_board\_setup(void \*blob, bd\_t \*bd)  
> {
> 
> - 
> 
> ```
> /*
> 
> ```
> 
> - 
> 
> ```
> * For now, we simply always add the simplefb DT node. Later, we
> 
> ```
> 
> - 
> 
> ```
> * should be more intelligent, and e.g. only do this if no enabled DT
> 
> ```
> 
> - 
> 
> ```
> * node exists for the "real" graphics driver.
> 
> ```
> 
> - 
> 
> ```
> */
> 
> ```
> 
> - 
> 
> ```
> lcd_dt_simplefb_add_node(blob);
> 
> ```
> 
> - 
> 
> #ifdef CONFIG\_EFI\_LOADER  
> /\* Reserve the spin table _/  
> efi\_add\_memory\_map(0, 1, EFI\_RESERVED\_MEMORY\_TYPE, 0);  
> diff --git a/include/configs/rpi.h b/include/configs/rpi.h  
> index e9c80e2…2033516 100644  
> — a/include/configs/rpi.h  
> +++ b/include/configs/rpi.h  
> @@ -59,9 +59,6 @@  
> /_ Devices _/  
> /_ GPIO _/  
> #define CONFIG\_BCM2835\_GPIO  
> -/_ LCD \*/  
> -#define CONFIG\_LCD\_DT\_SIMPLEFB  
> -#define CONFIG\_VIDEO\_BCM2835
> 
> #ifdef CONFIG\_CMD\_USB  
> #define CONFIG\_TFTP\_TSIZE

Next, make a new file called u-boot\_2019.01.bbappend in meta-mender/meta-mender-core/recipes-bsp/u-boot/

> FILESEXTRAPATHS\_prepend := “${THISDIR}/${PN}:”
> 
> SRC\_URI += “file://0001-Disable-addition-of-simple-framebuffer-by-U-boot.patch”

I also had to force u-boot to load by adding these lines to my local conf

> MENDER\_FEATURES\_ENABLE\_append = " mender-uboot mender-image-sd"  
> MENDER\_FEATURES\_DISABLE\_append = " mender-grub mender-image-uefi"

Thanks,  
–Jorge

---

<div class="post-metadata">

### Author: ![guillaumekh](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/guillaumekh/32/607_2.png) [@guillaumekh](https://hub.mender.io/u/guillaumekh)
#### Post date: [January 20, 2020, 5:25pm UTC](https://hub.mender.io/t/yellow-screen-on-meta-mender-using-warrior-branch-with-disable-vc4graphics-u-boot-patch/1438/2 "2020-01-20T17:25:08Z")

</div>

> [@ikkysleepy](#):
>
> I experienced a Yellow screen when using the warrior build for Raspberry Pi 3 and Pi 4 when setting DISABLE\_VC4GRAPHICS to 1.

We see the same issue with Yocto Warrior on Raspberry Pi 3 B+, although we don’t disable VC4GRAPHICS.

I couldn’t get the patch to work as is, possibly because Discourse bungled the formatting, so here is the patch regenerated from the [original commit](https://github.com/mendersoftware/uboot-mender/commit/50f05ab10e9590f22cd07382821a7a7721825b36) if anyone else needs it : [0001-Disable-addition-of-simple-framebuffer-by-U-boot.patch · GitHub](https://gist.github.com/guillaumekh/77639b12fb6596d43d12b11f37a59157)
