Compile the kernel image for Splash Screen

Dear Community,
I wanted to change the boot image using Splash Screen.
I have followed the tutorial.

and have advanced till this step.

I am unable to understand the tutorial next steps.
Compile the kernel image according to the article quoted above.
Prepare an SD card and update your module as described in the articles below (according to the module of interest):

Flashing Embedded Linux to iMX7 Modules is not applicable for legacy scripts.
So i have to update using Toradex Easy Installer.

Kindly guide me through these steps.

The update procedure when using the Toradex Easy Installer are documented in the Build U-Boot and Linux Kernel from Source Code article in the Kernel Update section.

Dear Stefan,
Thanks for your reply. I am following the article.
I am currently facing some issues.

  1. Unable to connect to module through Ethernet by ssh command. alt text
  2. Not able to access root directory and its sub folder and files from host system.link text

Kindly guide me.

Hi

Please read the message. From beginning to end.

You likely flashed a new image to a module which changes the ‘host key’. So there is no evil attack on you.
Execute the proposed command to remove the conflicting host key from your local known_hosts file.

I cannot see anything wrong.

The ‘/’ directory is in texts usually referred to as ‘root directory’, ‘root directory’ does NOT mean a directory with the name root.

Max

Dear Max,

While including my toradex.bmp file for splash screen. I am getting the following error.

ezytech1@ezytech1-desktop:~/u-boot-toradex$ make -j3 2>&1 | tee build.log
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
tools/bmp_logo --gen-info ./tools/logos/toradex.bmp > include/bmp_logo.h
ERROR: Input file is not a bitmap
tools/Makefile:252: recipe for target 'include/bmp_logo.h' failed
make[1]: *** [include/bmp_logo.h] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1233: recipe for target 'tools' failed
make: *** [tools] Error 2

and when i removed that toradex.bmp from that location
/u-boot-toradex/tools/logos$

ezytech1@ezytech1-desktop:~/u-boot-toradex$ make -j3 2>&1 | tee build.log
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  CC      cmd/version.o
  CC      common/main.o
  LD      cmd/built-in.o
  CC      common/board_f.o
  LD      common/built-in.o
  CC      drivers/video/cfb_console.o
drivers/video/cfb_console.c:165:27: error: 'BMP_LOGO_HEIGHT' undeclared here (not in a function)
 #define VIDEO_LOGO_HEIGHT BMP_LOGO_HEIGHT
                           ^
drivers/video/cfb_console.c:247:32: note: in expansion of macro 'VIDEO_LOGO_HEIGHT'
 static int video_logo_height = VIDEO_LOGO_HEIGHT;
                                ^~~~~~~~~~~~~~~~~
drivers/video/cfb_console.c: In function 'plot_logo_or_black':
drivers/video/cfb_console.c:164:26: error: 'BMP_LOGO_WIDTH' undeclared (first use in this function)
 #define VIDEO_LOGO_WIDTH BMP_LOGO_WIDTH
                          ^
drivers/video/cfb_console.c:1736:30: note: in expansion of macro 'VIDEO_LOGO_WIDTH'
  int skip = VIDEO_LINE_LEN - VIDEO_LOGO_WIDTH * VIDEO_PIXEL_SIZE;
                              ^~~~~~~~~~~~~~~~
drivers/video/cfb_console.c:164:26: note: each undeclared identifier is reported only once for each function it appears in
 #define VIDEO_LOGO_WIDTH BMP_LOGO_WIDTH
                          ^
drivers/video/cfb_console.c:1736:30: note: in expansion of macro 'VIDEO_LOGO_WIDTH'
  int skip = VIDEO_LINE_LEN - VIDEO_LOGO_WIDTH * VIDEO_PIXEL_SIZE;
                              ^~~~~~~~~~~~~~~~
drivers/video/cfb_console.c:1757:11: error: 'bmp_logo_bitmap' undeclared (first use in this function)
  source = bmp_logo_bitmap;
           ^~~~~~~~~~~~~~~
drivers/video/cfb_console.c:1760:20: error: 'BMP_LOGO_COLORS' undeclared (first use in this function)
  logo_red = malloc(BMP_LOGO_COLORS);
                    ^~~~~~~~~~~~~~~
drivers/video/cfb_console.c:1765:18: error: 'bmp_logo_palette' undeclared (first use in this function)
   logo_red[i] = (bmp_logo_palette[i] & 0x0f00) >> 4;
                  ^~~~~~~~~~~~~~~~
drivers/video/cfb_console.c:166:31: error: 'BMP_LOGO_OFFSET' undeclared (first use in this function)
 #define VIDEO_LOGO_LUT_OFFSET BMP_LOGO_OFFSET
                               ^
drivers/video/cfb_console.c:1778:22: note: in expansion of macro 'VIDEO_LOGO_LUT_OFFSET'
    video_set_lut(i + VIDEO_LOGO_LUT_OFFSET,
                      ^~~~~~~~~~~~~~~~~~~~~
drivers/video/cfb_console.c: In function 'video_logo':
drivers/video/cfb_console.c:164:26: error: 'BMP_LOGO_WIDTH' undeclared (first use in this function)
 #define VIDEO_LOGO_WIDTH BMP_LOGO_WIDTH
                          ^
drivers/video/cfb_console.c:181:24: note: in expansion of macro 'VIDEO_LOGO_WIDTH'
 #define VIDEO_INFO_X  (VIDEO_LOGO_WIDTH)
                        ^~~~~~~~~~~~~~~~
drivers/video/cfb_console.c:1911:32: note: in expansion of macro 'VIDEO_INFO_X'
  space = (VIDEO_LINE_LEN / 2 - VIDEO_INFO_X) / VIDEO_FONT_WIDTH;
                                ^~~~~~~~~~~~
scripts/Makefile.build:280: recipe for target 'drivers/video/cfb_console.o' failed
make[2]: *** [drivers/video/cfb_console.o] Error 1
scripts/Makefile.build:425: recipe for target 'drivers/video' failed
make[1]: *** [drivers/video] Error 2
Makefile:1233: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes.  Stop.
ezytech1@ezytech1-desktop:~/u-boot-toradex$

The error is stated here:
ERROR: Input file is not a bitmap. What kind of image file did you use?

when i removed that toradex.bmp from that location /u-boot-toradex/tools/logos

Why did you delete this file? You have restore the original file from Toradex or replace with a proper one. This file must be proper bmp file as described here.

1 Like