LFS 6.2
Capitalization Issue:
=====================
7.13.1. Creating stable names for network interfaces
^ ^ ^ ^
Udev Stuff:
===========
Reading section 7.13.1 it mentions
"If you are going to use the bus position as a key, create Udev rules
similar to the following"
however, there is no information provided on how to get the
bus position (1) or why you would want to (3). Some googling
and info from gregkh (2) provided answers.
For the previous section a command is provided to get MAC info.
The useful commands are lspci and scanpci. An example
output from my system below shows how this maps to the info
needed for section 7.13.1
Dan / Alexander: Please provide some update to the book
for this section to fill in this gap as appropriate.
lfs:~/lfs-scripts$ /sbin/lspci | grep "Ethernet controller"
00:0f.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX
[Cyclone] (rev 30)
00:10.0 Ethernet controller: Intel Corporation 82557/8/9 [Ethernet
Pro 100] (rev 08)
lfs:~/lfs-scripts$
lfs:~/lfs-scripts$ sudo scanpci
pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x8086 device
0x7190
Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge
pci bus 0x0000 cardnum 0x01 function 0x00: vendor 0x8086 device
0x7191
Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge
pci bus 0x0000 cardnum 0x07 function 0x00: vendor 0x8086 device
0x7110
Intel Corporation 82371AB/EB/MB PIIX4 ISA
pci bus 0x0000 cardnum 0x07 function 0x01: vendor 0x8086 device
0x7111
Intel Corporation 82371AB/EB/MB PIIX4 IDE
pci bus 0x0000 cardnum 0x07 function 0x02: vendor 0x8086 device
0x7112
Intel Corporation 82371AB/EB/MB PIIX4 USB
pci bus 0x0000 cardnum 0x07 function 0x03: vendor 0x8086 device
0x7113
Intel Corporation 82371AB/EB/MB PIIX4 ACPI
pci bus 0x0000 cardnum 0x0f function 0x00: vendor 0x10b7 device
0x9055
3Com Corporation 3c905B 100BaseTX [Cyclone]
pci bus 0x0000 cardnum 0x10 function 0x00: vendor 0x8086 device
0x1229
Intel Corporation 82557/8/9 [Ethernet Pro 100]
pci bus 0x0001 cardnum 0x00 function 0x00: vendor 0x1023 device
0x9880
Trident Microsystems Blade 3D PCI/AGP
lfs:~/lfs-scripts$
(1) Ref: http://www.linux.com/howtos/Plug-and-Play-HOWTO-6.shtml#pci_
(2) Ref: http://www.redhat.com/magazine/002dec04/features/udev/
(3) Ref: http://m0n0.ch/wall/list-dev/showmsg.php?id=13/35
Thanks,
Peter
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page