From: Victor Wren <vwren@timension.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] RTC for MPC5200
Date: Thu, 8 Jan 2004 16:23:14 -0800 [thread overview]
Message-ID: <20040109002314.GA5148@timension.com> (raw)
In-Reply-To: <20040108225657.95745C108D@atlas.denx.de>
On Thu, Jan 08, 2004 at 11:56:52PM +0100, Wolfgang Denk wrote:
>
> What exactly is the problem? The procedure is fairly well documented
> in the DULG, and a ready-to-run image is supplied with the ELDK. Just
> boot it...
Oh, it boots, no problem. What I'm having trouble with (inexperience) is
changing the root filesystem after and cutting all ties to busybox so that
I can unmount the ramdisk. The closest I've gotten to booting is with
mount /dev/hda2 /mnt
cd /mnt
pivot_root . /mnt/initrd
chroot . /etc/rc.sysinit <dev/console >dev/console 2>&1
But after that, I'm still running busybox, and when the "application" process
expires, it starts berating me. Of course, I can't umount /initrd because
it's still occupied. I've read up all I can find on the boot
process using initrd, and haven't found much specifics about handing over
control from one init process to another.
> A ramdisk image (loaded from flash) is one way to provide an embedded
> system that is 100% bullet-proof agains unexpected reboots or
> power-cycling.
Well, this does have a hard drive attached, so there will still be some
issues with filesystem recovery in case of accidents. I'm using this
more like a mini-server than an embedded system.
> Also, a more leaner setup like the busybox-based SELF used for our
> defualt ramdisk images boots much, much faster than the full-blown
> SysV init stuff.
It certainly does. My cable box should start so fast.
> You will not be judged by years of experience, or by any
> certificates. It's just the quality of the code that matters :-)
That's what worries me. :-) In my case, the years of experience were too
many years ago. Last time I did much low-level code munching was on my Atari
ST. MMUs were after my time.
Victor Wren
next prev parent reply other threads:[~2004-01-09 0:23 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-08 21:05 [U-Boot-Users] RTC for MPC5200 Victor Wren
2004-01-08 22:56 ` Wolfgang Denk
2004-01-09 0:23 ` Victor Wren [this message]
2004-01-09 6:46 ` Wolfgang Denk
2004-01-09 16:51 ` Reinhard Meyer
2004-01-09 20:11 ` Reinhard Meyer
2004-01-15 9:18 ` Wolfgang Denk
2004-01-15 10:22 ` Reinhard Meyer
2004-01-15 11:00 ` Wolfgang Denk
2004-01-15 12:58 ` Reinhard Meyer
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=20040109002314.GA5148@timension.com \
--to=vwren@timension.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox