Re: splash(4) support in vt

From: Gleb Popov <arrowd_at_freebsd.org>
Date: Thu, 16 Mar 2023 06:26:30 UTC
On Wed, Mar 15, 2023 at 10:57 PM Ed Maste <emaste@freebsd.org> wrote:
>
>
> There are many individual tasks to be taken on; we need at least to
> get the image displayed earlier in the boot process, support more than
> just a 2-colour image, and support a user-provided (rather than
> compiled-in) image. We probably also need some animation support (e.g.
> a spinner). These tasks are all related but are mostly independent, so
> could be taken on in any order. What is your priority on these?

I think we'd need to start from getting more colors work. Our final
goal is a GIF-animated splash.

>
> The Wiki page linked from the mailing list posting is
> https://wiki.freebsd.org/MateuszPiotrowski/ImproveVtSplashScreenSupport,
> and it has a basic introduction. Looking at the source, the current
> logo is stored in sys/dev/vt/logo/logo_freebsd.c as a C array holding
> a 257x219 bitmap. If you look at vt_fb_bitblt_bitmap (and similar
> functions in other drivers) you can see that it loops over each pixel
> where the image will be drawn, and sets it to either the foreground or
> background color.

Which is the reason it only supports 2-color images, I presume?

Thanks for the links, I'll take a look!