ARM Development Board Embedded Linux Modify the boot Start logo method

Source: Internet
Author: User

1. Embedded Linux logo Display principle

Embedded Linux is directly based on the framebuffer. Direct display of an image in PPM format. It is completed in the Kernel/drivers/video/fbcon.c Fbcon_show_logo (), with a maximum color of 224 colors and an uncommon 255 color.

The default logo file is drivers/video/logo/logo_linux_clut224.ppm.

2. Production process

Because the Linux logo format requires PPM format to display. This format is a format used to describe image data in ASCII. In general, only a few software can recognize this format. So suppose you have a good logo image (jpg or PNG format, preferably the latter), then there are two ways to make the logo ppm format. First of all you have to ensure that your logo can not exceed the size of your screen size, the first time to make a small selection. Like the default logo only 80*80. Can be shown in various situations.

2.1 Using the NETPBM package for conversion

RHEL5 has installed these tools. It's got netpbm-10.35-6.fc6. Suppose you are PNG data, respectively, follow the steps below

PNGTOPNM huisen-logo-linux.png > HUISEN-LOGO-LINUX.PNM #转换png成pnm格式

Pnmquant 224 HUISEN-LOGO-LINUX.PNM > HUISEN-LOGO-LINUX224.PNM #转换像素数为224

PNMTOPLAINPNM huisen-logo-linux224.pnm > logo_linux_clut224.ppm #转换二进制的pnm格式为文本的ppm格式.

CP logo_m32r_clut224.ppm LINUX-2.6.28.6/DRIVERS/VIDEO/LOGO/LOGO_LINUX_CLUT224.PPM

Rm-f linux-2.6.28.6/drivers/video/logo/logo_linux_clut224.c

2.2 Use Rhel's GIMP software to edit.

Rhel with GIMP. If not installed, you can choose from the CD below three package installation, personal recommended this mode, not too easy to fail.

Related Article

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.