Gentoo Archives: gentoo-dev

From: Joseph Carter <knghtbrd@×××.org>
To: Mark Gordon <mark.gt@×××××××××××××××.uk>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] pcmcia-cs 3.2.4 ebuild?
Date: Wed, 05 Mar 2003 10:29:22
Message-Id: 20030305103326.GB3048@galen.bluecherry.net
In Reply to: Re: [gentoo-dev] pcmcia-cs 3.2.4 ebuild? by Mark Gordon
1 On Wed, Mar 05, 2003 at 08:32:25AM +0000, Mark Gordon wrote:
2 > > > I'm assuming it isn't as simple as changing the version in the
3 > > > filename of the ebuild to make it download the newest version.
4 > >
5 > > Would this be a good time to do the pcmcia-cs-drivers and
6 > > pcmcia-cs-tools split?
7 >
8 > Sounds like it to me. The split works for my combination.
9
10 So far as I know, the purpose of pcmcia-cs-drivers is to allow you to use
11 the kernel pcmcia driver and the modules from pcmcia-cs, a combination
12 which is not exactly guaranteed to work, but which can be more stable for
13 certain people.
14
15 I see another advantage, especially as the pcmcia-cs modules are made to
16 work correctly under 2.5 kernels with proper sysfs hotplug interface: the
17 deprecation of the card services tools (cardmgr, cardctl, etc..) This
18 will mean that removable devices will finally have a single interface, if
19 one which is perhaps still a bit immature.
20
21 I'm looking at details of improving hotplug to add some of the features
22 found in cardmgr and usbmgr, as well as features which are found in
23 neither, but would be nice to have. I've talked with Peter Johanson about
24 some of this stuff mostly on irc. My primary interests with hacking the
25 hotplug stuff in Gentoo are:
26
27 - User notification (something that can inform non-root processes what
28 hotplug is doing, or at the least communicate success and failure at
29 various stages through beeps and the like the way cardmgr and usbmgr do
30 currently..)
31
32 - Hotplug device schemes, similar to PCMCIA schemes, but more powerful.
33 To explain: I have onboard ethernet and PCMCIA wireless. Both are
34 modules since having neither loaded conserves power. Can't be sure
35 which will be eth0 and which will be eth1. And simple DHCP works for
36 both interfaces, except for EFN's machine room which needs a static
37 config and a couple of APs which need WEP keys. Plus there are two
38 locations in which connecting to the network should start up VPN stuff!
39
40 This is beyond PCMCIA schemes, but not beyond hotplug, if someone goes
41 to the effort of writing the glue interface. This is trivial, though,
42 the real problem is interfacing the result with Gentoo's setup without
43 frustrating the hell out of everyone with yet another special case!
44
45 - Device removal, whether for actually unplugging the device, in the case
46 of a notebook, just stop trying to use it to conserve battery power! I
47 have found that the Linux kernel is horrible about letting you remove
48 an unused device, even if the device is removable as is the case with
49 USB and PCMCIA. cardctl eject <slot#> issued before removing the card
50 does, without fail, cause this problem to go away with PCMCIA. This
51 needs to become a generic thing, possibly part of the sysfs interface
52 to hotplug devices in 2.5.
53
54 - Uniform device identification, which ties into the above two areas of
55 interest.. My USB pendisk is the example this time - once inserted, I
56 can know that the usb-storage module was loaded, but there is no way to
57 know what disc devices were created by it, especially since they show
58 up in /dev/scsi rather than /dev/usb.. And because USB devices cannot
59 be stopped the way PCMCIA devices can be, the driver does not always
60 give back the SCSI device name it registered, making fstab entries
61 rather pointless.
62
63 Many devices can be identified in some unique manner. My goal is then
64 to make this unique identifier usable for all of the above purposes.
65
66
67 It's a rather ambitious and long-term project, and only parts of it are
68 Gentoo-specific, however there is some advantage to doing this kind of
69 thing on a Gentoo system where things like hotplug and devfsd are pretty
70 much standard components. The schemes developed for hotplug, for example,
71 can easily be used with ANY device on a Gentoo system by virtue of devfs.
72
73 If others are interested or have been working on similar things, it would
74 be good to share the work, especially given that with work and school I am
75 generally pretty busy these days. Working on my own, it may well be a few
76 months before I have anything to show for my efforts.
77
78 --
79 Joseph Carter <knghtbrd@×××.org> I swallowed your goldfish
80
81 "If the designers of X-Windows built cars, there would be no fewer than
82 five steering wheels hidden about the cockpit, none of which followed the
83 same principles -- but you'd be able to shift gears with your car stereo.
84 Useful feature, that."
85 -- Marus J. Ranum