[patch] - new bbsplash applet

Michele Sanges michele.sanges at otomelara.it
Fri Feb 8 10:41:08 UTC 2008


Hello everybody, 

here is a patch for busybox-1.9.0 tarball, that adds my implementation
of an utility that shows a splash image and a progress bar on
framebuffer device; it can be used during the boot phase of an embedded
device. I named it 'bbsplash'.

It consists of four files, 'bbsplash' and 'framebuffer' (.c and .h),
that I added in miscutils directory. If this is not the appropriate
place, fell free to move them (I wanted to put them into a subdirectory
of miscutil, but I was unable to compile). 


Usage of bbsplash:
* reboot the system, passing to the kernel the options 'vga=xxx' in
order to enable the framebuffer at the appropriate resolution, and
'bbsplash=on'. This one is useful when you start the applet in the
initramdisk and, for some reasons, you want disable it.

* make the directory '/etc/bbsplash' and put in it the file
'bbsplash.ini' and your splash image in .ppm format. Configure the
applet by editing the .ini file.

* when started, the applet daemonize it, make a fifo
('/dev/bbsplash_fifo') and a log file ('/dev/bbsplash_log').
- it is possible communicate with the daemon sending the following
messages to the fifo:
- the percentage of the boot process
- the 'exit' command in order to kill the daemon

* you can test this applet by means the script 'test.sh'.

Regards.
Michele Sanges


-------------- next part --------------
# debug messages: ON or OFF
DEBUG_MESSAGES=ON
# splash theme
SPLASH_THEME=splash.ppm
# progress bar width
BAR_WIDTH=300
# progress bar height
BAR_HEIGHT=20
# progress bar orizzontal position
BAR_POS_X=170
# progress bar vertical position 
BAR_POS_Y=300
# progress bar colour red component
BAR_R_COL=80
# progress bar colour green component
BAR_G_COL=80
# progress bar colour blue component
BAR_B_COL=130
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/x-shellscript
Size: 418 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080208/bda670af/attachment-0004.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bbsplash.diff
Type: text/x-patch
Size: 21137 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080208/bda670af/attachment-0005.bin 


More information about the busybox mailing list