All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] qemu working openbsd/sparc64 yet?
@ 2009-03-29  4:43 Vivek Ayer
  2009-03-29  9:12 ` Blue Swirl
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-03-29  4:43 UTC (permalink / raw)
  To: qemu-devel

Hi guys,

Just wondering if qemu builds and runs well on sparc64 hosts. I wanted
to install a linux guest on openbsd/sparc64 to run matlab and
mathematica.

Thanks,
Vivek

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-03-29  4:43 [Qemu-devel] qemu working openbsd/sparc64 yet? Vivek Ayer
@ 2009-03-29  9:12 ` Blue Swirl
  2009-04-01  5:04   ` Vivek Ayer
  0 siblings, 1 reply; 14+ messages in thread
From: Blue Swirl @ 2009-03-29  9:12 UTC (permalink / raw)
  To: qemu-devel

On 3/29/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> Hi guys,
>
>  Just wondering if qemu builds and runs well on sparc64 hosts. I wanted
>  to install a linux guest on openbsd/sparc64 to run matlab and
>  mathematica.

It builds and at least sparc32 emulator runs, much better than on
Linux host but not perfectly.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-03-29  9:12 ` Blue Swirl
@ 2009-04-01  5:04   ` Vivek Ayer
  2009-04-01 18:42     ` Blue Swirl
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-01  5:04 UTC (permalink / raw)
  To: qemu-devel

what were your configure options? I'm getting an error using gmake at
i386-softmmu. I'm checking out the svn code to see if that's better.
If you can send me the build that you got working that'd be great. I
just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
and Mathematica.

Thanks,
Vivek

On Sun, Mar 29, 2009 at 2:12 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
> On 3/29/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>> Hi guys,
>>
>>  Just wondering if qemu builds and runs well on sparc64 hosts. I wanted
>>  to install a linux guest on openbsd/sparc64 to run matlab and
>>  mathematica.
>
> It builds and at least sparc32 emulator runs, much better than on
> Linux host but not perfectly.
>
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01  5:04   ` Vivek Ayer
@ 2009-04-01 18:42     ` Blue Swirl
  2009-04-01 19:58       ` Vivek Ayer
  2009-04-04  7:48       ` Blue Swirl
  0 siblings, 2 replies; 14+ messages in thread
From: Blue Swirl @ 2009-04-01 18:42 UTC (permalink / raw)
  To: qemu-devel

On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> what were your configure options? I'm getting an error using gmake at
>  i386-softmmu. I'm checking out the svn code to see if that's better.
>  If you can send me the build that you got working that'd be great. I
>  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>  and Mathematica.

I guess those are x86 versions. The i386 emulator does not work on
Sparc because unaligned accesses are not handled yet by the code
generator. But it should build all right.

I just use something like
./configure --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user"
and I get shell prompt with the sparc-test Linux setup on sparc-softmmu.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 18:42     ` Blue Swirl
@ 2009-04-01 19:58       ` Vivek Ayer
  2009-04-01 21:29         ` Vivek Ayer
  2009-04-03 16:50         ` Blue Swirl
  2009-04-04  7:48       ` Blue Swirl
  1 sibling, 2 replies; 14+ messages in thread
From: Vivek Ayer @ 2009-04-01 19:58 UTC (permalink / raw)
  To: qemu-devel

Wait...I'm confused. The i386 emulation builds ok? I tried building
with all emulation options and it wouldn't build.

Suppose I went with your options: ./configure
--target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user

This would allow me to emulate which guests exactly? You got Linux to
run, but that's Sparc/Linux and MATLAB wouldn't install on that.
Because the MATLAB license can only install on Linux (i386), Linux
(x86-64), OSX (Intel), Solaris 64, and Windows . So the QEMU install
would be limited to emulating openbsd/sparc64, linux/sparc64,
linux/sparc, and solaris/opensolaris.

Considering the install options, I'm just limited to using Solaris 64,
right? Which would I could only run solaris/opensolaris on
openbsd/sparc64 to install matlab, right?

Just want to make sure,
Vivek

On Wed, Apr 1, 2009 at 11:42 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
> On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>> what were your configure options? I'm getting an error using gmake at
>>  i386-softmmu. I'm checking out the svn code to see if that's better.
>>  If you can send me the build that you got working that'd be great. I
>>  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>>  and Mathematica.
>
> I guess those are x86 versions. The i386 emulator does not work on
> Sparc because unaligned accesses are not handled yet by the code
> generator. But it should build all right.
>
> I just use something like
> ./configure --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user"
> and I get shell prompt with the sparc-test Linux setup on sparc-softmmu.
>
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 19:58       ` Vivek Ayer
@ 2009-04-01 21:29         ` Vivek Ayer
  2009-04-01 22:17           ` Vivek Ayer
  2009-04-03 16:50         ` Blue Swirl
  1 sibling, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-01 21:29 UTC (permalink / raw)
  To: qemu-devel

Wait, does openbsd/sparc64 build x86_64 fine? That would be better
than sparc and sparc64.

Vivek

On Wed, Apr 1, 2009 at 12:58 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> Wait...I'm confused. The i386 emulation builds ok? I tried building
> with all emulation options and it wouldn't build.
>
> Suppose I went with your options: ./configure
> --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user
>
> This would allow me to emulate which guests exactly? You got Linux to
> run, but that's Sparc/Linux and MATLAB wouldn't install on that.
> Because the MATLAB license can only install on Linux (i386), Linux
> (x86-64), OSX (Intel), Solaris 64, and Windows . So the QEMU install
> would be limited to emulating openbsd/sparc64, linux/sparc64,
> linux/sparc, and solaris/opensolaris.
>
> Considering the install options, I'm just limited to using Solaris 64,
> right? Which would I could only run solaris/opensolaris on
> openbsd/sparc64 to install matlab, right?
>
> Just want to make sure,
> Vivek
>
> On Wed, Apr 1, 2009 at 11:42 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>> On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>>> what were your configure options? I'm getting an error using gmake at
>>>  i386-softmmu. I'm checking out the svn code to see if that's better.
>>>  If you can send me the build that you got working that'd be great. I
>>>  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>>>  and Mathematica.
>>
>> I guess those are x86 versions. The i386 emulator does not work on
>> Sparc because unaligned accesses are not handled yet by the code
>> generator. But it should build all right.
>>
>> I just use something like
>> ./configure --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user"
>> and I get shell prompt with the sparc-test Linux setup on sparc-softmmu.
>>
>>
>>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 21:29         ` Vivek Ayer
@ 2009-04-01 22:17           ` Vivek Ayer
  2009-04-03  4:40             ` Vivek Ayer
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-01 22:17 UTC (permalink / raw)
  To: qemu-devel

okay i guess it doesn't build the x86_64 target either. So looks like
I'm stuck with SPARC/Solaris. Can't even install Linux on the SPARC
emulator because MATLAB wouldn't install.

Vivek

On Wed, Apr 1, 2009 at 2:29 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> Wait, does openbsd/sparc64 build x86_64 fine? That would be better
> than sparc and sparc64.
>
> Vivek
>
> On Wed, Apr 1, 2009 at 12:58 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>> Wait...I'm confused. The i386 emulation builds ok? I tried building
>> with all emulation options and it wouldn't build.
>>
>> Suppose I went with your options: ./configure
>> --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user
>>
>> This would allow me to emulate which guests exactly? You got Linux to
>> run, but that's Sparc/Linux and MATLAB wouldn't install on that.
>> Because the MATLAB license can only install on Linux (i386), Linux
>> (x86-64), OSX (Intel), Solaris 64, and Windows . So the QEMU install
>> would be limited to emulating openbsd/sparc64, linux/sparc64,
>> linux/sparc, and solaris/opensolaris.
>>
>> Considering the install options, I'm just limited to using Solaris 64,
>> right? Which would I could only run solaris/opensolaris on
>> openbsd/sparc64 to install matlab, right?
>>
>> Just want to make sure,
>> Vivek
>>
>> On Wed, Apr 1, 2009 at 11:42 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>>> On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>>>> what were your configure options? I'm getting an error using gmake at
>>>>  i386-softmmu. I'm checking out the svn code to see if that's better.
>>>>  If you can send me the build that you got working that'd be great. I
>>>>  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>>>>  and Mathematica.
>>>
>>> I guess those are x86 versions. The i386 emulator does not work on
>>> Sparc because unaligned accesses are not handled yet by the code
>>> generator. But it should build all right.
>>>
>>> I just use something like
>>> ./configure --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user"
>>> and I get shell prompt with the sparc-test Linux setup on sparc-softmmu.
>>>
>>>
>>>
>>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 22:17           ` Vivek Ayer
@ 2009-04-03  4:40             ` Vivek Ayer
  2009-04-03 16:58               ` Blue Swirl
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-03  4:40 UTC (permalink / raw)
  To: qemu-devel

How did you build it without getting an error in sdl.c specifically at
X11/Xlib.h? I tried disabling sdl and it built fine, but the images
weren't loading, so I thought I'd go with the default options except
for the target list.

Thanks,
Vivek

On Wed, Apr 1, 2009 at 3:17 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> okay i guess it doesn't build the x86_64 target either. So looks like
> I'm stuck with SPARC/Solaris. Can't even install Linux on the SPARC
> emulator because MATLAB wouldn't install.
>
> Vivek
>
> On Wed, Apr 1, 2009 at 2:29 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>> Wait, does openbsd/sparc64 build x86_64 fine? That would be better
>> than sparc and sparc64.
>>
>> Vivek
>>
>> On Wed, Apr 1, 2009 at 12:58 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>>> Wait...I'm confused. The i386 emulation builds ok? I tried building
>>> with all emulation options and it wouldn't build.
>>>
>>> Suppose I went with your options: ./configure
>>> --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user
>>>
>>> This would allow me to emulate which guests exactly? You got Linux to
>>> run, but that's Sparc/Linux and MATLAB wouldn't install on that.
>>> Because the MATLAB license can only install on Linux (i386), Linux
>>> (x86-64), OSX (Intel), Solaris 64, and Windows . So the QEMU install
>>> would be limited to emulating openbsd/sparc64, linux/sparc64,
>>> linux/sparc, and solaris/opensolaris.
>>>
>>> Considering the install options, I'm just limited to using Solaris 64,
>>> right? Which would I could only run solaris/opensolaris on
>>> openbsd/sparc64 to install matlab, right?
>>>
>>> Just want to make sure,
>>> Vivek
>>>
>>> On Wed, Apr 1, 2009 at 11:42 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>>>> On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>>>>> what were your configure options? I'm getting an error using gmake at
>>>>>  i386-softmmu. I'm checking out the svn code to see if that's better.
>>>>>  If you can send me the build that you got working that'd be great. I
>>>>>  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>>>>>  and Mathematica.
>>>>
>>>> I guess those are x86 versions. The i386 emulator does not work on
>>>> Sparc because unaligned accesses are not handled yet by the code
>>>> generator. But it should build all right.
>>>>
>>>> I just use something like
>>>> ./configure --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user"
>>>> and I get shell prompt with the sparc-test Linux setup on sparc-softmmu.
>>>>
>>>>
>>>>
>>>
>>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 19:58       ` Vivek Ayer
  2009-04-01 21:29         ` Vivek Ayer
@ 2009-04-03 16:50         ` Blue Swirl
  1 sibling, 0 replies; 14+ messages in thread
From: Blue Swirl @ 2009-04-03 16:50 UTC (permalink / raw)
  To: qemu-devel

On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> Wait...I'm confused. The i386 emulation builds ok? I tried building
>  with all emulation options and it wouldn't build.
>
>  Suppose I went with your options: ./configure
>
> --target-list="sparc-softmmu sparc64-softmmu sparc64-bsd-user
>
>
> This would allow me to emulate which guests exactly? You got Linux to
>  run, but that's Sparc/Linux and MATLAB wouldn't install on that.
>  Because the MATLAB license can only install on Linux (i386), Linux
>  (x86-64), OSX (Intel), Solaris 64, and Windows . So the QEMU install
>  would be limited to emulating openbsd/sparc64, linux/sparc64,
>  linux/sparc, and solaris/opensolaris.
>
>  Considering the install options, I'm just limited to using Solaris 64,
>  right? Which would I could only run solaris/opensolaris on
>  openbsd/sparc64 to install matlab, right?

Sparc64 emulator does not work very well yet, no OS can get to shell
prompt. Sparc32 emulator probably could run old Solaris (v9), but some
details in OpenBIOS do not match what Solaris expects. Linux works,
NetBSD 4.0 and most OpenBSD versions work but not without problems.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-03  4:40             ` Vivek Ayer
@ 2009-04-03 16:58               ` Blue Swirl
  2009-04-03 19:49                 ` Vivek Ayer
  0 siblings, 1 reply; 14+ messages in thread
From: Blue Swirl @ 2009-04-03 16:58 UTC (permalink / raw)
  To: qemu-devel

On 4/3/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> How did you build it without getting an error in sdl.c specifically at
>  X11/Xlib.h? I tried disabling sdl and it built fine, but the images
>  weren't loading, so I thought I'd go with the default options except
>  for the target list.

I'm using -current, but I didn't have compile problems with 4.1 (IIRC).

But this reminds me that I found a bug in SDL which made SDL apps
crash when running on Sparc with $DISPLAY pointing to x86 X server.
This bug was fixed in upstream SDL, but 4.1 still has the broken
version.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-03 16:58               ` Blue Swirl
@ 2009-04-03 19:49                 ` Vivek Ayer
  2009-04-03 21:02                   ` Vivek Ayer
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-03 19:49 UTC (permalink / raw)
  To: qemu-devel

That's weird because I'm using 4.3. Does QEMU expect X to be on when
you run it? I'm doing this over ssh to a terminal and thought since I
disable X support in Qemu, it would default to ncurses. In any case, I
had a segfault when starting it trying to emulate opensolaris martux
(SPARC/32-bit), which I guess is solaris 10, so I guess that could be
the reason it didn't work. I'll try reproducing the error. Also, I
didn't enable the sparc64 targets in the target list. I used
./configure --prefix=/usr/local --target-list="sparc-softmmu
sparc-bsd-user" --disable-sdl --disable-gfx-check. I'll try the svn
code, but I doubt that'll help.

Vivek

On Fri, Apr 3, 2009 at 9:58 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
> On 4/3/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>> How did you build it without getting an error in sdl.c specifically at
>>  X11/Xlib.h? I tried disabling sdl and it built fine, but the images
>>  weren't loading, so I thought I'd go with the default options except
>>  for the target list.
>
> I'm using -current, but I didn't have compile problems with 4.1 (IIRC).
>
> But this reminds me that I found a bug in SDL which made SDL apps
> crash when running on Sparc with $DISPLAY pointing to x86 X server.
> This bug was fixed in upstream SDL, but 4.1 still has the broken
> version.
>
>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-03 19:49                 ` Vivek Ayer
@ 2009-04-03 21:02                   ` Vivek Ayer
  2009-04-04  5:49                     ` Blue Swirl
  0 siblings, 1 reply; 14+ messages in thread
From: Vivek Ayer @ 2009-04-03 21:02 UTC (permalink / raw)
  To: qemu-devel

okay i run: qemu-sparc -m 256 -boot d -cdrom linux.img using the
sample sparc-linux image and I get:

Illegal Instruction (core dumped).

Exactly, what steps did you take to get the linux image to run on
openbsd/sparc64. Could you show it with numbered steps so I can
troubleshoot and try to replicate your setup.

Thanks,
Vivek

On Fri, Apr 3, 2009 at 12:49 PM, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> That's weird because I'm using 4.3. Does QEMU expect X to be on when
> you run it? I'm doing this over ssh to a terminal and thought since I
> disable X support in Qemu, it would default to ncurses. In any case, I
> had a segfault when starting it trying to emulate opensolaris martux
> (SPARC/32-bit), which I guess is solaris 10, so I guess that could be
> the reason it didn't work. I'll try reproducing the error. Also, I
> didn't enable the sparc64 targets in the target list. I used
> ./configure --prefix=/usr/local --target-list="sparc-softmmu
> sparc-bsd-user" --disable-sdl --disable-gfx-check. I'll try the svn
> code, but I doubt that'll help.
>
> Vivek
>
> On Fri, Apr 3, 2009 at 9:58 AM, Blue Swirl <blauwirbel@gmail.com> wrote:
>> On 4/3/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>>> How did you build it without getting an error in sdl.c specifically at
>>>  X11/Xlib.h? I tried disabling sdl and it built fine, but the images
>>>  weren't loading, so I thought I'd go with the default options except
>>>  for the target list.
>>
>> I'm using -current, but I didn't have compile problems with 4.1 (IIRC).
>>
>> But this reminds me that I found a bug in SDL which made SDL apps
>> crash when running on Sparc with $DISPLAY pointing to x86 X server.
>> This bug was fixed in upstream SDL, but 4.1 still has the broken
>> version.
>>
>>
>>
>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-03 21:02                   ` Vivek Ayer
@ 2009-04-04  5:49                     ` Blue Swirl
  0 siblings, 0 replies; 14+ messages in thread
From: Blue Swirl @ 2009-04-04  5:49 UTC (permalink / raw)
  To: qemu-devel

On 4/4/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
> okay i run: qemu-sparc -m 256 -boot d -cdrom linux.img using the
>  sample sparc-linux image and I get:
>
>  Illegal Instruction (core dumped).

qemu-sparc is the BSD user emulator, which can run single BSD
programs, like /bin/ls. You should use qemu-system-sparc instead.

>  Exactly, what steps did you take to get the linux image to run on
>  openbsd/sparc64. Could you show it with numbered steps so I can
>  troubleshoot and try to replicate your setup.

Commands are prefixed with $, comments with #.

# here's the list of packages, you don't need all of them, I just have
libxml because OpenBIOS build uses it
$ pkg_info
aalib-1.4p1         ascii art library
apr-1.2.11p1        Apache Portable Runtime
apr-util-1.2.10p0   companion library to APR
autoconf-2.59p1     automatically configure source code on many Un*x platforms
bash-3.2.48         GNU Bourne Again Shell
db-4.6.21           Berkeley DB package, revision 4
gettext-0.17p0      GNU gettext
gmake-3.81p0        GNU make
help2man-1.29p0     GNU help2man
libiconv-1.9.2p5    character set conversion library
libltdl-1.5.22p3    GNU libtool system independent dlopen wrapper
libtool-1.5.22p14   generic shared library support script
libxml-2.6.30       XML parsing library
metaauto-0.7        wrapper for gnu auto*
sdl-1.2.13p3        cross-platform multimedia library
texi2html-1.64      texinfo to HTML converter
# this setup uses an object directory because I use the source
directory to build on other hosts also
$ mkdir obj-sparc64-obsd
$ cd obj-sparc64-obsd
# the only target is sparc-softmmu
$ ../configure --target-list="sparc-softmmu" --source-path=/src/qemu
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /src/qemu
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS       -m64 -mcpu=ultrasparc -D__sparc_v9__
make              gmake
install           install
host CPU          sparc64
host big endian   yes
target list       sparc-softmmu
gprof enabled     no
sparse enabled    no
profiler          no
static build      no
-Werror enabled   no
SDL support       yes
SDL static link   no
curses support    yes
mingw32 support   no
Audio drivers     oss
Extra audio cards ac97 es1370 sb16
Mixer emulation   no
VNC TLS support   no
VNC SASL support  no
kqemu support     no
brlapi support    no
Documentation     yes
NPTL support      no
vde support       no
AIO support       yes
Install blobs     yes
KVM support       no
fdt support       no
The error log from compiling the libSDL test is:
/usr/X11R6/lib/libXau.so.9.0: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/X11R6/lib/libXau.so.9.0: warning: strcat() is almost always
misused, please use strlcat()
/usr/X11R6/lib/libX11.so.11.1: warning: sprintf() is often misused,
please use snprintf()
# check that SDL support is "yes" in the configure output
# skip building of qemu-img and docs for faster build:
$ gmake TOOLS= DOCS=
# skipped most of gmake output, there should be no warnings except for
the lines below
  LINK  sparc-softmmu/qemu-system-sparc
/usr/X11R6/lib/libX11.so.11.1: warning: strcpy() is almost always
misused, please use strlcpy()
/usr/X11R6/lib/libX11.so.11.1: warning: sprintf() is often misused,
please use snprintf()
/usr/X11R6/lib/libX11.so.11.1: warning: strcat() is almost always
misused, please use strlcat()
gmake[1]: Leaving directory `/src/qemu/obj-sparc64-obsd/sparc-softmmu'
$ cd ..
$ ./obj-sparc64-obsd/sparc-softmmu/qemu-system-sparc -L pc-bios
-kernel ../vmlinux-2.6.11+tcx -initrd ../linux.img -append
'root=/dev/ram'
# you should get the shell prompt
# now with -nographic
$ ./obj-sparc64-obsd/sparc-softmmu/qemu-system-sparc -L pc-bios
-kernel ../vmlinux-2.6.11+tcx -initrd ../linux.img -append
'root=/dev/ram' -nographic
Configuration device id QEMU version 1 machine id 32
UUID: 00000000-0000-0000-0000-000000000000
CPUs: 1 x FMI,MB86904
Welcome to OpenBIOS v1.0 built on Mar 31 2009 15:36
  Type 'help' for detailed information

[sparc] Kernel already loaded
PROMLIB: obio_ranges 1
Booting Linux...
PROMLIB: Sun Boot Prom Version 3 Revision 2
Linux version 2.6.11 (test@host) (gcc version 2.95.4 20010319
(prerelease)) #3 Tue Mar 15 18:21:10 UTC 2005
ARCH: SUN4M
TYPE: SPARCstation 5
Ethernet address: 52:54:0:12:34:56
Boot time fixup v1.6. 4/Mar/98 Jakub Jelinek (jj@ultra.linux.cz).
Patching kernel for srmmu[Fujitsu TurboSparc]/iommu
Power off control detected.
Built 1 zonelists
Kernel command line: root=/dev/ram
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x25
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 119836k/130124k available (1848k kernel code, 10144k reserved,
496k data, 156k init, 0k highmem)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (bad gzip magic numbers);
looks like an initrd
Freeing initrd memory: 4096k freed
NET: Registered protocol family 16
SCSI subsystem initialized
IOMMU: impl 0 vers 5 table 0xf0b40000[262144 B] map [65536 b]
sbus0: Clock 21.1250 MHz
dma0: Revision 2
dma1: Revision 0
ioremap: done with statics, switching to malloc
apc: power management initialized
Initializing Cryptographic API
Console: switching to colour frame buffer device 128x48
tcx: SUNW,tcx at 0:50800000, 8-bit only
lp: driver loaded but no devices found
zs2 at 0xfd018004 (irq = 44) is a SunZilog
zs3 at 0xfd018000 (irq = 44) is a SunZilog
Console: ttyS0 (SunZilog zs0)
ttyS0 at MMIO 0x0 (irq = 44) is a SunZilog
ttyS1 at MMIO 0x0 (irq = 44) is a SunZilog
io scheduler noop registered
Floppy drive(s): fd0 is 1.44M
FDC 0 is a S82078B
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
sunlance.c:v2.02 24/Aug/03 Miguel de Icaza (miguel@nuclecu.unam.mx)
SunLance: using auto-carrier-detection.
eth0: LANCE 52:54:00:12:34:56
esp0: IRQ 36 SCSI ID 7 Clk 40MHz CCYC=25000 CCF=8 TOut 167 NCR53C9XF(espfast)
ESP: Total of 1 ESP hosts found, 1 actually in use.
scsi0 : Sparc ESP100A-FAST
  Vendor: QEMU      Model: QEMU CD-ROM       Rev: 0.10
  Type:   CD-ROM                             ANSI SCSI revision: 03
sr0: scsi3-mmc drive: 16x/50x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 2, lun 0,  type 5
mice: PS/2 mouse device common for all mice
input: Sun Mouse on zs/serio1
NET: Registered protocol family 2
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 156k freed
sh: can't access tty; job control turned off
# uname -a
Linux (none) 2.6.11 #3 Tue Mar 15 18:21:10 UTC 2005 sparc unknown
# The above # line is not a comment, but Linux shell prompt command

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [Qemu-devel] qemu working openbsd/sparc64 yet?
  2009-04-01 18:42     ` Blue Swirl
  2009-04-01 19:58       ` Vivek Ayer
@ 2009-04-04  7:48       ` Blue Swirl
  1 sibling, 0 replies; 14+ messages in thread
From: Blue Swirl @ 2009-04-04  7:48 UTC (permalink / raw)
  To: qemu-devel

On 4/1/09, Blue Swirl <blauwirbel@gmail.com> wrote:
> On 4/1/09, Vivek Ayer <vivek.ayer@gmail.com> wrote:
>  > what were your configure options? I'm getting an error using gmake at
>  >  i386-softmmu. I'm checking out the svn code to see if that's better.
>  >  If you can send me the build that you got working that'd be great. I
>  >  just need Linux on OpenBSD/sparc64 so I can go ahead and use MATLAB
>  >  and Mathematica.
>
>
> I guess those are x86 versions. The i386 emulator does not work on
>  Sparc because unaligned accesses are not handled yet by the code
>  generator. But it should build all right.

The problem wasn't unaligned accesses after all, but again env (%g5)
gets corrupted somewhere. With r6971 I get to the CD boot phase of
BIOS.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-04-04  7:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-29  4:43 [Qemu-devel] qemu working openbsd/sparc64 yet? Vivek Ayer
2009-03-29  9:12 ` Blue Swirl
2009-04-01  5:04   ` Vivek Ayer
2009-04-01 18:42     ` Blue Swirl
2009-04-01 19:58       ` Vivek Ayer
2009-04-01 21:29         ` Vivek Ayer
2009-04-01 22:17           ` Vivek Ayer
2009-04-03  4:40             ` Vivek Ayer
2009-04-03 16:58               ` Blue Swirl
2009-04-03 19:49                 ` Vivek Ayer
2009-04-03 21:02                   ` Vivek Ayer
2009-04-04  5:49                     ` Blue Swirl
2009-04-03 16:50         ` Blue Swirl
2009-04-04  7:48       ` Blue Swirl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.