Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[DEV][PATCH] LLCON - alternate way to display kernel log at an early booting stage

$
0
0
Low Level Console

LLCON - Low Level Console for output kmsg to display.

The main advantage of this method: early initialization LLCON in the kernel.
Drawing graphics on screen is implemented using direct entry of data into FrameBuffer.

Limitation:
1) supports only RGB888 display (24-bit);
2) supports displays with a normal orientation (the flipped panels not tested);
3) is supported only QCOM platform (but you can try to adapt MTK);

Source code:
Kernel: https://github.com/jsr-d10/android_k...mits/mm-llcon3 (commits date 2016-05-14)
Device: https://github.com/jsr-d10/android_d.../cm-11.0-llcon (commits date 2016-05-11)

Code:

New kernel param:
  androidboot.llcon=<mode>,<delay>,<textwrap>,<fb_addr>,<fb_bpp>,
          <fb_height>,<fb_width>,<fb_pitch>,<font_size>,<font_color>

Example:
  androidboot.llcon=2,100,0,0x03200000,24,1280,720,720,8,0xFFFFFF

mode:
  0 = disable LLCON
  1 = sync mode (page scroll mode)
  2 = async mode (line scroll mode)
delay:
  Delay used in output text thread (ms).
textwrap:
  0 = text wrap disabled
  1 = text wrap enabled
fb_addr:
  Physical address of FB.
  This value ignored when used llcon_set_fb_addr function.
fb_bpp:
  This value ignored.
fb_height:
  Display height.
fb_width:
  Display width.
fb_pitch:
  Display pitch size.
font_size:
  6 = FONT_6x11, 8 = FONT_8x16, 10 = FONT_10x18, 12 = FONT_SUN12x22
font_color:
  Font color in hex RGB format.



Video demonstration:

LLCON 1: https://youtu.be/KwAFpD2wt28 (page scroll mode, font 6x11)
LLCON 2: https://youtu.be/x7kUKmY-4Mo (line scroll mode, font 8x16)

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>