Modify the Linux kernel startup Image

Source: Internet
Author: User

This article describes how to modify the Linux kernel Boot Image instead of uboot.
 
The startup image of uboot is very difficult. It is often used to modify the LCD driver code to add image data processing. For Linux kernel, you just need to modify the image in the driver.
 
The path for starting the image in the kernel is under this directory. You can find it by yourself: linuxsrc/drivers/video/logo
 
If you want to modify the image, the method is as follows:
 
1: first install netpdm, which is a graphical processing tool that can be converted between several graphic formats.
 
How can I install this? Baidu, Google, and Ubuntu are usually the following:
 
# Sudo apt-get install netpdm
 
Fedora is often used in the following scenarios:
 
# Yum-y install netpdm
 
2: Prepare a png image. If not, use GIMP to convert the format. What we need is the png format;
 
3: After the image is ready, for example, utulinux_logo.png, we can execute the following commands to create the background image:
 
Convert a png Image to pnm
 
# Pngtopnm utulinux_logo.png> utulinux_logo.pnm
 
Then, set the pnm image color Quantity to 224.
 
# Pnmquant 224 utulinux_logo.pnm> utulinux_logo_224.pnm
 
Finally, convert the pnm image to the ppm we need.
 
# Pnmtoplainpnm utulinux_logo_224.pnm> utulinux_logo_224.ppm
 
4: replace utulinux_logo_224.ppm with the image corresponding to linuxsrc/drivers/video/logo.
 
The specific LOGO name may be different. You can try to open the source code directory (/drivers/video/logo)
 
5: Add the following in the kernel Compilation:
 
Logo full screen
 
In the configuration, remove Select compiled-in fonts from the Console drivers-> Frame-buffer support->.
 
In this way, the compiled img is burned to the Development Board or corresponding computer, and the custom image is displayed after startup.

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.