From: Ulrich Eckhardt <eckhardt@satorlaser.com>
To: linux-mips@linux-mips.org
Subject: Re: need help with CompactFlash/PCMCIA
Date: Wed, 16 Mar 2005 08:16:52 +0100 [thread overview]
Message-ID: <200503160816.52467.eckhardt@satorlaser.com> (raw)
In-Reply-To: <4237CCDC.1030104@embeddedalley.com>
Pete Popov wrote:
> Ulrich Eckhardt wrote:
> > Hmmm, I just had a scary thought: I don't have any userspace programs
> > running yet, meaning also no cardmgr, because I intend to boot from that
> > CF card - is that possible at all? FYI, I don't need any hotplugging at
> > all.
>
> Do you really mean "boot" from it or "root" from it? If you want to "boot"
> from it, you need to work on your boot loader to be able to fetch the
> kernel from CF.
I have two MiB of flash on board, which contains the bootloader (YAMON) and
some free space for a kernel. This is used to boot from. IOW, I mean to root
from the CF card, not to boot from it.
> If you mean "root" from it, then you are approaching this
> the wrong way -- it won't work through the pcmcia stack and cardmgr because
> that means you already have a root fs up and mounted. You could do this by
> creating a small ramdisk to serve as the root fs, run a special script on
> startup that loads the driver, starts cardmgr, cardmgr then detects the
> card and loads ide-cs.o, and finally the script exits back to the kernel.
> At that point the kernel mounts the real rootfs which is on the card
> itself.
Sounds like the way to go.
> Or, you use the ide mode/feature of CF and get it to work that way, but
> I've never had to do that myself. Then the card looks like an ide device.
> That's something one of our guys at Embedded Alley has done in the past.
> Don't know how easy it is; I'll ping him.
Sounds like another way to go, in particular since I don't need hotplugging
and other PCMCIA features (and their overhead).
Pete, I owe you a beer. I can see a few things much, much clearer now, thanks!
Uli
next prev parent reply other threads:[~2005-03-16 7:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-15 11:45 need help with CompactFlash/PCMCIA Ulrich Eckhardt
2005-03-15 17:31 ` Pete Popov
2005-03-16 5:51 ` Ulrich Eckhardt
2005-03-16 6:06 ` Pete Popov
2005-03-16 7:16 ` Ulrich Eckhardt [this message]
2005-03-16 8:02 ` Pete Popov
2005-03-16 17:08 ` Ulrich Eckhardt
2005-03-16 17:21 ` Pete Popov
2005-03-17 15:26 ` Ulrich Eckhardt
2005-03-18 4:13 ` Pete Popov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200503160816.52467.eckhardt@satorlaser.com \
--to=eckhardt@satorlaser.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.