易截截图软件、单文件、免安装、纯绿色、仅160KB

基于Bootsplash嵌入式Linux启动画面定制

 
在基于linux的嵌入式仿真平台开发中,终端的美观和可定制是一个重要的问题。开机时滚动在屏幕上的字符串和单调的penguin图标,使嵌入式
设备仍然脱离不了pc的痕迹,linux控制台上单调的“白纸黑字”型表现方式可谓大煞风景。改造linux控制台使之美观可定制地展示开机信息和
logo成为基于嵌入式linux应用的一项重要工作。
开源项目bootsplash(http://www.bootsplash.org/
)
为解决这个问题提供了一个完美的解决方案。Boot-splash通过对内核打补丁来改变linux
framebuffer控制台对图形显示的支持。通过用户空间程序来定制启动logo、设定控制台背景和显隐启动时的字符信息,甚至可以支持开机画面的动
画显示。本文介绍利用splashboot打造启动画面的解决方案,涉及内核补丁、用户空间设置等方面的具体工作。
1 内核补丁和控制工具
1.1 支持bootsplash的内核补丁
针对不同的内核版本,bootsplash站点上给出了相应的内核补丁。我们所使用的内核版本为2.4.23,下载并给内核打上补丁:
cd /usr/src/linux
make mrproper
patch -Np1 -i ../bootsplash-3.0.7-2.4.23.diff
重新编译内核:
make menuconfig
选上如下的几个参数:
Code maturity level options --->
Prompt for development and/or incomplete code/drivers
Block devices ---> RAM disk support
Block devices ---> Initial RAM disk (initrd) support
Console drivers ---> Video mode selection support
Console drivers ---> Frame-buffer support --->
Support for frame buffer devices
VESA VGA graphics console
Use splash screen instead of boot logo
然后编译内核:
make dep && make bzImage
再把生成的内核拷贝到/boot下:
cp arch/i386/boot/bzImage /boot/linux-bootsplash
这样我们得到的新内核bzImage就是支持bootsplash的内核了,剩下的工作就是对bootsplash的定制了。
1.2 安装用户空间程序
下载bootsplash工具,解压安装:
tar –zxf bootsplash-3.0.7.tar.gz
cd  bootsplash-3.0.7/Utilities
make
cp fbresolution fbmngplay fbtruetype splash /sbin/
这样完成了对用户空间工具的安装,其实bootsplash分别利用如下的四个程序:splash程序是将需要在framebuffer下显示的图
片资源制作成启动ram盘的工具;fbmngplay读mng文件,播放动画;fbtruetype显示truetype字体;fbresoluti


相关文档:

【转】How Google uses Linux?

KS2009: How Google uses Linux
By Jonathan Corbet
October 21, 2009
LWN's 2009 Kernel Summit coverage
There may be no single organization which runs more Linux systems than Google. But the kernel development community knows little about how Google uses Linux and what sort of problems are ......

特大喜讯:昆山轩辕Linux开放实验室啦!!!

 昆山轩辕Linux开放实验室
简介
        为方便广大Linux软件开发者,轩辕高端IT培训中心于2009年10月设立了Linux开放实验室,轩辕Linux开放实验室提供了完整的Linux 软件开发环境,包括:C/C++(GCC、GDB)、make、Java、Python、Perl、C++ Boost、C++ ACE、C++ OTL、Oracle、M ......

Linux at命令定时关机

from: http://www.pcstu.com/system/Linux/20090804/65873.html
本文介绍下linux at命令的另一个作用:linux下使用linux at命令定时关机。
首先创建一个文件,写入:
#!/bin/sh
shutdown -h now
保存为power文件.之后
chmod +x power之后就能使用linux at命令定时关机了.
但是需要有root权限才能关机,
所以需 ......

Linux系统信息查看命令大全

系统
# uname -a               # 查看内核/操作系统/CPU信息
# head -n 1 /etc/issue   # 查看操作系统版本
# cat /proc/cpuinfo      # 查看CPU信息
# hostname      &nbs ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号