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.