public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
@ 2011-12-01 19:45 Giuseppe Modugno
  2011-12-01 20:29 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Modugno @ 2011-12-01 19:45 UTC (permalink / raw)
  To: u-boot

I'd like to use the ENTER key to stop autoboot through the variables 
"bootdelaykey" and "bootstopkey".  How could I do this?

The problem is to type escape characters ('\r') on the prompt line.  I 
tried with several possibilities, but nothing worked.

Any suggestions?

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

* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
  2011-12-01 19:45 [U-Boot] Store ENTER ('\r') character in bootstopkey variable Giuseppe Modugno
@ 2011-12-01 20:29 ` Wolfgang Denk
  2011-12-02  7:55   ` Giuseppe Modugno
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2011-12-01 20:29 UTC (permalink / raw)
  To: u-boot

Dear Giuseppe Modugno,

In message <4ED7D976.30800@gmail.com> you wrote:
> I'd like to use the ENTER key to stop autoboot through the variables 
> "bootdelaykey" and "bootstopkey".  How could I do this?

Try simply doint what you intent to do:

=> setenv bootdelaykey '
'

That should do the trick.

Note that itis a bit tricky to check this with printenv.  You will see
this:

...
=> printenv bootdelaykey
bootdelaykey=

=>

or:

=> printenv
...
bootdelaykey=\

...



Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"You'll pay to know what you really think."        - J.R. "Bob" Dobbs

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

* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
  2011-12-01 20:29 ` Wolfgang Denk
@ 2011-12-02  7:55   ` Giuseppe Modugno
  2011-12-02  8:24     ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Modugno @ 2011-12-02  7:55 UTC (permalink / raw)
  To: u-boot

2011/12/1 Wolfgang Denk <wd@denx.de>
> > I'd like to use the ENTER key to stop autoboot through the variables
> > "bootdelaykey" and "bootstopkey". ?How could I do this?
>
> Try simply doint what you intent to do:
>
> => setenv bootdelaykey '
> '
>
> That should do the trick.

I tried, but when I press ENTER key after the first ', U-Boot shows me
a new prompt and delete the variable.


> Note that itis a bit tricky to check this with printenv. ?You will see
> this:
>
> ...
> => printenv bootdelaykey
> bootdelaykey=
>
> =>
>
> or:
>
> => printenv
> ...
> bootdelaykey=\
>
> ...

This isn't a problem for me.

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

* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
  2011-12-02  7:55   ` Giuseppe Modugno
@ 2011-12-02  8:24     ` Wolfgang Denk
  2011-12-02 11:46       ` Giuseppe Modugno
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2011-12-02  8:24 UTC (permalink / raw)
  To: u-boot

Dear Giuseppe Modugno,

In message <CAOye5==DFBYQMUSx_YQiUGGwkAgDpEHNW_wQUHWOPv_zoYr5yA@mail.gmail.com> you wrote:
>
> > => setenv bootdelaykey '
> > '
> >
> > That should do the trick.
> 
> I tried, but when I press ENTER key after the first ', U-Boot shows me
> a new prompt and delete the variable.

Which exact U-Boot version is this?

Are you using the hush shell, or the legacy command interpreter?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Star Trek Lives!

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

* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
  2011-12-02  8:24     ` Wolfgang Denk
@ 2011-12-02 11:46       ` Giuseppe Modugno
  2011-12-02 12:47         ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Giuseppe Modugno @ 2011-12-02 11:46 UTC (permalink / raw)
  To: u-boot

2011/12/2 Wolfgang Denk <wd@denx.de>:
>> > => setenv bootdelaykey '
>> > '
>> >
>> > That should do the trick.
>>
>> I tried, but when I press ENTER key after the first ', U-Boot shows me
>> a new prompt and delete the variable.
>
> Which exact U-Boot version is this?

A patched 1.2.0.


> Are you using the hush shell, or the legacy command interpreter?

I think the legacy command interpreter... how could I check this?

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

* [U-Boot] Store ENTER ('\r') character in bootstopkey variable
  2011-12-02 11:46       ` Giuseppe Modugno
@ 2011-12-02 12:47         ` Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2011-12-02 12:47 UTC (permalink / raw)
  To: u-boot

Dear Giuseppe Modugno,

In message <CAOye5=kGA-ZFZp9H1qyusMhj1-NRGgR+yoRJNA=4ofVZPfx2YQ@mail.gmail.com> you wrote:
>
> > Which exact U-Boot version is this?
> 
> A patched 1.2.0.

Argh... Please update and use recent code.

> > Are you using the hush shell, or the legacy command interpreter?
> 
> I think the legacy command interpreter... how could I check this?

Try:

	echo a || echo b

Hush will echo only "a", the old legacy interpreter will print
"a || echo b".

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Dealing with failure is easy: work hard to improve. Success  is  also
easy  to  handle:  you've  solved  the  wrong  problem.  Work hard to
improve.

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

end of thread, other threads:[~2011-12-02 12:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-01 19:45 [U-Boot] Store ENTER ('\r') character in bootstopkey variable Giuseppe Modugno
2011-12-01 20:29 ` Wolfgang Denk
2011-12-02  7:55   ` Giuseppe Modugno
2011-12-02  8:24     ` Wolfgang Denk
2011-12-02 11:46       ` Giuseppe Modugno
2011-12-02 12:47         ` Wolfgang Denk

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