Skip to contentSkip to conversation

test/py: use space to interrupt autoboot

PATCH RESEND New Stephen Warren 3 participants 3 messages Feb 16, 2016 – Feb 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 test/py: use space to interrupt autoboot

Sending CTRL-C to QEMU's stdin aborts the process, even if stdin is being used as a serial port (at least in the raspi2 machine with "qemu -serial stdin"). Avoid sending CTRL-C to U-Boot to prevent it exiting.

I'd originally used CTRL-C to make sure that if the character used to abort autoboot ended up being treated as part of a command as well, it'd abort command entry and return the prompt to a known state. However, this is not needed, since aborting the autoboot eats the character used to do that.

---
(Resending since I forgot to Cc the list)

 test/py/u_boot_console_base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/u_boot_console_base.py +1 -1
index bc2bd767e40e..c9d1bac5e06b 100644
@@ -319,7 +319,7 @@ class ConsoleBase(object):
                 if m == 0:
                     break
                 if m == 1:
-                    self.p.send(chr(3)) # CTRL-C
+                    self.p.send(' ')
                     continue
                 raise Exception('Bad pattern found on console: ' +
                                 self.bad_pattern_ids[m - 2])
Signature · 1 line
1.9.1
#1 lore raw

PATCH RESEND 1/1 test/py: use space to interrupt autoboot

Quoted 11 lines · Stephen Warren

Sending CTRL-C to QEMU's stdin aborts the process, even if stdin is being used as a serial port (at least in the raspi2 machine with "qemu -serial stdin"). Avoid sending CTRL-C to U-Boot to prevent it exiting.

I'd originally used CTRL-C to make sure that if the character used to abort autoboot ended up being treated as part of a command as well, it'd abort command entry and return the prompt to a known state. However, this is not needed, since aborting the autoboot eats the character used to do that.

Quoted 6 lines

---
(Resending since I forgot to Cc the list)

 test/py/u_boot_console_base.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#2 lore raw

PATCH RESEND 1/1 test/py: use space to interrupt autoboot

In reply to Stephen Warren
Quoted 4 lines · Stephen Warren

Sending CTRL-C to QEMU's stdin aborts the process, even if stdin is being used as a serial port (at least in the raspi2 machine with "qemu -serial stdin"). Avoid sending CTRL-C to U-Boot to prevent it exiting.

Quoted 8 lines

I'd originally used CTRL-C to make sure that if the character used to abort autoboot ended up being treated as part of a command as well, it'd abort command entry and return the prompt to a known state. However, this is not needed, since aborting the autoboot eats the character used to do that.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160226/492e1639/attachment.sig>