简体   繁体   English

在Linux嵌入式应用程序上控制启动屏幕

[英]controlling the boot screen on Linux embedded app

In embedded programming, it's often needed to replace the default Linux boot output by some custom 'loading' animation or splash screen from power-on to up-and-running. 在嵌入式编程中,通常需要通过一些自定义的“加载”动画或启动屏幕从开机到运行来替换默认的Linux启动输出​​。

What is the way to achieve this? 实现这个目标的方法是什么?

Is there a way to use the same 'process' throughout the whole boot sequence for that? 有没有办法在整个启动序列中使用相同的“进程”?

How can this be solved? 怎么解决这个问题? I'm guessing we need a home-brew kernel for that? 我猜我们需要一个家庭酿造内核吗?

Thanks! 谢谢!

The solution usually goes along the lines of: 解决方案通常遵循以下方针:

  1. Optionally, put a static image on the screen from the boot loader code (eg uboot, syslinux, redboot). (可选)在引导加载程序代码(例如uboot,syslinux,redboot)中将静态图像放在屏幕上。

  2. Using the Linux kernel command line "quiet" directive to suppress normal kernel load output (and speed up boot time while you're at it). 使用Linux内核命令行“quiet”指令来抑制正常的内核负载输出(并在您使用时加快启动时间)。

  3. As one of the very first programs started from init, draw your splash animation throughout the boot init sequence until it is finished. 作为从init启动的第一个程序之一,在整个启动初始化序列中绘制启动动画,直到完成为止。

For example, Android phones usually put some static image in the boot loader and then run the surfaceflinger program from the startup init scripts to draw the animated Android logo until the boot is finished. 例如,Android手机通常会在启动加载程序中放置一些静态图像,然后从启动初始化脚本运行surfaceflinger程序以绘制动画Android徽标,直到启动完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM