Modify the Linux kernel Boot logo and center full screen "Go"

Source: Internet
Author: User

This article was reproduced from: http://blog.csdn.net/xuezhimeng2010/article/details/49299781

1. Prepare the picture
Using Ubuntu's own graphics software GIMP is the quickest way, using commands to convert can also, the actual test with the command to convert the picture old prompt error, so in the way of GIMP processing. The specific process is as follows:
(1) Open the GIMP software and load the picture resources (File->open), their original image format should be unlimited, my is BMP format.
(2) Click Image->mode->indexed and set generate optimum palette in the pop-up options box maximum number of colors:224 original value defaults to 255, Click the Convert button.
(3) Click File->export As, modify the image file suffix to. ppm Click Save will pop up a small tab to choose the data format, here select ASCII after saving.
(4) Rename the newly generated picture file to logo_linux_clut224.ppm and copy it to the/driver/video/logo/in the kernel source, replacing the file with the same name. Delete logo_linux_clut224.c and logo_linux_clut224.o two files, this two files will be generated automatically after recompilation.
Here the picture is ready ...
2. Modify Kernel configuration options
(1) Device Drivers--->
Graphics Support--->
[*] Boot Logo--->
[*] Standard 224-color Linux logo
Support Kernel logo
(2) Device Drivers--->
Graphics Support--->
Console Display Driver Support--->
<*> Framebuffer Console Support
The item cannot be displayed on the screen without selecting it.
Re-compiling the source code is the replacement of the logo, but not the center full-screen display.
3. Center Full Screen Display
(1) Modify the Fb_show_logo_line function in the source/DRIVER/VIDEO/FBMEM.C
image.dx=0;
Image.dy=y;
Image.width = logo->width;
Image.heigh = logo->height;
Increase
+IMAGE.DX = (INFO-&GT;VAR.XRES/2)-(IMAGE.WIDTH/2);
+image.dy = (INFO-&GT;VAR.YRES/2)-(IMAGE.HEIGHT/2);
(2) Modify the Fbcon_prepare_logo () function in the source/driver/video/console/fbcon.c
In logo_height = Fb_prepare_logo (info, ops->rotate), add the following line of code after
+logo_height + = (INFO-&GT;VAR.YRES/2)-(LOGO_HEIGHT/2);
After you recompile the kernel, you will see that the modified kernel logo is centered on the full screen.

A blinking cursor is displayed at the top left corner, and if the output boot information is set to the LCD console, the console message will then turn down the displayed logo.

Http://blog.sina.com.cn/s/blog_afeaebf00101gdr5.html

http://blog.csdn.NET/sukhoi27smk/article/details/9848919

Modify the Linux kernel Boot logo and center full screen "Go"

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.