Change the linux/android startup logo

Source: Internet
Author: User

Change the linux/android startup logo

Change the linux or android startup logo:

Run makemcnuconfig in the root directory of the linux kernel source code and go to the following levels:

-> DeviceDrivers

-> Graphicssupport

Select help to View Details:

CONFIG_LOGO:

Enableandselectframebufferbootuplogos.

Symbol: LOGO [= y]

Prompt: Bootuplogo

Definedatdrivers/video/logo/Kconfig: 5

Dependson: HAS_IOMEM & (FB | SGI_NEWPORT_CONSOLE)

Location:

-> DeviceDrivers

-> Graphicssupport

We can see: drivers/video/logo/Kconfig: 5. We will configure the boot image here. Imagine how to add a boot image?

Let's see how logo_linux_clut224.ppm is configured:

Symbol: logo_linux_clut.pdf [= y]

Prompt: Standard224-colorLinuxlogo

Definedatdrivers/video/logo/Kconfig: 26

Dependson: HAS_IOMEM & (FB | SGI_NEWPORT_CONSOLE) & LOGO

Location:

-> DeviceDrivers

-> Graphicssupport

-> Bootuplogo (LOGO [= y])

In ~ /Work/android-2.6.29-samsung/drivers/video/logo directory Kconfig has:

26 configlogo_linux_clut.pdf

27 bool Standard224-colorLinuxlogo"

28 defaulty


If you want to add an image, you should add the corresponding configuration options in Kconfig. At the same time, you must have

Corresponding. image files in ppm format ...... we will not discuss this situation for the moment. the new image file in the ppm format overwrites the boot logo image file and recompiles the kernel.

The process is as follows:

1. First, find a png image that meets the LCD resolution. I heard that the bmp format is also acceptable, but the format conversion command is not

?), Then, run the following command to convert the format:

Pngtopnm logo. PNG> my_linux_logo.pnm

Pnmquant 224my_linux_logo.pnm> my_linux_logo224.pnm

Pnmtoplainpnmmy_linux_logo224.pnm> my_linux_logo.ppm

2. Copy the ppm image file to the logo directory and back up the original boot image file:

Cd drivers/video/logo

Cp ~ /Work/my_linux_logo.ppm ./

Cp logo_linux_clut224.ppmlogo_linux_clut224_copy.ppm

3. Replace the new image file with the original image file:

Cp my_linux_logo.ppmlogo_linux_clut224.ppm

4. Then make menuconfig, select the Standard224-colorLinuxlogo, and then make zImage,

Success!


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.