Make bootretry work when command line editing is enabled
PATCH 1/1 Make bootretry work when command line editing is enabled
Currently, when CONFIG_CMDLINE_EDITING is set, bootretry doesn't work. This patch fixes the problem.
Signed-off-by Andreas Engel <[email protected]>
---
common/main.c +7 -0
@@ -710,6 +710,13 @@ static int cread_line(char *buf, unsignewhile (1 ) { rlen =1 ; +#ifdef CONFIG_BOOT_RETRY_TIME +while (!tstc ()) {/* while no incoming data */ +if (retry_time >=0 &&get_ticks () > endtime) +return (-2 );/* timed out */ + } +#endif + ichar =getcmd_getch ();if ((ichar =='\n' ) || (ichar =='\r' )) {
Wolfgang Denk
AppliedPATCH 1/1 Make bootretry work when command line editing is enabled
Quoted 4 lines · In message <94BF386B051B5849BA84A45DDFC4E60A02090095@esealmw118.eemea.ericsson.…
Currently, when
CONFIG_CMDLINE_EDITINGis set, bootretry doesn't work. This patch fixes the problem.Signed-off-by Andreas Engel <[email protected]>
Applied, thank.s
Best regards,
Wolfgang Denk
Signature · 10 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
Q: How many DEC repairman does it take to fix a flat?
A: Five; four to hold the car up and one to swap tires.
Q: How long does it take?
A: It's indeterminate. It will depend upon how many flats they've
brought with them.
Q: What happens if you've got TWO flats?
A: They replace your generator.