Skip to contentSkip to conversation

Store ENTER ('\r') character in bootstopkey variable

U-Boot Giuseppe Modugno 2 participants 6 messages Dec 1, 2011 – Dec 2, 2011

lore
Share & tools
lore
#0 lore raw

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?

#1 lore raw

Dear Giuseppe Modugno,

Quoted 2 lines · In message <[email protected]> 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

Signature · 4 lines
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
#2 lore raw

2011/12/1 Wolfgang Denk <[email protected]>

Quoted 9 lines
Quoted 2 lines

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.

Quoted 9 lines

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

...
=> printenv bootdelaykey
bootdelaykey=

=>

Quoted 7 lines

or:

=> printenv
...
bootdelaykey=\

...

This isn't a problem for me.

#3 lore raw

Dear Giuseppe Modugno,

Quoted 8 lines · In message <CAOye5==DFBYQMUSx_YQiUGGwkAgDpEHNW_wQUHWOPv_zoYr5yA@mail.gmail.com>…
Quoted 5 lines

=> 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

Signature · 4 lines
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!
#4 lore raw

2011/12/2 Wolfgang Denk <[email protected]>:

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

=> 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.

Quoted 1 line

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

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

#5 lore raw

Dear Giuseppe Modugno,

Quoted 4 lines · In message <CAOye5=kGA-ZFZp9H1qyusMhj1-NRGgR+yoRJNA=4ofVZPfx2YQ@mail.gmail.com>…
Quoted 2 lines

Which exact U-Boot version is this?

A patched 1.2.0.

Argh... Please update and use recent code.

Quoted 3 lines
Quoted 1 line

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

Signature · 6 lines
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.