Modify Linux boot image (Penguin)

Source: Internet
Author: User

 

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.

 

 

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.