Nvidia version magic wrong Kernel?
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Nvidia version magic wrong Kernel?

    My system will no longer load the nvidia driver, using akmod-nvidia from RpmFusion (driver version 440.59) and latest kernel 5.4.15-200.fc31.x86_64.

    If I run modprobe -vv nvidia I get an Exec Format error, then dmesg shows:

    nvidia: version magic '5.4.14-200.fc31.x86_64 SMP mod_unload ' should be '5.4.15-200.fc31.x86_64 SMP mod_unload'

    I have deleted and recreated the kmod using akmods --force, no change.

    It has worked before my last reboot (serves me right!).

    Kernel-devel and all other packages are up to date (kernel-headers is a few version back in the repo, not sure if that is related or not?)

    Any ideas?

  2. #2
    Join Date
    Dec 2008
    Posts
    3
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Nvidia version magic wrong Kernel?

    I found out what the problem was, and have a resolution, but have no idea how it managed to get into this state:

    Firstly, this is how I found the error:
    # modprobe -vv nvidia
    modprobe: INFO: custom logging function 0x55de2cdb3a20 registered
    insmod /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia.ko.xz NVreg_DynamicPowerManagement=0x02
    modprobe: INFO: Failed to insert module '/lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia.ko.xz': Exec format error
    modprobe: ERROR: could not insert 'nvidia': Exec format error
    modprobe: INFO: context 0x55de2e6934e0 released
    So, it won't insert the module... OK, looking at the modules that it's trying to insert:
    # cd /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/
    # modinfo * | grep -E "filename|vermagic"
    filename: /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia-drm.ko.xz
    vermagic: 5.4.14-200.fc31.x86_64 SMP mod_unload
    filename: /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia.ko.xz
    vermagic: 5.4.14-200.fc31.x86_64 SMP mod_unload
    filename: /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia-modeset.ko.xz
    vermagic: 5.4.14-200.fc31.x86_64 SMP mod_unload
    filename: /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/nvidia-uvm.ko.xz
    vermagic: 5.4.7-200.fc31.x86_64 SMP mod_unload
    So, ALL of those files, despite being in the directory for 5.14.15 are wrong. They all have the wrong vermagic in them. I did nothing to mess with these files, and have no idea how on earth they got that way.

    I deleted those four files with the wrong vermagic number.

    Examining the kmod file that the akmods generated for me:
    #rpm -qa | grep kmod-nvidia
    kmod-nvidia-5.4.15-200.fc31.x86_64-440.59-1.fc31.x86_64
    akmod-nvidia-440.59-1.fc31.x86_64
    # rpm -ql kmod-nvidia-5.4.15-200.fc31.x86_64
    /usr/lib/.build-id
    /usr/lib/.build-id/14
    /usr/lib/.build-id/14/aa9a7edde15a354f52d844ac7b6984ad8d0fcb
    /usr/lib/.build-id/3e
    /usr/lib/.build-id/3e/549e8bf0a740696ab2afa7ceff8e2b16f6c8e6
    /usr/lib/.build-id/68
    /usr/lib/.build-id/68/0a0a211452754125ec3a00ebabb0a06b509982
    /usr/lib/.build-id/ab
    /usr/lib/.build-id/ab/3e4176cd403b679812e3e4fb3c00514b55c817
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra/nvidia
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra/nvidia/nvidia-drm.ko.xz
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra/nvidia/nvidia-modeset.ko.xz
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra/nvidia/nvidia-uvm.ko.xz
    /usr/lib/modules/5.4.15-200.fc31.x86_64/extra/nvidia/nvidia.ko.xz
    I copied those files into the /lib/modules/5.4.15-200.fc31.x86_64/weak-updates/ directory. Now modprobe -vv nvidia works, service gdm restart, and ta da! Back in business.

  3. #3
    Join Date
    Jan 2017
    Location
    Australia
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nvidia version magic wrong Kernel?

    Quote Originally Posted by ordeneus
    I found out what the problem was, and have a resolution, but have no idea how it managed to get into this state:
    @ordeneus : I just ran into this exact issue, although my kernel version slightly differed. Thanks so much for posting the solution. I could never have resolved this myself.

  4. #4
    Join Date
    Mar 2020
    Location
    Romania
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Nvidia version magic wrong Kernel?

    Hi,

    I've just had this happen to on upgrading from kernel 5.5.5 to 5.5.6 and nvidia driver from 440.59 to 440.64.

    Those files in
    Code:
    /lib/modules/5.5.6-201.fc31.x86_64/weak-updates/
    were symlinks that somehow did not get updated.

    Thanks for posting the solution.

Similar Threads

  1. F22: latest Kernel built with wrong gcc version
    By knekke in forum Installation, Upgrades and Live Media
    Replies: 7
    Last Post: 20th December 2015, 07:32 PM
  2. nvidia driver version / nvidia kernel conflict
    By Wangberg in forum Using Fedora
    Replies: 16
    Last Post: 13th June 2007, 09:57 AM
  3. nvidia + kernel update problem - wrong kernel version?!
    By Duli in forum Installation, Upgrades and Live Media
    Replies: 5
    Last Post: 6th March 2007, 04:36 AM
  4. ipw2200 drivers and version magic/FC6
    By HansV in forum Servers & Networking
    Replies: 8
    Last Post: 30th November 2006, 06:43 PM
  5. Replies: 5
    Last Post: 21st February 2006, 11:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •