Activation Codes and Methods, Hardware Details, Sniffing
Post Reply
ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 14 Sep 2011, 03:34

Oh, in that case you're probably right that it's grub. Any idea how to tell if the udev is loaded yet?

I'm reading stuff like this:

https://www.gnu.org/software/grub/manua ... 02dinstall

Which is telling me about how grub can sometimes play badly w/ USB devices. But it's slow going over here.

And I still haven't gotten the driver working.

OMS

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Flaky

Post by duey » 25 Nov 2011, 18:45

Guys, I've followed all steps in the forum (which are great btw). I was able to get my AM10 working on Ubuntu 10.04. However, it is extremely flaky. I have to use a VPN frequently. Connecting and disconnecting frequently as well as various other tasks usually result in my wireless connection dropping.

The interface disappears from iwconfig and the only way to get it back is to restart.

Also, my machine freezes quite frequently too. How can I get this more stable? This is still unusable since I can't really work with my machine constantly requiring reboots.

Thanks

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Re: Flaky

Post by ohmysql » 25 Nov 2011, 21:10

duey wrote:Guys, I've followed all steps in the forum (which are great btw). I was able to get my AM10 working on Ubuntu 10.04. However, it is extremely flaky. I have to use a VPN frequently. Connecting and disconnecting frequently as well as various other tasks usually result in my wireless connection dropping.

The interface disappears from iwconfig and the only way to get it back is to restart.

Also, my machine freezes quite frequently too. How can I get this more stable? This is still unusable since I can't really work with my machine constantly requiring reboots.

Thanks
What driver are you using? FYI this should now work out of box on 11.10. I'm using rt2800usb, without too many problems. I could try a little more on 11.04 as I have another box that uses it. But I'd prefer not to bother if I can help it.

PS I should mention that the grub issue is now fixed.
PPS I'm not sure if I mentioned on this forum that the AM10 now works out of box on 11.10. But that is cause for some SERIOUS celebration!

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 25 Nov 2011, 21:14

$ ndiswrapper -l

rt2870 : driver installed
device (13B1:0031) present

Thus, I'm using the rt2870 driver. Does that look OK?

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 25 Nov 2011, 21:52

Here's the output from dmesg after my most recent loss of connection.

Code: Select all


[ 2079.103890] BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
[ 2079.103904] IP: [<ffffffffa031eb2b>] IofCompleteRequest+0xcb/0x1c0 [ndiswrapper]
[ 2079.103953] PGD 20a5fe067 PUD 20a5e3067 PMD 0 
[ 2079.103963] Oops: 0002 [#1] SMP 
[ 2079.103970] last sysfs file: /sys/devices/pci0000:00/0000:00:07.0/0000:04:00.0/irq
[ 2079.103977] CPU 2 
[ 2079.103981] Modules linked in: cifs ndiswrapper nls_iso8859_1 nls_cp437 vfat fat snd_hda_codec_atihdmi fbcon tileblit font bitblit softcursor usb_storage vga16fb vgastate snd_hda_codec_realtek binfmt_misc ppdev snd_hda_intel snd_hda_codec snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq snd_timer snd_seq_device radeon psmouse edac_core edac_mce_amd ttm drm_kms_helper serio_raw snd i2c_piix4 drm i2c_algo_bit soundcore snd_page_alloc lp parport usbhid hid ohci1394 ieee1394 ahci pata_atiixp pata_jmicron r8169 mii
[ 2079.104070] Pid: 1715, comm: ntos_wq Tainted: P           2.6.32-35-generic #78-Ubuntu RD790A01
[ 2079.104077] RIP: 0010:[<ffffffffa031eb2b>]  [<ffffffffa031eb2b>] IofCompleteRequest+0xcb/0x1c0 [ndiswrapper]
[ 2079.104120] RSP: 0018:ffff88020acf3d90  EFLAGS: 00010202
[ 2079.104125] RAX: 0000000000000010 RBX: ffff88020a6fee00 RCX: ffff88020a436d20
[ 2079.104131] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002
[ 2079.104136] RBP: ffff88020acf3dd0 R08: ffff88020a436d20 R09: 0000000000000000
[ 2079.104141] R10: 0000000000000000 R11: 0000000000000001 R12: ffff88020a6fef18
[ 2079.104146] R13: ffff88020acf3d9f R14: 0000000000000000 R15: ffff88020acf3fd8
[ 2079.104153] FS:  00007fe6435d97a0(0000) GS:ffff880028300000(0000) knlGS:0000000000000000
[ 2079.104159] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
[ 2079.104164] CR2: 0000000000000010 CR3: 0000000224ec6000 CR4: 00000000000006e0
[ 2079.104169] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2079.104175] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 2079.104182] Process ntos_wq (pid: 1715, threadinfo ffff88020acf2000, task ffff880214670000)
[ 2079.104186] Stack:
[ 2079.104189]  ffff880224aa3900 00ff88020a6fee00 ffff88020acf3dd0 ffff88020a6fee00
[ 2079.104197] <0> ffff880224aa3900 ffff88020a436da8 ffffe8ffffc08ac0 ffff88020acf3fd8
[ 2079.104207] <0> ffff88020acf3e00 ffffffffa03290e5 0000000000015d00 ffffffffa0338c40
[ 2079.104218] Call Trace:
[ 2079.104260]  [<ffffffffa03290e5>] wrap_urb_complete_worker+0xf5/0x1d0 [ndiswrapper]
[ 2079.104300]  [<ffffffffa0328ff0>] ? wrap_urb_complete_worker+0x0/0x1d0 [ndiswrapper]
[ 2079.104314]  [<ffffffff810801a7>] run_workqueue+0xc7/0x1a0
[ 2079.104324]  [<ffffffff81080323>] worker_thread+0xa3/0x110
[ 2079.104333]  [<ffffffff81084d80>] ? autoremove_wake_function+0x0/0x40
[ 2079.104342]  [<ffffffff81080280>] ? worker_thread+0x0/0x110
[ 2079.104350]  [<ffffffff81084a06>] kthread+0x96/0xa0
[ 2079.104358]  [<ffffffff810131ea>] child_rip+0xa/0x20
[ 2079.104365]  [<ffffffff81084970>] ? kthread+0x0/0xa0
[ 2079.104372]  [<ffffffff810131e0>] ? child_rip+0x0/0x20
[ 2079.104375] Code: 00 80 7b 44 01 0f 84 05 01 00 00 80 7b 41 00 90 0f 84 aa 00 00 00 40 38 f7 0f 8c 89 00 00 00 48 8b 43 48 48 85 c0 74 11 8b 53 30 <89> 10 48 8b 43 48 48 8b 53 38 48 89 50 08 48 8b 7b 50 48 85 ff 
[ 2079.104440] RIP  [<ffffffffa031eb2b>] IofCompleteRequest+0xcb/0x1c0 [ndiswrapper]
[ 2079.104480]  RSP <ffff88020acf3d90>
[ 2079.104483] CR2: 0000000000000010
[ 2079.104489] ---[ end trace e700c00fedd454aa ]---
[ 2093.770036]  CIFS VFS: No response to cmd 46 mid 6754
[ 2093.770046]  CIFS VFS: Send error in read = -11
[ 2143.782521]  CIFS VFS: Unexpected lookup error -112
[ 2163.780030]  CIFS VFS: Unexpected lookup error -112
[ 2183.790033]  CIFS VFS: Unexpected lookup error -112
[ 2203.790032]  CIFS VFS: Unexpected lookup error -112
[ 2223.790033]  CIFS VFS: Unexpected lookup error -112
[ 2243.790032]  CIFS VFS: Unexpected lookup error -112

Also, it's unfortunate, but this is a work machine and I am unable to upgrade from 10.04.[/code]

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 25 Nov 2011, 22:05

I have no idea what's going on in your dmesg. But I would bet you're using the wrong driver. I've tried using rt2870 a lot and it never worked for me. rt2800usb worked right away - are you able to try it?

(http://www.ralinktech.com/en/04_support ... php?sn=501)

Either way, please do show me:

Code: Select all

lsmod | grep rt
And if you get rt2800usb

Code: Select all

modinfo rt2800usb | grep 0031
Oh and ndiswrapper never worked for me. I purged it from my system and blocked it in udev. I'm told that the rt2870 driver is already unstable on windows. Porting it to linux would therefore be even worse - disastrous, even. It constantly froze my computer.

OMS!

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 25 Nov 2011, 22:22

hmm, so I can tell you that lsmod | grep rt didn't return anything. I see ndiswrapper in there, but nothing relating to the rt28** driver.

Also, I don't seem to see the rt2800usb driver on the link you provided. Am I missing something?

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 25 Nov 2011, 22:40

Yeah. I'm pretty sure you'll need to drop the ndiswrapper driver.

Sorry about not being clear about the link. On that page it's called rt28xx (then there's a few words then it says USB).

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 25 Nov 2011, 22:42

OK, so I did the following:

sudo modprobe rt2800
lsmod | grep rt

Code: Select all

rt2800usb        33496   0
rt2x00usb        11260   1 rt2800usb
rt2x00lib           32165  2 rt2800usb,rt2x00usb
led_class          3764    1 rt2x00lib
mac80211       238896  2 rt2x00usb,rt2x00lib
cfg80211         148341  2 rt2x00lib,mac80211
crc_ccitt            1675     2 rt2800usb
modinfo rt2899usb | grep 0031 returns nothing

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 25 Nov 2011, 22:55

I downloaded the zip that you recommended (i.e., 28xx .... followed by USB). I'm confused because when I look at the contents of the zip file I see rt2870.bin, which is the driver you told me not to use.

Can you give me steps, as if I was starting fresh, for what I need to do? I feel like I need to start from square one. I've tried so many things this week...

Also, thanks a lot for your prompt responses. I really appreciate it.

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 25 Nov 2011, 23:41

duey wrote:I downloaded the zip that you recommended (i.e., 28xx .... followed by USB). I'm confused because when I look at the contents of the zip file I see rt2870.bin, which is the driver you told me not to use.

Can you give me steps, as if I was starting fresh, for what I need to do? I feel like I need to start from square one. I've tried so many things this week...

Also, thanks a lot for your prompt responses. I really appreciate it.
You're welcome.

I'm sorry to throw kind of giant threads at you. If you don't mind reading through them, you'll get a good sense of the necessary steps:

http://ubuntuforums.org/showthread.php?t=1841123
http://ubuntuforums.org/showthread.php?t=1857638
http://ubuntuforums.org/showthread.php?t=1857635

Especially that first link, #4 the guy shows more or less what you need to do.

I was a total n00b when I started doing this, now I can instruct people, which is pretty cool. I will be happy to walk you through it, but I have to run right now, and I was wondering if you'd be willing to review those threads. They give a lot of advice.

I'm going to post my personal notes on the steps - and I'll walk you through each one later if you're still having trouble:
Switching wireless drivers?

You'll want to black things out and set etc/modules

gksudo gedit /etc/modprobe.d/blacklist.conf
(to automate)
gksudo gedit /etc/modules
sudo rmmod [one]
sudo modprobe [the other]

How about them udev rules, eh?

gksudo gedit /etc/udev/rules.d/70-persistent-net.rules


ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="13b1", ATTR{idProduct}=="0031", RUN+="/sbin/modprobe -qba rt2800usb"


sudo service udev reload


How about that driver looking up my product and vendor ID?

/home/cool1/Desktop/Drivers/2011_0427_RT3572_Linux_STA_v2.5.0.0.DPO/common

rtusb_dev_id.c

Add under RT35xx

{USB_DEVICE(0x13B1,0x0031)}, /*Cisco Linksys AM10*/

common/cmm_wpa.c

Search for:

MIX_CIPHER_NOTUSE

Replace with:

WPA_TKIPAES_WPA2_TKIPAES

Used to be:

WPA_MIX_PAIR_CIPHER FlexibleCipher = MIX_CIPHER_NOTUSE;

In addition to changing:

HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y

I just tried:

HAS_QOS_DLS_SUPPORT=y
HAS_DOT11N_DRAFT3_SUPPORT=y
HAS_DOT11_N_SUPPORT=y
HAS_STATS_COUNT=y



According to: http://ubuntuforums.org/showthread.php?t=1487397&page=4

sudo rmmod [olddriver] && sudo make uninstall && sudo make clean
sudo make && sudo make install

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 25 Nov 2011, 23:46

Question: when you open the zip file for the rt28xxUSB driver and look at common/cmm_wpa.c, does it say:

Code: Select all

HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
If not, you'll need to change those to y if you're plan to use network manager or wicd. Then you'll need to compile the driver. ("Compile the driver" sounds a lot scarier than it is. Believe me, if I can do it, you can).

Earlier in this thread, someone gives instructions on how to install driver compiling software. When that's installed, it just means you open terminal and do:

Code: Select all

make
sudo make install
sudo modprobe [driver name]
The first sets up the driver code from the config files, some of which you can set manually. The second and third install the driver on your computer.


OMS!

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 26 Nov 2011, 00:54

well, some progress, but still no dice.

I followed all of the steps you laid out in your notes. When I run iwconfig I now see a ra0 interface. That wasn't there before. Also, the network manager seems to indicate that I have a wireless connection, but I'm still not able to actually connect. I can't even connect to the router. Not sure what else to say. This has been a ridiculously frustrating process.

Let me know if you need me to post any output so we can work through this.

Thanks,

ohmysql
Posts: 55
Joined: 22 Jul 2011, 16:47

Post by ohmysql » 26 Nov 2011, 07:35

Yeah...

It took me 3-4 months, of many, many steps to get this working. I have a feeling we'll get you going in at most a few weeks with the work I and many others have done. But suffice it to say, I know frustration.

You didn't answer a few of my questions, which is going to slow things down - did you read the threads I sent you? Especially the first one?

And also, please see my question about "common/cmm_wpa.c." It's very important. If either of those say "=n" we're going to need to recompile the driver from scratch.

Anyway, please post:

Code: Select all

modinfo rt2800usb | grep 0031
lsusb
cat /etc/udev/rules.d/70-persistent-net.rules
cat /etc/modules
cat /etc/modprobe.d/blacklist.conf
sudo iwlist scan
iwconfig
Also, please look in your additional drivers settings. On mine, I had an rt2870 driver that appeared one day.

Probably what you're going to end up doing is removing the current rt2800usb driver and replacing it with one we're going to slightly alter ourselves. All the instructions are in those threads or you can wait for me to walk you through it.

What happens in network manager? Do you see the wireless network you're trying to connect to? What kind of encryption do you use?

You may end up needing to use wicd instead.

I know it's a lot of questions, but trust me, they're all essential.

OMS

duey
Posts: 14
Joined: 25 Nov 2011, 18:38

Post by duey » 26 Nov 2011, 20:14

Apologies, I'm in a bit of a rush, but here's the output you requested:

Code: Select all


$modinfo rt2800usb | grep 0031

$ lsusb
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 046d:c313 Logitech, Inc. 
Bus 003 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 007: ID 13b1:0031 Linksys 
Bus 001 Device 006: ID 1307:1169 Transcend Information, Inc. TS2GJF210 JetFlash 210 2GB
Bus 001 Device 005: ID 1307:0169 Transcend Information, Inc. 
Bus 001 Device 004: ID 0781:5530 SanDisk Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ cat /etc/udev/rules.d/70-persistent-net.rules 
# This file maintains persistent names for network interfaces.
# See udev(7) for syntax.
#
# Entries are automatically added by the 75-persistent-net-generator.rules
# file; however you are also free to add your own entries.

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:e2:62:f8:43", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1f:e2:62:f8:42", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# USB device 0x13b1:0x0031 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:7f:74:df:15:df", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="13b1", ATTR{idProduct}=="0031", RUN+="/sbin/modprobe -qba rt2800usb"

$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

lp
rtc
rt2870sta

$ cat /etc/modprobe.d/blacklist.conf 
# This file lists those modules which we don't want to be loaded by
# alias expansion, usually so some other driver will be loaded for the
# device instead.

# evbug is a debug tool that should be loaded explicitly
blacklist evbug

# these drivers are very simple, the HID drivers are usually preferred
blacklist usbmouse
blacklist usbkbd

# replaced by e100
blacklist eepro100

# replaced by tulip
blacklist de4x5

# causes no end of confusion by creating unexpected network interfaces
blacklist eth1394

# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
# hardware on its own (Ubuntu bug #2011, #6810)
blacklist snd_intel8x0m

# Conflicts with dvb driver (which is better for handling this device)
blacklist snd_aw2

# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
blacklist i2c_i801

# replaced by p54pci
blacklist prism54

# replaced by b43 and ssb.
blacklist bcm43xx

# most apps now use garmin usb driver directly (Ubuntu: #114565)
blacklist garmin_gps

# replaced by asus-laptop (Ubuntu: #184721)
blacklist asus_acpi

# low-quality, just noise when being used for sound playback, causes
# hangs at desktop session start (Ubuntu: #246969)
blacklist snd_pcsp

# ugly and loud noise, getting on everyone's nerves; this should be done by a
# nice pulseaudio bing (Ubuntu: #77010)
blacklist pcspkr

# EDAC driver for amd76x clashes with the agp driver preventing the aperture
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
# continues to build and is installable for the few cases where its
# really needed.
blacklist amd76x_edac

blacklist rt2800usb
blacklist rt2x00lib
blacklist rt2x00usb

blacklist rt3572sta

$ sudo iwlist scan
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

eth1      Interface doesn't support scanning.

ra0       No scan results
Also, I did make the necessary modifications to the driver, both source code and config.mk file by switching a couple flags from n to y. I then uninstalled, compiled and reinstalled the driver.

As for network manager. It does not display any of the available wireless networks. Again, I have to run, but hopefully this output is enough to diagnose this thing.

On another note. Is there a better piece of hardware I could purchase that might be easier to install than this? That is another option I am willing to entertain. The issue here is that this is a work machine and I need internet ASAP. So basically, if I can't get this worked out by the end of the weekend I have to find a piece of hardware that works straight out of the box. Do you have any recommendations on such a device?

Thanks again.

Post Reply