From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] Add flash programming counter]
Date: Fri, 07 Mar 2008 15:52:38 -0500 [thread overview]
Message-ID: <47D1AB16.10307@ge.com> (raw)
In-Reply-To: <20080307193638.81D00247B3@gemini.denx.de>
Wolfgang Denk wrote:
> In message <47D17784.80604@ge.com> you wrote:
>> OK, here is a simulation of what I will create tonight. I think this is
>> both workable, very effective, and meets Wolfgang's constraints.
>
> I like it.
>
>> > ./dots 99
>> Writing to Flash... 0....1....2....3....4....5....6....7....8....9.... Done
>>
>> > ./dots 1
>> Writing to Flash... 0 Done
>
> This is kind of misleading. I hear customers (or participants of our
> training classes) asking if "0 done" means that nothing was done.
>
> Can we just omit the 0?
>
> Best regards,
> Wolfgang Denk
To quote a quote I got from you:
Zero is an enigmatic value. It can mean success (fclose) or failure
(scanf). It can mean black or white. It can mean no permissions (chmod)
or all permissions (umask). It can mean now (setjmp) or later (atexit).
It can mean the beginning (lseek) or the end (read). It can mean myself
(getpgrp) or child (fork). It can mean all (kill's 1st argument) or
nothing (kill's 2nd argument). It can mean 'default' (SIG_IGN) or 'I
don't care' (waitpid) or 'try to guess' (strtol). Indeed 0 lets you talk
to God (setuid). Verily is 0 all things to all people.
-- an ancient usenet posting
My current thought is
* Start counting at 1
* Suppress the dots if there are fewer than the configured max
(rationale: if there are fewer units to program than dots, it will
be done very quickly anyway)
* Have a configurable upper limit, default to 45 (1..9). This will
allow changing the #define to make the dots friendlier to 40
column displays, for instance.
> ./dots 1
Writing to Flash... Done
> ./dots 44
Writing to Flash... Done
> ./dots 45
Writing to Flash... ....1....2....3....4....5....6....7....8....9 Done
> ./dots 4500000
Writing to Flash... ....1....2....3....4....5....6....7....8....9 Done
gvb
next prev parent reply other threads:[~2008-03-07 20:52 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 19:43 [U-Boot-Users] [PATCH] Add flash programming counter] York Sun
2008-03-06 6:20 ` Stefan Roese
2008-03-06 8:19 ` Martin Krause
2008-03-06 12:48 ` Wolfgang Denk
2008-03-06 13:33 ` Stefan Roese
2008-03-06 16:32 ` Wolfgang Denk
2008-03-06 17:17 ` Michael Schwingen
2008-03-06 19:35 ` Jerry Van Baren
2008-03-07 13:02 ` Clemens Koller
2008-03-07 13:11 ` Stefan Roese
2008-03-07 13:26 ` Jerry Van Baren
2008-03-07 13:35 ` Stefan Roese
2008-03-07 13:57 ` Jerry Van Baren
2008-03-07 14:04 ` Stefan Roese
2008-03-07 14:15 ` Wolfgang Denk
2008-03-07 14:18 ` Kumar Gala
2008-03-07 14:22 ` Stefan Roese
2008-03-07 14:13 ` Wolfgang Denk
2008-03-07 14:36 ` Jerry Van Baren
2008-03-07 14:59 ` Wolfgang Denk
2008-03-07 16:09 ` Jerry Van Baren
2008-03-07 16:33 ` Wolfgang Denk
2008-03-07 17:12 ` Jerry Van Baren
2008-03-07 19:36 ` Wolfgang Denk
2008-03-07 20:52 ` Jerry Van Baren [this message]
2008-03-07 17:46 ` Kim Phillips
2008-03-07 19:39 ` Wolfgang Denk
2008-03-07 14:10 ` Wolfgang Denk
2008-03-07 13:24 ` Jerry Van Baren
2008-03-07 13:33 ` Jerry Van Baren
2008-03-06 19:41 ` Stefan Roese
2008-03-06 22:58 ` Wolfgang Denk
2008-03-07 6:38 ` Stefan Roese
2008-03-07 16:34 ` Jon Loeliger
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=47D1AB16.10307@ge.com \
--to=gerald.vanbaren@ge.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