diff --git a/packages/initramfs/linux-initramfs/install b/packages/initramfs/linux-initramfs/install index 2823989375..e478a65387 100755 --- a/packages/initramfs/linux-initramfs/install +++ b/packages/initramfs/linux-initramfs/install @@ -38,3 +38,8 @@ if [ -n "$INITRAMFS_MODULES" ]; then fi done fi + +if [ "$UVESAFB_SUPPORT" = yes ]; then + uvesafb=`find $LINUX_MODULES_DIR -name uvesafb.ko` + cp $uvesafb $INSTALL/lib/modules/`basename $uvesafb` +fi diff --git a/packages/initramfs/sysutils/busybox-initramfs/scripts/init b/packages/initramfs/sysutils/busybox-initramfs/scripts/init index d897d08da8..2d6146eac3 100755 --- a/packages/initramfs/sysutils/busybox-initramfs/scripts/init +++ b/packages/initramfs/sysutils/busybox-initramfs/scripts/init @@ -339,23 +339,32 @@ load_splash() { progress "Loading bootsplash" - if [ -e /dev/fb0 -a ! "$SPLASH" = "no" ]; then + if [ ! "$SPLASH" = "no" ]; then + SPLASHIMAGE="/splash/splash-full.png" - # set framebuffer to a default resolution (1024x768-32) + # load uvesafb module if needed + if [ -f "$MODULE_DIR/uvesafb.ko" -a ! -e /dev/fb0 ]; then + progress "Loading kernel module uvesafb.ko" + insmod "$MODULE_DIR/uvesafb.ko" || \ + progress "... Failed to load kernel module uvesafb, skipping" + + # set framebuffer to a default resolution (1024x768-32) if [ ! "$SWITCH_FRAMEBUFFER" = "no" ]; then fbset -g 1024 768 1024 768 32 + SPLASHIMAGE="/splash/splash-1024.png" fi + fi - # load splash + if [ -e /dev/fb0 ]; then + # load splash if [ -f /flash/oemsplash.png ]; then SPLASHIMAGE="/flash/oemsplash.png" elif [ -f /splash/splash.conf ]; then . /splash/splash.conf - else - SPLASHIMAGE="/splash/splash.png" fi ply-image $SPLASHIMAGE > /dev/null 2>&1 + fi fi } diff --git a/packages/initramfs/sysutils/plymouth-lite/install b/packages/initramfs/sysutils/plymouth-lite/install index 92f4c5b3a6..9a6bfce747 100755 --- a/packages/initramfs/sysutils/plymouth-lite/install +++ b/packages/initramfs/sysutils/plymouth-lite/install @@ -32,5 +32,5 @@ mkdir -p $INSTALL/splash elif [ -f $PROJECT_DIR/$PROJECT/splash/splash.png ]; then cp $PROJECT_DIR/$PROJECT/splash/splash.png $INSTALL/splash else - cp $PKG_DIR/splash/splash.png $INSTALL/splash + cp $PKG_DIR/splash/splash-*.png $INSTALL/splash fi diff --git a/packages/initramfs/sysutils/plymouth-lite/meta b/packages/initramfs/sysutils/plymouth-lite/meta index 17f41680e5..7421051a48 100644 --- a/packages/initramfs/sysutils/plymouth-lite/meta +++ b/packages/initramfs/sysutils/plymouth-lite/meta @@ -25,7 +25,7 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.meego.com" PKG_URL="$DISTRO_SRC/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="gcc-initramfs zlib-initramfs v86d" +PKG_DEPENDS="gcc-initramfs zlib-initramfs" PKG_BUILD_DEPENDS="toolchain zlib libpng" PKG_PRIORITY="optional" PKG_SECTION="system" @@ -34,3 +34,7 @@ PKG_LONGDESC="Boot splash screen based on Fedora's Plymouth code" PKG_IS_ADDON="no" PKG_AUTORECONF="no" + +if [ "UVESAFB_SUPPORT" = yes ]; then + PKG_DEPENDS="$PKG_DEPENDS v86d" +fi diff --git a/projects/ARCTIC_MC/options b/projects/ARCTIC_MC/options index edc5f67463..074529ab5e 100755 --- a/projects/ARCTIC_MC/options +++ b/projects/ARCTIC_MC/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="yes" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -305,7 +308,7 @@ LCD_DRIVER="none" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, diff --git a/projects/ATV/options b/projects/ATV/options index 0f4e652ccd..1df1802467 100755 --- a/projects/ATV/options +++ b/projects/ATV/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="yes" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" diff --git a/projects/Fusion/options b/projects/Fusion/options index 10b4ddb06e..51c5abe158 100755 --- a/projects/Fusion/options +++ b/projects/Fusion/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="yes" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -305,7 +308,7 @@ LCD_DRIVER="irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, diff --git a/projects/Generic/options b/projects/Generic/options index f1922e25ce..aa0ff2e46c 100755 --- a/projects/Generic/options +++ b/projects/Generic/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="yes" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -305,7 +308,7 @@ LCD_DRIVER="irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, diff --git a/projects/Generic_OSS/options b/projects/Generic_OSS/options index 4db66486b2..152c2de783 100755 --- a/projects/Generic_OSS/options +++ b/projects/Generic_OSS/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="no" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -305,7 +308,7 @@ LCD_DRIVER="irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, diff --git a/projects/ION/options b/projects/ION/options index 11164213ff..2083874392 100755 --- a/projects/ION/options +++ b/projects/ION/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="yes" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -305,7 +308,7 @@ LCD_DRIVER="irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported, diff --git a/projects/Intel/options b/projects/Intel/options index 60f1b871e5..b53d54ce51 100755 --- a/projects/Intel/options +++ b/projects/Intel/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="no" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" diff --git a/projects/RPi/options b/projects/RPi/options index db9302ea22..c3fb58054c 100755 --- a/projects/RPi/options +++ b/projects/RPi/options @@ -249,6 +249,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="none" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="no" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="no" diff --git a/projects/Virtual/options b/projects/Virtual/options index 5e7f2321cc..c525689acd 100755 --- a/projects/Virtual/options +++ b/projects/Virtual/options @@ -244,6 +244,9 @@ # Windowmanager to use (ratpoison / none) WINDOWMANAGER="ratpoison" +# include uvesafb support (yes / no) + UVESAFB_SUPPORT="no" + # Displayserver to use (xorg-server / no) DISPLAYSERVER="xorg-server" @@ -300,7 +303,7 @@ LCD_DRIVER="irtrans,imon,imonlcd,mdm166a,MtxOrb,lis,dm140,hd44780,CFontz,SureElec,vlsys_m428" # Modules to install in initramfs for early boot - INITRAMFS_MODULES="uvesafb xhci-hcd" + INITRAMFS_MODULES="xhci-hcd" # additional Firmware to use (dvb-firmware, misc-firmware, wlan-firmware) # Space separated list is supported,