Looking for an SH4 QEMU-ready kernel (for TCG conversion)
Hi,
I have just started to convert the SH4 target to TCG. I am currently using the user emulation as a way to test if I do not include regressions. The system emulation is probably a better way to test for regressions, unfortunately I don't have an SH4 QEMU-ready kernel, and I don't really want to spend time on that (I also don't have a cross toolchain ready for that).
Does someone on this mailing list have an SH4 QEMU-ready kernel? The best is probably to do a mini image the same way it is already done for other architectures [1], so that it can also be useful to others.
About the TCG conversion, I am doing it small part by small part, as I am not always sure I can continue the work on the following days, and I don't not want to prevent people working on that. Patches are welcome, preferably grouping the same kind of ops together. By the way, patches for the PPC and Alpha target are also welcome.
Cheers,
Aurelien
[1] http://bellard.org/qemu/download.html
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 1 line · Aurelien Jarno
Does someone on this mailing list have an SH4 QEMU-ready kernel?
Have you tried the one in
http://www.landley.net/code/firmware/downloads/binaries/system-image/system-image-sh4.tar.bz2
?
Quoted 8 lines · Miklos Vajna
Quoted 1 line · Aurelien Jarno
Does someone on this mailing list have an SH4 QEMU-ready kernel?
Have you tried the one in
http://www.landley.net/code/firmware/downloads/binaries/system-image/system-image-sh4.tar.bz2
?
Thanks looks like a good start, but I have been unable to get it booting. qemu-system-sh4 request shix_bios.bin. I have been able to find a firmware on [1], but even with it it the kernel does not boot...
Any idea?
Aurelien
[1] http://perso.telecom-paristech.fr/~polti/realisations/shix20/
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Quoted 7 lines · Aurelien Jarno
Quoted 6 lines · Miklos Vajna
Quoted 1 line · Aurelien Jarno
Does someone on this mailing list have an SH4 QEMU-ready kernel?
Have you tried the one in
http://www.landley.net/code/firmware/downloads/binaries/system-image/system-image-sh4.tar.bz2
Quoted 7 lines
Quoted 1 line
?
Thanks looks like a good start, but I have been unable to get it booting. qemu-system-sh4 request shix_bios.bin. I have been able to find a firmware on [1], but even with it it the kernel does not boot...
Any idea?
Please try this one.
http://www.assembla.com/file/qemu-sh4/3_zImage
The command line is like this.
% ./qemu/sh4-softmmu/qemu-system-sh4 -M r2d -serial vc -serial stdio -m 1024M -kernel zImage
regards,
Shin-ichiro KAWASAKI
Quoted 16 lines · Shin-ichiro KAWASAKI
Quoted 7 lines · Aurelien Jarno
Quoted 6 lines · Miklos Vajna
Quoted 1 line · Aurelien Jarno
Does someone on this mailing list have an SH4 QEMU-ready kernel?
Have you tried the one in
http://www.landley.net/code/firmware/downloads/binaries/system-image/system-image-sh4.tar.bz2
Quoted 7 lines
Quoted 1 line
?
Thanks looks like a good start, but I have been unable to get it booting. qemu-system-sh4 request shix_bios.bin. I have been able to find a firmware on [1], but even with it it the kernel does not boot...
Any idea?
Quoted 9 lines
Please try this one.
http://www.assembla.com/file/qemu-sh4/3_zImage
The command line is like this.
% ./qemu/sh4-softmmu/qemu-system-sh4 -M r2d -serial vc -serial stdio -m 1024M -kernel zImage
Thanks a lot, I finally have something to test my TCG conversion, and I have already spotted on regression, fixed in r5105.
Aurelien
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.
I'd be interested in helping with ppc but I have a problem testing such changes: ppc-softmmu does not boot anything, ppc-linux-user does not seem to compile outside Linux and ppc-darwin-user does not compile on OSX either.
Would patches to make linux-user compile on other platforms make sense or is it locked to the platform it emulates?
This is what I get for ppc-darwin-user (using Leopard's gcc 4.0.1):
gcc -I. -I.. -I/Users/andreas/Q/qemu/target-ppc -I/Users/andreas/Q/qemu -MMD -MT main.o -MP -DNEED_CPU_H -D__powerpc__ -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I/Users/andreas/Q/qemu/tcg -I/Users/andreas/Q/qemu/tcg/ppc -I/Users/andreas/Q/qemu/fpu -I/Users/andreas/Q/qemu/darwin-user -I/Users/andreas/Q/qemu/darwin-user/ppc -Wall -O2 -g -fno-strict-aliasing -mdynamic-no-pic -c -o main.o /Users/andreas/Q/qemu/darwin-user/main.c In file included from /Users/andreas/Q/qemu/darwin-user/qemu.h:9,
from /Users/andreas/Q/qemu/darwin-user/main.c:31:../thunk.h: In function ‘thunk_type_size’:../thunk.h:104: error: ‘TARGET_ABI_BITS’ undeclared (first use in this function)../thunk.h:104: error: (Each undeclared identifier is reported only once../thunk.h:104: error: for each function it appears in.)../thunk.h: In function ‘thunk_type_align’:../thunk.h:141: error: ‘TARGET_ABI_BITS’ undeclared (first use in this function)
In file included from /Users/andreas/Q/qemu/darwin-user/main.c:31:
/Users/andreas/Q/qemu/darwin-user/qemu.h: At top level:
/Users/andreas/Q/qemu/darwin-user/qemu.h:100: warning: ‘struct sigaltstack’ declared inside parameter list
/Users/andreas/Q/qemu/darwin-user/qemu.h:100: warning: its scope is only this definition or declaration, which is probably not what you want
make[1]: *** [main.o] Error 1
Regards,
Andreas
Quoted 2 lines
Would patches to make linux-user compile on other platforms make sense or is it locked to the platform it emulates?
Linux usermode emulation assumes a linux host. In theory it's possible to make it work elsewhere, but it's quite a lot of work, and you may end up having to reimplement a fair chunk of the linux kernel.
Paul
Re: [Qemu-devel] Looking for an SH4 QEMU-ready kernel
Quoted 3 lines · Paul Brook
Linux usermode emulation assumes a linux host. In theory it's possible to make it work elsewhere, but it's quite a lot of work, and you may end up having to reimplement a fair chunk of the linux kernel.
Wasn't there a Wine-like project to run Linux applications on Windows once?
Signature · 4 lines
< Jernej Simončič ><><><><>< http://eternallybored.org/ >
Hot glass looks exactly the same as cold glass.
-- First Law of Laboratory WorkRe: [Qemu-devel] Looking for an SH4 QEMU-ready kernel
Quoted 7 lines · Jernej Simončič
Quoted 3 lines · Paul Brook
Linux usermode emulation assumes a linux host. In theory it's possible to make it work elsewhere, but it's quite a lot of work, and you may end up having to reimplement a fair chunk of the linux kernel.
Wasn't there a Wine-like project to run Linux applications on Windows once?
Yes. AFAIK it's been dead for years.
I also did a proof-of-concept implementation using qemu usermode emulation on cygwin. It's a horrible hack though, and I'd be surprised if it worked for any nontrivial applications.
Paul
Quoted 2 lines · Andreas Färber
I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything
You can check the link I posted in the previous mail, it contains a "qemu-bootable" (patched) Linux kernel for PPC as well.
Both the binary and the patches are there.
Am 30.08.2008 um 00:12 schrieb Miklos Vajna:
Quoted 9 lines
On Fri, Aug 29, 2008 at 11:12:13PM +0200, Andreas Färber <[email protected]
Quoted 3 lines
wrote:
I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anythingYou can check the link I posted in the previous mail, it contains a "qemu-bootable" (patched) Linux kernel for PPC as well.
Both the binary and the patches are there.
I tried Rob's system image with SVN HEAD and it works fine! Thanks.
http://www.landley.net/code/firmware/downloads/binaries/system-image/system-image-powerpc.tar.bz2
Corresponding Linux kernel patch:
http://www.landley.net/hg/firmware/file/f6802733e627/sources/patches/linux-ppcqemu.patch
Andreas
Quoted 9 lines · Andreas Färber
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything, ppc-linux-user does not seem
ppc-softmmu is able to boot prep kernels (-M prep), but unfortunately the support for this platform has been removed from upstream along with the ppc/ arch (since 2.6.26).
I would suggest a kernel in the 2.6.23-2.6.25 range.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
Am 30.08.2008 um 00:29 schrieb Aurelien Jarno:
Quoted 8 lines · Andreas Färber
Quoted 7 lines
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.
Quoted 6 lines
Quoted 2 lines
I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything, ppc-linux-user does not seemppc-softmmu is able to boot prep kernels (-M prep), but unfortunately the support for this platform has been removed from upstream along with the ppc/ arch (since 2.6.26).
According to Wikipedia, Debian and NetBSD still maintain PReP support.
http://en.wikipedia.org/wiki/PowerPC_Reference_Platform
What's missing in QEMU's default g3bw machine that only PReP is known to work? I've tested booting into Debian 4.0 r4a netinst CD (2.6.18?) on a real PowerMac G3 blue&white and it works.
Does removal of "the ppc/ arch" in 2.6.26 above imply that recent Linux kernels will only work on ppc64 and power?
Andreas
Quoted 16 lines · Andreas Färber
Am 30.08.2008 um 00:29 schrieb Aurelien Jarno:
Quoted 13 lines · Andreas Färber
Quoted 11 lines
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything, ppc-linux-user does not seem
Quoted 8 lines
Quoted 5 lines
ppc-softmmu is able to boot prep kernels (-M prep), but unfortunately the
support for this platform has been removed from upstream along with the
ppc/ arch (since 2.6.26).According to Wikipedia, Debian and NetBSD still maintain PReP support.
http://en.wikipedia.org/wiki/PowerPC_Reference_Platform
This is now mostly wrong, PReP support in Debian has been removed from unstable just after the release of Etch. Debian Lenny won't support it.
Quoted 3 lines
What's missing in QEMU's default g3bw machine that only PReP is known to work? I've tested booting into Debian 4.0 r4a netinst CD (2.6.18?) on a real PowerMac G3 blue&white and it works.
A decent BIOS.
Quoted 3 lines
Does removal of "the ppc/ arch" in 2.6.26 above imply that recent Linux kernels will only work on ppc64 and power?
The ppc/ arch is a new way of supporting both PowerPC and PowerPC64 machines. The CPU support is the same, but it only supports machines that have been ported to this new arch. Theoretically it is possible to add PReP support to the ppc/ arch, but nobody cares anymore about PReP.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net
In message: <[email protected]>
Aurelien Jarno <[email protected]> writes:
: On Sun, Aug 31, 2008 at 06:36:36PM +0200, Andreas Färber wrote:
: >
: > Am 30.08.2008 um 00:29 schrieb Aurelien Jarno:
: >
: > >On Fri, Aug 29, 2008 at 11:12:13PM +0200, Andreas Färber wrote:
: > >>Hi,
: > >>
: > >>Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
: > >>
: > >>>By the way, patches
: > >>>for the PPC and Alpha target are also welcome.
: > >>
: > >>I'd be interested in helping with ppc but I have a problem testing : > >>such
: > >>changes: ppc-softmmu does not boot anything, ppc-linux-user does : > >>not seem
: > >
: > >ppc-softmmu is able to boot prep kernels (-M prep), but
: > >unfortunately the
: > >support for this platform has been removed from upstream along with : > >the
: > >ppc/ arch (since 2.6.26).
: >
: > According to Wikipedia, Debian and NetBSD still maintain PReP support. : > http://en.wikipedia.org/wiki/PowerPC_Reference_Platform
:
: This is now mostly wrong, PReP support in Debian has been removed from : unstable just after the release of Etch. Debian Lenny won't support it. :
: > What's missing in QEMU's default g3bw machine that only PReP is known : > to work? I've tested booting into Debian 4.0 r4a netinst CD (2.6.18?) : > on a real PowerMac G3 blue&white and it works.
:
: A decent BIOS.
:
: > Does removal of "the ppc/ arch" in 2.6.26 above imply that recent : > Linux kernels will only work on ppc64 and power?
: >
:
: The ppc/ arch is a new way of supporting both PowerPC and PowerPC64 : machines. The CPU support is the same, but it only supports machines : that have been ported to this new arch. Theoretically it is possible : to add PReP support to the ppc/ arch, but nobody cares anymore about : PReP.
s=ppc/=powerpc/=g
arch/powerpc is the new way. arch/ppc is the old. Nobody bothered to port things forward.
warner
Quoted 26 lines · Aurelien Jarno
Quoted 16 lines · Andreas Färber
Am 30.08.2008 um 00:29 schrieb Aurelien Jarno:
Quoted 13 lines · Andreas Färber
Quoted 11 lines
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything, ppc-linux-user does not seemQuoted 8 lines
Quoted 5 lines
ppc-softmmu is able to boot prep kernels (-M prep), but unfortunately the
support for this platform has been removed from upstream along with the
ppc/ arch (since 2.6.26).According to Wikipedia, Debian and NetBSD still maintain PReP support.
http://en.wikipedia.org/wiki/PowerPC_Reference_Platform
Quoted 8 lines
This is now mostly wrong, PReP support in Debian has been removed from unstable just after the release of Etch. Debian Lenny won't support it.
Quoted 3 lines
What's missing in QEMU's default g3bw machine that only PReP is known to work? I've tested booting into Debian 4.0 r4a netinst CD (2.6.18?) on a real PowerMac G3 blue&white and it works.
A decent BIOS.
Now that the future of OHW looks uncertain, perhaps someone with PPC knowledge could implement the missing pieces of OpenBIOS for PPC? There is already some support for pearpc, mol and briq machines.
Quoted 34 lines · Blue Swirl
Quoted 33 lines · Aurelien Jarno
Quoted 16 lines · Andreas Färber
Am 30.08.2008 um 00:29 schrieb Aurelien Jarno:
Quoted 13 lines · Andreas Färber
Quoted 11 lines
Hi,
Am 28.08.2008 um 23:17 schrieb Aurelien Jarno:
Quoted 2 lines
By the way, patches
for the PPC and Alpha target are also welcome.I'd be interested in helping with ppc but I have a problem testing such
changes: ppc-softmmu does not boot anything, ppc-linux-user does not seemQuoted 8 lines
Quoted 5 lines
ppc-softmmu is able to boot prep kernels (-M prep), but unfortunately the
support for this platform has been removed from upstream along with the
ppc/ arch (since 2.6.26).According to Wikipedia, Debian and NetBSD still maintain PReP support.
http://en.wikipedia.org/wiki/PowerPC_Reference_PlatformThis is now mostly wrong, PReP support in Debian has been removed from unstable just after the release of Etch. Debian Lenny won't support it.
Quoted 3 lines
What's missing in QEMU's default g3bw machine that only PReP is known to work? I've tested booting into Debian 4.0 r4a netinst CD (2.6.18?) on a real PowerMac G3 blue&white and it works.
Quoted 5 lines
Quoted 1 line
A decent BIOS.
Now that the future of OHW looks uncertain, perhaps someone with PPC knowledge could implement the missing pieces of OpenBIOS for PPC? There is already some support for pearpc, mol and briq machines.
That looks like the sane way to go yes.
Signature · 4 lines
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' [email protected] | [email protected] `- people.debian.org/~aurel32 | www.aurel32.net