From: Ladislav Michl <ladis@linux-mips.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] mtdparts
Date: Wed, 7 Sep 2005 10:29:46 +0200 [thread overview]
Message-ID: <20050907082946.GA19256@orphique> (raw)
In-Reply-To: <20050906194708.B3F64352B3A@atlas.denx.de>
On Tue, Sep 06, 2005 at 09:47:08PM +0200, Wolfgang Denk wrote:
> > In above scheme my custom part function allowed only chpart [34], so it
> > was not even possible to change partition to evn sector for example.
>
> Ummm... I can understand what you mean, but this is not how things
> normally are done in a UNIX environment. It seems a very arbitrary
> restriction to me, which I wouldn;t like if I was working on such a
> system.
Ack. I have no strong requirement for such feature.
> > Moreover it was pretty easy to construct kernel command line this way:
> > setenv bootargs '$bootargs root=/dev/mtdblock$partition ro rootfstype=jffs2'
>
> What prevents you from doing the same now?
Previously I did it in environment:
if test -n $swapos; then
if test $ospart -eq 0; then chpart 4; else chpart 3; fi;
setenv swapos; saveenv;
else
if test $ospart -eq 0; then chpart 3; else chpart 4; fi;
fi
flashargs=run setpart; fixroot; setenv bootargs $bootargs \
root=/dev/mtdblock$partition ro rootfstype=jffs2
fboot=run flashargs;fsload;bootm
This no longer possible, because $partiton is nand0,1 now, so finding
corresponding Linux device is more tricky. For now I solved it in C by
writing new command which does the trick. Hush doesn't support 'eval'
nor something like echo $fs`echo $ospart` where fs0=/dev/mtdblock3
and fs1=/dev/mtdblock4, so it's hard to do it using builtin commands.
In case I'm the only one who needs something like this, I'm perfectly
fine with my current solution.
Best regards,
ladis
next prev parent reply other threads:[~2005-09-07 8:29 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 18:02 [U-Boot-Users] mtdparts Ladislav Michl
2005-09-06 19:47 ` Wolfgang Denk
2005-09-07 8:29 ` Ladislav Michl [this message]
2005-09-07 8:51 ` Wolfgang Denk
2005-09-07 9:45 ` [U-Boot-Users] Does anyone use Lan91c96 in U-Boot? Bryan Wu
2005-09-07 10:30 ` [U-Boot-Users] mtdparts Andreas Engel
2005-09-07 12:54 ` Wolfgang Denk
2005-09-07 13:37 ` Ladislav Michl
2005-09-12 22:25 ` Wolfgang Denk
2005-09-13 15:00 ` Ladislav Michl
2005-09-15 8:49 ` [PATCH] voiceblue update (Re: [U-Boot-Users] mtdparts) Ladislav Michl
2006-07-22 19:05 ` [U-Boot-Users] [PATCH] voiceblue update (Re: mtdparts) Wolfgang Denk
2006-07-25 15:00 ` Ladislav Michl
2006-10-29 10:36 ` Stefan Roese
2005-09-08 10:49 ` [U-Boot-Users] mtdparts Andreas Engel
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=20050907082946.GA19256@orphique \
--to=ladis@linux-mips.org \
--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