PINE64
U-Boot, video console, and visual artifacts - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: U-Boot, video console, and visual artifacts (/showthread.php?tid=14167)

Pages: 1 2 3


RE: U-Boot, video console, and visual artifacts - z4v4l - 07-08-2021

I saw this funny thing, when playing with my own UEFI OS Loader on a RK3399 board. But it was on the HDMI interface.
I break uboot flow manually and command it to load and jump into my UEFI OSL (fatload, bootefi). My OSL shows things as expected, no artifacts, then I press a key and my unfinished yet OSL returns to uboot, then I type bootdefault, forgot the exact command name and uboot types reporting about loading linux, and right after jump into linux, this stripy image appears on the screen. definitely looks like linux overwriting the GOP framebuffer.


RE: U-Boot, video console, and visual artifacts - dsimic - 07-08-2021

(07-08-2021, 03:09 PM)z4v4l Wrote: right after jump into linux, this stripy image appears on the screen. definitely looks like linux overwriting the GOP framebuffer.

I agree that it looks like the framebuffer is overwritten and filled with garbage, but I think that's just one part of the mix that causes this issue.

In one of the attempts to fix this issue, I've modified the U-Boot drivers for the RK3399 eDP output and the RK3399 VOP to get removed and turn the hardware off before booting into the Linux kernel, which made the "second plaid" (the one when the kernel starts) pattern to disappear, but also caused my PineBook Pro to lock up while attempting to boot the kernel.  I still need to debug that.


RE: U-Boot, video console, and visual artifacts - pkubaj - 07-17-2021

Hello,

we previously talked on IRC about how I don't get a display. I use Gentoo with Manjaro kernel 5.11.16 and that works, but using even vanilla 5.11.16 fails to display anything. I found that using I have to use two Manjaro patches to get display working and they are still present in Manjaro's repo:
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0003-arm64-dts-rockchip-add-typec-extcon-hack.patch
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0010-usb-typec-add-extcon-to-tcpm.patch

I'm not sure how the screen behaves on 5.13, my experience is with 5.11.16. I'm now planning to upgrade to 5.13.

I use uboot 2021.07.


RE: U-Boot, video console, and visual artifacts - pkubaj - 07-17-2021

Display works on 5.13.2 with those patches.


RE: U-Boot, video console, and visual artifacts - zackw - 07-19-2021

I also see the green plaid pattern, but for me it replaces the text instead of being overlaid on it.

I investigated the scary-looking message about a bad SPI CRC checksum; it turns out to be unrelated and harmless. It just means that there isn't any U-Boot configuration stored in the SPI flash. Unfortunately I don't think it can be gotten rid of except by moving the entire bootloader into the SPI, or by code changes to U-Boot. See https://lists.denx.de/pipermail/u-boot/2021-July/453338.html (no response, alas)


RE: U-Boot, video console, and visual artifacts - dsimic - 07-28-2021

My apologies for the delayed response.

(07-17-2021, 08:01 AM)pkubaj Wrote: we previously talked on IRC about how I don't get a display. I use Gentoo with Manjaro kernel 5.11.16 and that works, but using even vanilla 5.11.16 fails to display anything. I found that using I have to use two Manjaro patches to get display working and they are still present in Manjaro's repo:
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0003-arm64-dts-rockchip-add-typec-extcon-hack.patch
https://gitlab.manjaro.org/manjaro-arm/packages/core/linux/-/blob/master/0010-usb-typec-add-extcon-to-tcpm.patch

I'm not sure how the screen behaves on 5.13, my experience is with 5.11.16. I'm now planning to upgrade to 5.13. I use uboot 2021.07.

Thank you very much for providing this feedback!  I've had a rather detailed look at those two patches, but I'm still not exactly sure why are they required to make the video output work.  I'll have another look at that.

(07-19-2021, 07:22 AM)zackw Wrote: I investigated the scary-looking message about a bad SPI CRC checksum; it turns out to be unrelated and harmless.  It just means that there isn't any U-Boot configuration stored in the SPI flash.  Unfortunately I don't think it can be gotten rid of except by moving the entire bootloader into the SPI, or by code changes to U-Boot. See https://lists.denx.de/pipermail/u-boot/2021-July/453338.html (no response, alas)

Right, that's a rather benign error message, as I've already explained in one of my earlier posts.


RE: U-Boot, video console, and visual artifacts - alchemist - 03-01-2022

Hi!

What is the status of those patches ?


RE: U-Boot, video console, and visual artifacts - jpalus - 03-02-2022

(03-01-2022, 03:29 AM)alchemist Wrote: Hi!

What is the status of those patches ?

These patches are not required for working display panel on Pinebook Pro since kernel 5.15.5. They are required to get external display over USB-C working though. The issue before 5.15.5 was that external display was mandatory for proper display initialization but since it's not implemented it caused entire display subsystem to fail. So basically panel display did not function because external display did not function. With below upstream fix, external display was disabled in dts giving panel display a chance to initialize successfully:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2513fa5c25d42f55ca5f0f0ab247af7c9fbfa3b1


RE: U-Boot, video console, and visual artifacts - alchemist - 03-02-2022

OK thank you!


RE: U-Boot, video console, and visual artifacts - Tazdevl - 06-21-2022

Bump Smile

Have the same with Kali (5.16.18 kernel). Not sure if it was caused by armbian & an update function in armbian-config or if it was included in Kali. It's an artifacts galore during bootup. I'm not even it does reboots...