U-Boot, video console, and visual artifacts
#5
Pretty sure this is the frame buffer being overwritten with other content when the kernel loads. In short, what happens is U-Boot allocates an area of RAM for it to write its pixel data into, and tells the VOP (video output processor, part of the SoC that handles display output) to read pixel data from that area and display the resulting image on screen. This is the "frame buffer".

While U-Boot is running, it knows that area is for writing data into to display on screen, and doesn't use it for anything else. But when U-Boot loads the kernel and starts it, it doesn't tell the kernel that the frame buffer memory area should be reserved or is special in any way. After control is passed to the kernel, the kernel thinks the frame buffer area is like any other free area of memory and starts using it to store data (e.g. structures related to kernel bookkeeping, or memory used by programs, etc). However the VOP was never told to stop displaying the contents of this area of memory on screen, so what you're seeing is random data structures being interpreted as pixel data and displayed on screen.

When the display driver in the kernel (called "rockchipdrm") loads, it resets the VOP and allocates a new area of RAM for it to use/display as a frame buffer while Linux is running, hence the weird green screen goes away and you start seeing the expected Linux console text and then graphical desktop.

It's probably harmless that the VOP isn't stopped by U-Boot when it hands control to the kernel and is still reading out from random kernel memory, though real problems can happen if the firmware leaves hardware *writing* into a memory area and doesn't tell the kernel about it, as that can corrupt kernel memory structures - for an example of this happening: https://mjg59.dreamwidth.org/11235.html
  Reply


Messages In This Thread
RE: U-Boot, video console, and visual artifacts - by sigmaris - 06-27-2021, 06:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  uboot wont boot to SD card after upgrade jbradley419 7 753 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 273 01-16-2024, 09:17 AM
Last Post: jbradley419
  Video Editing Is Possible On The PineBook Pro! ImmyChan 10 7,468 12-17-2023, 09:29 PM
Last Post: insideau786
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 2,164 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 653 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 563 11-22-2023, 11:47 AM
Last Post: fxc
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,142 09-19-2023, 08:48 AM
Last Post: dachalife
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 1,812 08-03-2023, 03:30 PM
Last Post: tophneal
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 787 07-13-2023, 01:50 PM
Last Post: PaulQ
  New Pinebook pro won’t boot Generaltuxenburg 4 1,908 06-14-2023, 07:20 AM
Last Post: KC9UDX

Forum Jump:


Users browsing this thread: 1 Guest(s)