Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Netgear WNA1100 (N150 Wireless USB Adapter)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Loko123
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2011
Posts: 91

PostPosted: Sat Oct 29, 2011 6:41 am    Post subject: Reply with quote

I´ve got the same problem on my fresh ~amd64 install... :-(

The strange thing is, that the USB Adapter is working like a charm on SystemRescueCd-x86-2.3.1. As SystemRescueCd is also Gentoo based, I am sure that it is also working with the default Gentoo build. I think we forgot an USB driver module.

Loko123
Back to top
View user's profile Send private message
Loko123
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2011
Posts: 91

PostPosted: Sat Oct 29, 2011 7:13 am    Post subject: Reply with quote

I compiled every USB driver in my kernel (* prefix) - But it is still not working...

The stick is going to be initialized before mounting the root fs. After that, the system don't recognize the stick anymore. :(
Back to top
View user's profile Send private message
Gusar
Advocate
Advocate


Joined: 09 Apr 2005
Posts: 2557
Location: Slovenia

PostPosted: Sat Oct 29, 2011 7:36 am    Post subject: Reply with quote

ath9k_htc devices require firmware. So install linux-firmware. Also, compile the driver as a module.
Back to top
View user's profile Send private message
Loko123
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2011
Posts: 91

PostPosted: Sat Oct 29, 2011 11:03 am    Post subject: Reply with quote

Thanks Gusar! Now it works like a charm! :-)
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Sat Oct 29, 2011 5:54 pm    Post subject: Reply with quote

Gusar wrote:
gentooP4 wrote:
Gusar, yes I am.

But of course you are. Which makes it very, very obvious what the issue is.


Well please enlighten me then
_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Sat Oct 29, 2011 5:57 pm    Post subject: Reply with quote

DONAHUE wrote:
everything except ifconfig says it works

Quote:
modprobe ath9k_htc returns, FATAL module not found
does not fit with the lsmod result. modprobe for an already installed module should just return with no printed output.

reboot and as soon as up
Code:
dmesg | wgetpaste
and post url
when convenient boot mint and compare dmesg

time for the drill or blow $20 on a not netgear not atheros not broadcom dongle. I'd send you my broadcom chip netgear packaged dongle ... but ... it has no linux driver ... not even one that doesn't work ...


Please see below DONAHUE, thanks for you continued assistance!
http://paste.pocoo.org/show/500089/
_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Sat Oct 29, 2011 6:37 pm    Post subject: Reply with quote

@ Loko123 could you
Code:
 dmesg | wgetpaste
lsmod | wgetpaste
wgetpaste /usr/src/linux/.config
and post url's so gentooP4 could compare?

@ P4 the dmesg looks good also but ..
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Loko123
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2011
Posts: 91

PostPosted: Sat Oct 29, 2011 10:23 pm    Post subject: Reply with quote

DONAHUE wrote:
@ Loko123 could you
Code:
 dmesg | wgetpaste
lsmod | wgetpaste
wgetpaste /usr/src/linux/.config
and post url's so gentooP4 could compare?

@ P4 the dmesg looks good also but ..

Sorry... :$ I forgot to mention, that it is also necessary to compile some modules. I'll attach it as code. :)

Code:

[*] Networking support --->
  -*- Wireless
    <*> cfg80211 - wireless configuration API
    [*] enable powersave by default
    [*] cfg80211 wireless extensions compatibility
    [*] Wireless extensions sysfs files
    <M> Common routines for IEEE802.11 drivers
    <M> Generic IEEE 802.11 Networking Stack (mac80211)
    [*] Minstrel
    [*]   Minstrel 802.11n support

Device Drivers --->
    Generic Driver Options --->
    [*] Prevent firmware from being built
    -*- Userspace firmware loading support
    [*] Include in-kernel firmware blobs in kernel binary
  [*] Network device support --->
    [*] Wireless LAN --->
      <M> Atheros Wireless Cards --->
      <M> Atheros HTC based wireless cards support


After that I have emerged linux-firmware, made a reboot and suddenly the stick has worked like a charm. :)

Loko123
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Sun Oct 30, 2011 7:33 am    Post subject: Reply with quote

@ Loko123
Code:
emerge wgetpaste
dmesg | wgetpaste
lsmod | wgetpaste
wgetpaste /usr/src/linux/.config
and post the url's still might be helpful

@gusar
Quote:
But of course you are. Which makes it very, very obvious what the issue is.
Not that obvious. What is the issue you see?

Quote:
[*] Minstrel
[*] Minstrel 802.11n support
could be the magic bullet

Quote:
[*] Include in-kernel firmware blobs in kernel binary
should not matter unless you told the kernel to build in some ath9k firmware in the line
Quote:
( ) External firmware blobs to build into the kernel binary

which would expose the line
Quote:
(firmware) Firmware blobs root directory (NEW)

_________________
Defund the FCC.
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Thu Nov 03, 2011 9:12 pm    Post subject: Reply with quote

Still no luck with this. I don't appear to have this option

Code:
[*] Minstrel 802.11n support


it's more like

Code:
-*- Minstrel

_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Thu Nov 03, 2011 11:45 pm    Post subject: Reply with quote

-*- Minstrel means other choices have automatically enabled it.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Mon Nov 07, 2011 11:23 pm    Post subject: Reply with quote

Getting closer! (I think?)

I think I'm getting the wpa_supplicant application to recognise my USB dongle, these are the instructions I followed ....

Linux Sea wrote:
Using wpa_supplicant for WPA Encrypted Networks
The wpa_supplicant tool is a software component which controls the wireless connection between
your system and an access point. A major advantage of wpa_supplicant over the previously described
wireless tools is its support for WPA/WPA2.
Before you can use wpa_supplicant, you first need to install it:
Code:
# emerge -a wpa_supplicant


Accessing a Wireless Network
You need to configure your wpa_supplicant to support the wireless network(s) you want to access.
Suppose that your home network is called "home" and is a secured (WPA) environment with key
"myHomeKey" and at your work there is a wireless network called "CompanyGuests", secured (WPA)
environment with key "myCompanyKey" and a third network at your local computer club called
"hobby", not secured, then the following wpa_supplicant.conf configuration could work:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="home" ***I updated this of course***
psk="myHomeKey" ***and this one**
}


You can copy/paste the resulting information in wpa_supplicant.conf and remove the
(commented) plain-text key information.
If your wireless card is found by Linux (and its powered on), then running the following command
will activate the wpa_supplicant on top of it (assume the wireless interface is called wlan0):
Code:
# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf


One interesting option is the -D option: with this you select the wireless driver to use. With -Dwext,
we use the Linux wireless extensions (which is quite generic). In certain cases you might need to use a
different driver - the Internet has many resources on how to configure your specific wireless network
card with Linux if the Linux wireless extensions don't work.
Of course, once the configuration file is finished, you can use Gentoo's networking scripts as well.

First, edit /etc/conf.d/net to use wpa_supplicant:
Code:
modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"


To have the wireless support active when you boot up your system, enable the net.wlan0 init script.
If /etc/init.d/net.wlan0 doesn't exist yet, first create it:
Code:
# cd /etc/init.d
# ln -s net.lo net.wlan0


Next, add the net.wlan0 init script to the default runlevel:
Code:
# rc-update add net.wlan0 default


The light is now flashing intermittently but the application doesn't manage to connect.
It did find other wireless networks (neighbours) which I thought was a good sign!

Also during boot I get a message along the lines of "wlan0 found but not active" or words to that effect.

Many thanks
_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Mon Nov 07, 2011 11:46 pm    Post subject: Reply with quote

that should mean that running ifconfig -a and ifconfig shows wlan0, major progress if so.

if you have USE="qt4" in /etc/make.conf or net-wireless/wpa_supplicant qt4 in /etc/portage/package.use and you
Code:
emerge wpa_supplicant
you will have a GUI interface, wpa_gui, to manage network connections with.

hide passphrase but post results of
Code:
cat /etc/conf.d/net
ls /etc/init.d/net*
rc-update show
cat /etc/wpa_supplicant/wpa_supplicant.conf

_________________
Defund the FCC.
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Fri Nov 11, 2011 1:04 pm    Post subject: Reply with quote

Hello DONAHUE,

Please see below outputs:

Code:
hayden@sidcup ~ $ cat /etc/conf.d/net
# This blank configuration will automatically use DHCP for any net.*
# scripts in /etc/init.d.  To create a more complete configuration,
# please review /etc/conf.d/net.example and save your configuration
# in /etc/conf.d/net (this file :]!).
config_eth0=( "dhcp" )
modules="wpa_supplicant"
wpa_supplicant_wlan0="-Dwext"


Code:
hayden@sidcup ~ $ ls /etc/init.d/net*
/etc/init.d/net.eth0  /etc/init.d/net.wlan0  /etc/init.d/network
/etc/init.d/net.lo    /etc/init.d/netmount


Code:
hayden@sidcup ~ $ sudo rc-update show
            alsasound | boot                                         
             bootmisc | boot                                         
          consolefont | boot                                         
           consolekit |      default                                 
                 dbus |      default                                 
                devfs |                                        sysinit
        device-mapper | boot                                         
                dmesg |                                        sysinit
                 fsck | boot                                         
             hostname | boot                                         
              hwclock | boot                                         
              keymaps | boot                                         
            killprocs |                        shutdown               
                local |      default nonetwork                       
           localmount | boot                                         
              modules | boot                                         
             mount-ro |                        shutdown               
                 mtab | boot                                         
             net.eth0 |      default                                 
               net.lo | boot                                         
            net.wlan0 |      default                                 
             netmount |      default                                 
               procfs | boot                                         
                 root | boot                                         
            savecache |                        shutdown               
                 swap | boot                                         
               sysctl | boot                                         
            syslog-ng |      default                                 
         termencoding | boot                                         
                 udev |                                        sysinit
       udev-postmount |      default                                 
              urandom | boot                                         
           vixie-cron |      default                                 
                  xdm |      default


No quite in the same directory, does this matter?

Code:
hayden@sidcup ~ $ cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
ssid="BThub3-4RGK"
proto=WPA2
psk="my password goes here"
}

#network={
#ssid="CompanyGuests"
#psk="myCompanyKey"
#}

#network={
#ssid="hobby"
#key_mgmt=NONE
#}


Many thanks!
_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Fri Nov 11, 2011 2:13 pm    Post subject: Reply with quote

Quote:
Not quite in the same directory, does this matter?
It is the wrong place.
Code:
mv /etc/wpa_supplicant.conf  /etc/wpa_supplicant/wpa_supplicant.conf
nano /etc/wpa_supplicant/wpa_supplicant.conf

edit to add
Quote:
update_config=1
ap_scan=1
after ctrl_interface_group=wheel
then
Code:
/etc/init.d/net.wlan0 restart


my current network entry fabricated by wpa_gui is:
Quote:
network={
ssid="myssid"
psk="my psk"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
You might try matching it or using wpa_gui if your performance is still problematic.

Were you able to tell what finally caused the driver to start driving your interface?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
gentooP4
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2010
Posts: 147
Location: London, England

PostPosted: Fri Nov 11, 2011 8:08 pm    Post subject: Reply with quote

It's working!! 8) 8)

Thanks a million for your assistance again DONAHUE! 8)

And no, I didn't quite figure out the kernel config exactly. It was mostly trial and error around the settings you suggested until a reboot eventually lighted up the stick.

Very happy!
_________________
Neo wasn't searching for the matrix.. he was doing an overnight emerge
Homebuilt i7 running nothing but Gentoo and KDE (-semantic-desktop)... awesome!
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 5271
Location: Goose Creek SC

PostPosted: Fri Nov 11, 2011 8:11 pm    Post subject: Reply with quote

god speed
_________________
Defund the FCC.
Back to top
View user's profile Send private message
rg.viza
n00b
n00b


Joined: 23 Mar 2012
Posts: 2

PostPosted: Fri Mar 30, 2012 12:35 am    Post subject: Reply with quote

+1 to this thread. It helped me get my driver working. From there it was easy :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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