Logo IMX6

From ESS-WIKI
Jump to: navigation, search

Logo IMX6

Change Openembedded Logo Solution

1. Download psplash:git clone git://git.yoctoproject.org/psplash

2. Change Image to .c file and .h file  : ./make-image-header.sh xxlogo.h POKY ,then will be create Image file xxlogo.c , xxlogo.h

3. Chage xxlogo.c : #include "psplash-poky-img.h change #include "xxlogo.h"

4. Create autogen.sh shell script, will be create Makefile.

Example

 

 #!/bin/bash 
acloal 
autoheader
automake
autoconf

7. Run "make" and create the "psplash" "psplash-write".

8. Copy psplash and psplash-write to rootfs in /usr/bin/

9. If you will be remove "progress bar", please remark the code.

Remove psplash_draw_progress function define in psplash.c. In psplash.c.

/* Draw progress bar border */
/*
  psplash_fb_draw_image (fb,
                          (fb->width  - BAR_IMG_WIDTH)/2,
                          SPLIT_LINE_POS(fb),
                          BAR_IMG_WIDTH,
                          BAR_IMG_HEIGHT,
                          BAR_IMG_BYTES_PER_PIXEL,
                          BAR_IMG_ROWSTRIDE,
                          BAR_IMG_RLE_PIXEL_DATA);
*/

Change CPU CORE Logo Solution

  Step 1 : Modify config.

--- a/arch/arm/configs/imx_v7_adv_defconfig
+++ b/arch/arm/configs/imx_v7_adv_defconfig
@@ -386,7 +386,7 @@ CONFIG_LCD_CLASS_DEVICE=y
 CONFIG_LCD_L4F00242T03=y
 CONFIG_LCD_PLATFORM=y
 CONFIG_BACKLIGHT_PWM=y
-CONFIG_FRAMEBUFFER_CONSOLE=m
+CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
 CONFIG_LOGO=y
 CONFIG_SOUND=y

Step 2 : Modify logo_linux_clut224.ppm

$ pngtopnm mylogo.png > logo_linux_clut224.pnm 
$ pnmquant 224 logo_linux_clut224.pnm > logo_linux_clut224.pnm
$ pnmtoplainpnm logo_linux_clut224.pnm > logo_linux_clut224.ppm

Step 3 :Change logo_linux_clut224.ppm

$ mv ~/logo_linux_clut224.ppm drivers/video/logo/logo_linux_clut224.ppm

Step 4 :Build linux kernel

$ cd linux-imx6
$ make distclean
$ make imx_v7_adv_defconfig
$ make -j4 zImage
$ make -j4 imx6q-rom3420-a1.dtb

Step 5 :Change SDcard zImage & imx6q-rom3420-a1.dtb

Modify a single logo display.  

Note : combine logos(Multi core) for single logo 

 

--- a/drivers/video/fbdev/core/fbmem.c
+++ b/drivers/video/fbdev/core/fbmem.c

        y = fb_show_logo_line(info, rotate, fb_logo.logo, 0,
-                             num_online_cpus());
+                             1);
        y = fb_show_extra_logos(info, y, rotate);