Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 252982

Summary: gentoo-sources 2.6.27-r7 cannot load uvesafb module
Product: Gentoo Linux Reporter: Plero H <plero_hero>
Component: [OLD] Core systemAssignee: Michal Januszewski (RETIRED) <spock>
Status: RESOLVED INVALID    
Severity: normal CC: idl0r
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Plero H 2008-12-29 12:00:58 UTC
uvesafb module cannot load.

cat /etc/modules.d/uvesafb
options uvesafb mode_option=1280x1024 mtrr=3 scroll=ywrap

dmesg | grep uvesa
uvesafb: Unknown parameter `mode'

I have re-emeged v86d and klibc but to no avail.


Reproducible: Always

Steps to Reproduce:
1. emerge gentoo-sources-2.6.27-r7
2. build it with uvesafb as a module
3. load module

Actual Results:  
module cannot load

Expected Results:  
module should have loaded

googling around I found that in 2.6.27  mode=1280x1024 argument is used when uvesafb is built in the kernel and mode_option=1280x1024 when uvesafb is compiled as a module. I tried both but they fail with: "uvesafb: Unknown parameter `mode' "

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob_plain;f=Documentation/fb/uvesafb.txt;hb=HEAD


Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-glibc2.2.5
Timestamp of tree: Sun, 28 Dec 2008 23:45:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://mirror.muntinternet.net/pub/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en el en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/preload"
SYNC="rsync://rsync.gr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion beagle berkdb bluetooth branding bzip2 cairo cddb cdr cli cracklib crypt css cups dbus dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg firefox flac fortran gdbm gif gimp gnome gphoto2 gpm gstreamer gtk hal iconv imagemagick ipv6 isdnlog jpeg kde ladspa lame lcms ldap libnotify libsamplerate lm_sensors mad matroska midi mikmod mmx mono mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime raw rdesktop readline reflection samba scanner sdl session smp sox spell spl sse sse2 ssl startup-notification svg symlink sysfs tcpd threads tiff truetype unicode usb v4l2 vcd vorbis wxwindows x264 xattr xcomposite xine xinerama xml xorg xulrunner xv xvid yahoo zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en el en_US" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2008-12-29 14:47:00 UTC
does this work for you?
video=uvesafb:1280x1024-32,mtrr:3,ywrap
Comment 2 Michal Januszewski (RETIRED) gentoo-dev 2008-12-29 15:00:39 UTC
It looks like the 'mode' option is still being used instead of (the correct) 'mode_option'.  Try loading uvesafb manually: modprobe uvesafb mode_option=1280x1024 mtrr=3 scroll=ywrap.
Comment 3 Plero H 2008-12-29 23:47:05 UTC
I tried loading uvesafb manually: modprobe uvesafb mode_option=1280x1024 mtrr=3 scroll=ywrap
but it failed.

@ idl0r I appended: video=uvesafb:1280x1024-32,mtrr:3,ywrap 
to kernel arguments but it didn't work either.

I want to load uvesafb at boot time and set correct resolution for my monitor
and since it requires v86d(not in genkernel yet) I compiled it as a module and load it when system boots.
I don't use bootsplash or fbsplash.

Also modinfo uvesafb:

filename:       /lib/modules/2.6.27-gentoo-r7/kernel/drivers/video/uvesafb.ko
description:    Framebuffer driver for VBE2.0+ compliant graphics boards
author:         Michal Januszewski <spock@gentoo.org>
license:        GPL
depends:
vermagic:       2.6.27-gentoo-r7 SMP mod_unload modversions
parm:           scroll:Scrolling mode, set to 'redraw', 'ypan', or 'ywrap' (scroll)
parm:           vgapal:Set palette using VGA registers (invbool)
parm:           pmipal:Set palette using PMI calls (bool)
parm:           mtrr:Memory Type Range Registers setting. Use 0 to disable. (uint)
parm:           blank:Enable hardware blanking (bool)
parm:           nocrtc:Ignore CRTC timings when setting modes (bool)
parm:           noedid:Ignore EDID-provided monitor limits when setting modes (bool)
parm:           vram_remap:Set amount of video memory to be used [MiB] (uint)
parm:           vram_total:Set total amount of video memoery [MiB] (uint)
parm:           maxclk:Maximum pixelclock [MHz], overrides EDID data (ushort)
parm:           maxhf:Maximum horizontal frequency [kHz], overrides EDID data (ushort)
parm:           maxvf:Maximum vertical frequency [Hz], overrides EDID data (ushort)
parm:           mode_option:Specify initial video mode as "<xres>x<yres>[-<bpp>][@<refresh>]" (charp)
parm:           vbemode:VBE mode number to set, overrides the 'mode' option (ushort)
parm:           v86d:Path to the v86d userspace helper. (string)
Comment 4 Plero H 2008-12-29 23:51:03 UTC
I forgot to mention that in gentoo-sources-2.6.26-* I can load uvesafb module and it works flawlessly.
Comment 5 Michal Januszewski (RETIRED) gentoo-dev 2008-12-30 09:23:26 UTC
(In reply to comment #3)
> I tried loading uvesafb manually: modprobe uvesafb mode_option=1280x1024 mtrr=3
> scroll=ywrap
> but it failed.

Did you get the same 'module cannot load' error message when you tried this?  Have you checked the kernel log to see if there are any error messages there?
Comment 6 Plero H 2008-12-30 16:43:22 UTC
modprobe uvesafb mode_option=1280x1024 mtrr=3 scroll=ywrap
FATAL: Error inserting uvesafb (/lib/modules/2.6.27-gentoo-r7/kernel/drivers/video/uvesafb.ko): Unknown symbol in module, or unknown parameter (see dmesg)


dmesg:
uvesafb: Unknown parameter `mode'


Yes, it's the same error
Comment 7 Michal Januszewski (RETIRED) gentoo-dev 2009-01-01 22:25:27 UTC
I ran some checks, and it looks like you have forgotten to run 'update-modules' after modifying /etc/modprobe.d/uvesafb.  To confirm, run `update-modules` or try inserting the uvesafb module using `insmod` instead of `modprobe`.

Please re-open the bug in case that doesn't fix the problem.
Comment 8 Plero H 2009-01-01 23:10:56 UTC
I had already run 'update-modules' prior to reporting, but for some reason didn't work.
After your suggestion I run 'update-modules -f' and it works fine now.

Thanks