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!