Difference between revisions of "Linux Boot Logo"
From ArmadeusWiki
(→Links) |
(makes it apf27 compatible) |
||
Line 1: | Line 1: | ||
On this page we will explain you how to change the Boot Logo/Screen of Linux. | On this page we will explain you how to change the Boot Logo/Screen of Linux. | ||
− | By default the following screen is displayed on | + | By default the following screen is displayed on your LCD:<br><br> |
[[Image:Default_Boot.png]] | [[Image:Default_Boot.png]] | ||
Line 8: | Line 8: | ||
# save it in '''PPM RAW''' file format, let's say ''my_boot_logo.ppm'' | # save it in '''PPM RAW''' file format, let's say ''my_boot_logo.ppm'' | ||
# install Netpbm package: <pre>$ sudo apt-get install netpbm </pre> | # install Netpbm package: <pre>$ sudo apt-get install netpbm </pre> | ||
− | # reduce the number of colors in your image to 224: <pre> $ ppmquant 224 my_boot_logo.ppm > my_boot_logo_224.ppm</pre> | + | # reduce the number of colors in your image to 224: <pre class="host">$ ppmquant 224 my_boot_logo.ppm > my_boot_logo_224.ppm</pre> |
− | # convert it to PPM ASCII format: <pre> $ pnmnoraw my_boot_logo_224.ppm > my_boot_logo_ascii_224.ppm</pre> | + | # convert it to PPM ASCII format: <pre class="host">$ pnmnoraw my_boot_logo_224.ppm > my_boot_logo_ascii_224.ppm</pre> |
− | # copy | + | # get the armadeus envt variables: <pre class="host">$ make shell_env && source armadeus_env.sh</pre> |
− | # Linux will automatically convert your .ppm to a .c file after you have added it to the build system | + | # copy the PPM to ''$ARMADEUS_LINUX_DIR/drivers/video/logo/'' directory '''with a name ending with _clut224.ppm''': <pre>$ cp my_boot_logo_ascii_224.ppm $ARMADEUS_LINUX_DIR/drivers/video/logo/logo_custom_clut224.ppm</pre> |
+ | # Linux will automatically convert your .ppm to a .c file, after you have added it to the build system, using the ''$ARMADEUS_LINUX_DIR/scripts/pnmtologo'' script. This is the purpose of the next stage. | ||
===Add your file to Linux build system=== | ===Add your file to Linux build system=== | ||
− | # If you have overwritten '' | + | # If you have overwritten ''$ARMADEUS_LINUX_DIR/drivers/video/logo/logo_armadeus_clut224.ppm'' with your own logo at the previous stage, then you can jump to [[#Recompile_.26_install_kernel|the following stage]]; otherwise: |
− | # Edit '' | + | # Edit ''$ARMADEUS_LINUX_DIR/drivers/video/logo/Makefile'' |
# Add it your logo file name at line 16: <pre> obj-$(CONFIG_LOGO_ARMADEUS_CLUT224) += logo_custom_clut224.o</pre> | # Add it your logo file name at line 16: <pre> obj-$(CONFIG_LOGO_ARMADEUS_CLUT224) += logo_custom_clut224.o</pre> | ||
− | # Edit '' | + | # Edit ''$ARMADEUS_LINUX_DIR/drivers/video/logo/logo.c'' |
# Add it your logo C struct name at line 36: <source lang="C">extern const struct linux_logo logo_custom_clut224;</source> | # Add it your logo C struct name at line 36: <source lang="C">extern const struct linux_logo logo_custom_clut224;</source> | ||
# Add it your logo C struct name at line 110: | # Add it your logo C struct name at line 110: |
Revision as of 07:52, 2 July 2009
On this page we will explain you how to change the Boot Logo/Screen of Linux.
By default the following screen is displayed on your LCD:
Contents
Create an image to suitable format (C include file)
- create a new image fitting the size of your LCD (320x240 or 480x272), with The Gimp (for example).
- save it in PPM RAW file format, let's say my_boot_logo.ppm
- install Netpbm package:
$ sudo apt-get install netpbm
- reduce the number of colors in your image to 224:
$ ppmquant 224 my_boot_logo.ppm > my_boot_logo_224.ppm
- convert it to PPM ASCII format:
$ pnmnoraw my_boot_logo_224.ppm > my_boot_logo_ascii_224.ppm
- get the armadeus envt variables:
$ make shell_env && source armadeus_env.sh
- copy the PPM to $ARMADEUS_LINUX_DIR/drivers/video/logo/ directory with a name ending with _clut224.ppm:
$ cp my_boot_logo_ascii_224.ppm $ARMADEUS_LINUX_DIR/drivers/video/logo/logo_custom_clut224.ppm
- Linux will automatically convert your .ppm to a .c file, after you have added it to the build system, using the $ARMADEUS_LINUX_DIR/scripts/pnmtologo script. This is the purpose of the next stage.
Add your file to Linux build system
- If you have overwritten $ARMADEUS_LINUX_DIR/drivers/video/logo/logo_armadeus_clut224.ppm with your own logo at the previous stage, then you can jump to the following stage; otherwise:
- Edit $ARMADEUS_LINUX_DIR/drivers/video/logo/Makefile
- Add it your logo file name at line 16:
obj-$(CONFIG_LOGO_ARMADEUS_CLUT224) += logo_custom_clut224.o
- Edit $ARMADEUS_LINUX_DIR/drivers/video/logo/logo.c
- Add it your logo C struct name at line 36:
extern const struct linux_logo logo_custom_clut224;
- Add it your logo C struct name at line 110:
#ifdef CONFIG_LOGO_ARMADEUS_CLUT224 <br><br>
/* Armadeus Linux logo */
logo = &logo_custom_clut224;
#endif
Recompile & install kernel
- Then recompile your kernel:
$ make linux
and install it on your board.
- Restart your board and you should see your image:
Remove Login from framebuffer terminal
- On your target, edit /etc/inittab
- Comment line 28:
#tty1::respawn:/sbin/getty 38400 tty1
- save it and restart your system