* [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator
@ 2014-09-01 5:05 Rob Landley
2014-09-01 8:07 ` Paolo Bonzini
2014-09-01 15:23 ` Rob Landley
0 siblings, 2 replies; 4+ messages in thread
From: Rob Landley @ 2014-09-01 5:05 UTC (permalink / raw)
To: qemu-devel
If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2
extract it and ./run-emulator.sh (which is a fairly straightforward
qemu-system-sh4 invocation on the included kernel image and squashfs
root filesystem), older qemu versions would run it just fine, and ctrl-C
would pass through to the shell. But current qemu, ctrl-C kills the
emulator.
I bisected this to commit 02c4bdf1d2ca, although that's between commit
a9e8aeb3755b (which broke the sh4 pci bus) and b23ea25f5098 (which made
it boot again), so you have to either revert the first or apply the
second in order to test that the reverted commit fixes it.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator
2014-09-01 5:05 [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator Rob Landley
@ 2014-09-01 8:07 ` Paolo Bonzini
2014-09-01 15:30 ` Rob Landley
2014-09-01 15:23 ` Rob Landley
1 sibling, 1 reply; 4+ messages in thread
From: Paolo Bonzini @ 2014-09-01 8:07 UTC (permalink / raw)
To: Rob Landley, qemu-devel
Il 01/09/2014 07:05, Rob Landley ha scritto:
> If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2
> extract it and ./run-emulator.sh (which is a fairly straightforward
> qemu-system-sh4 invocation on the included kernel image and squashfs
> root filesystem), older qemu versions would run it just fine, and ctrl-C
> would pass through to the shell. But current qemu, ctrl-C kills the
> emulator.
>
> I bisected this to commit 02c4bdf1d2ca, although that's between commit
> a9e8aeb3755b (which broke the sh4 pci bus) and b23ea25f5098 (which made
> it boot again), so you have to either revert the first or apply the
> second in order to test that the reverted commit fixes it.
I get a 404 error, but this is most likely not sh4 specific---can you
just post here the command line?
Paolo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator
2014-09-01 5:05 [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator Rob Landley
2014-09-01 8:07 ` Paolo Bonzini
@ 2014-09-01 15:23 ` Rob Landley
1 sibling, 0 replies; 4+ messages in thread
From: Rob Landley @ 2014-09-01 15:23 UTC (permalink / raw)
To: qemu-devel, Paolo Bonzini, Michael Tokarev, Peter Maydell,
Anthony Liguori
On 09/01/14 00:05, Rob Landley wrote:
> If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2
> extract it and ./run-emulator.sh (which is a fairly straightforward
> qemu-system-sh4 invocation on the included kernel image and squashfs
> root filesystem), older qemu versions would run it just fine, and ctrl-C
> would pass through to the shell. But current qemu, ctrl-C kills the
> emulator.
>
> I bisected this to commit 02c4bdf1d2ca, although that's between commit
> a9e8aeb3755b (which broke the sh4 pci bus) and b23ea25f5098 (which made
> it boot again), so you have to either revert the first or apply the
> second in order to test that the reverted commit fixes it.
>
> Rob
This time cc'ing the people who signed-off-by the buggy commit.
Before commit 02c4bdf1d2ca signal handling in qemu-system-sh4 with
serial console on stdin/stdout worked properly, as in ctrl-c would kill
the shell, not the emulator. After that commit, ctrl-c kills the
emulator, not the shell.
You can test this by grabbing the tarball in the first line above, and
runnign the run-emulator.sh script, which is just:
qemu-system-sh4 -M r2d -nographic -no-reboot -kernel zImage -hda hda.sqf
-append "root=/dev/sda rw init=/sbin/init.sh panic=1 PATH=/bin:/sbin
console=ttySC1 noiotrap HOST=sh4" -monitor null -serial null -serial stdio
Again, this worked before the above commit, and has been consistently
broken since that commit.
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator
2014-09-01 8:07 ` Paolo Bonzini
@ 2014-09-01 15:30 ` Rob Landley
0 siblings, 0 replies; 4+ messages in thread
From: Rob Landley @ 2014-09-01 15:30 UTC (permalink / raw)
To: Paolo Bonzini, qemu-devel
On 09/01/14 03:07, Paolo Bonzini wrote:
> Il 01/09/2014 07:05, Rob Landley ha scritto:
>> If you grab http://landley.net/aboriginal/bin/qemu-system-sh4.tar.bz2
>> extract it and ./run-emulator.sh (which is a fairly straightforward
>> qemu-system-sh4 invocation on the included kernel image and squashfs
>> root filesystem), older qemu versions would run it just fine, and ctrl-C
>> would pass through to the shell. But current qemu, ctrl-C kills the
>> emulator.
>>
>> I bisected this to commit 02c4bdf1d2ca, although that's between commit
>> a9e8aeb3755b (which broke the sh4 pci bus) and b23ea25f5098 (which made
>> it boot again), so you have to either revert the first or apply the
>> second in order to test that the reverted commit fixes it.
>
> I get a 404 error, but this is most likely not sh4 specific---can you
> just post here the command line?
I just did (sorry, checked the mailing list folder and didn't see a
reply, I forgot gmail filters out "duplicates" like being cc'd on the
same message, because the gmail developers hate threading.)
The correct URL is:
http://landley.net/aboriginal/bin/system-image-sh4.tar.bz2
The command line is:
qemu-system-sh4 -M r2d -nographic -no-reboot -kernel zImage -hda hda.sqf
-append "root=/dev/sda rw init=/sbin/init.sh panic=1 PATH=/bin:/sbin
console=ttySC1 noiotrap HOST=sh4" -monitor null -serial null -serial stdio
And the email telling me to use that command line way back when was:
http://lists.gnu.org/archive/html/qemu-devel/2009-02/msg00825.html
More context:
http://lists.gnu.org/archive/html/qemu-devel/2010-03/msg00976.html
Sorry for the confusion, I _really_ need to stop sending these things
after midnight...
Rob
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-01 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01 5:05 [Qemu-devel] bug (bisected): qemu-system-sh4 serial console, ctrl-C kills emulator Rob Landley
2014-09-01 8:07 ` Paolo Bonzini
2014-09-01 15:30 ` Rob Landley
2014-09-01 15:23 ` Rob Landley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).