On 06.11.2014 07:15, poma wrote: > On 05.11.2014 22:14, poma wrote: >> On 05.11.2014 20:23, Bob Marcan wrote: >>> On Wed, 05 Nov 2014 07:18:17 +0100 >>> poma <pomidorabelisima@xxxxxxxxx> wrote: >>>> >>>> http://forum.ubuntu-nl.org/index.php?topic=86081.msg930664#msg930664 >>>> Works? >>>> >>> Works! Tnx. >>> Googling for the solution, i filtered out non english entries. >>> google translate was now my friend. >>> >>> Downloaded dkms doesn't work properly. >>> At installation it provides proper 8192eu.ko module. >>> After kernel upgrade and reboot, dkms installs the old module. >>> Probably it doesn't clean up and in the next iteration only installs >>> already compiled module. I'll investigate this further. >>> >> >> $ rpm -q kernel-devel-$(uname -r) dkms >> kernel-devel-3.17.2-200.fc20.x86_64 >> dkms-2.2.0.3-28.git.7c3e7c5.fc20.noarch >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> >> $ rpmbuild --rebuild http://users.telenet.be/x86_64/RPMs/dkms-rtl8192eu-4.3.1.1-11320.20140505.src.rpm >> >> ~~~~~~ >> >> $ su - >> >> ~~~~~~ >> >> # systemctl enable dkms >> >> # systemctl start dkms >> >> ~~~~~~~~~~~~~~~~~~~~~~~ >> >> # rpm -ivh /home/user/rpmbuild/RPMS/noarch/dkms-rtl8192eu-4.3.1.1-11320.20140505.noarch.rpm >> Preparing... ################################# [100%] >> Updating / installing... >> 1:dkms-rtl8192eu-4.3.1.1-11320.2014################################# [100%] >> >> Creating symlink /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/source -> >> /usr/src/rtl8192eu-4.3.1.1-11320.20140505 >> >> DKMS: add completed. >> >> Kernel preparation unnecessary for this kernel. Skipping... >> >> Building module: >> cleaning build area... >> cd /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build ; make................ >> cleaning build area... >> >> DKMS: build completed. >> >> 8192eu: >> Running module version sanity check. >> - Original module >> - No original module exists within this kernel >> - Installation >> - Installing to /lib/modules/3.17.2-200.fc20.x86_64/extra/ >> Adding any weak-modules >> >> depmod... >> >> DKMS: install completed. >> >> ~~~~~~~~~~~~~~~~~~~~~~~~ >> >> # modinfo 8192eu >> filename: /lib/modules/3.17.2-200.fc20.x86_64/extra/8192eu.ko >> version: v4.3.1.1_11320.20140505 >> author: Realtek Semiconductor Corp. >> description: Realtek Wireless Lan Driver >> license: GPL >> srcversion: 45A7C17EE731A4EB2668470 >> alias: usb:v0BDAp818Cd*dc*dsc*dp*icFFiscFFipFFin* >> alias: usb:v0BDAp818Bd*dc*dsc*dp*icFFiscFFipFFin* >> ... >> >> ~~~~~~~~~~~~~~~~~~~~ >> >> # modprobe -v 8192eu >> insmod /lib/modules/3.17.2-200.fc20.x86_64/extra/8192eu.ko >> >> >> # dmesg -t >> ... >> 8192eu: module verification failed: signature and/or required key missing - tainting kernel >> RTL871X: module init start >> RTL871X: rtl8192eu v4.3.1.1_11320.20140505 >> RTL871X: build time: Nov 5 2014 22:00:31 >> usbcore: registered new interface driver rtl8192eu >> RTL871X: module init ret=0 >> > ... > > Yeah, wrong version magic for kernel upgrades. > > > # rpm -ivh http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/x86_64/kernel-core-3.18.0-0.rc3.git1.2.fc22.1.x86_64.rpm \ > > http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/x86_64/kernel-devel-3.18.0-0.rc3.git1.2.fc22.1.x86_64.rpm > Retrieving http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/x86_64/kernel-core-3.18.0-0.rc3.git1.2.fc22.1.x86_64.rpm > Retrieving http://alt.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/x86_64/kernel-devel-3.18.0-0.rc3.git1.2.fc22.1.x86_64.rpm > Preparing... ################################# [100%] > Updating / installing... > 1:kernel-devel-3.18.0-0.rc3.git1.2.################################# [ 50%] > 2:kernel-core-3.18.0-0.rc3.git1.2.f################################# [100%] > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > # sha1sum /usr/lib/modules/3.17.2-200.fc20.x86_64/extra/8192eu.ko \ > > /usr/lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > 71cbe4a06ff2511b7e5c0300066c325d7163ab5b /usr/lib/modules/3.17.2-200.fc20.x86_64/extra/8192eu.ko > 9c8c1d687c66a25665e432248456b23501d881ee /usr/lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > > ~~~~~~ > REBOOT > > ~~~~~~~~~~ > > # uname -r > 3.18.0-0.rc3.git1.2.fc22.1.x86_64 > > ~~~~~~~~~~~~~~~~ > > # modinfo 8192eu > filename: /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > version: v4.3.1.1_11320.20140505 > author: Realtek Semiconductor Corp. > description: Realtek Wireless Lan Driver > license: GPL > srcversion: 45A7C17EE731A4EB2668470 > alias: usb:v0BDAp818Cd*dc*dsc*dp*icFFiscFFipFFin* > alias: usb:v0BDAp818Bd*dc*dsc*dp*icFFiscFFipFFin* > depends: > vermagic: 3.17.2-200.fc20.x86_64 SMP mod_unload > ... > > ~~~~~~~~~~~~~~~~~~~~ > > # modprobe -v 8192eu > insmod /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > 8192eu: version magic '3.17.2-200.fc20.x86_64 SMP mod_unload ' should be '3.18.0-0.rc3.git1.2.fc22.1.x86_64 SMP mod_unload ' > modprobe: ERROR: could not insert '8192eu': Exec format error > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Temporarily, you can fix it manually > > # POSTIN - %post dkms-rtl8192eu.spec > /usr/sbin/dkms add -m rtl8192eu -v 4.3.1.1-11320.20140505 --rpm_safe_upgrade > /usr/sbin/dkms build -m rtl8192eu -v 4.3.1.1-11320.20140505 --rpm_safe_upgrade > /usr/sbin/dkms install -m rtl8192eu -v 4.3.1.1-11320.20140505 --rpm_safe_upgrade > > # PREUN - %preun dkms-rtl8192eu.spec > /usr/sbin/dkms remove -m rtl8192eu -v 4.3.1.1-11320.20140505 --rpm_safe_upgrade --all > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > # dkms remove -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) > > -------- Uninstall Beginning -------- > Module: rtl8192eu > Version: 4.3.1.1-11320.20140505 > Kernel: 3.18.0-0.rc3.git1.2.fc22.1.x86_64 (x86_64) > ------------------------------------- > > Status: Before uninstall, this module version was ACTIVE on this kernel. > Removing any linked weak-modules > > 8192eu.ko: > - Uninstallation > - Deleting from: /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/ > - Original module > - No original module was found for this module on this kernel. > - Use the dkms install command to reinstall any previous module version. > > depmod.... > > DKMS: uninstall completed. > > ~~~~~~~~~~~~~~~~ > > # modinfo 8192eu > modinfo: ERROR: Module 8192eu not found. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > # dkms build -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) > > Kernel preparation unnecessary for this kernel. Skipping... > > Building module: > cleaning build area... > cd /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build ; make.................. > cleaning build area... > > DKMS: build completed. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > # dkms install -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) > > 8192eu: > Running module version sanity check. > - Original module > - No original module exists within this kernel > - Installation > - Installing to /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/ > Adding any weak-modules > > depmod... > > DKMS: install completed. > > ~~~~~~~~~~~~~~~~ > > # modinfo 8192eu > filename: /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > version: v4.3.1.1_11320.20140505 > author: Realtek Semiconductor Corp. > description: Realtek Wireless Lan Driver > license: GPL > srcversion: 45A7C17EE731A4EB2668470 > alias: usb:v0BDAp818Cd*dc*dsc*dp*icFFiscFFipFFin* > alias: usb:v0BDAp818Bd*dc*dsc*dp*icFFiscFFipFFin* > depends: > vermagic: 3.18.0-0.rc3.git1.2.fc22.1.x86_64 SMP mod_unload > ... > > ~~~~~~~~~~~~~~~~~~~~ > > # modprobe -v 8192eu > insmod /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko > > > # dmesg -t > ... > 8192eu: module verification failed: signature and/or required key missing - tainting kernel > RTL871X: module init start > RTL871X: rtl8192eu v4.3.1.1_11320.20140505 > RTL871X: build time: Nov 6 2014 06:31:24 > usbcore: registered new interface driver rtl8192eu > RTL871X: module init ret=0 > Until you find a solution within dkms, this script/service can help you /usr/bin/check-8192eu-vermagic #!/bin/sh # # Compare 8192eu vermagic and kernel release, # if not equal build and install 8192eu.ko again vermagic=$(modinfo 8192eu -F vermagic | awk '{print $1}') kernelrel=$(uname -r) if [[ $vermagic != $kernelrel ]]; then dkms remove -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) dkms build -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) dkms install -m rtl8192eu -v 4.3.1.1-11320.20140505 -k $(uname -r) modprobe -v 8192eu else echo OK fi ~~~~~~~~~~~ # chmod +x /usr/bin/check-8192eu-vermagic ~~~~~~~~~~~~~~~~~~~ /etc/systemd/system/check-8192eu-vermagic.service [Unit] Description=Compare 8192eu vermagic and kernel release [Service] ExecStart=/usr/bin/check-8192eu-vermagic [Install] WantedBy=multi-user.target ~~~~~~~~~~~~~~~~~ systemctl enable check-8192eu-vermagic.service ~~~~~~ REBOOT ~~~~~~~~~~~~~~~~~~~ # journalctl -b -u check-8192eu-vermagic.service -o -cat building 8192eu -------- Uninstall Beginning -------- Module: rtl8192eu Version: 4.3.1.1-11320.20140505 Kernel: 3.18.0-0.rc3.git1.2.fc22.1.x86_64 (x86_64) ------------------------------------- Status: Before uninstall, this module version was ACTIVE on this kernel. Removing any linked weak-modules 8192eu.ko: - Uninstallation - Deleting from: /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/ - Original module - No original module was found for this module on this kernel. - Use the dkms install command to reinstall any previous module version. depmod......... DKMS: uninstall completed. Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... cd /var/lib/dkms/rtl8192eu/4.3.1.1-11320.20140505/build ; make................... cleaning build area... DKMS: build completed. 8192eu: Running module version sanity check. - Original module - No original module exists within this kernel - Installation - Installing to /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/ Adding any weak-modules depmod... DKMS: install completed. insmod /lib/modules/3.18.0-0.rc3.git1.2.fc22.1.x86_64/extra/8192eu.ko ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Until the next kernel upgrade # journalctl -b -u check-8192eu-vermagic.service -o cat OK Besides subscribe http://vger.kernel.org/vger-lists.html#linux-wireless and try to contact Larry Finger in order to get RTL8192EU into the kernel. poma -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines Have a question? Ask away: http://ask.fedoraproject.org