public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Enabling the data size parameter for memory commands like "md"?
@ 2003-10-14 11:33 Pasi Huhtiniemi
  2003-10-14 12:02 ` Detlev Zundel
  2003-10-14 12:19 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Pasi Huhtiniemi @ 2003-10-14 11:33 UTC (permalink / raw)
  To: u-boot

Hello,

I'm playing around with a day-old cvs snapshot of U-Boot, using it with 
"make at91rm9200dk_config". My problem is the same with 0.4.0.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Enabling the data size parameter for memory commands like "md"?
  2003-10-14 11:33 [U-Boot-Users] Enabling the data size parameter for memory commands like "md"? Pasi Huhtiniemi
@ 2003-10-14 12:02 ` Detlev Zundel
  2003-10-14 12:19 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Detlev Zundel @ 2003-10-14 12:02 UTC (permalink / raw)
  To: u-boot

Hi Pasi,

> I'm playing around with a day-old cvs snapshot of U-Boot, using it with
> "make at91rm9200dk_config". My problem is the same with 0.4.0.
>
>>From the source (and from the usage help) I understand that at least the
> memory commands like "md" should accept (optional) data size parameter
> (.b/.w/.l) as the first parameter.
>
> How do you enable this? In my environment they don't work: 1) argv[0] is
> the command itself (like "md"), not the data size parameter from where the
> source tries to read it and 2) if I give the data size parameter, the
> upper framework counts the amount of parameters to be illegal and
> therefore certain commands give me an error message (the short usage).
>
> I suppose there is a #define missing? What is it? I could not quickly find
> it grepping the source, googling the net / mailing list archives.

I think you misunderstood the docs.  The size specification is not a
parameter but rather a part of the command name - that's why the
source looks at argv[0].  Check out the examples in our
documentation[1].

Cheers
  Detlev

[1] https://www.denx.de/twiki/bin/view/DULG/UBootCmdGroupMemory#Section_5.9.2.5.

-- 
You see, the best way to solve a problem is to rigorously define it in
terms of other people's problems, and then run away quickly.
                                          -- Roland McGrath

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] Enabling the data size parameter for memory commands like "md"?
  2003-10-14 11:33 [U-Boot-Users] Enabling the data size parameter for memory commands like "md"? Pasi Huhtiniemi
  2003-10-14 12:02 ` Detlev Zundel
@ 2003-10-14 12:19 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2003-10-14 12:19 UTC (permalink / raw)
  To: u-boot

Dear Pasi,

in message <Pine.LNX.4.44.0310141425340.4900-100000@melkki.cs.Helsinki.FI> you wrote:
> 
> >From the source (and from the usage help) I understand that at least the 
> memory commands like "md" should accept (optional) data size parameter 
> (.b/.w/.l) as the first parameter. 

No, this is wrong. This is NOT the first  parameter,  but  a  command
qualifier.

> How do you enable this? In my environment they don't work: 1) argv[0] is 
> the command itself (like "md"), not the data size parameter from where the 
> source tries to read it and 2) if I give the data size parameter, the 
> upper framework counts the amount of parameters to be illegal and 
> therefore certain commands give me an error message (the short usage).

Which is the correct reaction on incorrect command usage.

> I suppose there is a #define missing? What is it? I could not quickly find
> it grepping the source, googling the net / mailing list archives. 

Ummm... I suggest you start RTFM?

See for example
http://www.denx.de/twiki/bin/view/DULG/UBootCmdGroupMemory#Section_5.9.2.3.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"In the long run, every program becomes rococo, and then rubble."
- Alan Perlis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-14 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-14 11:33 [U-Boot-Users] Enabling the data size parameter for memory commands like "md"? Pasi Huhtiniemi
2003-10-14 12:02 ` Detlev Zundel
2003-10-14 12:19 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox