LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2014, 09:58 AM   #1
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Rep: Reputation: Disabled
LFS wifi


so I have been trying for days now to get my lfs build online, I have tried wicd, wireless tools, and wpa supplicant (maybe a few others but I can't remember)

Anyways I am completely lost. I know nothing about networking. I found some info about my wifi on my current Ubuntu system, I don't know what is useful about it but:

Code:
General
Interface:           802.11 WiFi (wlan0)
Hardware Address:    00:25:9C:A7:98:A0
Driver:              rt61pci
Speed:               54 Mb/s
Security:            None

IPv4
IP Address:          192.168.1.113
Broadcast Address:   192.168.1.255
Subnet Mask:         255.255.255.0
Default Route:       192.168.1.1
Primary DNS:         72.240.13.7
Secondary DNS:       72.240.13.5
Ternary DNS:         156.154.70.43

IPv6
The name is linksys and it has no password. Can anyone help me please...

Last edited by josh102595; 01-07-2014 at 11:56 AM.
 
Old 01-07-2014, 12:02 PM   #2
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Did you compile the module for it when you compiled the kernel? "Driver: rt61pci" That's the one you need.
If you run
Code:
ip addr
does it show wlan?
You can also check with
Code:
ls /sys/class/net
to see what your kernel found. If wlan is not shown you don't have the correct module for it.
 
Old 01-07-2014, 12:08 PM   #3
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
ipaddr:
Code:
root@josh-Vostro-220-Series:/ $ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
    link/ether 00:25:64:e4:b6:e2 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:25:9c:a7:98:a0 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.113/24 brd 192.168.1.255 scope global wlan0
    inet6 fe80::225:9cff:fea7:98a0/64 scope link 
       valid_lft forever preferred_lft forever
ls:
Code:
root@josh-Vostro-220-Series:/ $ ls /sys/class/net
ls: cannot access /sys/class/net: No such file or directory
 
Old 01-07-2014, 12:23 PM   #4
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
So your wlan is up and you have an ip adress. Can you ping google?
Code:
ping -c 3 8.8.8.8
ping -c 3 www.google.com
 
Old 01-07-2014, 12:34 PM   #5
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
does it matter that i am using chroot environment not an actual boot?

Code:
root@josh-Vostro-220-Series:/ $ ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 48 data bytes
56 bytes from 8.8.8.8: icmp_seq=0 ttl=39 time=31.721 ms
56 bytes from 8.8.8.8: icmp_seq=1 ttl=39 time=30.884 ms
56 bytes from 8.8.8.8: icmp_seq=2 ttl=39 time=30.263 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 30.263/30.956/31.721/0.597 ms
root@josh-Vostro-220-Series:/ $ ping -c 3 www.google.com
ping: unknown host
 
Old 01-07-2014, 01:00 PM   #6
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
Then the problem is in /etc/hosts. (This is still valid, but a later problem...)

Quote:
does it matter that i am using chroot environment not an actual boot?
Indeed it does... For example you're using Ubuntu's kernel and modules. You don't know yet if you have that module in LFS... And you're already connected to wifi from Ubuntu's Networkmanager, and already have an IP, so the router thinks you're Ubuntu...

Try everything again when you've booted to LFS.
 
Old 01-07-2014, 01:37 PM   #7
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
okay, on boot i got these messages:
Code:
interface wifi0 doesn't exist.
interface eth0 doesn't exist.
Then I re-ran all of the codes you guys posted:

Code:
root@Vostro-220-Series:/ $ ip addr
1: lo: .....lots of junk.....
2: sit0: .....lots of junk....
Code:
root@Vostro-220-Series:/ $ ls /sys/class/net
lo sit0
Code:
root@Vostro-220-Series:/ $ ping 8.8.8.8
Network is unreachable
Code:
root@Vostro-220-Series:/ $ ping www.google.com
unknown host
 
Old 01-07-2014, 01:51 PM   #8
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 374

Rep: Reputation: 85
You need to recompile the kernel and find and add the needed module, as shown above: 'rt61pci'.
 
Old 01-07-2014, 03:47 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Can you post the readout from lspci first before proceeding?

Rebuilding the kernel is one thing, but often there are some wireless cards that require firmware to be installed to use, or a proprietary driver.
 
Old 01-07-2014, 04:04 PM   #10
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
kernel rebuild with the above option enabled...

all of the commands had the same result but I go this on boot:

Code:
eth0 does not exist.
Bringing up wifi0 interface...
Unable to process /etc/sysconfig/ifconfig.wifi0
Either the SERVICE 'wpa was no
*****sent or cannot be executed
I don't know what that means but my /etc/sysconfig/ifconfig.wifi0 file reads:

Code:
ONBOOT="yes"
IFACE="wlan0"
SERVICE="wpa"

# Additional arguments to wpa_supplicant
WPA_ARGS=""

WPA_SERVICE="dhclient"
DHCP_START=""
DHCP_STOP=""

# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
PRINTIP="no"

# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
PRINTALL="no"
 
Old 01-07-2014, 06:33 PM   #11
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
run lspci from Ubuntu or LFS?
 
Old 01-07-2014, 07:57 PM   #12
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
if I run lspci in my lfs system I get:
Code:
root@josh-Vostro-220-Series:/ $ lspci
bash: lspci: command not found
from Ubuntu:
Code:
josh@josh-Vostro-220-Series:~$ lspci
00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
00:1a.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4
00:1a.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5
00:1a.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6
00:1a.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2
00:1b.0 Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller
00:1c.0 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 1
00:1c.2 PCI bridge: Intel Corporation 82801JI (ICH10 Family) PCI Express Root Port 3
00:1d.0 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1
00:1d.1 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2
00:1d.2 USB controller: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3
00:1d.7 USB controller: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 90)
00:1f.0 ISA bridge: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller
00:1f.2 SATA controller: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller
00:1f.3 SMBus: Intel Corporation 82801JI (ICH10 Family) SMBus Controller
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series]
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
04:01.0 Network controller: Ralink corp. RT2561/RT61 802.11g PCI

Last edited by josh102595; 01-07-2014 at 08:00 PM.
 
Old 01-07-2014, 09:18 PM   #13
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Ralink drivers should be in the kernel. I don't think they require firmware either.

Check your kernel configuration and see if it has the appropriate driver modules selected for your hardware.

Just a suggestion, but I use the Slackware(64)-Current Testing 3.12 Huge-Kernel config for my kernel config and it works and has a lot of hardware supported.

lspci is part of the BLFS pciutils package.

http://www.linuxfromscratch.org/blfs.../pciutils.html

Last edited by ReaperX7; 01-07-2014 at 09:19 PM.
 
Old 01-07-2014, 09:48 PM   #14
josh102595
LQ Newbie
 
Registered: Jan 2014
Distribution: Linux
Posts: 29

Original Poster
Rep: Reputation: Disabled
you mean for this?
Code:
04:01.0 Network controller: Ralink corp. RT2561/RT61 802.11g PCI
That is already configured into my kernel

EDIT
now when I do lspci on LFS I get the same output as I do from Ubuntu

Last edited by josh102595; 01-07-2014 at 09:59 PM.
 
Old 01-07-2014, 10:01 PM   #15
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Okay, since you have this... next question... are you using a Static IP or DHCP for connectivity?
 
  


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
[SOLVED] Problem in connecting wifi network in LFS build using wpa_supplicant srinietrx Linux - Wireless Networking 1 05-13-2013 07:41 AM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM

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

All times are GMT -5. The time now is 04:20 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