Environment Description:
Linux Kernel version: 2.6.35
Board: WY-S5PV210
I, Follow the steps below to create a boot image
1,
Download an 80 x image from Photoshop or the Internet.
2,
Use the gimp tool to convert the image to a 224-color image in ppm format
(1)
Open the image to be converted
(2)
Select image> mode> index, and select 224 for the maximum number of colors.
(3) Select File> Save
Enter linuxlogo. ppm as the name, click OK, and select "ASCII" in the pop-up dialog box"
Click Save to generate a 224-color ppm image.
II, Modify Related Files
Assume that you have switched to the Linux kernel root directory.
(1)Rename linuxlogo. PPM to logo_mylogo.clut224.ppm and copy it to the logo directory.
$ Sudo MV linuxlogo. ppm
Logo_mylogo.clut224.ppm
$ Sudo CP logo_mylogo.clut224.ppm Drivers/Video/logo
(2)ModifyLogo. c
Use your favorite tools (Vi, gedit, etc.) to open drivers/Video/logo. c
Find if (depth> = 8) in the fb_find_logo () function and add
# Ifdef config_logo_mylogo_clut.pdf
/* My Linux logo */
Logo = & logo_mylogo_clut.pdf;
# Endif
(3) Modify makefile
Open Drivers/Video/logo/makefile
Join
OBJ-$ (config_logo_mylogo_clut.pdf) + = logo_mylogo_clut224.o
(4)Modify kconfig
Open Drivers/Video/logo/kconfig
Add
Config
Logo_mylogo_clut.pdf
Bool "224-color my Linux logo"
Default y
(5)Modify linux_logo.h
Open include/Linux/linux_logo.h
Add
Extern const struct linux_logo
Logo_mylogo_clut.pdf;
(6)Modify config
Open. config
Modify as follows:
# Config_logo_linux_clut.pdf = y
Config_logo_mylogo_clut.pdf = y
3. Compile and burn New kernels
# Make. config
# Make zimage
Write the raw zimage to the Development Board to view the new Linux boot image.