from the quill of "Brian J. Murrell"
<[EMAIL PROTECTED]> on scroll
<[EMAIL PROTECTED]>
>
> Correct. I am thinking something along the lines of:
>
> alias framebuffer matroxfb
>
> in /etc/conf.modules and a corresponding ("scsi_hostadapter" style) hack
> in mkinitrd should do it. mkinitrd should also probably preload some
> other modules to support frame buffer if there is a framebuffer
> specified in /etc/conf.modules. I have never really figured out what
> one *should* load in addition to their framebuffer driver though. Don't
> you need some fbcon* stuff as well? Although I don't see those in the
> modules directory for the framebuffer kernel package.
Well as I suspected, it was quite a simple hack. Here it is:
--- /sbin/mkinitrd Thu Jan 6 08:28:55 2000
+++ /tmp/mkinitrd Mon Jan 10 23:40:36 2000
@@ -31,8 +31,8 @@
usage () {
echo "usage: `basename $0` [--version] [-v] [-f] [--ifneeded] [--preload
<module>]" >&2
- echo " [--omit-scsi-modules] [--omit-raid-modules] [--with=<module>]" >&2
- echo " [--image-version] <initrd-image>" >&2
+ echo " [--omit-scsi-modules] [--omit-raid-modules] [--omit-framebuffer]" >&2
+ echo " [--with=<module>] [--image-version] <initrd-image>" >&2
echo " <kernel>" >&2
echo " (ex: `basename $0` /boot/initrd-2.2.5-15.img 2.2.5-15)" >&2
exit 1
@@ -120,6 +120,10 @@
fi
PREMODS="$PREMODS $modname"
;;
+ --omit-framebuffer)
+ PREFBMODS=""
+ nofb=1;
+ ;;
--omit-scsi-modules)
PRESCSIMODS=""
noscsi=1;
@@ -183,6 +187,24 @@
done
fi
fi
+
+set -x
+if [ -z "$nofb" ]; then
+ for n in $PREFBMODS; do
+ findmodule video $n
+ done
+
+ if [ ! -f $modulefile ]; then
+ modulefile=/etc/modules.conf
+ fi
+ if [ -f $modulefile ]; then
+ fbmodules=`grep -E "alias[ ]+framebuffer" $modulefile | grep -v '^[
+ ]*#' | LC_ALL=C sort -u | awk '{ print $3 }'`
+ for n in $fbmodules; do
+ findmodule video $n
+ done
+ fi
+fi
+set +x
if [ -z "$noraid" ]; then
# load appropriate raid devices if necessary
So I put "alias framebuffer matroxfb" in my /etc/conf.modules and the
resulting initrd.img has the matroxfb.o driver in it!! I have not tested
yet as the kernel-fb-2.2.14-15mdk was not built with the script(s) that
the non-fb has. I will wait for one that has it. In the meanwhile
perhaps we can get this little fix in place as well as the changes to the
postinstall script that I posted earlier. That would be awesome!
Thanx,
b.
--
Brian J. Murrell InterLinx Support Services, Inc.
North Vancouver, B.C. 604 983 UNIX
Platform and Brand Independent UNIX Support - R3.2 - R4 - BSD