这个我试验有问题确定你的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"