From 98c82e0cefa2dc14f2de5262a63701ca2ab05316 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Wed, 11 Aug 2010 03:14:54 +0200 Subject: Next step for early framebuffer, bootsplash ... --- initramfs/stage3-stuff/bin/hwautocfg | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'initramfs/stage3-stuff/bin/hwautocfg') diff --git a/initramfs/stage3-stuff/bin/hwautocfg b/initramfs/stage3-stuff/bin/hwautocfg index fc1fbc8f..ca777eeb 100755 --- a/initramfs/stage3-stuff/bin/hwautocfg +++ b/initramfs/stage3-stuff/bin/hwautocfg @@ -29,13 +29,17 @@ echo "0 0 0 0" >/proc/sys/kernel/printk echo "/sbin/mdev" >/proc/sys/kernel/hotplug modprobe -a ${MODPRV} usbhid hid-bright 2>/dev/null & # get information on the graphics adaptor if bootsplash or xserver plugins are -# present +# present and the new drm/kms infrastructure is present if [ -e /etc/init-hooks/00-started/xserver.sh -o \ -e /etc/init-hooks/05-started/bootsplash.sh ] && \ - [ -e /lib/modules/${KERNEL}/kernel/drivers/gpu ]; then - ( gfxcardmod=$(hwinfo --gfxcard|grep " Driver: "|sed "s/.*Driver//;s/\"//g") - echo ${gfxcardmod} drm fbcon >/tmp/bootsplash ) & + [ -e /lib/modules/${KERNEL}/kernel/drivers/gpu ]; then + fbmodlist="i810 i830 i915 mga nouveau r128 radeon savage sis tdfx ttm via" + modprobe -a ${MODPRV} ${fbmodlist} drm fbcon 2>/dev/null + ( hwinfo --gfxcard >/etc/hwinfo.gfxcard + gfxcard=$(grep " Driver: " /etc/hwinfo.gfxcard|sed "s/.*Driver: //;s/\"//g") + ) & fi + # check and then load appropriate network card modules nwcardlist=$(echo ${slxconf_listnwmod}|sed "s/\ /|/g") # save results for later info and for Xen plugin when starting Xen VM @@ -47,6 +51,7 @@ if [ $(grep -ic "virtio_pci" /etc/modprobe.base) -ge 1 ]; then echo "modprobe virtio_net" >>/etc/modprobe.base fi ash /etc/modprobe.base; mdev -s + # optimization possible: exclude network and usb base drivers from the # following list (bios detection for non-hwautocfg component) ( hwinfo --pci >/etc/hwinfo.data; echo "read pci device list at $(sysup)" \ -- cgit v1.2.3-55-g7522