Home | History | Annotate | only in /src/sys/dev/splash
History log of /src/sys/dev/splash
RevisionDateAuthorComments
 1.7 29-Dec-2024  jmmv Fix SPLASHSCREEN_IMAGE handling

This allows a kernel compiled with options:

options SPLASHSCREEN
makeoptions SPLASHSCREEN_IMAGE="path/to/image"

to correctly display the built-in image, which was previously failing to be
initialized by init_main.c. Note that init_main.c was already checking for
makeoptions_SPLASHSCREEN_IMAGE and SPLASHSCREEN_IMAGE inconsistently in two
places, and now it doesn't anymore.
 1.6 09-Dec-2017  jmcneill branches: 1.6.42;
Only need to build stbi if options SPLASHSCREEN is defined
 1.5 14-Sep-2015  uebayasi Handle splash image generation better.
 1.4 01-May-2015  nat Include splash with genfb.
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.

This commit was approved by matt@
 1.3 06-Feb-2011  jmcneill branches: 1.3.14; 1.3.32;
- add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
 1.2 19-Feb-2006  macallan branches: 1.2.2; 1.2.10; 1.2.16; 1.2.22; 1.2.100; 1.2.106; 1.2.108;
use defparam for SPLASHSCREEN_IMAGE
 1.1 18-Feb-2006  jmcneill Import splash screen support.
 1.2.108.1 08-Feb-2011  bouyer Sync with HEAD
 1.2.106.1 06-Jun-2011  jruoho Sync with HEAD.
 1.2.100.1 05-Mar-2011  rmind sync with head
 1.2.22.2 09-Sep-2006  rpaulo sync with head
 1.2.22.1 19-Feb-2006  rpaulo file files.splash was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:54:40 +0000
 1.2.16.2 21-Jun-2006  yamt sync with head.
 1.2.16.1 19-Feb-2006  yamt file files.splash was added on branch yamt-lazymbuf on 2006-06-21 15:06:57 +0000
 1.2.10.2 22-Apr-2006  simonb Sync with head.
 1.2.10.1 19-Feb-2006  simonb file files.splash was added on branch simonb-timecounters on 2006-04-22 11:39:31 +0000
 1.2.2.2 01-Mar-2006  yamt sync with head.
 1.2.2.1 19-Feb-2006  yamt file files.splash was added on branch yamt-uio_vmspace on 2006-03-01 09:28:28 +0000
 1.3.32.2 22-Sep-2015  skrll Sync with HEAD
 1.3.32.1 06-Jun-2015  skrll Sync with HEAD
 1.3.14.1 03-Dec-2017  jdolecek update from HEAD
 1.6.42.1 02-Aug-2025  perseant Sync with HEAD
 1.13 25-Apr-2016  khorben Do not panic if the splash screen is bigger than the framebuffer

This fixes a kernel crash if the splash screen does not fit inside the
framebuffer. It should probably be truncated (and optionally centered)
instead, but this avoids a panic in the meantime.

Tested on NetBSD/amd64 with a vesa framebuffer.

From Christian Koch (cfkoch@) of EdgeBSD; thanks!

XXX pull-up(s)
 1.12 02-Jun-2012  martin branches: 1.12.2; 1.12.14; 1.12.16;
Nat Sloss in PR kern/46516: advance fb pointer by stride, not logical
width of the splash image.
 1.11 08-Feb-2011  jmcneill branches: 1.11.4;
%zu for size_t, not %zd
 1.10 07-Feb-2011  jmcneill %d -> %zd for size_t printf format
 1.9 06-Feb-2011  jmcneill - add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
 1.8 22-Feb-2010  ahoka branches: 1.8.2; 1.8.4; 1.8.6;
Restore splashscreen support with genfb.
genfb patch from Pierre Pronchery, other small changes to make it
compile by me.

Closes PR kern/42605.

XXX doesnt work in 8bit, probably a cmap issue
 1.7 12-May-2009  cegger branches: 1.7.2;
struct device * -> device_t, no functional changes intended.
 1.6 10-May-2008  martin branches: 1.6.12;
Backout previous: the license sweep touched these files in error, so
restore the old license.
 1.5 28-Apr-2008  martin branches: 1.5.2;
Remove clause 3 and 4 from TNF licenses
 1.4 19-Oct-2007  ad branches: 1.4.20;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.3 29-Oct-2006  freza branches: 1.3.8; 1.3.22; 1.3.24; 1.3.28;
Inline UPDATE_INTERVAL macro, it's only used once. Per mrg@'s note
on previous.
 1.2 28-Oct-2006  freza Use curcpu() instead of referencing &cpu_info_primary (which is only
defined by a handful of ports).

OK by christos@
 1.1 18-Feb-2006  jmcneill branches: 1.1.2; 1.1.10; 1.1.16; 1.1.20; 1.1.22; 1.1.24;
Import splash screen support.
 1.1.24.1 10-Dec-2006  yamt sync with head.
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 18-Feb-2006  rpaulo file splash.c was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:54:40 +0000
 1.1.20.1 18-Nov-2006  ad Sync with head.
 1.1.16.4 27-Oct-2007  yamt sync with head.
 1.1.16.3 30-Dec-2006  yamt sync with head.
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 18-Feb-2006  yamt file splash.c was added on branch yamt-lazymbuf on 2006-06-21 15:06:57 +0000
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 18-Feb-2006  simonb file splash.c was added on branch simonb-timecounters on 2006-04-22 11:39:31 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 18-Feb-2006  yamt file splash.c was added on branch yamt-uio_vmspace on 2006-03-01 09:28:28 +0000
 1.3.28.1 25-Oct-2007  bouyer Sync with HEAD.
 1.3.24.1 06-Nov-2007  matt sync with HEAD
 1.3.22.1 26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.3.8.1 23-Oct-2007  ad Sync with head.
 1.4.20.2 11-Mar-2010  yamt sync with head
 1.4.20.1 16-May-2009  yamt sync with head
 1.5.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.6.12.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.7.2.1 30-Apr-2010  uebayasi Sync with HEAD.
 1.8.6.2 17-Feb-2011  bouyer Sync with HEAD
 1.8.6.1 08-Feb-2011  bouyer Sync with HEAD
 1.8.4.1 06-Jun-2011  jruoho Sync with HEAD.
 1.8.2.1 05-Mar-2011  rmind sync with head
 1.11.4.1 30-Oct-2012  yamt sync with head
 1.12.16.1 29-May-2016  skrll Sync with HEAD
 1.12.14.1 28-Aug-2016  snj Pull up following revision(s) (requested by khorben in ticket #1238):
sys/dev/splash/splash.c: revision 1.13
Do not panic if the splash screen is bigger than the framebuffer
This fixes a kernel crash if the splash screen does not fit inside the
framebuffer. It should probably be truncated (and optionally centered)
instead, but this avoids a panic in the meantime.
Tested on NetBSD/amd64 with a vesa framebuffer.
From Christian Koch (cfkoch@) of EdgeBSD; thanks!
XXX pull-up(s)
 1.12.2.1 03-Dec-2017  jdolecek update from HEAD
 1.5 06-Feb-2011  jmcneill - add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
 1.4 12-May-2009  cegger branches: 1.4.4; 1.4.6; 1.4.8;
struct device * -> device_t, no functional changes intended.
 1.3 10-May-2008  martin branches: 1.3.12;
Backout previous: the license sweep touched these files in error, so
restore the old license.
 1.2 28-Apr-2008  martin branches: 1.2.2;
Remove clause 3 and 4 from TNF licenses
 1.1 18-Feb-2006  jmcneill branches: 1.1.2; 1.1.10; 1.1.14; 1.1.16; 1.1.22; 1.1.76;
Import splash screen support.
 1.1.76.1 16-May-2009  yamt sync with head
 1.1.22.2 09-Sep-2006  rpaulo sync with head
 1.1.22.1 18-Feb-2006  rpaulo file splash.h was added on branch rpaulo-netinet-merge-pcb on 2006-09-09 02:54:40 +0000
 1.1.16.2 21-Jun-2006  yamt sync with head.
 1.1.16.1 18-Feb-2006  yamt file splash.h was added on branch yamt-lazymbuf on 2006-06-21 15:06:57 +0000
 1.1.14.1 13-Jul-2006  gdamore Merge from HEAD.
 1.1.10.2 22-Apr-2006  simonb Sync with head.
 1.1.10.1 18-Feb-2006  simonb file splash.h was added on branch simonb-timecounters on 2006-04-22 11:39:31 +0000
 1.1.2.2 01-Mar-2006  yamt sync with head.
 1.1.2.1 18-Feb-2006  yamt file splash.h was added on branch yamt-uio_vmspace on 2006-03-01 09:28:28 +0000
 1.2.2.1 23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.3.12.1 13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.4.8.1 08-Feb-2011  bouyer Sync with HEAD
 1.4.6.1 06-Jun-2011  jruoho Sync with HEAD.
 1.4.4.1 05-Mar-2011  rmind sync with head
 1.6 15-Sep-2015  uebayasi branches: 1.6.16;
Clean up splash image build. Print messages when creating files.
 1.5 15-Sep-2015  uebayasi Fix build of SPLASHSCREEN without SPLASHSCREEN_IMAGE. Since there is no way
to change ALLFILES by makeoptions, build an empty splash_image.o.
 1.4 14-Sep-2015  uebayasi Handle splash image generation better.
 1.3 01-May-2015  nat branches: 1.3.2;
Forgot RCS ID header.
 1.2 01-May-2015  nat Include splash with genfb.
splash.o is only included with options SPLASHSCREEN.
splash_image.o target moved to Makefile.kern.inc.

This commit was approved by matt@
 1.1 30-Apr-2015  nat Added a new option for embedding a splash screen into kernel.
Add: options SPLASHSCREEN
makeoptions SPLASHSCREEN_IMAGE="path/to/image"
to your config file. So far it will work on amd64 and RPI/RPI2.

This commit was with ideas, help, and OK from jmcneill@.
 1.3.2.3 22-Sep-2015  skrll Sync with HEAD
 1.3.2.2 06-Jun-2015  skrll Sync with HEAD
 1.3.2.1 01-May-2015  skrll file splash.mk was added on branch nick-nhusb on 2015-06-06 14:40:13 +0000
 1.6.16.2 03-Dec-2017  jdolecek update from HEAD
 1.6.16.1 15-Sep-2015  jdolecek file splash.mk was added on branch tls-maxphys on 2017-12-03 11:37:32 +0000

RSS XML Feed