当前位置: 技术问答>linux和unix
怎么修改linux开机启动logo
来源: 互联网 发布时间:2017-05-27
本文导语: 我通过重新配置和编译内核,可以显示logo但是,但是只是一闪而过,没达到我的要求,我想要整个启动流程都显示公司logo。哪位大神知道改怎么做呢? 用的是arm ubuntu系统,烧写到SD卡中。现在可以可以显示logo,但...
我通过重新配置和编译内核,可以显示logo但是,但是只是一闪而过,没达到我的要求,我想要整个启动流程都显示公司logo。哪位大神知道改怎么做呢?
用的是arm ubuntu系统,烧写到SD卡中。现在可以可以显示logo,但是只是一闪而过。
大神们帮帮忙。
用的是arm ubuntu系统,烧写到SD卡中。现在可以可以显示logo,但是只是一闪而过。
大神们帮帮忙。
|
here is a link for changing the startup logo on a debian/ubuntu system, not sure if it applies on arm ubuntu.
http://sumanprasanna.wordpress.com/2012/12/11/how-to-change-your-boot-logo-in-linux-kernel/
http://sumanprasanna.wordpress.com/2012/12/11/how-to-change-your-boot-logo-in-linux-kernel/
|
楼上的文章在墙外,内容如下:
How to change linux penguin logo at splash screen:
————————————————–
Install GIMP: apt-get install gimp
1. Convert the .png (ensure 80×80 size) format to .ppm format
In GIMP,
a. File -> Open -> .png image
b. Image -> give X and Y pixel (click on resize).
2. apt-get install netpbm
pngtopnm /path/to/larry.png | ppmquant -fs 223 | pnmtoplainpnm > logo_larry_clut224.ppm
3. copy the created .ppm file into drivers/video/logo folder.
4. Add the entry in the Kconfig (drivers/video/logo/Kconfig)
config LOGO_LARRY_CLUT224 bool “Gentoo-ised 224-colour logo” depends on LOGO default
5. Add the code in logo.c (drivers/video/logo/logo.c)
extern const struct linux_logo logo_larry_clut224;
Add this to the section headed by “if (depth >= 8) {“:
ifdef CONFIG_LOGO_LARRY_CLUT224
/* Gentoo-ised logo */ logo = &logo_larry_clut224;
endif
6. Add an entry in the Makefile(drivers/video/logo/Makefile)
obj-$(CONFIG_LOGO_LARRY_CLUT224) += logo_larry_clut224.o
7. recompile the kernel and flash it.
Notes:
——
In linux versions 3.2 and above the line below is present in the logo.h header file (include/linux/linux_logo.h)
extern const struct linux_logo logo_larry_clut224;
Ref:
—-
http://en.gentoo-wiki.com/wiki/Linux_Logo_Hack
http://www.armadeus.com/wiki/index.php?title=Linux_Boot_Logo
http://www.stlinux.com/howto/splash-screen
http://www.denx.de/wiki/DULG/LinuxSplashScreen
http://www.mjmwired.net/kernel/Documentation/fb/fbcon.txt
Boot:
——
http://elinux.org/Boot_Time
How to change linux penguin logo at splash screen:
————————————————–
Install GIMP: apt-get install gimp
1. Convert the .png (ensure 80×80 size) format to .ppm format
In GIMP,
a. File -> Open -> .png image
b. Image -> give X and Y pixel (click on resize).
2. apt-get install netpbm
pngtopnm /path/to/larry.png | ppmquant -fs 223 | pnmtoplainpnm > logo_larry_clut224.ppm
3. copy the created .ppm file into drivers/video/logo folder.
4. Add the entry in the Kconfig (drivers/video/logo/Kconfig)
config LOGO_LARRY_CLUT224 bool “Gentoo-ised 224-colour logo” depends on LOGO default
5. Add the code in logo.c (drivers/video/logo/logo.c)
extern const struct linux_logo logo_larry_clut224;
Add this to the section headed by “if (depth >= 8) {“:
ifdef CONFIG_LOGO_LARRY_CLUT224
/* Gentoo-ised logo */ logo = &logo_larry_clut224;
endif
6. Add an entry in the Makefile(drivers/video/logo/Makefile)
obj-$(CONFIG_LOGO_LARRY_CLUT224) += logo_larry_clut224.o
7. recompile the kernel and flash it.
Notes:
——
In linux versions 3.2 and above the line below is present in the logo.h header file (include/linux/linux_logo.h)
extern const struct linux_logo logo_larry_clut224;
Ref:
—-
http://en.gentoo-wiki.com/wiki/Linux_Logo_Hack
http://www.armadeus.com/wiki/index.php?title=Linux_Boot_Logo
http://www.stlinux.com/howto/splash-screen
http://www.denx.de/wiki/DULG/LinuxSplashScreen
http://www.mjmwired.net/kernel/Documentation/fb/fbcon.txt
Boot:
——
http://elinux.org/Boot_Time