Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My atheros wireless card is obviously loaded as I'm able to ping my router & get response. I installed wpa_supplicant set SSID & Passphrase but everytime I try to get online get message "unknown host".
Os LFS7.2.
Btw "iwlist wlan0 scan" does list the available networks.
...but everytime I try to get online get message "unknown host".
Since everything else appears to be working, consider DNS resolution for this last problem. Have you got some nameservers in /etc/resolv.conf? Or if you do, try some different ones, say, OpenDNS's (208.67.222.222, 208.67.220.220) or Google's (8.8.8.8 and 8.8.4.4).
I looked in my /etc/hosts file & it was empty so I included my dns nameserver but it didn't change anything.
What I have installed is wpa_supplicant & dhcpcd also network support for ethernet, which is not necessary as I'm not closed to an ethernet cord. I would like to know what steps I can take to remove all network & dhcpcd software & reinstall.
I looked in my /etc/hosts file & it was empty so I included my dns nameserver but it didn't change anything.
Put those in /etc/resolv.conf. See section 7.2.3 of the LFS 7.2 book.
Since scanning finds networks, then your device and driver are working IMO. And you said you can ping your router, so you have established a connection with it IMO. To me, wpa_supplicant has negotiated an encrypted connection with the router, and dhcpcd has acquired an IP address from it. If you can't ping an Internet URL, then try pinging an Internet IP address. Say, one for www.google.com such as 173.194.75.104. If the IP address does get replies, then that sort of confirms DNS resolution as the issue.
I tried pinging an ip address no luck.
I also was able to use wpa_cli & got CTRL-EVENTS AP-AVAILABLE, after going thru all of the steps in wpa_cli & getting ok still not connecting.
FInally figured out my problem. I read up on dhcp & dhcpcd & obviously installed the wrong 1 should've installed dhcp instead of dhcpcd. Itns going to be a few days before I get back to install but positive that is issue. Also after playing with wpa_cli iwconfig showed my network was associated but couldn't get to internet.
I'm finally able to connect to internet, although I did reinstall lfs.
This time I didn't use dhcpcd, nor did I use dhcp.
When I installed wpa_supplicant I went ahead & installed dbus & it's dependencies & reinstalled lfs-bootscripts.
The only problem that I have is that network doesn't survive reboot.
On boot I get message: [ 8.031913] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready.
For 1 the dwext driver isn't loaded automatically.
Each time I want to connect to network I have to use wpa_cli & enter everything manually.
I need to work on it a little bit more & try to get dwext to load on boot
I need to work on it a little bit more & try to get dwext to load on boot
I haven't had the opportunity or need to use wireless for my BLFS systems yet, but I did this sort of stuff manually and with scripts for years with various distros before I ever heard of NetworkManager. Anyway, I don't think you have to worry about wext getting loaded. If you are establishing the connection satisfactorily by hand after booting, then consider a custom init script to do those final chores that you're doing manually.
I just saved my commands for wpa_cli to a file to copy & paste.
Very well.
For fun someday, take that text file with the commands that you mentioned, add a bash shebang line at the top, save it with an appropriate name in /etc/rc.d/init.d, make it executable, create a symlink to it in /etc/rc.d/rc3.d as the last script to start, reboot and see if you're connected. It might work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.