Modify the boot logo of the Linux kernel and disable the boot cursor "go"

Source: Internet
Author: User

This article was reproduced from: http://blog.csdn.net/hunanchenxingyu/article/details/40992947

1-1, the method of making logo:
First select a favorite image, PNG or BMP format, here to use these two formats as a description, and then the picture into the installed Linux PC (Ubuntu), in the following order you can create a logo you like
You must install the following tools (PNGTOPNM,PNMQUANT,PNMTOPLAINPNM)
This installs in Ubuntu: Apt-get install NETPBM
$ PNGTOPNM linuxlogo.png > LINUXLOGO.PNM
$ pnmquant 224 LINUXLOGO.PNM > LINUXLOGO224.PNM
$ PNMTOPLAINPNM LINUXLOGO224.PNM > linuxlogo224.ppm

Or

$BMPTOPPM pic.bmp > temp1.ppm//Generate PPM
$ppmquant 224 temp1.ppm > temp2.ppm//Convert to 224 colors
$pnmnoraw temp2.ppm > linuxlogo224.ppm//Convert to ASCII pattern


So the logo you made has won, will linuxlogo224.ppm
The name of the logo that you copied to the/drivers/video/logo White folder, based on your platform's detailed use,
Here's the logo_linux_clut224.ppm, so replace this, and note the size of the image affects the size of the kernel image.
You can then compile the kernel.

1-2, configure the kernel logo options
Execute make menuconfig under the kernel path (make Xconfig)
A. Select the Virtual Console to prepare the console display driver
Device Drivers--->character devices---> Virtual terminal
[*] Support for console on virtual terminal
B. Select the Virtual Console display driver
Device Drivers--->graphics support---> This option is available in console display driver--->
Depending on your hardware selection by framebuffer or VGA
[*] Framebuffer Console Support or
[*] VGA Text Console
C, Device Drivers--->graphics support--->
<*> support for frame buffer devices
<*> MXC Framebuffer Support Select VGA or tvout
[*] Tvout CH7024 on MX27//tvout
[*]support VGA daughter//VGA
Of course, the above configuration options, depending on the platform will be a little different.
Do the above two steps, you can recompile the kernel, burn it to the Development Board, then VGA or tvout display.
So you can see your own logo, you can find a flashing cursor in the bottom left corner of the logo, and then we'll talk about how to remove the cursor.

2-1. How to remove the cursor from the boot logo
Enter the Drivers/video/console/fbcon.c file in the current directory of the kernel
The static void Fb_flashcursor (void *private) and the static void Fbcon_cursor (struct vc_data *vc, int mode) are made into empty functions as follows

static void Fb_flashcursor (void *private)

{

.................

}

static void Fb_flashcursor (void *private)

{

#if 0

.................

#endif

}

Other than that:

static void Fbcon_cursor (struct vc_data *vc, int mode)
{
......................

}

static void Fbcon_cursor (struct vc_data *vc, int mode)
{
#if 0

#endif

}

2-2, the second way:

drivers/video/console/makefile#obj-$ (config_framebuffer_console) + = FBCON.O bitblit.o font.o softcursor.oobj-$ ( Config_framebuffer_console) + = FBCON.O BITBLIT.O FONT.O compilation will encounter an issue with soft_cursor undefined, commented out code: drivers/video/console/ bitblit.c//abing//if (ERR)//Soft_cursor (info, &cursor); The cursor was successfully disabled.

*****************************************************************************

Can be sure that these two methods are not deep down, for the first if my logo is a screen resolution logo so boot to the logo is a black screen, screen display is page, and after entering into the filesystem still show the mouse, the second problem more, need to modify a lot of places, are generally related to soft_cursor ();

So how does it work? Only from the source, continue .....

Modify the boot logo of the Linux kernel and disable the boot cursor "go"

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.