This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing the TI logo during Kernel load!

Hi,

I would like to change the TI logo displayed during the kernel booting.

Can someone help me on this?

Regards,

Hemanth

  • http://www.articleworld.org/index.php/How_to_change_the_Linux_penguin_boot_logo

  • Hi,

    I am facing "command not found" error after giving the mentioned command from "./scripts" path. Please help!

    I would also like to change the "TI logo" displayed after the "INIT kernel 2.86 booting " message. Please help!

    Regards,

    Hemanth

  • Hello, Hemanth!

    Please describe your steps and where you have error.

  • I run the following command:-

    ./scripts/pnmtologo -t mono -n logo_linux_mono -o drivers/video/logo/logo_linux_mono.c drivers/video/logo/logo_linux_mono.pbm
    And the error is "pnmtologo: command not found".
    
    
    Basically there are two pnmtologo files. One is pnmtologo.c file and other is pnmtologo file.
    
    
    I am not sure what is missing!! 
  • Hello, Hemanth!

    Where you run this command?
    I change work directory on <linux sources>/scripts and...
    $ ./pnmtologo -?

    Usage: ./pnmtologo [options] <filename>

    Valid options:
        -h          : display this usage information
        -n <name>   : specify logo name (default: linux_logo)
        -o <output> : output to file <output> instead of stdout
        -t <type>   : specify logo type, one of
                          mono    : monochrome black/white
                          vga16   : 16 colors VGA text palette
                          clut224 : 224 colors (default)
                          gray256 : 256 levels grayscale

  • Hi,

    Thanks a lot for your help!

    I could able to generate the image array file using ./pnmtologo as per your instructions.

    ./pnmtologo-o logo_softhard_cult224.c "/usr/local/ti-sdk-am335x-evm/board-support/linux-3.2-calixto/drivers/video/logo/logo_softhard_cult224.ppm"

    Now when i perform 'make uImage' I don't see the newly generated logo C file (logo_softhard_cult224.c) being complied. Anything am I missing. The /Driver/Video/logo folder has the newly created C file.

      CC      drivers/video/display/display-sysfs.o
      LD      drivers/video/display/display.o
      LD      drivers/video/display/built-in.o
      CC      drivers/video/logo/logo.o
      LOGO    drivers/video/logo/logo_linux_mono.c
      CC      drivers/video/logo/logo_linux_mono.o
      LOGO    drivers/video/logo/logo_linux_vga16.c
      CC      drivers/video/logo/logo_linux_vga16.o
      LOGO    drivers/video/logo/logo_linux_clut224.c
      CC      drivers/video/logo/logo_linux_clut224.o
      LD      drivers/video/logo/built-in.o
      LOGO    drivers/video/logo/logo_superh_mono.c
      LOGO    drivers/video/logo/clut_vga16.c
      LOGO    drivers/video/logo/logo_blackfin_vga16.c
      LOGO    drivers/video/logo/logo_superh_vga16.c
      LOGO    drivers/video/logo/logo_blackfin_clut224.c
      LOGO    drivers/video/logo/logo_dec_clut224.c
      LOGO    drivers/video/logo/logo_m32r_clut224.c
      LOGO    drivers/video/logo/logo_mac_clut224.c
      LOGO    drivers/video/logo/logo_parisc_clut224.c
      LOGO    drivers/video/logo/logo_sgi_clut224.c
      LOGO    drivers/video/logo/logo_spe_clut224.c
      LOGO    drivers/video/logo/logo_sun_clut224.c
      LOGO    drivers/video/logo/logo_superh_clut224.c
      LD      drivers/video/omap2/displays/built-in.o

  • Hemanth, because you create new file you should modify Makefile in drivers/video/logo for build it.

  • I have already modified the makefile in "/driver/video/logo" folder as bellow:-

    Please look at the 4th line in the below file:- Am I missing something? Please provide me more details about the makefile. I am very new to Linux!!!

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

    # Makefile for the Linux logos

    obj-$(CONFIG_LOGO)            += logo.o
    obj-$(CONFIG_LOGO_LINUX_MONO)        += logo_linux_mono.o
    obj-$(CONFIG_LOGO_LINUX_VGA16)        += logo_linux_vga16.o
    obj-$(CONFIG_LOGO_LINUX_CLUT224)    += logo_linux_clut224.o
    obj-$(CONFIG_LOGO_SOFTHARD_CULT224)    += logo_softhard_cult224.o
    obj-$(CONFIG_LOGO_BLACKFIN_CLUT224)    += logo_blackfin_clut224.o
    obj-$(CONFIG_LOGO_BLACKFIN_VGA16)    += logo_blackfin_vga16.o
    obj-$(CONFIG_LOGO_DEC_CLUT224)        += logo_dec_clut224.o
    obj-$(CONFIG_LOGO_MAC_CLUT224)        += logo_mac_clut224.o
    obj-$(CONFIG_LOGO_PARISC_CLUT224)    += logo_parisc_clut224.o
    obj-$(CONFIG_LOGO_SGI_CLUT224)        += logo_sgi_clut224.o
    obj-$(CONFIG_LOGO_SUN_CLUT224)        += logo_sun_clut224.o
    obj-$(CONFIG_LOGO_SUPERH_MONO)        += logo_superh_mono.o
    obj-$(CONFIG_LOGO_SUPERH_VGA16)        += logo_superh_vga16.o
    obj-$(CONFIG_LOGO_SUPERH_CLUT224)    += logo_superh_clut224.o
    obj-$(CONFIG_LOGO_M32R_CLUT224)        += logo_m32r_clut224.o
    obj-$(CONFIG_SPU_BASE)            += logo_spe_clut224.o


    # How to generate logo's

    # Use logo-cfiles to retrieve list of .c files to be built
    logo-cfiles = $(notdir $(patsubst %.$(2), %.c, \
                  $(wildcard $(srctree)/$(src)/*$(1).$(2))))


    # Mono logos
    extra-y += $(call logo-cfiles,_mono,pbm)

    # VGA16 logos
    extra-y += $(call logo-cfiles,_vga16,ppm)

    # 224 Logos
    extra-y += $(call logo-cfiles,_clut224,ppm)

    # Gray 256
    extra-y += $(call logo-cfiles,_gray256,pgm)

    pnmtologo := scripts/pnmtologo

    # Create commands like "pnmtologo -t mono -n logo_mac_mono -o ..."
    quiet_cmd_logo = LOGO    $@
        cmd_logo = $(pnmtologo) \
                -t $(patsubst $*_%,%,$(notdir $(basename $<))) \
                -n $(notdir $(basename $<)) -o $@ $<

    $(obj)/%_mono.c: $(src)/%_mono.pbm $(pnmtologo) FORCE
        $(call if_changed,logo)

    $(obj)/%_vga16.c: $(src)/%_vga16.ppm $(pnmtologo) FORCE
        $(call if_changed,logo)

    $(obj)/%_clut224.c: $(src)/%_clut224.ppm $(pnmtologo) FORCE
        $(call if_changed,logo)

    $(obj)/%_gray256.c: $(src)/%_gray256.pgm $(pnmtologo) FORCE
        $(call if_changed,logo)

    # Files generated that shall be removed upon make clean
    clean-files := *.o *_mono.c *_vga16.c *_clut224.c *_gray256.c

    ..........................................................................................................................

  • That your file will be compiled you should define CONFIG_LOGO_LINUX_CLUT224, you can write it in .config manually or via menuconfig. For configure this via menuconfig you can modify drivers/video/logo/Kconfig.

  • Hi, Can you please elaborate? How to write to .config? Is it some file?

    I had already added "LOGO_SOFTHARD_CULT224" in the Kconfig file as below, still the file was not compiling. Please help!

    Please look at the last entry in the file. I just copied as the existing entries.

    ...........................................

    #
    # Logo configuration
    #

    menuconfig LOGO
        bool "Bootup logo"
        depends on FB || SGI_NEWPORT_CONSOLE
        help
          Enable and select frame buffer bootup logos.

    if LOGO

    config FB_LOGO_EXTRA
        bool
        depends on FB=y
        default y if SPU_BASE

    config LOGO_LINUX_MONO
        bool "Standard black and white Linux logo"
        default y

    config LOGO_LINUX_VGA16
        bool "Standard 16-color Linux logo"
        default y

    config LOGO_LINUX_CLUT224
        bool "Standard 224-color Linux logo"
        default y

    config LOGO_BLACKFIN_VGA16
        bool "16-colour Blackfin Processor Linux logo"
        depends on BLACKFIN
        default y

    config LOGO_BLACKFIN_CLUT224
        bool "224-colour Blackfin Processor Linux logo"
        depends on BLACKFIN
        default y

    config LOGO_DEC_CLUT224
        bool "224-color Digital Equipment Corporation Linux logo"
        depends on MACH_DECSTATION || ALPHA
        default y

    config LOGO_MAC_CLUT224
        bool "224-color Macintosh Linux logo"
        depends on MAC
        default y

    config LOGO_PARISC_CLUT224
        bool "224-color PA-RISC Linux logo"
        depends on PARISC
        default y

    config LOGO_SGI_CLUT224
        bool "224-color SGI Linux logo"
        depends on SGI_IP22 || SGI_IP27 || SGI_IP32 || X86_VISWS
        default y

    config LOGO_SUN_CLUT224
        bool "224-color Sun Linux logo"
        depends on SPARC
        default y

    config LOGO_SUPERH_MONO
        bool "Black and white SuperH Linux logo"
        depends on SUPERH
        default y

    config LOGO_SUPERH_VGA16
        bool "16-color SuperH Linux logo"
        depends on SUPERH
        default y

    config LOGO_SUPERH_CLUT224
        bool "224-color SuperH Linux logo"
        depends on SUPERH
        default y

    config LOGO_M32R_CLUT224
        bool "224-color M32R Linux logo"
        depends on M32R
        default y
    config LOGO_SOFTHARD_CLUT224
        bool "224-color SoftHard Linux logo"
        depends on SOFTHARD
        default y

    endif # LOGO

  • i found the .config file.

    It is also added in that file as below:- Still the file is not getting compiled.

    CONFIG_LOGO=y
    CONFIG_LOGO_LINUX_MONO=y
    CONFIG_LOGO_LINUX_VGA16=y
    CONFIG_LOGO_LINUX_CLUT224=y
    CONFIG_LOGO_SOFTHARD_CLUT224=y
    CONFIG_SOUND=y

    Regards,

    Hemanth

  • Hi,

    I could able to run the menuconfig and the "Bootup logo" section in the Graphics Drivers shows only 3 options as below:-

     --- Bootup logo                                                                                             │ │  
      │ │                                      [*]   Standard black and white Linux logo                                                                   │ │  
      │ │                                      [*]   Standard 16-color Linux logo                                                                          │ │  
      │ │                                      [*]   Standard 224-color Linux logo                                                                         │ │  
      │ │                                                                          

    Why my new logo is not getting listed?

    Regards,
    Hemanth

  • Hemanth Tenkodu said:
    It is also added in that file as below:- Still the file is not getting compiled.

    This is a strange, I think you solve problem after clean and compile again.

  • No,

    Everytime I do make clean and make uImage. Still its not working out!!

    Any more information you need to help me on this issue? Please guide me to make it work!

  • Hemanth, please look...

    In you Kconfig:
    config LOGO_SOFTHARD_CLUT224
    bool "224-color SoftHard Linux logo"
    depends on SOFTHARD
    default y

    In you configuration:
    CONFIG_LOGO=y
    CONFIG_LOGO_LINUX_MONO=y
    CONFIG_LOGO_LINUX_VGA16=y
    CONFIG_LOGO_LINUX_CLUT224=y
    CONFIG_LOGO_SOFTHARD_CLUT224=y

    You logo depands on SOFTHARD, but I not see CONFIG_SOFTHARD in your configuration.

  • Hi,

    You are right, now i am able to compile the image file.

    Thanks a lot for your help!!

    Now please guide me about the splash screen. How can I change TI logo to my custom logo?

    I looked at few posts at E2E, but did not help much. The compilation steps are not clear.

    Please help!

  • Finally i could able to display our company logo instead of the Linux logo. Thanks a lot for your help!

    1. Is it possible to align the logo to the center of the screen?

    2. Now I would like to change the splash screen logo to our company logo. Please provide help!

    Regards,
    Hemanth 

  • Hello, Hemanth!

    1. I see only one way - modify function.

    2. It depends on your system, I not use splash screen on my system (U-Boot and Busybox).

  • Hi,

    Please elaborate, I am very new to linux.

    Regards,

    Hemanth

  • Hi,

    Can seone help me to change the linux loadimg splash screen.

    Regards,

    Hemanth

  • Hi Hemanth ,

    I can replace the penguine logo with my company logo successfully . But now it is in the left side top corner of the screen .. How can i make it to displayed at center of the screen..?

    Thanks for the great help

    Regards,

    Vignesh

  • Dear Hemanth and Vignesh ,

                                  I found u both can able to show your logo on your kit.  I am using AM335x series about sdk it is ti-sdk-05.07 .

    from post on this forum i have downloaded psplash-0.1 and tried to execute make-image-header.sh with image file;

      eg:   user@ubuntu/in/psplash/folder$# sudo ./make-image-header.sh [My_image_name].bmp HAND  

    I have executed this command to create [My_image_name].img.h file but there is some error ::

    ./make-image-header.sh: 4: ./make-image-header.sh: gdk-pixbuf-csource: not found

    what to do next ;

    or if there is other way apart from this pls mention it

    i have gone through related post and individually i have posted but no one is replying so any one pls reply;

    Praveen