UberStudent Forums

Help and Community for Users of Uberstudent
Return to UberStudent Home Page
It is currently Tue Oct 17, 2017 12:42 am

All times are UTC




UberStudent Logo Shirt
Hey! You can wear this UberCool UberStudent Logo Shirt

Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Sep 27, 2014 10:24 pm 
Offline
UberStudent Forum Helper

Joined: Fri Jul 25, 2014 11:17 pm
Posts: 65
The "Realtek Semiconductor RTL8192EE PCIe Wireless Network Adapter" used in some Lenovo Thinkpad laptops is hard to get going in Linux.

An effort is being made to work this out in the Ubuntu community here: https://bugs.launchpad.net/ubuntu/+sour ... ug/1239578

Since my various (incompetent and unsuccessful :lol: ) attempts to install a driver for the RTL8192 Wifi card in my Lenovo Thinkpad 540p, I always get an error message whenever I (successfuly) install new software from the Ubuntu software centre.

The relevant part of the message is this:
Quote:
Setting up oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms (0017.1016.2013~sutton1) ...
Removing old oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-0017.1016.2013~sutton1 DKMS files...

------------------------------
Deleting module version: 0017.1016.2013~sutton1
completely from the DKMS tree.
------------------------------
Done.
Loading new oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-0017.1016.2013~sutton1 DKMS files...
First Installation: checking all kernels...
Building only for 3.13.0-24-generic
Building for architecture amd64
Building initial module for 3.13.0-24-generic
Error! The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch. This indicates that it should not be built.
dpkg: error processing package oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms (--configure):
subprocess installed post-installation script returned error exit status 9
Setting up sgt-puzzles (9872-1) ...


My Questions:
1) Does this mean that Uberstudent 4.0 has the " 3.13.0-24-generic " kernel?
2) What can I do to stop the error messages? They do no harm other than being annoying.
3) Can anyone understand the explanation below and if it contains a "fix" for Uberstudent 4.0?
The explanation can be found at: https://bugs.launchpad.net/ubuntu/+sour ... ug/1239578
it is post Nr. 204. Direct link to post 204: https://bugs.launchpad.net/ubuntu/+sour ... mments/204
Quote:

I am beginning to understand this problem, but I do not have a general fix.

In kernel 3.14, the authors of mac80211 changed the API (applications interface) for routine ieee80211_is_robust_mgmt_frame() to be able to intercept a certain kind of error. For those drivers that could not fit the new model, which includes the Realtek codes, they created a new entry point that used the old method. It was named _ieee80211_is_robust_mgmt_frame(), i.e. it has an underscore. For out-of-kernel drivers such as those in the rtlwifi_new repo, there must be code that determines at compile time which API needs to be used. Such code is in these drivers. If the kernel version is 3.14 or newer, use the underscored version. If older use the one without.

Why does it fail here? The reason is that Ubuntu applied the API change to their 3.13 kernels! Now the decision gets harder. If the kernel is 3.14, or if this is Ubuntu with version 3.13.11 + some unknown patch level, use the new API. That gets quite difficult; however, if I take the simple step of having all 3.13 versions use the new API, then I break every user of 3.13 that does not run Ubuntu. I refuse to do that for the following reason. Ubuntu should not have changed the API in mid 3.13!! In doing so, they make this kind of problem for everyone trying to provide out-of-kernel drivers. For me to fix the problem for Ubuntu users by breaking every other distro's users would be effectively to reward Ubuntu for what I consider to be their bad behavior.

How do I know this is the problem. First of all, the make log that was posted shows "warning: passing argument 1 of ‘ieee80211_is_robust_mgmt_frame’ from incompatible pointer type [enabled by default]". It is true that warnings can usually be ignored; however, when arguments have an incompatible pointer type, the end result will usually be a kernel crash. When that warning occurs for a routine that has changed API, it really sticks out. Secondly, I see this change in Ubuntu's 3.11.0-36 patch file.

What can Ubuntu users do? To my thinking, switching to a 3.14 or newer kernel would be best. If you really want to stay with Ubuntu's 3.13.0-36 kernel, then run the following command in the rtlwifi_new directory:

sed -i 's/ieee80211_is_robust_mgmt_frame/_ieee80211_is_robust_mgmt_frame/g' rtl8*/trx.c

That will change the code to the new API for every kernel. Of course, that will break every kernel older than 3.13, and the command should be run *ONLY* if you see warnings of the kind noted above. To revert that change, you will need to run 'git checkout -f'.

Sorry that it has taken so long to sort this out, but I really never expected the API to change in the middle of kernel 3.13 for any distro. If the tone seems to be too bitchy, remember that I'm really angry about what has happened, and all the time I have wasted on sorting it out. My comments here are a lot milder than the way I really want to say them.


Thanks for any help with this!


Top
 Profile  
 

Click Here to Get Inexpensive UberStudent Discs


Click here to get UberStudent discs delivered to your mailbox
Delivered Directly to Your Mailbox!

PostPosted: Sun Sep 28, 2014 3:42 am 
Offline
UberStudent Founder and Lead Developer
User avatar

Joined: Sun Nov 11, 2012 8:54 am
Posts: 950
Location: UberStudent Headquarters
I think it's worth trying the updated kernel, which is otherwise pinned at 3.13.0-24 in UberStudent 4.0.

To do that, open a terminal and run the following:

Code:
sudo apt-get upgrade

Code:
sudo apt-get install libguess-dev libguess1 linux-generic linux-headers-generic linux-image-generic

Then, reboot in to the new kernel.

Does that help?

_________________
UberStudent Must Become Self-Sustaining. If UberStudent and my dedicated support of it has benefited you, it's important to make a donation. Thanks!

The UberStudent Headquarters:
    * Mobo: MSI 870-G45
    * Processor: AMD Phenom II X4 3.4GHz
    * RAM: G.SKILL 8GB DDR3 1600
    * Graphics: MSI NVIDIA GeForce GTX 750 Ti
    * Drive: OCZ Vertex SSD
    * Case: Rosewill ATX Mid Tower
    * Monitors: 2 x Dell UltraSharp
    * With UberStudent 4.3 Development Build
You should build your own computers, too!


Top
 Profile  
 
PostPosted: Sun Sep 28, 2014 10:37 am 
Offline
UberStudent Forum Helper

Joined: Fri Jul 25, 2014 11:17 pm
Posts: 65
Thanks, will try to install the new kernel.

Here is the output:

Code:
 sudo apt-get install libguess-dev libguess1 linux-generic linux-headers-generic linux-image-generic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libguess1 is already the newest version.
The following extra packages will be installed:
  libmowgli-dev linux-headers-3.13.0-36 linux-headers-3.13.0-36-generic
  linux-image-3.13.0-36-generic linux-image-extra-3.13.0-36-generic
Suggested packages:
  fdutils linux-doc-3.13.0 linux-source-3.13.0 linux-tools
The following NEW packages will be installed:
  libguess-dev libmowgli-dev linux-headers-3.13.0-36
  linux-headers-3.13.0-36-generic linux-image-3.13.0-36-generic
  linux-image-extra-3.13.0-36-generic
The following packages will be upgraded:
  linux-generic linux-headers-generic linux-image-generic
3 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 61.5 MB of archives.
After this operation, 271 MB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-3.13.0-36-generic amd64 3.13.0-36.63 [15.2 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libmowgli-dev amd64 1.0.0-1ubuntu1 [22.4 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-extra-3.13.0-36-generic amd64 3.13.0-36.63 [36.7 MB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-generic amd64 3.13.0.36.43 [1,780 B]
Get:5 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-image-generic amd64 3.13.0.36.43 [2,366 B]
Get:6 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-36 all 3.13.0-36.63 [8,909 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-36 all 3.13.0-36.63 [8,909 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-3.13.0-36-generic amd64 3.13.0-36.63 [721 kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-headers-generic amd64 3.13.0.36.43 [2,350 B]
Get:10 http://us.archive.ubuntu.com/ubuntu/ trusty/universe libguess-dev amd64 1.1-4 [5,982 B]
Fetched 58.3 MB in 1h 10min 37s (13.7 kB/s)                                   
Selecting previously unselected package linux-image-3.13.0-36-generic.
(Reading database ... 242268 files and directories currently installed.)
Preparing to unpack .../linux-image-3.13.0-36-generic_3.13.0-36.63_amd64.deb ...
Done.
Unpacking linux-image-3.13.0-36-generic (3.13.0-36.63) ...
Selecting previously unselected package libmowgli-dev:amd64.
Preparing to unpack .../libmowgli-dev_1.0.0-1ubuntu1_amd64.deb ...
Unpacking libmowgli-dev:amd64 (1.0.0-1ubuntu1) ...
Selecting previously unselected package linux-image-extra-3.13.0-36-generic.
Preparing to unpack .../linux-image-extra-3.13.0-36-generic_3.13.0-36.63_amd64.deb ...
Unpacking linux-image-extra-3.13.0-36-generic (3.13.0-36.63) ...
Preparing to unpack .../linux-generic_3.13.0.36.43_amd64.deb ...
Unpacking linux-generic (3.13.0.36.43) over (3.13.0.24.28) ...
Preparing to unpack .../linux-image-generic_3.13.0.36.43_amd64.deb ...
Unpacking linux-image-generic (3.13.0.36.43) over (3.13.0.24.28) ...
Selecting previously unselected package linux-headers-3.13.0-36.
Preparing to unpack .../linux-headers-3.13.0-36_3.13.0-36.63_all.deb ...
Unpacking linux-headers-3.13.0-36 (3.13.0-36.63) ...
Selecting previously unselected package linux-headers-3.13.0-36-generic.
Preparing to unpack .../linux-headers-3.13.0-36-generic_3.13.0-36.63_amd64.deb ...
Unpacking linux-headers-3.13.0-36-generic (3.13.0-36.63) ...
Preparing to unpack .../linux-headers-generic_3.13.0.36.43_amd64.deb ...
Unpacking linux-headers-generic (3.13.0.36.43) over (3.13.0.24.28) ...
Selecting previously unselected package libguess-dev:amd64.
Preparing to unpack .../libguess-dev_1.1-4_amd64.deb ...
Unpacking libguess-dev:amd64 (1.1-4) ...
Setting up oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms (0017.1016.2013~sutton1) ...
Removing old oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-0017.1016.2013~sutton1 DKMS files...

------------------------------
Deleting module version: 0017.1016.2013~sutton1
completely from the DKMS tree.
------------------------------
Done.
Loading new oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-0017.1016.2013~sutton1 DKMS files...
First Installation: checking all kernels...
Building for 3.13.0-24-generic and 3.13.0-36-generic
Building for architecture amd64
Building initial module for 3.13.0-24-generic
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
dpkg: error processing package oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms (--configure):
 subprocess installed post-installation script returned error exit status 9
Setting up linux-image-3.13.0-36-generic (3.13.0-36.63) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.13.0-36-generic...
P: Writing config for /boot/vmlinuz-3.13.0-24-generic...
P: Updating /boot/extlinux/linux.cfg...
P: Writing config for Windows 7 (loader) on /dev/sda1...
P: Writing config for Windows 7 (loader) on /dev/sda2...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-36-generic
Found initrd image: /boot/initrd.img-3.13.0-36-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done
Setting up libmowgli-dev:amd64 (1.0.0-1ubuntu1) ...
Setting up linux-image-extra-3.13.0-36-generic (3.13.0-36.63) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
initrd.img(/boot/initrd.img-3.13.0-36-generic
) points to /boot/initrd.img-3.13.0-36-generic
 (/boot/initrd.img-3.13.0-36-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-extra-3.13.0-36-generic.postinst line 491.
vmlinuz(/boot/vmlinuz-3.13.0-36-generic
) points to /boot/vmlinuz-3.13.0-36-generic
 (/boot/vmlinuz-3.13.0-36-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-extra-3.13.0-36-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
update-initramfs: Generating /boot/initrd.img-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.13.0-36-generic...
P: Writing config for /boot/vmlinuz-3.13.0-24-generic...
P: Writing config for Windows 7 (loader) on /dev/sda1...
P: Writing config for Windows 7 (loader) on /dev/sda2...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.13.0-36-generic
Found initrd image: /boot/initrd.img-3.13.0-36-generic
Found linux image: /boot/vmlinuz-3.13.0-24-generic
Found initrd image: /boot/initrd.img-3.13.0-24-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sda2
done
Setting up linux-image-generic (3.13.0.36.43) ...
Setting up linux-headers-3.13.0-36 (3.13.0-36.63) ...
Setting up linux-headers-3.13.0-36-generic (3.13.0-36.63) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-36-generic /boot/vmlinuz-3.13.0-36-generic
Error!  The dkms.conf for this module includes a BUILD_EXCLUSIVE directive which
does not match this kernel/arch.  This indicates that it should not be built.
Setting up linux-headers-generic (3.13.0.36.43) ...
Setting up linux-generic (3.13.0.36.43) ...
Setting up libguess-dev:amd64 (1.1-4) ...
Errors were encountered while processing:
 oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@user-ThinkPad-T540p:~$




So, what does it all mean?? :oops:

Looks to me like I have 2 kernels now, but neither agree with the Wifi card driver.

Will there be a choice when I boot up next time?

Lets go try....


Top
 Profile  
 
PostPosted: Sun Sep 28, 2014 12:28 pm 
Offline
UberStudent Forum Helper

Joined: Fri Jul 25, 2014 11:17 pm
Posts: 65
Booting into the updated kernel worked, and indeed there is now the chioce to boot into "Older Linux Versions" during bootup. Clicking there allows booting into the 3.13.0-24 Kernel.

However, unfortunately there is still no Wifi access with the newer kernel, but no obvious problems so far, either.

The error messages after new software installations continue:
Code:
Errors were encountered while processing:
 oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms
Error in function:
Setting up oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-dkms (0017.1016.2013~sutton1) ...
Removing old oem-wireless-rtl-92ce-92se-92de-8723ae-88ee-8723be-92ee-0017.1016.2013~sutton1 DKMS files...


Top
 Profile  
 
PostPosted: Sun Sep 28, 2014 8:02 pm 
Offline
UberStudent Forum Helper

Joined: Fri Jul 25, 2014 11:17 pm
Posts: 65
Reading through the post No 204 at https://bugs.launchpad.net/ubuntu/+sour ... ug/1239578 again, (considering that I now have changed from Kernel 3.13.0-24 to Kernel 3.13.0-36):

Quote:
What can Ubuntu users do? To my thinking, switching to a 3.14 or newer kernel would be best. If you really want to stay with Ubuntu's 3.13.0-36 kernel, then run the following command in the rtlwifi_new directory:

sed -i 's/ieee80211_is_robust_mgmt_frame/_ieee80211_is_robust_mgmt_frame/g' rtl8*/trx.c


So I still don't have the 3.14 Kernel and should try to use the API starting with _ieee80211 .

I tried
Code:
sed -i 's/ieee80211_is_robust_mgmt_frame/_ieee80211_is_robust_mgmt_frame/g' rtl8*/trx.c
sed: can't read rtl8*/trx.c: No such file or directory


but I can not find in which directory the _ieee80211_is_robust_mgmt_frame/g' rtl8*/trx.c
is located.

Any idea where to start looking? I installed SearchMonkey and it does not find the file on my computer at all.


Top
 Profile  
 
PostPosted: Mon Sep 29, 2014 8:25 am 
Offline
UberStudent Founder and Lead Developer
User avatar

Joined: Sun Nov 11, 2012 8:54 am
Posts: 950
Location: UberStudent Headquarters
I can't find trx.c on my system, either. Let me look in to it....

_________________
UberStudent Must Become Self-Sustaining. If UberStudent and my dedicated support of it has benefited you, it's important to make a donation. Thanks!

The UberStudent Headquarters:
    * Mobo: MSI 870-G45
    * Processor: AMD Phenom II X4 3.4GHz
    * RAM: G.SKILL 8GB DDR3 1600
    * Graphics: MSI NVIDIA GeForce GTX 750 Ti
    * Drive: OCZ Vertex SSD
    * Case: Rosewill ATX Mid Tower
    * Monitors: 2 x Dell UltraSharp
    * With UberStudent 4.3 Development Build
You should build your own computers, too!


Top
 Profile  
 
PostPosted: Mon Nov 17, 2014 1:37 am 
Offline
UberStudent Forum Helper

Joined: Fri Jul 25, 2014 11:17 pm
Posts: 65
The advice at https://bugs.launchpad.net/ubuntu/+sour ... mments=all has now changed to:
Quote:
Status:

pull-request for trusty was NAKed because next minor Trusty release will use Utopic LTS kernel, which had already fixed this issue.

please wait it or upgrade your whole distro to Utopic.


Can I upgrade the Uberstudent kernel (not that I know how to do that! :lol: ) or do I have to wait until US 5 arrives?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

Click Here to Get Inexpensive UberStudent Discs


Click here to get UberStudent discs delivered to your mailbox
Delivered Directly to Your Mailbox!



All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group