On 06/18/2014 03:20 PM, Alexander wrote:
Hello. I am building the latest LFS 7.5 and I made it to the chapter 7.
It's a laptop with a wireless and a wired interface, Arch Linux as a host
system.

My issue is that I don't see my wireless interface in list (which I'm
connected through in Arch)
when I check the insides of the file
"/etc/udev/rules.d/70-persistent-net.rules" on the step 7.2.1
(creating stable names for network interfaces). Supposedly that's not OK.
How can I make udev see it?

root:/# cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# net device r8169
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="2c:41:38:62:5b:6f", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eno*", NAME="eno1"

root:/# ls /sys/class/net
eno1  lo  wlp13s0
I would have replied to Fernando's post, but he had trimmed some of the things I wanted to be in my response. You have probably discovered that LFS does not currently support configuring a wireless network. Compared to configuring an ehternet card with a static IP, it's not quite trivial.

As Fernando indicated, it's really important to have the device configured into the kernel and for udev to recognize it. Since you're working in Chapter 7, I'm assuming that you're still working in the chroot environment. At this point you can get packages built, but you won't be able to see if they work until you boot LFS-7.5.

In chroot the /proc and /sys filesystems come from your host system. I believe that is why you see wlp13s0, which is what your Arch host named your wireless card, when you ran 'ls /sys/class/net. This also means that I don't understand why there is no rule for it in your 70-persistent-net.rules. At this point I see two things you could do.

First, go back to Ch. 6.60 and make sure you have made no mistakes installing udev-208. I don't know if initializing the hardware database will be beneficial. But, after you make sure that /proc and /sys are mounted in your chroot environment, re-run 'bash udev-lfs-208-3/init-net-rules'. Before you do this, back up your 70-persistent-net.rules so you can use it again if needed or remove it if things work out OK. Hopefully, you'll have a rule for your wireless card.

Second, instead of doing the above you could find 70-persistent-net.rules in your Arch distro and copy the rule for your wireless card into your LFS 70-persistent-net.rules. I don't know if Arch calls its file the same thing or not.

I actually would do the second thing only after I couldn't get what I wanted from using the book's instructions. I've always thought that if I didn't get what I wanted, then I made a mistake in implementing what the book says. When you get to Ch. 7, the only thing you have for your wireless, is that udev rule. Anything more comes from BLFS.

You will probably need, as a minimum, wpa_suppliant and dhcpcd or the client of DHCP. The wpa_supplicant page is really good at helping you set up. That's the page where you write ifwifi0. But the first thing you need is to get your device recognized an named.

Late last year or early this year there was a long and interesting discussion on this list about the "new names" for devices. In the past they were wlan? and eth?. As I recall there were some discussions about writing udev rules.

Hope you get it solved.
Dan


--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to