Bug 8178

Summary: Do not enable VGA framebuffer console by default
Product: [Build System, Metadata & Runtime] BSPs Reporter: Jussi Laako <jussi.laako>
Component: bsps-meta-intelAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, dvhart
Version: unspecified   
Target Milestone: 1.9 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jussi Laako 2015-08-18 08:10:41 UTC
VGA framebuffer console grows memory consumption and slows down boot significantly due to slow CPU based drawing and scrolling.

When an embedded device is non-headless, graphics support can be enabled using a config fragment as necessary.
Comment 1 Saul Wold 2015-08-20 18:35:57 UTC
For the intel-quark BSP this makes sense as I have verified it's unlikely that a quark based platform will have a framebuffer, but for core2 or corei7 platforms the following fragment will disable the VGA_CONSOLE along with the FRAMEBUFFER_CONSOLE

Create a new config fragment with the following contents, and add it to your SRC_URI.

# CONFIG_VGA_CONSOLE is not set
# CONFIG_DUMMY_CONSOLE is not set
# CONFIG_FRAMEBUFFER_CONSOLE is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set

The kernel size difference as measured by "ls -l" is 29,440 bytes.
Comment 2 Saul Wold 2015-09-02 17:56:38 UTC
This has been addressed as part of commit:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=e226a9f68052035bd2a4330e0ef2feeb467f7fb2

The quark config fragments changes are here:

http://git.yoctoproject.org/cgit/cgit.cgi/yocto-kernel-cache/commit/?id=0b960965a79286d60dce81884ebeab70a4fcdee5

This does not disable the intel-core* BSP framebuffer console configuration as 
these are meant to be generic BSPs for multiple Intel platforms, the changes 
made for quark could be carried by a layer that wishes to have custom or 
production configurations for specific devices.
Comment 3 Bogdan Alexandru Voiculescu 2015-11-17 10:44:20 UTC
Verified: fc45deac89ef63ca1c44e763c38ced7dfd72cbe1, framebuffer disabled