Modify Android boot Screen

Source: Internet
Author: User
Tags imagemagick

Create boot logo
Method 1:
Drivers/Video/logo/logo_linux_clut224.ppm is the default startup logo image. Convert your logo image (in PNG format) to the PPM format, replace this file, delete the logo_linux_clut224.c fuse file, and re-compile it.
Specific Method: netpbm
# Pngtopnm logo_linux_clut224.png> logo_linux_clut224.pnm
# Pnmquant 224 logo_linux_clut224.pnm> logo_linux_clut224.pnm
# Pnmtoplainpnm logo_linux_clut224.pnm> logo_linux_clut224.ppm
Note: first convert PNG to PNM format, but the kernel logo only supports up to 224 colors. You need to convert the color to 224 colors, and finally convert PNM to ppm. The file name must be logo_linux_clut224.ppm.
Method 2:

Use the image editing tool gimp that comes with redhat9.0 (you can install it on other releases ).

1. Change the number of colors to 224 (select image-> mode-> index once in gimp. As shown in ).

2. Adjust the size: the width and height are both smaller than two pixels; otherwise, the image is not displayed.

3. Save it as ppm. In the displayed dialog box, select ASCII, copy it to the logo folder to replace the original file, and delete the logo_linux_clut224.c logo_linux_clut224.o file.

Finally, compile the kernel: (compiled through)


Bytes ----------------------------------------------------------------------------------------------------

 

 

Android boot animation consists of two parts:

Android text displayed at startup;

Android luminous animation.

The boot animation mentioned in this article is the first one. The text below begins!

1. Create an image of the current screen pixel (the default simulator is 320*480)
Use psto create a 320*480 image. Select "Save as the Web format" when saving the image. Then, in the pop-up window, select "png-24.pdf" as the pre-defined item, and save it as android_logo.png.

Note: It seems that only the png-24 is supported, the RLE file generated in other formats is not displayed normally, if you are interested, you can verify it again.

2. Convert the image to raw format
Use the convert command that comes with ImageMagick in Linux to convert the raw format. The command is:
Convert-depth 8 android_logo.png RGB: android_logo.raw

Note: The imgagemagick tool is installed in Ubuntu 10.04 by default. If the current system is not installed, run the following command to install it:
Sudo apt-Get install ImageMagick

3. convert raw format to RLE file
Need to use Android compiled rgb2565 tool, in the android/out/host/linux-x86/bin directory (Android is the current source code directory), the conversion command is as follows:
Rgb2565-RLE <android_logo.raw> initlogo. RLE

So far, the image to be displayed is ready, that is, the initlogo. RLE, note that the file name must be this. If you want to change the file name, you need to modify Android/system/CORE/init. macro in H:
# Define init_image_file "/initlogo. RLE"

========================================================== ========================================================== ================

Next we need to add initlogo. RLE to the android File System

4. Find the ramdisk. imgfile (Android/out/target/product/generic/ramdisk.img.pdf, change the file name to ramdisk.img.gz, and decompress it with the following command:
Gunzip ramdisk.img.gz
After decompression, you can obtain ramdisk. IMG. Someone may ask, How can I change the file name back? Otherwise, use file ramdisk. IMG to view the information:
Before decompression: ramdisk. IMG: gzip compressed data, from UNIX
Decompress: ramdisk. IMG: ASCII cpio archive (svr4 with no CRC)
After the question is passed, let's talk about things.

5. Use cpio to Extract files:
Create a temp directory:
Mkdir temp
CD temp
Cpio-I-f ../ramdisk. img

6. Export the file list:
Cpio-I-t-f ../ramdisk. img> List

Note: List is a text file that stores the ramdisk. IMG file structure. We need to add the initlogo. RLE line to this file. The modified file is as follows:
Data

Default. Prop

Dev

Init

Init. Goldfish. RC

Init. RC

Initlogo. RLE

Proc

Sbin

Sbin/adbd

Sys

System

7. Generate ramdisk. img
Cpio-o-h NEWC-O ramdisk. IMG <list

Note: The ramdisk. imgfile is generated based on the description of the list file.

8. Use ramdisk. IMG to overwrite ramdisk. IMG (Android-SDK-Windows/platforms/Android-2.1/images/ramdisk. IMG) in the SDK directory. You 'd better back up it first.

9. Start the simulator and you will be able to see our own boot interface.

 

 

Bytes ------------------------------------------------------------------------------------------------------------------

 

Boot Screen 3 (Android animation)
After compilation, an out directory is generated in the root directory of the android source code,
Modify framework-res.apk In the android \ out \ target \ product \ sdkdemo \ System \ frameworkdirectory
Open it in WinRAR format and replace the two images in assets \ images.

Boot screen 2 (Android)
1. Select a 320*480 resolution image.
2. Convert the graph to raw and use the advanced batch converter tool.
3, virtual machine Android \ out \ host \ linux-x86 \ bin directory to execute
./Rgb2565-RLE <android_logo.raw> initlogo. RLE
4. Place initlogo. RLE under Android \ out \ target \ product \ sdkdemo \ Root.
If it is not placed, it is displayed in the source code init. c init. C. Bak.
5. Make firmware
6. All resales

Boot Screen 1 (Linux penguin pattern)
1. Select a PNG Image and run the following command in Linux:
# Pngtopnm logo.png> logo_linux.pnm
# Pnmquant 224 logo_linux.pnm> logo_linux_clut224.pnm
# Pnmtoplainpnm logo_linux_clut224.pnm> logo_linux_clut224.ppm
Copy the generated ppm to the drivers \ video \ logo directory.
To modify the menu configuration, run make menuconfig in the kernel directory.
Enter Device Drivers
Enter graphics support
Enter bootop logo
Choose to add images to the standard 224-clor Linux logo.

 

 

 

How to create the U-boot logo

In U-boot with LCD display and LCD command line terminal, a logo is displayed in the upper left corner. If it is an Atmel chip, there will be an Atmel logo, samsung's logo is denx.

Some netizens sent emails saying they wanted to change the logo to their own company. If they were playing on their own, it would be nice to change it to their favorite logo. So today I have done an experiment and summarized the simple modification methods as follows:

 

I. Placement path of images

All the boot logos are placed under/tools/logos. You only need to replace the logo of your team.

For s3c2440, you just need to replace denx.bmp with the logo you want.

For the Atmel chip, it is said that the Atmel logo will be displayed, so replace that logo.

HoweverThe logo you replaced must be exactly the same as the original size and format.Otherwise, the U-boot instance will be shut down and restarted.

Ii. Image Size Standards
Different logos correspond to different sizes. 160*96 for S3C2440Resolution.
Iii. Image conversion script

Before creating an image, make sure that the image is installed on your Linux host.NetpbmToolkit. If it is Ubuntu, you can directly install it with the new version. If it is another release version, you can download the source code compilation on the netpbm homepage.

Cut the image you want into a jpg image of 160*96 and use the following script to process it:


#!/bin/sh
#install Netpbm first
    jpegtopnm $1 | ppmquant 31 | ppmtobmp -bpp 8 > $2


Usage: (Script Name) (name of the jpg image to be processed) (output file name)

Create boot logo
Method 1:
Drivers/Video/logo/logo_linux_clut224.ppm is the default startup logo image. Convert your logo image (in PNG format) to the PPM format, replace this file, delete the logo_linux_clut224.c fuse file, and re-compile it.
Specific Method: netpbm
# Pngtopnm logo_linux_clut224.png> logo_linux_clut224.pnm
# Pnmquant 224 logo_linux_clut224.pnm> logo_linux_clut224.pnm
# Pnmtoplainpnm logo_linux_clut224.pnm> logo_linux_clut224.ppm
Note: first convert PNG to PNM format, but the kernel logo only supports up to 224 colors. You need to convert the color to 224 colors, and finally convert PNM to ppm. The file name must be logo_linux_clut224.ppm.
Method 2:

Use the image editing tool gimp that comes with redhat9.0 (you can install it on other releases ).

1. Change the number of colors to 224 (select image-> mode-> index once in gimp. As shown in ).

2. Adjust the size: the width and height are both smaller than two pixels; otherwise, the image is not displayed.

3. Save it as ppm. In the displayed dialog box, select ASCII, copy it to the logo folder to replace the original file, and delete the logo_linux_clut224.c logo_linux_clut224.o file.

Finally, compile the kernel: (compiled through)


Bytes ----------------------------------------------------------------------------------------------------

 

 

Android boot animation consists of two parts:

Android text displayed at startup;

Android luminous animation.

The boot animation mentioned in this article is the first one. The text below begins!

1. Create an image of the current screen pixel (the default simulator is 320*480)
Use psto create a 320*480 image. Select "Save as the Web format" when saving the image. Then, in the pop-up window, select "png-24.pdf" as the pre-defined item, and save it as android_logo.png.

Note: It seems that only the png-24 is supported, the RLE file generated in other formats is not displayed normally, if you are interested, you can verify it again.

2. Convert the image to raw format
Use the convert command that comes with ImageMagick in Linux to convert the raw format. The command is:
Convert-depth 8 android_logo.png RGB: android_logo.raw

Note: The imgagemagick tool is installed in Ubuntu 10.04 by default. If the current system is not installed, run the following command to install it:
Sudo apt-Get install ImageMagick

3. convert raw format to RLE file
Need to use Android compiled rgb2565 tool, in the android/out/host/linux-x86/bin directory (Android is the current source code directory), the conversion command is as follows:
Rgb2565-RLE <android_logo.raw> initlogo. RLE

So far, the image to be displayed is ready, that is, the initlogo. RLE, note that the file name must be this. If you want to change the file name, you need to modify Android/system/CORE/init. macro in H:
# Define init_image_file "/initlogo. RLE"

========================================================== ========================================================== ================

Next we need to add initlogo. RLE to the android File System

4. Find the ramdisk. imgfile (Android/out/target/product/generic/ramdisk.img.pdf, change the file name to ramdisk.img.gz, and decompress it with the following command:
Gunzip ramdisk.img.gz
After decompression, you can obtain ramdisk. IMG. Someone may ask, How can I change the file name back? Otherwise, use file ramdisk. IMG to view the information:
Before decompression: ramdisk. IMG: gzip compressed data, from UNIX
Decompress: ramdisk. IMG: ASCII cpio archive (svr4 with no CRC)
After the question is passed, let's talk about things.

5. Use cpio to Extract files:
Create a temp directory:
Mkdir temp
CD temp
Cpio-I-f ../ramdisk. img

6. Export the file list:
Cpio-I-t-f ../ramdisk. img> List

Note: List is a text file that stores the ramdisk. IMG file structure. We need to add the initlogo. RLE line to this file. The modified file is as follows:
Data

Default. Prop

Dev

Init

Init. Goldfish. RC

Init. RC

Initlogo. RLE

Proc

Sbin

Sbin/adbd

Sys

System

7. Generate ramdisk. img
Cpio-o-h NEWC-O ramdisk. IMG <list

Note: The ramdisk. imgfile is generated based on the description of the list file.

8. Use ramdisk. IMG to overwrite ramdisk. IMG (Android-SDK-Windows/platforms/Android-2.1/images/ramdisk. IMG) in the SDK directory. You 'd better back up it first.

9. Start the simulator and you will be able to see our own boot interface.

 

 

Bytes ------------------------------------------------------------------------------------------------------------------

 

Boot Screen 3 (Android animation)
After compilation, an out directory is generated in the root directory of the android source code,
Modify framework-res.apk In the android \ out \ target \ product \ sdkdemo \ System \ frameworkdirectory
Open it in WinRAR format and replace the two images in assets \ images.

Boot screen 2 (Android)
1. Select a 320*480 resolution image.
2. Convert the graph to raw and use the advanced batch converter tool.
3, virtual machine Android \ out \ host \ linux-x86 \ bin directory to execute
./Rgb2565-RLE <android_logo.raw> initlogo. RLE
4. Place initlogo. RLE under Android \ out \ target \ product \ sdkdemo \ Root.
If it is not placed, it is displayed in the source code init. c init. C. Bak.
5. Make firmware
6. All resales

Boot Screen 1 (Linux penguin pattern)
1. Select a PNG Image and run the following command in Linux:
# Pngtopnm logo.png> logo_linux.pnm
# Pnmquant 224 logo_linux.pnm> logo_linux_clut224.pnm
# Pnmtoplainpnm logo_linux_clut224.pnm> logo_linux_clut224.ppm
Copy the generated ppm to the drivers \ video \ logo directory.
To modify the menu configuration, run make menuconfig in the kernel directory.
Enter Device Drivers
Enter graphics support
Enter bootop logo
Choose to add images to the standard 224-clor Linux logo.

 

 

 

How to create the U-boot logo

In U-boot with LCD display and LCD command line terminal, a logo is displayed in the upper left corner. If it is an Atmel chip, there will be an Atmel logo, samsung's logo is denx.

Some netizens sent emails saying they wanted to change the logo to their own company. If they were playing on their own, it would be nice to change it to their favorite logo. So today I have done an experiment and summarized the simple modification methods as follows:

 

I. Placement path of images

All the boot logos are placed under/tools/logos. You only need to replace the logo of your team.

For s3c2440, you just need to replace denx.bmp with the logo you want.

For the Atmel chip, it is said that the Atmel logo will be displayed, so replace that logo.

HoweverThe logo you replaced must be exactly the same as the original size and format.Otherwise, the U-boot instance will be shut down and restarted.

Ii. Image Size Standards
Different logos correspond to different sizes. 160*96 for S3C2440Resolution.
Iii. Image conversion script

Before creating an image, make sure that the image is installed on your Linux host.NetpbmToolkit. If it is Ubuntu, you can directly install it with the new version. If it is another release version, you can download the source code compilation on the netpbm homepage.

Cut the image you want into a jpg image of 160*96 and use the following script to process it:


#!/bin/sh
#install Netpbm first
    jpegtopnm $1 | ppmquant 31 | ppmtobmp -bpp 8 > $2


Usage: (Script Name) (name of the jpg image to be processed) (output file name)
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.