Chinaunix首页 | 论坛 | 博客
  • 博客访问: 640479
  • 博文数量: 197
  • 博客积分: 4858
  • 博客等级: 上校
  • 技术积分: 2162
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-06 22:46
文章分类

全部博文(197)

文章存档

2011年(30)

2010年(21)

2009年(25)

2008年(80)

2007年(41)

分类: BSD

2008-11-17 10:18:52

制作FreeBSD启动画面
这个我试验有问题

确定你的kernel配置中有

pseudo-devicesplash
optionsVESA# support for zhcon
然后在/etc/loader.conf中加入

代码:
splash_bmp_load="YES"# For Windows .bmp files or
splash_pcx_load="YES"# For ZSoft .PCX files (one or the other)
vesa_load="YES"# If the image is greater than 320x200
bitmap_load="YES"
bitmap_name="/boot/splash.bmp"# Name of the splash image file
#bitmap_name="/boot/splash.pcx"
等到重启后, 看到

Loading /boot/defaults/loader.conf
/kernel text=0x161db8 data=0x218ac+0x223fc syms=[0x4+0x23040+0x4+0x243e4]
/modules/splash_bmp.ko text=0x10f9 data=0xc8+0x66c syms=[0x4+0x420+0x4+0x230]
/modules/vesa.ko text=0x2330 data=0xea0+ox23c syms=[0x4+0x7a0+0x4+0x585]
...
Hit [Enter] to boot immediately, or any other key for command prompt.
按下回车就可以看到画面了. 假如出现以下错误

module_register_init: MOD_LOAD (splash_bmp, c02ee62c, 0>; error 19
一般来说是kernel中没有配置options VESA, 或者是图象大小不符合, 请使用8位的bmp或pcx, 图象大小只能是vidcontrol所支持的分辨率的大小.


另外一个方法

让freeBSD像windows一样用图象启动,编辑/boot/loader.conf
代码:
splash_bmp_load="YES"
vesa_load="YES"
bitmap_load="YES"
bitmap_name="/boot/logo.bmp"
(该bmp图象需为640*480,256色,非压缩)

玩个比较有趣的东西。。。
让freeBSD像windows一样用图象启动,编辑/boot/loader.conf
代码:
splash_bmp_load="YES"
vesa_load="YES"
bitmap_load="YES"
bitmap_name="/boot/logo.bmp"

splash_pcx_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash.pcx"

 

 

 

转自:

阅读(1047) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~