Create a logo under Linux and display it on the development board

Publisher:自由思考Latest update time:2024-11-07 Source: cnblogsKeywords:Linux Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

I am using the OK6410 development board, which comes with two kernels (2.6.32 and 3.0.1 have been tested)

First, let’s talk about how to make a logo:

Linux Logo Maker: LogoMaker.tgz 4.7MB http://www.arm9.com.cn/downloads.htm
LogoMakers allows you to easily create Linux logo files, it is developed and used based on the Fedora 9 platform. Its usage is very simple, just open a graphic file (Jpeg, bmp or png format), and then click the convert button; it will fix the output file name: logo_linux_clut224.ppm, the file is generally located in the kernel source code directory kernel-src/drivers/video/logo, after replacing it, recompile the kernel and you can see your favorite Linux logo.

Or you can use software such as PS to make your own Logo, or save the existing .jpg image as xxx.png format through PS or Meitu Xiuxiu, and then copy xxx.png to a directory in the virtual machine Linux through samba, and then run the following commands in sequence:

[root@localhost home]# pngtopnm xxx.png > xxx.pnm
[root@localhost home]# pnmquant 224 xxx.pnm > xxx224.pnm
[root@localhost home]# pnmtoplainpnm xxx224.pnm > xxx224.ppm

If it is in .bmp format, use the following statement:

[root@localhost home]# bmptoppm xxx.bmp > xxx.ppm //Generate ppm
[root@localhost home]# ppmquant 224 xxx.ppm > xxxx.ppm //Convert to 224 color
[root@localhost home]# pnmnoraw xxxx.ppm > xxx224.ppm //Convert to ascii format

Then

[root@localhost home]# chmod 755 xxx224.ppm

[root@localhost home]# mv xxx224.ppm logo_linux_clut224.ppm (the red font may vary depending on the development board, you can check /drivers/video/logo/ in the kernel directory)

[root@localhost home]# cp logo_linux_clut224.ppm /kernel directory../drivers/video/logo/ and overwrite the original file

If the prompt prompts that the command is not found, install these tools first: pngtopnm, pnmquant, pnmtoplainpnm. The specific method is available on Baidu, so I will not repeat it here.

Now the logo has been created successfully. The next step is to compile the kernel to support the logo display:

Enter the kernel directory and make menuconfig:

Device Drivers -->
Graphics support -->
[*]Bootup logo

If the kernel version is earlier than 2.6.29, then:

Device Drivers -->
Graphics support -->
Logo configuration--->
[*] Bootup logo

Then make uImage ARCH=arm CROSS_COMPILE=arm-linux-

cp arch/arm/boot/uImage /tftpboot/

Restart the development board, mount the root file system through nfs, and you can see the logo you made!

Note: The .png image you make should not be too large, otherwise it will not be displayed. Generally, a dozen KB is enough. The following picture is my own logo (PS is not very good T_T):


Keywords:Linux Reference address:Create a logo under Linux and display it on the development board

Previous article:How to change the position and size of the video playback interface when porting mplayer to the ok6410 development board
Next article:Create a yaffs2 file system and port it to the ok6410 development board

Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号