diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-11-21 19:42:04 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-11-21 19:42:04 +0000 |
commit | 5b0713ebcc1f37580f7128c4893682ac9f20d69f (patch) | |
tree | 0d68240a1b65fee7fc5b5f8ecd5d1f614ca836a8 | |
parent | f0d60b1016285225dd7c54b4d7e720656ba167f8 (diff) | |
download | drakx-5b0713ebcc1f37580f7128c4893682ac9f20d69f.tar drakx-5b0713ebcc1f37580f7128c4893682ac9f20d69f.tar.gz drakx-5b0713ebcc1f37580f7128c4893682ac9f20d69f.tar.bz2 drakx-5b0713ebcc1f37580f7128c4893682ac9f20d69f.tar.xz drakx-5b0713ebcc1f37580f7128c4893682ac9f20d69f.zip |
i810fb
-rw-r--r-- | perl-install/install2.pm | 17 | ||||
-rw-r--r-- | perl-install/modules.pm | 1 | ||||
-rwxr-xr-x | update_kernel | 7 |
3 files changed, 22 insertions, 3 deletions
diff --git a/perl-install/install2.pm b/perl-install/install2.pm index ccfe1e526..7c4a1faa9 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -303,6 +303,21 @@ sub exitInstall { } +sub start_i810fb { + + my ($vga) = cat_('/proc/cmdline') =~ /vga=(\S+)/; + return if !$vga || listlength(cat_('/proc/fb')); + + my %vga_to_xres = (0x311 => '640', 0x314 => '800', 0x317 => '1024'); + my $xres = $vga_to_xres{$vga} || '800'; + + log::l("trying to load i810fb module with xres <$xres> (vga was <$vga>)"); + eval { modules::load('i810fb', undef, + ("xres=$xres", 'hsync1=32', 'hsync2=48', 'vsync1=50', 'vsync2=70', #- this sucking i810fb does not accept floating point numbers in hsync! + 'vram=2', 'bpp=16', 'accel=1', 'mtrr=1', 'hwcur=1', 'xcon=4')) }; +} + + #-###################################################################################### #- MAIN #-###################################################################################### @@ -465,6 +480,8 @@ sub main { $o->{lang} = lang::set($o->{lang}); #- mainly for defcfg + start_i810fb(); + $o->{allowFB} = listlength(cat_("/proc/fb")); my $VERSION = cat__(install_any::getFile("VERSION")) or do { print "VERSION file missing\n"; sleep 5 }; diff --git a/perl-install/modules.pm b/perl-install/modules.pm index c48cf87ba..f5c6db304 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -391,6 +391,7 @@ if_(arch() !~ /^sparc/, "buz" => "Zoran Corporation|ZR36057PQC Video cutting chipset", "defxx" => "DEC|DEFPA", "i810_rng" => "i810_rng", + "i810fb" => "i810fb", "ide-floppy" => "ide-floppy", "ide-scsi" => "ide-scsi", "ide-tape" => "ide-tape", diff --git a/update_kernel b/update_kernel index 74c86c322..8a22ca68c 100755 --- a/update_kernel +++ b/update_kernel @@ -16,9 +16,10 @@ function create_marfile() { needed=`cat modules.dep | perl -ne "print "'$1'" if /^$j: (.*)/"` for k in $needed do - [ -z "`echo $* | grep $k`" ] \ - && [ -z "`echo $PCMCIA_COREMODULES | grep $k`" ] \ - && echo "WARNING! in $marfile, $k is missing (required by $i)" + [ -z "`echo $* | grep $k`" ] \ + && [ -z "`echo $PCMCIA_COREMODULES | grep $k`" ] \ + && echo "ERROR: in $marfile, $k is missing (required by $i)" \ + && exit 1 done done $GIBASEDIR/mdk-stage1/mar/mar -c $marfile $(ls $*) |