Replacing the Linux logo with your own Logo - Sarath

Sarath

  • Embedded
  • Linux
  • Android
  • OpenSource

Post Top Ad

Tuesday 1 August 2017

Replacing the Linux logo with your own Logo

1 Create your own logo file



Create your logo in a .png format (logo.png), and run the following to convert it to a 224 colors PPM formatted image file named logo_linux_clut224.ppm :



 

2 Convert your logo file to PPM format


You needed to install netpbm and after that execute this steps:



$ sudo apt-get install netpbm





once you installed, follow below steps,



sarathkumar@Sarathkumar-RND:~/yocto_kernel_BBB/logo$ convert logo.png temp.ppm



sarathkumar@Sarathkumar-RND:~/yocto_kernel_BBB/logo$ ppmquant 224 temp.ppm > 

temp1.ppm 
ppmquant: making histogram...
ppmquant: 4251 colors found
ppmquant: choosing 224 colors...
ppmquant: mapping image to new colors...

sarathkumar@Sarathkumar-RND:~/yocto_kernel_BBB/logo$ pnmnoraw temp1.ppm > logo_linux_clut224.ppm



Steps:

convert logo.png temp.ppm
ppmquant 224 temp.ppm > temp1.ppm
pnmnoraw temp1.ppm > logo_linux_clut224.ppm 




Your own logo ready now. logo_linux_clut224.ppm is replacing exiting Linux penguin logo.


3 Replace the default logo file in the Linux source



Using the Linux source code directly

Follow the "Build Linux from source code" guide to get the Linux kernel source tree.

Copy your logo_linux_clut224.ppm file to {kernel_source}/drivers/video/logo/logo_linux_clut224.ppm overwriting the original logo.

Configure your kernel and enable the default logo instead of the your logo: Device Drivers -> Graphics support -> Bootup logo -> Standard 224-color Linux logo (Symbol: LOGO_LINUX_CLUT224)

Now you can build the kernel source and try to boot your kernel with newly compiled image with your own logo.




------------------------------------------------------------------------------------------------------------------------



If you want to create a different configuration for your own logo rather than overwriting the default one,  

follow below steps,

1.Edit : {kernel_source}/drivers/video/logo/Kconfig




config LOGO_CUSTOM_CLUT224           
        bool  "224-color Variscite Linux logo"             
        default y


/*  add above three lines before endif # LOGO of the file   */

2. Edit : {kernel_source}/drivers/video/logo/Makefile

obj-$(CONFIG_LOGO_SUPERH_CLUT224) += logo_superh_clut224.o
            obj-$(CONFIG_LOGO_CUSTOM_CLUT224) += logo_custom_clut224.o
obj-$(CONFIG_LOGO_M32R_CLUT224)+= logo_m32r_clut224.o
/*  insert the above green color line between those two lines of this file   */


3. Edit : {kernel_source}/drivers/video/logo/logo.c



#ifdef CONFIG_LOGO_SUPERH_CLUT224

/* SuperH Linux logo */

logo = &logo_superh_clut224;

#endif
 #ifdef CONFIG_LOGO_CUSTOM_CLUT224   
/* Custom Linux logo */   
logo = &logo_custom_clut224; 
#endif
#ifdef CONFIG_LOGO_M32R_CLUT224
/* M32R Linux logo */
logo = &logo_m32r_clut224;
#endif

/*  insert the above green color lines  in-between those           colour section of t, this file   */


4. Edit : {kernel_source}/include/linux/linux_logo.h

extern const struct linux_logo logo_spe_clut224;

           extern const struct linux_logo logo_custome_clut224;


/*  insert the above green color line below that         colour  lines of this file   */



5. Rename the Logo file  :

      rename the newly create logo file name from logo_linux_clut224.ppm  to   logo_custom_clut224.ppm

Configure your kernel and enable the your custom logo instead of the Linux logo: Device Drivers -> Graphics support -> Bootup logo -> Standard 224-color Linux logo (Symbol: LOGO_CUSTOM_CLUT224).




3 comments:

  1. "I wish to take this opportunity to complement your web site."
    Custom Logo

    ReplyDelete
  2. Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! logowiki.net

    ReplyDelete
  3. Hello.
    Are you looking for an amazing logo design for your business with 50% off I expect You will be impressed with us.Logo Designers

    ReplyDelete