| View previous topic :: View next topic |
| Author |
Message |
dimitrisdad n00b

Joined: 27 Apr 2012 Posts: 3
|
Posted: Fri Apr 27, 2012 7:32 am Post subject: wlan0 does not exist |
|
|
trying to set up a wireless link and am following the handbook. As the machine is not networked I am typing this out manually, hopefully there won't be any confusing typos.
| Quote: |
lspci
..
Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
Ethernet controller: Atheros Communications Inc. AR8152 v2.0 Fast Ethernet (rev c1)
|
ifconfig eth0 shows the eth0 and lo only. eth0 is the ethernet card. No wireless.
lsmod does not show the ath9k driver, so I did 'modprobe ath9k' and now lsmod shows the ath9k stuff.
| Quote: |
# lsmod
Module Size Used by
ath9k 65955 0
mac80211 ... 1 ath9k
ath9k_common ...
|
but there is no change to what ifconfig or iwconfig show.
Poking around on other parts of this forum caused me try ln -s net.lo net.wlan0 in init.d. However
| Quote: |
# /etc/init.dnet.wlan0 start
* Bringing up interface wlan0
* ERROR: interface wlan0 doe not exist
* Ensure that you have loaded the correct kernel module for your hardware
..
|
I also followed the directions for wpa_supplicant, but it yelled at me for the same reason, that wlan0 did not exist.
I don't understand, where is the name wlan0 coming from? Or will the system call this eth1 when it starts working? |
|
| Back to top |
|
 |
dimitrisdad n00b

Joined: 27 Apr 2012 Posts: 3
|
Posted: Fri Apr 27, 2012 7:47 am Post subject: |
|
|
let me clarify, "ifconfig -a" shows information for 'eth0' and for 'lo' only. 'eth0' is the ethernet card, lo is the loopback device. No wireless device is shown.
The manual is a bit confusing, as though one can always check for wireless on eth0, when the far more common case is that eth0 will in fact be a hardwired eithernet interface, it says :
| Quote: |
To check if your network card is now detected, use ifconfig. A detected network card would result in something like this:
Code Listing 3.3: Testing availability of your network card, successful
# ifconfig eth0
|
|
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Fri Apr 27, 2012 5:39 pm Post subject: same error on my notebook! |
|
|
When I load the module ath9k ( modpobre ath9k) and then lsmod | grep ath9k i can see
livecd ~ # lsmod | grep ath9k
livecd ~ # modprobe ath9k
livecd ~ # lsmod | grep ath9k
ath9k 65955 0
mac80211 151995 1 ath9k
ath9k_common 1760 1 ath9k
ath9k_hw 322516 2 ath9k, ath9k_common
ath 13010 3 ath9k, ath9k_common, ath9k_hw
cfg80211 139901 3 ath9k,mac80211,ath
but wlan0, ath1 or ra0 doest exist!
What can i do to resolve it? |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Fri Apr 27, 2012 6:00 pm Post subject: |
|
|
caaarlos,
Welcome to Gentoo.
Look at the outout of thecommand to see if there are any errors related to wlan0 or ath9k modules?
Why do you think that ath9k is the right module for your wifi hardware?
What does say your wifi card is? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Fri Apr 27, 2012 6:57 pm Post subject: |
|
|
NeddySeagoon,
first, thx for your help! =D
when i use the command dmesg there isnt any errors with modules.
I`ve already used ubuntu and xubuntu, and my wirelles was very worst. Then I looked on internet and a see that my modules is ath9k!
my card is
ethernet = realtel RTL8111/8168B
Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01) |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Fri Apr 27, 2012 7:20 pm Post subject: |
|
|
caaarlos,
Look in your dmesg again and see if it mentions an interface being created.
Even better, if you can use your wired interface, | Code: | emerge wgetpaste
dmesg | wgetpaste | to put dmesg on the web.
Post the URL gou get back. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Fri Apr 27, 2012 7:33 pm Post subject: |
|
|
sorry but i can`t use wired internet now! I`m on holeday!
When I go to my home I`ll install gentoo using wired! |
|
| Back to top |
|
 |
dimitrisdad n00b

Joined: 27 Apr 2012 Posts: 3
|
Posted: Fri Apr 27, 2012 8:26 pm Post subject: |
|
|
I did the following
| Quote: |
livecd ~ # ls pci | tail 2
06:00 Network controller: Atheros Communications Inc. AR9485 Wireless Network Adapter (rev 01)
07:00 Ethernet controller: Atheros Communiations Inc. AR8152 v2.0 Fast Ethernet (rev c1)
livecd ~ # dmesg > d1.txt
livecd ~ # lsmod | grep ath9k
livecd ~ # modprobe ath9k
livecd ~ # lsmod | grep ath9k
ath9k 65955 0
mac80211 151995 1 ath9k
th9k_hw 322516 2 ath9k,athk_common
ath 13010 3 athk ath9k_common,ath9k_hw
cfg80211 139901 3 ath9k, mac80211,ath
livecd ~ # iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
livecd ~ # dmesg > d2.txt
livecd ~ # diff d1.txt d2.txt
-bash: diff: command not found
livecd ~ # tail -2 d1.txt
warning: process `hwsetup' used the deprecated sysctl system call with 1.23.
NET: Registered protocol family 10
livecd ~ # tail -2 d2.txt
NET: Registered protocol family 10
cfg80211: Calling CRDA to update world regulatory domain
livecd ~ #
|
|
|
| Back to top |
|
 |
cach0rr0 Moderator


Joined: 13 Nov 2008 Posts: 4117 Location: Houston, Republic of Texas
|
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Sat Apr 28, 2012 2:29 pm Post subject: |
|
|
livecd ~ # zgrep _ATH /proc/config.gz
CONFIG_ATH9K_PCI is not set
So what I have to do now? ;// |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Sat Apr 28, 2012 2:50 pm Post subject: |
|
|
| I was reading and I see that my solution is to use systemRescue CD, but this cd uses an older kernel. So I bought one ethernet cable and that is my question. Can I install by a wired connection and than up ath9k module when my gentoo will be installed? |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Sat Apr 28, 2012 4:47 pm Post subject: |
|
|
caaarlos,
Yes. That makes it easy to install the user space tools you need to make your wireless work after you have a wlan0 in
| Code: | livecd ~ # zgrep _ATH /proc/config.gz
CONFIG_ATH9K_PCI is not set | tells us about the liveCD kernel, not your own.
For your own kernel, boot the cd, mount your root partition then
| Code: | | grep _ATH /mnt/gentoo/usr/src/linux/.config |
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Sun Apr 29, 2012 3:15 pm Post subject: |
|
|
# grep _ATH /usr/src/linux/.config
CONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATH_COMMON is not set
#ifconfig -a
eth0 ...
lo ...
But wlan0 already doesn`t exits ;//
So what i have to do now? |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Sun Apr 29, 2012 4:54 pm Post subject: |
|
|
caaarlos,
Check your kernel, you still have bits missing
| Code: | │ │ <M> Atheros 802.11n wireless cards support │ │
│ │ [*] Atheros ath9k PCI/PCIe bus support │ │
│ │ [ ] Atheros ath9k AHB bus support (NEW) │ │
│ │ [ ] Atheros DFS support for certified platforms (NEW) │ │
│ │ [*] Atheros ath9k rate control (NEW) │ │
│ │ [*] Atheros ath9k bluetooth coexistence support (NEW) |
| Code: | | # CONFIG_ATH_COMMON is not set | is a showstopper. The help says | Code: | Symbol: ATH_COMMON [=m] │
│ Type : tristate │
│ Prompt: Atheros Wireless Cards │
│ Defined at drivers/net/wireless/ath/Kconfig:1 │
│ Depends on: NETDEVICES [=y] && WLAN [=y] && CFG80211 [=y] && (!UML || BROKEN [=n]) │
│ Location: │
│ -> Device Drivers │
│ -> Network device support (NETDEVICES [=y]) │
│ -> Wireless LAN (WLAN [=y]) |
Notice the | Code: | | Depends on: NETDEVICES [=y] && WLAN [=y] && CFG80211 [=y] && (!UML || BROKEN [=n]) |
Check your | Code: | │ --- Wireless │ │
│ │ <*> cfg80211 - wireless configuration API │ │
│ │ [ ] nl80211 testmode command │ │
│ │ [ ] enable developer warnings │ │
│ │ [ ] cfg80211 regulatory debugging │ │
│ │ [*] enable powersave by default │ │
│ │ [ ] use statically compiled regulatory rules database │ │
│ │ [ ] cfg80211 wireless extensions compatibility │ │
│ │ < > Common routines for IEEE802.11 drivers │ │
│ │ <*> Generic IEEE 802.11 Networking Stack (mac80211) │ │
│ │ [ ] PID controller based rate control algorithm │ │
│ │ [*] Minstrel │ │
│ │ [*] Minstrel 802.11n support │ │
│ │ Default rate control algorithm (Minstrel) ---> │ │
│ │ [ ] Enable mac80211 mesh networking (pre-802.11s) support │ │
│ │ -*- Enable LED triggers │ │
│ │ [ ] Select mac80211 debugging features ---> |
Search, press /, is you friend in menuconfig _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Mon Apr 30, 2012 7:01 pm Post subject: |
|
|
Firts thanks for all help
another problem ;////
i instaled gentoo with your help to configure my kernel, plaese see that:
#ifconfig -a
lo ....
sit0...
wlan0...
now I have wlan0, but where is my eth0?? ;// |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Mon Apr 30, 2012 7:08 pm Post subject: |
|
|
when I go to /usr/src/linux and then make menu config, I searched for "ethernet" so...
Symbol: ETHERNET [=y]
whats is my problem now? |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Mon Apr 30, 2012 7:11 pm Post subject: |
|
|
caaarlos,
Did you change something you didn't intend to in the kernel configuration or or your wired ethernet driver not loaded?
What does return?
The right answer is just the command prompt.
Is your eth0 present in now ?
If that worked, add r8169 to your /etc/conf.d/modules
Read the comments in the file. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Mon Apr 30, 2012 9:53 pm Post subject: |
|
|
Hi NeddySeagoon,
I did what you said to me...
# modprobe r8169
FATAL: Module r8169 not found
;/// |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Mon Apr 30, 2012 10:01 pm Post subject: |
|
|
When I execute 'lsmod' there isn`t any modules in execution ;/
But I read at the handbook that the folowing extrusion
`find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko' | less`
and then paste the module`s name on /etc/conf.d/modules.
This is my modules:
modules_3_2_12="ntfs"
modules_3_2_12="xfs"
modules_3_2_12="exportfs"
modules_3_2_12="jfs"
modules_3_2_12="xt_mark"
modules_3_2_12="batman-adv"
modules_3_2_12="test_nx"
modules_3_2_12="pciehp"
modules_3_2_12="scsi_wait_scan"
modules_3_2_12="kcopy"
modules_3_2_12="hid-logitech-dj" |
|
| Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 29983 Location: 56N 3W
|
Posted: Mon Apr 30, 2012 10:06 pm Post subject: |
|
|
caaarlos,
Your | Code: | modprobe r8169
FATAL: Module r8169 not found | shows that your wired network driver is not built as a module. It may be built in.
What does | Code: | | grep 8169 /usr/src/linux/.config | show after you boot into your system. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
| Back to top |
|
 |
caaarlos n00b


Joined: 27 Apr 2012 Posts: 74
|
Posted: Mon Apr 30, 2012 11:12 pm Post subject: |
|
|
thanks NeddySeagoon!
I did waht you said to me and then
r8169 is not set, then I compiled my kernel with the new module!
so now it`s allright!
Thaks for all! |
|
| Back to top |
|
 |
|