LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 12-02-2013, 10:10 AM   #1
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Rep: Reputation: Disabled
[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.
 
Old 12-02-2013, 10:12 AM   #2
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
Here's the screenshot!
Attached Thumbnails
Click image for larger version

Name:	20131202_165917.jpg
Views:	130
Size:	256.6 KB
ID:	14114  
 
Old 12-02-2013, 11:39 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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.
 
Old 12-02-2013, 12:01 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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).
 
Old 12-03-2013, 04:23 AM   #5
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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.
 
Old 12-03-2013, 07:34 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by fedifedi View Post
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)
 
Old 12-04-2013, 08:36 AM   #7
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-04-2013, 11:20 AM   #8
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
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.
 
Old 12-05-2013, 04:37 AM   #9
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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?
 
Old 12-05-2013, 04:52 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Did you select the following:

Device Drivers -> Network device support -> Wireless LAN -> Intel PRO/Wireless 3945ABG/BG Network Connection (iwl3945)
 
Old 12-05-2013, 04:56 AM   #11
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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!
 
Old 12-05-2013, 05:37 AM   #12
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-05-2013, 06:13 AM   #13
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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!
 
Old 12-05-2013, 07:24 AM   #14
fedifedi
Member
 
Registered: Oct 2013
Posts: 30

Original Poster
Rep: Reputation: Disabled
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?!

Last edited by fedifedi; 12-06-2013 at 03:33 AM.
 
Old 12-07-2013, 12:07 PM   #15
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wheezy didn't recognize CDROM piobair Debian 5 08-07-2013 04:31 PM
Ubuntu didn't recognize a sound dtphong_1989 Linux - Hardware 1 07-29-2010 10:34 PM
Fedora 12 didn't recognize existing Ubuntu 9.10 murthyna Ubuntu 9 02-20-2010 04:14 PM
kernel 2.6 didn't recognize the CDROM, while 2.4 did abd_bela Debian 1 02-01-2006 11:30 AM
SuSE 9.0 didn't recognize kb or mouse walterbyrd Linux - Distributions 2 04-14-2004 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration