Trivial things and self-note

Blog @ Ben | imbushuo


  • Home
  • Archive
  • Categories
  • Tags
  • Links
  •    

© 2022 Bingxing Wang

Theme Typography by Makito

Proudly published with Hexo

Debugging early ARM ACPI bringup without UART

Posted at 2019-03-08 Comments Dev Learn something  Debug UEFI Linux 

Sometimes it is not feasible to get UART access on consumer blackbox devices (e.g. Lumia 950XL). In the case of ARM ACPI debugging, the lack of UART access may make early boot debug incredibly difficult.

Starting from Linux Kernel 5.0, it is now possible to enable FrameBuffer-based early kernel display. All you need to do is:

  • Enable Earlyprintk and Earlycon support. By default it is on.
  • Enable EFI FrameBuffer display device.
  • Enable EFI FrameBuffer Earlycon device.
  • (Optional) Enable PSCI checker to verify PSCI functionality.

Then pass the following parameters in bootloader:

earlycon=efifb,mem

Then you are good to go.

 Previous post: Bootstrapping the blue Windows when you have random AArch64 devices in the backyard Next post: Fix broken Windows Management Instrumentation 

© 2022 Bingxing Wang

Theme Typography by Makito

Proudly published with Hexo