[LFS Trac] #2057: Udev-122

LFS Trac trac at linuxfromscratch.org
Tue May 20 06:48:19 PDT 2008

#2057: Udev-122
 Reporter:  matthew at linuxfromscratch.org  |        Owner:  lfs-book at linuxfromscratch.org
     Type:  enhancement                   |       Status:  new                          
 Priority:  normal                        |    Milestone:  7.0                          
Component:  Book                          |      Version:  SVN                          
 Severity:  normal                        |   Resolution:                               
 Keywords:                                |  
Comment (by LydianKnight):

 I have an idea, but I don't know how well it could work

 Instead of trying to create a cut version of udev or just copying the host
 rules... Could we try to, in the host and prior to begin the construction
 of the temporary LFS system, update the PCI & USB device database, make a
 quick run of the lspci & lsusb commands, grep the result for the words
 'Ethernet' (for ethernet ports) and 'Network' (for wireless devices), add
 those results into a file, saved into $LFS/sources and run sort of a
 script to make use of the first characters in the file for each line?

 I mean, the first characters in each file (at least for the lspci command)
 correspond to the pci address space id like this:

 02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet
 03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network
 Connection (rev 02)

 we could then try to write a udev rule for the devices based on its pci
 address space id rather to try anything else, but... I don't know how
 efficient or inefficient this would be, but if this could work for all,
 the only requisite we should add to the host system would be to have a
 recent version of the pci.ids & ubs.ids (but I haven't tried the usb part,
 just an idea that bumped into my mind yesterday tonight and I have been
 thinking about it)

 Any comments on this? :)


Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/2057#comment:30>
LFS Trac <http://wiki.linuxfromscratch.org/lfs/>
Linux From Scratch: Your Distro, Your Rules.

More information about the lfs-book mailing list