15.07.2010 00:30, KP Kirchdoerfer пишет: > Am Samstag, 10. Juli 2010, 00:52:00 schrieb Andrew: > >> Hi all. >> >> I wrote patch ofr busybox's modprobe that add possibility to select >> behavior if there are 2 or more modules with same modalias (for ex., >> ata_generic& pata_amd). >> >> By default, modprobe loads 1st matched module. I added selection by 2 >> other (more 'intellectual') criteria: longest modalias, and modalias >> with longest prefix w/o wildcards. 2nd method looks more preferrable for >> PCI/USB devices (they aliases have VID/DID at 1st places) - that >> actually are troubles on case of LEAF. Of course, this isn't 'best >> match' criteria for all cases - but it looks enough good. >> > Andrew; > > what do you think is the best default for LEAF? > Or requestioned, how can we use these changes esp. at the first boot (the out- > of-the-box experience)? > > regards kp > > I use 2st method as default for LEAF. It perfectly splits 'generic' and specialized modules for PCI/ISB - modalias for these devices has on first places VenID/DevID, then - SubVenID/SubDevID, class & etc. So specialized device drivers have VenID/DevID in their modaliases (like pci:v00008086d0000ABCD...), and generic drivers haven't this values, but have class/subsystem - that are in the end. So they have shorter 'prefix'.than specialized drivers (because they have alias like pci:v*d*....) - and won't be loaded if specialized driver is present.
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel