* PCMCIA: Statically linked CF card driver?
@ 2005-06-23 7:39 kus Kusche Klaus
2005-06-23 8:04 ` Dominik Brodowski
2005-06-23 8:23 ` Russell King
0 siblings, 2 replies; 4+ messages in thread
From: kus Kusche Klaus @ 2005-06-23 7:39 UTC (permalink / raw)
To: linux-pcmcia, dahinds, linux-kernel
Environment:
* Embedded system, ARM platform, sa1100 processor
* Current Linux standard (or RT) kernel (2.6.12-something)
* Statically linked kernel, no module infrastructure and no initrd at
all
* Static /dev, no udev or devfs
* "hotplug" or card services not wanted
* sa1100 PCMCIA interface, PC Card / CF adapter
(e.g. Kingston Model No. CF/ADP)
(possibly other PC cards like WLAN, too,
but a CF adapter is the only PC card
we really should officially support)
Question:
* Any chance to get the CF card working in that environment?
* Any chance to boot from it?
Wishes and non-wishes:
* It would be nice to be able to replace the CF
without rebooting.
* It can be assumed that the PC card CF adapter
is present during boot.
* There is no need to support hotplugging of the PC card CF adapter.
(i.e. the PC card CF adapter could be treated as a static,
builtin device, with its driver linked into the kernel).
Many thanks in advance for any help!
Klaus Kusche
> Entwicklung Software - Steuerung
> Software Development - Control
>
> KEBA AG
> A-4041 Linz
> Gewerbepark Urfahr
> Tel +43 / 732 / 7090-3120
> Fax +43 / 732 / 7090-6301
> E-Mail: kus@keba.com
> www.keba.com
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PCMCIA: Statically linked CF card driver?
2005-06-23 7:39 PCMCIA: Statically linked CF card driver? kus Kusche Klaus
@ 2005-06-23 8:04 ` Dominik Brodowski
2005-06-23 8:23 ` Russell King
1 sibling, 0 replies; 4+ messages in thread
From: Dominik Brodowski @ 2005-06-23 8:04 UTC (permalink / raw)
To: kus Kusche Klaus; +Cc: linux-pcmcia, dahinds, linux-kernel
Hi,
- use 2.6.12-mm1, and build all you need into the kernel
- in drivers/pcmcia/ds.c , remove the following block:
/* also, FUNC_ID matching needs to be activated by userspace
* after it has re-checked that there is no possible module
* with a prod_id/manf_id/card_id match.
*/
if (!dev->allow_func_id_match)
return 0;
- it should(tm) work then... though I haven't and can't try it myself.
On Thu, Jun 23, 2005 at 09:39:15AM +0200, kus Kusche Klaus wrote:
> * Any chance to boot from it?
> * It would be nice to be able to replace the CF
> without rebooting.
I'm not sure whether these two aspects exclude each other.
Dominik
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: PCMCIA: Statically linked CF card driver?
2005-06-23 7:39 PCMCIA: Statically linked CF card driver? kus Kusche Klaus
2005-06-23 8:04 ` Dominik Brodowski
@ 2005-06-23 8:23 ` Russell King
1 sibling, 0 replies; 4+ messages in thread
From: Russell King @ 2005-06-23 8:23 UTC (permalink / raw)
To: kus Kusche Klaus; +Cc: linux-pcmcia, dahinds, linux-kernel
On Thu, Jun 23, 2005 at 09:39:15AM +0200, kus Kusche Klaus wrote:
> Question:
> * Any chance to get the CF card working in that environment?
It should work anyway, although you'll need to use cardmgr with vanilla
mainline kernels.
> * Any chance to boot from it?
Maybe, maybe not. Even with Dominik's great work, I suspect that PCMCIA
may suffer the same problem as USB in this respect, and require a delay
before trying to mount the root filesystem. We'll have to see when folk
start using this.
> Wishes and non-wishes:
> * It would be nice to be able to replace the CF
> without rebooting.
That's an interesting one. Alan Cox may have done some work on IDE to
resolve this, but there seems to be some issue preventing it (and Alan's
other IDE patches) being merged.
> * It can be assumed that the PC card CF adapter
> is present during boot.
> * There is no need to support hotplugging of the PC card CF adapter.
> (i.e. the PC card CF adapter could be treated as a static,
> builtin device, with its driver linked into the kernel).
The CF adapter is a dumb piece of hardware which just converts the
socket pins from PCMCIA format to CF format. It's completely
transparent to software. In fact, software doesn't even know it's
there.
--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 Serial core
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: PCMCIA: Statically linked CF card driver?
@ 2005-06-23 10:00 kus Kusche Klaus
0 siblings, 0 replies; 4+ messages in thread
From: kus Kusche Klaus @ 2005-06-23 10:00 UTC (permalink / raw)
To: Dominik Brodowski; +Cc: linux-pcmcia, dahinds, linux-kernel
> From: Dominik Brodowski [mailto:linux@dominikbrodowski.net]
> Hi,
>
> - use 2.6.12-mm1, and build all you need into the kernel
> - in drivers/pcmcia/ds.c , remove the following block:
>
> /* also, FUNC_ID matching needs to be
> activated by userspace
> * after it has re-checked that there is no
> possible module
> * with a prod_id/manf_id/card_id match.
> */
> if (!dev->allow_func_id_match)
> return 0;
>
> - it should(tm) work then... though I haven't and can't try it myself.
Thanks, I'll try it.
> > * Any chance to boot from it?
>
> > * It would be nice to be able to replace the CF
> > without rebooting.
>
> I'm not sure whether these two aspects exclude each other.
We don't need them at the same time:
* Usually, the system boots from flash,
and the CF is used for data transfer
(and hence should be changeable).
* In case of emergency (when the system in flash got messed up),
or for the first-time flash,
it would be nice to be able to boot from CF.
In that case, the CF will not be removed in flight!
--
Klaus Kusche (Software Development - Control Systems)
KEBA AG Gewerbepark Urfahr, A-4041 Linz, Austria (Europe)
Tel: +43 / 732 / 7090-3120 Fax: +43 / 732 / 7090-6301
E-Mail: kus@keba.com WWW: www.keba.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-23 10:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-23 7:39 PCMCIA: Statically linked CF card driver? kus Kusche Klaus
2005-06-23 8:04 ` Dominik Brodowski
2005-06-23 8:23 ` Russell King
-- strict thread matches above, loose matches on Subject: below --
2005-06-23 10:00 kus Kusche Klaus
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox