Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] unable to load NVIDIA modules
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
marziods
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2009
Posts: 136
Location: <Roma>par lavor | Udine | Friul | Italie

PostPosted: Wed Oct 16, 2019 12:09 pm    Post subject: [solved] unable to load NVIDIA modules Reply with quote

Hi,
as I write on the topic I am unable to load nvidia module here lsmod where aren t present:

Code:
lsmod
Module                  Size  Used by
snd_usb_audio         208896  0
snd_usbmidi_lib        28672  1 snd_usb_audio
snd_rawmidi            28672  1 snd_usbmidi_lib
iwlmvm                331776  0
x86_pkg_temp_thermal    16384  0
iwlwifi               299008  1 iwlmvm
vboxpci                28672  0
vboxnetadp             28672  0
vboxnetflt             32768  0
vboxdrv               413696  3 vboxpci,vboxnetadp,vboxnetflt
bbswitch               16384  0
vxlan                  53248  0
ip6_udp_tunnel         16384  1 vxlan
udp_tunnel             16384  1 vxlan
overlay               114688  0
xfs                  1159168  0
jfs                   192512  0
reiserfs              323584  0

and maybe it happends for this reason:
Code:
nvidia: Unknown symbol ipmi_create_user (err -2)
[    4.147019] nvidia: Unknown symbol ipmi_destroy_user (err -2)
[    4.148237] nvidia: Unknown symbol ipmi_validate_addr (err -2)
[    4.149524] nvidia: Unknown symbol ipmi_free_recv_msg (err -2)
[    4.151045] nvidia: Unknown symbol ipmi_set_my_address (err -2)
[    4.152654] nvidia: Unknown symbol ipmi_request_settime (err -2)
[    4.153775] nvidia: Unknown symbol ipmi_set_gets_events (err -2)

if I try to load it manually:
Code:
 insmod /lib/modules/4.19.72-gentoo/video/nvidia.ko
insmod: ERROR: could not insert module /lib/modules/4.19.72-gentoo/video/nvidia.ko: Unknown symbol in module

my .config

Code:

grep -i ipmi  /usr/src/linux/.config
CONFIG_ACPI_IPMI=m
CONFIG_IPMI_HANDLER=y
CONFIG_IPMI_DMI_DECODE=y
# CONFIG_IPMI_PANIC_EVENT is not set
CONFIG_IPMI_DEVICE_INTERFACE=m
CONFIG_IPMI_SI=m
CONFIG_IPMI_SSIF=m
CONFIG_IPMI_WATCHDOG=m
CONFIG_IPMI_POWEROFF=m


and video:
Code:
lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation Device 3e94
01:00.0 VGA compatible controller: NVIDIA Corporation GP107GLM [Quadro P2000 Mobile] (rev ff)

kernel:
Code:
uname -a
Linux gentoo 4.19.72-gentoo #9 SMP Thu Oct 10 11:27:32 CEST 2019 x86_64 Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz GenuineIntel GNU/Linux

emerge --info:
Code:

Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-8.3.0, glibc-2.29-r2, 4.19.72-gentoo x86_64)
=================================================================
System uname: Linux-4.19.72-gentoo-x86_64-Intel-R-_Xeon-R-_E-2176M_CPU_@_2.70GHz-with-gentoo-2.6
KiB Mem:    32598988 total,  29515048 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Wed, 16 Oct 2019 00:45:02 +0000
Head commit of repository gentoo: bd4f1637960181a2b27465027991e0c82382675a
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=skylake -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe"
GENTOO_MIRRORS="http://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it en"
MAKEOPTS="-j13"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups cxx dbus declarative device-mapper dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk gtk3 iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd thunderbolt tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics keyboard mouse libinput" KERNEL="linux" L10N="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia i965 intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


any help or hint? I tryed with a wiki ... but nothing...
my laptop is a lenovo P52
tnx for any hint
_________________
linux user #493115


Last edited by marziods on Thu Oct 17, 2019 8:07 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 45805
Location: 56N 3W

PostPosted: Wed Oct 16, 2019 6:41 pm    Post subject: Reply with quote

marziods,

Lets see what it the kernel provides the symbol
Code:
ipmi_create_user


Code:
roy@NeddySeagoon_Static ~ $ cd /usr/src/linux
roy@NeddySeagoon_Static /usr/src/linux $ grep -r ipmi_create_user ./
./Documentation/IPMI.txt:ipmi_create_user.  The interface number specifies which SMI you want
./Documentation/IPMI.txt:field of the "handler" that you passed in to ipmi_create_user().
./drivers/acpi/acpi_ipmi.c:   err = ipmi_create_user(iface, &driver_data.ipmi_hndlrs,
./drivers/hwmon/ibmaem.c:   err = ipmi_create_user(data->interface, &driver_data.ipmi_hndlrs,
./drivers/hwmon/ibmpex.c:   err = ipmi_create_user(data->interface, &driver_data.ipmi_hndlrs,
./drivers/char/ipmi/ipmi_watchdog.c:   rv = ipmi_create_user(ipmi_intf, &ipmi_hndlrs, NULL, &watchdog_user);
./drivers/char/ipmi/ipmi_devintf.c:   rv = ipmi_create_user(if_num,
./drivers/char/ipmi/ipmi_poweroff.c:   rv = ipmi_create_user(if_num, &ipmi_poweroff_handler, NULL,
./drivers/char/ipmi/ipmi_msghandler.c:int ipmi_create_user(unsigned int          if_num,
./drivers/char/ipmi/ipmi_msghandler.c:EXPORT_SYMBOL(ipmi_create_user);
./include/linux/ipmi.h:int ipmi_create_user(unsigned int          if_num,
roy@NeddySeagoon_Static /usr/src/linux $


The line
Code:
./drivers/char/ipmi/ipmi_msghandler.c:EXPORT_SYMBOL(ipmi_create_user); is the important line

It makes the symbol available for other things to use. That means you need the file ./drivers/char/ipmi/ipmi_msghandler.c compiled and if its a module, the module must be loaded.

I don't see any signs that in your lsmod output.

Check for
Code:
# CONFIG_UNUSED_SYMBOLS is not set
That setting when it is not set as here, removes any symbols that are defined in the kernel but not used by the kernel, so that they are not exported. That can break external kernel modules.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
marziods
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2009
Posts: 136
Location: <Roma>par lavor | Udine | Friul | Italie

PostPosted: Thu Oct 17, 2019 8:06 am    Post subject: Reply with quote

NeddySeagoon wrote:



The line
Code:
./drivers/char/ipmi/ipmi_msghandler.c:EXPORT_SYMBOL(ipmi_create_user); is the important line

It makes the symbol available for other things to use. That means you need the file ./drivers/char/ipmi/ipmi_msghandler.c compiled and if its a module, the module must be loaded.

I don't see any signs that in your lsmod output.

Check for
Code:
# CONFIG_UNUSED_SYMBOLS is not set
That setting when it is not set as here, removes any symbols that are defined in the kernel but not used by the kernel, so that they are not exported. That can break external kernel modules.


it was this tnx!!!
_________________
linux user #493115
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum