控制Linux嵌入式应用程序的启动屏幕 [英] controlling the boot screen on Linux embedded app

查看:328
本文介绍了控制Linux嵌入式应用程序的启动屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在嵌入式编程中,通常需要通过一些自定义的加载动画或启动屏幕从启动到正常运行来替换默认的Linux引导输出。



有没有办法在整个引导顺序中使用相同的进程?



如何解决?我猜想我们需要一个自制冲泡内核?



谢谢!

解决方案

解决方案通常沿着以下行:


  1. 可选地,在屏幕上放置静态图像引导加载程序代码(例如uboot,syslinux,redboot)。


  2. 使用Linux内核命令行quiet指令来抑制正常的内核加载输出引导启动时间)。


  3. 作为从init开始的第一个程序之一,在整个引导初始化序列中绘制您的splash动画,直到它完成了。


例如,Android手机通常会在引导加载程序中放置一些静态图像,然后运行surfaceflinger程序从启动init脚本绘制动画Android徽标,直到引导完成。


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.

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 (e.g. 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).

  3. As one of the very first programs started from init, draw your splash animation throughout the boot init sequence until it is finished.

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.

这篇关于控制Linux嵌入式应用程序的启动屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆