PCMCIA/CF device probe order issue

Richard Purdie rpurdie at rpsys.net
Tue Aug 16 08:30:47 EDT 2005


On Tue, 2005-08-16 at 13:04 +0200, Christian Zoz wrote:
> > I'm starting work on supporting the Sharp Zaurus SL-C3000 under Linux
> > 2.6 and I'm having a problem with device numbering. The device uses the
> > PXA/SharpSL CF interface and I have all the interface code working
> > perfectly. The device has some unfortunate slot numbering however in
> > that slot 0 is a normal CF slot but slot 1 is a fixed internal
> > microdrive which contains the system's root filesystem.
> > 
> > If you boot with no card in slot 0, the microdrive is found, turned
> > into /dev/hda and the root filesystem can be mounted fine. If you have a
> > memory card in slot 0, this becomes /dev/hda, the microdrive
> > becomes /dev/hdc and it can't find the root filesystem.
> > 
> > Is there a way to avoid this? Ideally, slot 1 needs to be probed first
> > but I'm unsure how to do this.
> 
> mount by label or uuid.
> Or use udev for persistent device nodes.

You'll have to forgive me as I seem to be missing something obvious
here. Can you give me an example of how I specify that I would like to
mount the microdrive in the second compact flash slot as the root device
from the kernel commandline? (regardless of any card present or not
present in the first slot)

Sadly, I'm not in a position to be able to easily use a initrd.

Regards,

Richard




More information about the linux-pcmcia mailing list