LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   [BLFS 7.4] Wifi wlan0 interface didn't recognize (https://www.linuxquestions.org/questions/linux-from-scratch-13/%5Bblfs-7-4%5D-wifi-wlan0-interface-didnt-recognize-4175486558/)

fedifedi 12-02-2013 10:10 AM

[BLFS 7.4] Wifi wlan0 interface didn't recognize
 
Hi there,
I've got a problem with my wireless chip in my LFS distribution.
My machine didn't recognize my wireless chip.
I've made a screenshot with my outputs of:
Code:

cat /etc/udev/rules.d/70-persistent-net.rules
Code:

ifconfig
Code:

iwconfig
Code:

cat /etc/sysconfig/ifconfig.wlan0
Code:

cat /etc/sysconfig/ifconfig.eth0
Have you got any suggestions?
Thanks in advice.

fedifedi 12-02-2013 10:12 AM

1 Attachment(s)
Here's the screenshot!

Lennie 12-02-2013 11:39 AM

Did you compile the correct module for it when you compiled the kernel? If you don't know what module you need, you can find out by booting a Live-CD or other installed system where it works, and run
Code:

lsmod
To copy from the terminal you can either just mark the text in the terminal and click on the mousewheel to paste it, or use shift + ctrl + c to copy.

druuna 12-02-2013 12:01 PM

Adding to Lennie's post:

Looking at your screen-shot (in the future please post the info here if at all possible) I do see one thing that might not be correct.

Both eth0 and wlan0 have the same IP (192.168.1.1).

fedifedi 12-03-2013 04:23 AM

Ok, sorry for the bad screenshot.
I've got 2 partitions in my machine, "Lubuntu 13.04" and "LFS 7.4 System".
From Lubuntu i've run "lsmod" and this is the output:

Code:

federico@federico:~$ lsmod
Module                  Size  Used by
zram                  18070  2
parport_pc            31981  0
ppdev                  17391  0
rfcomm                53664  0
bnep                  18893  2
bluetooth            323534  10 bnep,rfcomm
joydev                17097  0
coretemp              13195  0
kvm                  364766  0
gpio_ich              13229  0
dell_wmi              12665  0
sparse_keymap          13708  1 dell_wmi
snd_hda_codec_idt      44605  1
dell_laptop            17161  0
dcdbas                14383  1 dell_laptop
pcmcia                51368  0
snd_hda_intel          42658  1
snd_hda_codec        164003  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                89488  2 snd_hda_codec,snd_hda_intel
snd_page_alloc        14230  2 snd_pcm,snd_hda_intel
snd_seq_midi          13132  0
snd_seq_midi_event    14475  1 snd_seq_midi
snd_rawmidi            25094  1 snd_seq_midi
snd_seq                55383  2 snd_seq_midi_event,snd_seq_midi
arc4                  12536  2
iwl3945                63619  0
snd_seq_device        14137  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              24447  2 snd_pcm,snd_seq
yenta_socket          40193  0
microcode              18830  0
iwlegacy              87971  1 iwl3945
pcmcia_rsrc            18319  1 yenta_socket
pcmcia_core            22328  3 pcmcia,pcmcia_rsrc,yenta_socket
lpc_ich                16864  0
psmouse                90642  0
mac80211              513247  2 iwl3945,iwlegacy
serio_raw              13189  0
i915                  589697  2
snd                    60790  12 snd_hwdep,snd_timer,snd_hda_codec_idt,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
drm_kms_helper        46867  1 i915
drm                  242354  3 i915,drm_kms_helper
cfg80211              401436  3 iwl3945,iwlegacy,mac80211
i2c_algo_bit          13197  1 i915
soundcore              12600  1 snd
mac_hid                13037  0
wmi                    18590  1 dell_wmi
video                  18777  1 i915
lp                    13299  0
parport                40795  3 lp,ppdev,parport_pc
tg3                  152066  0
ptp                    18156  1 tg3
pps_core              18546  1 ptp

Ok, I understand i've to set up 2 different IP Addres for eth0 and wlan0.
Are there any stranges rules for setting up them?
Otherwise I can set 192.168.1.0 for eth0 and 192.168.1.1 for wlan0.

druuna 12-03-2013 07:34 AM

Quote:

Originally Posted by fedifedi (Post 5074479)
Ok, I understand i've to set up 2 different IP Addres for eth0 and wlan0.
Are there any stranges rules for setting up them?
Otherwise I can set 192.168.1.0 for eth0 and 192.168.1.1 for wlan0.

No, not really.

Avoid using the following:
x.y.z.0 (used in routing tables)
x.y.z.1 (commenly used router ip / gateway address)
and
x.y.z.255 (broadcast)

As a rule: 192.168.0.x (1 < x < 255)

fedifedi 12-04-2013 08:36 AM

Ok, I changed the IP ADDRESS, and now I've got this configuration:

Code:

cat /etc/sysconfig/ifconfig.eth0
ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.3
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255

Code:

cat /etc/sysconfig/ifconfig.wlan0
ONBOOT=yes
IFACE=wlan0
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255

But when I boot my system, before I logged in, the system shows this error:
"face wlan0 doesn't not exist"

In fact when i run "ifconfig -a", I've got this:

Code:

root [ ~ ]# ifconfig -a
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500  metric 1
        inet 192.168.1.3  netmask 255.255.255.0  broadcast 192.168.1.255
        ether 00:18:8b:bf:d8:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 18 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

sit0: flags=128<NOARP>  mtu 1480  metric 1
        sit  txqueuelen 0  (IPv6-in-IPv4)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I don't understand why I've got this interface sit0 and not wlan0

Lennie 12-04-2013 11:20 AM

Probably because you haven't compiled the module for your wireless card.
From Lubuntu, run
Code:

lspci -k
Look for your wireless card and check what module is used. Then recompile the kernel and make sure to add that (y or m) in make menuconfig.

fedifedi 12-05-2013 04:37 AM

Code:

federico@federico:~$ lspci -k
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
        Subsystem: Dell Device 01c2
        Kernel driver in use: agpgart-intel
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Dell Device 01c2
        Kernel driver in use: i915
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Dell Device 01c2
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
        Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01)
        Kernel driver in use: pcieport
00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 01)
        Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: uhci_hcd
00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: uhci_hcd
00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: uhci_hcd
00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: uhci_hcd
00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: ehci-pci
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: lpc_ich
00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 01)
        Subsystem: Dell Device 01c2
        Kernel driver in use: ata_piix
00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
        Subsystem: Dell Device 01c2
03:01.0 CardBus bridge: O2 Micro, Inc. OZ601/6912/711E0 CardBus/SmartCardBus Controller (rev 40)
        Subsystem: Dell Device 01c2
        Kernel driver in use: yenta_cardbus
09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5752 Gigabit Ethernet PCI Express (rev 02)
        Subsystem: Dell Latitude D620
        Kernel driver in use: tg3
0c:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
        Subsystem: Intel Corporation Device 1021
        Kernel driver in use: iwl3945

I think iwl3945 is the correct driver for Wireless.
Now when I try to recompile the kernel, I go to the "Wireless section" and I've got this:

Code:

--- Wireless 
    <*>  cfg80211 - wireless configuration API
    [ ]    nl80211 testmode command 
    [ ]    enable developer warnings
    [ ]    cfg80211 regulatory debugging [*]    enable powersave by default 
    [ ]    cfg80211 DebugFS entries
    [ ]    cfg80211 wireless extensions compatibility
    <*>  Generic IEEE 802.11 Networking Stack (mac80211)
          Default rate control algorithm (Minstrel)  --->   
    [ ]  Enable mac80211 mesh networking (pre-802.11s) support  [*]  Enable LED triggers 
    [ ]  Export mac80211 internals in DebugFS 
    [ ]  Trace all mac80211 debug messages
    [ ]  Select mac80211 debugging features  --->

I can't find the correct module for wifi..do you know what is it the correct module?

druuna 12-05-2013 04:52 AM

Did you select the following:

Device Drivers -> Network device support -> Wireless LAN -> Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)

fedifedi 12-05-2013 04:56 AM

Ok..I found it in "Device Drivers" -> "Network device support" -> Wireless LAN" -> Intel PRO/Wirelees 3945ABG/BG Network Connection (iwl3945).
I recompile that and let you know!

fedifedi 12-05-2013 05:37 AM

Ok, I recompiled the Kernel with the correct module.
When I do "ifconfig" I can see only eth0 and lo, but "iwconfig" says:
Code:

wlan0 no wireless extension
sit0 no wireless extension
lo no wireless extension
eth0 no wireless extension

So now the wlan0 is recognized, but when I'm trying to set it up, I've got this:

Code:

root@root:~$ ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory


fedifedi 12-05-2013 06:13 AM

I found this thread (http://www.linuxquestions.org/questi...k-blfs-917791/)
and I understand that the problem is a missing firmware.
I downloaded iwlwifi-3945-ucode-15.32.2.9.tgz, and extracted in /lib/firmware and the problem is gone.
Now I'm trying to connect in my wifi network and let you know.
Thank you in advice!

fedifedi 12-05-2013 07:24 AM

Nope, I've got another problem and I can't fix it up!
"ifconfig wlan0 up" look it works, but when I'm trying to scan wifi networks I've got this:
Code:

root@root:~$ iwlist wlan0 scan
wlan0 Interface doesn't support scanning

How can I proceed?!

stoat 12-07-2013 12:07 PM

Some things to try... 1) Look for a physical on/off wireless switch (it happens all the time). 2) Try disabling the wired NIC at boot (ONBOOT=no) and reboot, just to see what happens to the wireless NIC. No promises.


All times are GMT -5. The time now is 08:06 PM.