[U-Boot] Store ENTER ('\r') character in bootstopkey variable

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?

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

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.

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

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?

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
participants (2)
-
Giuseppe Modugno
-
Wolfgang Denk