* Re: Sam460Ex screen mode, audio and network
[not found] <CAD+yzTSr2edTNmzkGOH7todx7uVPbL_BSNSJPb62mJWCUSa8NA@mail.gmail.com>
@ 2020-06-02 7:36 ` Philippe Mathieu-Daudé
2020-06-02 13:24 ` BALATON Zoltan
0 siblings, 1 reply; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-06-02 7:36 UTC (permalink / raw)
To: Andrea Palmatè, qemu-discuss, qemu-devel, BALATON Zoltan, qemu-ppc
Cc'ing the sam460ex maintainer.
On 6/1/20 8:01 PM, Andrea Palmatè wrote:
> Hello, i've successfully configured AmigaOS4 on Qemu 5 and i've
> installed it without any problem.
> It is working on an i5 laptop. I've tried to use the native screen mode
> 1366x768 but it has some problems. It seems a stride problem and so is
> not usable
> Also the audio over sm502 is not working. (is it implemented?)
> And also. OS4 has a support for RTL8139 but it seems not supported by
> sam460ex. Is there a way to (try to) add it via source code in any way?
>
> --
> Saluti,
> Andrea Palmatè
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Sam460Ex screen mode, audio and network
2020-06-02 7:36 ` Sam460Ex screen mode, audio and network Philippe Mathieu-Daudé
@ 2020-06-02 13:24 ` BALATON Zoltan
2020-06-02 14:58 ` BALATON Zoltan
0 siblings, 1 reply; 6+ messages in thread
From: BALATON Zoltan @ 2020-06-02 13:24 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-ppc, Andrea Palmatè, qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 1710 bytes --]
Hello,
On Tue, 2 Jun 2020, Philippe Mathieu-Daudé wrote:
> Cc'ing the sam460ex maintainer.
> On 6/1/20 8:01 PM, Andrea Palmatè wrote:
>> Hello, i've successfully configured AmigaOS4 on Qemu 5 and i've
>> installed it without any problem.
I assume you're aware of this page where you may find info and answers to
some of your questions (see also the Comments section for tips):
http://zero.eik.bme.hu/~balaton/qemu/amiga/
>> It is working on an i5 laptop. I've tried to use the native screen mode
>> 1366x768 but it has some problems. It seems a stride problem and so is
>> not usable
I'm not sure if it's a problem on AmigaOS side or in emulation. How to
reproduce this? Such resolution does not show up for me in ScreenMode
prefs so cannot be simply selected.
>> Also the audio over sm502 is not working. (is it implemented?)
No, the sound part of sm502 is not yet implemented but you can add a PCI
soundcard that works with AmigaOS with -device ES1370 command line option
although sound may not be perfect and I don't know what causes that.
>> And also. OS4 has a support for RTL8139 but it seems not supported by
>> sam460ex. Is there a way to (try to) add it via source code in any way?
Similarly you can add the card with -device rtl8139 then also see the docs
about different network options in QEMU:
https://wiki.qemu.org/Documentation/Networking
In particular, with the default user/slirp network the guest has outbound
access but cannot be contacted and ping does not work so if you need those
some other network option such as tap may be needed. Otherwise just for
simple internet access from guest the default should be enough and
simplest to set up.
Regards,
BALATON Zoltan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Sam460Ex screen mode, audio and network
2020-06-02 13:24 ` BALATON Zoltan
@ 2020-06-02 14:58 ` BALATON Zoltan
2020-06-02 16:43 ` Andrea Palmatè
0 siblings, 1 reply; 6+ messages in thread
From: BALATON Zoltan @ 2020-06-02 14:58 UTC (permalink / raw)
To: Andrea Palmatè
Cc: Philippe Mathieu-Daudé, qemu-ppc, qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
On Tue, 2 Jun 2020, BALATON Zoltan wrote:
> On Tue, 2 Jun 2020, Philippe Mathieu-Daudé wrote:
>> Cc'ing the sam460ex maintainer.
>> On 6/1/20 8:01 PM, Andrea Palmatè wrote:
>>> It is working on an i5 laptop. I've tried to use the native screen mode
>>> 1366x768 but it has some problems. It seems a stride problem and so is
>>> not usable
>
> I'm not sure if it's a problem on AmigaOS side or in emulation. How to
> reproduce this? Such resolution does not show up for me in ScreenMode prefs
> so cannot be simply selected.
OK I've got it. I think you've unticked default and set a custom width.
This seems to set the width of frame buffer in memory but the mode the
card is programmed to use is still the one selected from the list so this
won't work. It seems to be either a bug in AmigaOS or the width option
does not do what you may think. Maybe ask AmigaOS developers or aCube who
wrote the driver about this. (Another known issue is that 24/32 bit modes
are not available with the AmigaOS SM502 driver which would be needed for
optimal performance with QEMU, the 16 bit mode it offers is much slower
because it has to be converted on every display update.)
Regards,
BALATON Zoltan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Sam460Ex screen mode, audio and network
2020-06-02 14:58 ` BALATON Zoltan
@ 2020-06-02 16:43 ` Andrea Palmatè
2020-06-02 16:59 ` Andrea Palmatè
0 siblings, 1 reply; 6+ messages in thread
From: Andrea Palmatè @ 2020-06-02 16:43 UTC (permalink / raw)
To: BALATON Zoltan
Cc: Philippe Mathieu-Daudé, qemu-ppc, qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 2285 bytes --]
Hi Zoltan,
I've forwarded the message to Massimiliano Tretene. I'm waiting for his
answer.
In the meanwhile i've tried to add -device ES1370 but i get no audio at
all. I've also a lot of shared "memfd open() failed: Function not
implemented" errors on console
Regard the video mode. I'm pretty sure that resolutions like 1366x768
should work but not unticking the "default" checkbox. They needs to be
created by Screenmode program. The strange thing is that during
installation i've created successfully the resolution (that however had
that problem). Now with the OS even if the resolution is created i have
1024x768 twice.
I've also a problem that host mouse pointer is shown. I've read that i need
to add a "tabled" device in the xml file. But where i have to create that
file? Keep in mind that i'm using Ubuntu on Windows 10 via WSL and not an
ubuntu machine
Andrea
Il giorno mar 2 giu 2020 alle ore 16:58 BALATON Zoltan <balaton@eik.bme.hu>
ha scritto:
> On Tue, 2 Jun 2020, BALATON Zoltan wrote:
> > On Tue, 2 Jun 2020, Philippe Mathieu-Daudé wrote:
> >> Cc'ing the sam460ex maintainer.
> >> On 6/1/20 8:01 PM, Andrea Palmatè wrote:
> >>> It is working on an i5 laptop. I've tried to use the native screen mode
> >>> 1366x768 but it has some problems. It seems a stride problem and so is
> >>> not usable
> >
> > I'm not sure if it's a problem on AmigaOS side or in emulation. How to
> > reproduce this? Such resolution does not show up for me in ScreenMode
> prefs
> > so cannot be simply selected.
>
> OK I've got it. I think you've unticked default and set a custom width.
> This seems to set the width of frame buffer in memory but the mode the
> card is programmed to use is still the one selected from the list so this
> won't work. It seems to be either a bug in AmigaOS or the width option
> does not do what you may think. Maybe ask AmigaOS developers or aCube who
> wrote the driver about this. (Another known issue is that 24/32 bit modes
> are not available with the AmigaOS SM502 driver which would be needed for
> optimal performance with QEMU, the 16 bit mode it offers is much slower
> because it has to be converted on every display update.)
>
> Regards,
> BALATON Zoltan
--
Saluti,
Andrea Palmatè
[-- Attachment #2: Type: text/html, Size: 2878 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Sam460Ex screen mode, audio and network
2020-06-02 16:43 ` Andrea Palmatè
@ 2020-06-02 16:59 ` Andrea Palmatè
2020-06-02 17:35 ` BALATON Zoltan
0 siblings, 1 reply; 6+ messages in thread
From: Andrea Palmatè @ 2020-06-02 16:59 UTC (permalink / raw)
To: BALATON Zoltan
Cc: Philippe Mathieu-Daudé, qemu-ppc, qemu-devel, qemu-discuss
[-- Attachment #1.1: Type: text/plain, Size: 2713 bytes --]
Regard the resolution. I've seen if i call the video mode SM502 instead of
SiliconMotion 502 it doesn't show the 1366x762 resolution.. that's weird..
However this is the problem i have
[image: image.png]
Il giorno mar 2 giu 2020 alle ore 18:43 Andrea Palmatè <
andrea.palmate@gmail.com> ha scritto:
> Hi Zoltan,
> I've forwarded the message to Massimiliano Tretene. I'm waiting for his
> answer.
> In the meanwhile i've tried to add -device ES1370 but i get no audio at
> all. I've also a lot of shared "memfd open() failed: Function not
> implemented" errors on console
> Regard the video mode. I'm pretty sure that resolutions like 1366x768
> should work but not unticking the "default" checkbox. They needs to be
> created by Screenmode program. The strange thing is that during
> installation i've created successfully the resolution (that however had
> that problem). Now with the OS even if the resolution is created i have
> 1024x768 twice.
> I've also a problem that host mouse pointer is shown. I've read that i
> need to add a "tabled" device in the xml file. But where i have to create
> that file? Keep in mind that i'm using Ubuntu on Windows 10 via WSL and not
> an ubuntu machine
>
> Andrea
>
> Il giorno mar 2 giu 2020 alle ore 16:58 BALATON Zoltan <balaton@eik.bme.hu>
> ha scritto:
>
>> On Tue, 2 Jun 2020, BALATON Zoltan wrote:
>> > On Tue, 2 Jun 2020, Philippe Mathieu-Daudé wrote:
>> >> Cc'ing the sam460ex maintainer.
>> >> On 6/1/20 8:01 PM, Andrea Palmatè wrote:
>> >>> It is working on an i5 laptop. I've tried to use the native screen
>> mode
>> >>> 1366x768 but it has some problems. It seems a stride problem and so is
>> >>> not usable
>> >
>> > I'm not sure if it's a problem on AmigaOS side or in emulation. How to
>> > reproduce this? Such resolution does not show up for me in ScreenMode
>> prefs
>> > so cannot be simply selected.
>>
>> OK I've got it. I think you've unticked default and set a custom width.
>> This seems to set the width of frame buffer in memory but the mode the
>> card is programmed to use is still the one selected from the list so this
>> won't work. It seems to be either a bug in AmigaOS or the width option
>> does not do what you may think. Maybe ask AmigaOS developers or aCube who
>> wrote the driver about this. (Another known issue is that 24/32 bit modes
>> are not available with the AmigaOS SM502 driver which would be needed for
>> optimal performance with QEMU, the 16 bit mode it offers is much slower
>> because it has to be converted on every display update.)
>>
>> Regards,
>> BALATON Zoltan
>
>
>
> --
> Saluti,
> Andrea Palmatè
>
--
Saluti,
Andrea Palmatè
[-- Attachment #1.2: Type: text/html, Size: 3681 bytes --]
[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 177025 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Sam460Ex screen mode, audio and network
2020-06-02 16:59 ` Andrea Palmatè
@ 2020-06-02 17:35 ` BALATON Zoltan
0 siblings, 0 replies; 6+ messages in thread
From: BALATON Zoltan @ 2020-06-02 17:35 UTC (permalink / raw)
To: Andrea Palmatè
Cc: Philippe Mathieu-Daudé, qemu-ppc, qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 2899 bytes --]
On Tue, 2 Jun 2020, Andrea Palmatè wrote:
> Regard the resolution. I've seen if i call the video mode SM502 instead of
> SiliconMotion 502 it doesn't show the 1366x762 resolution.. that's weird..
I don't know much about how this works but maybe it has to match the chip
or monitor driver to show up? I think on AmigaOS these use
SiliconMotion502 name instead of the short name.
>> In the meanwhile i've tried to add -device ES1370 but i get no audio at
>> all. I've also a lot of shared "memfd open() failed: Function not
>> implemented" errors on console
I get none of these problems on Linux. Maybe it's a problem with WSL? If
you're on Windows why don't you try a native Windows build? The official
QEMU download page seems to not have 5.0.0 build yet but there are some
alternative builds on the emaculation.com forum which should work. For
AmigaOS use the vanilla 5.0.0 build, ignore the patched screamer sound
build which is only needed for MacOS on mac99. See:
https://www.emaculation.com/doku.php/ppc-osx-on-qemu-for-windows
>> Regard the video mode. I'm pretty sure that resolutions like 1366x768
>> should work but not unticking the "default" checkbox. They needs to be
>> created by Screenmode program. The strange thing is that during
>> installation i've created successfully the resolution (that however had
>> that problem). Now with the OS even if the resolution is created i have
>> 1024x768 twice.
If you can compile QEMU sources you could try printing
SM501_DC_PANEL_FB_WIDTH and SM501_DC_PANEL_FB_HEIGHT in
sm501_disp_ctrl_write() in qemu/hw/display/sm501.c to see what resolution
the guest programs the card. The high 16 bits are the value to check.
Haven't tried with adding a mode but with unticking default and setting
width these remained 1024x768. Your screen shot looks like the window is a
bit smaller than 1366x768 but it's wide aspect not 4:3 so maybe it did
change mode but not sure to what size and if that matches your resolution
(looks like it doesn't that's why you get garbled output).
>> I've also a problem that host mouse pointer is shown. I've read that i
>> need to add a "tabled" device in the xml file. But where i have to create
>> that file? Keep in mind that i'm using Ubuntu on Windows 10 via WSL and not
>> an ubuntu machine
What you read is for vitual machines created via libvirt and probably
using other OS than AmigaOS so does not apply to your case. You can add a
tablet with -device usb-tablet (see -device help for all options) but I
don't think AmigaOS has a tablet driver so likely it won't work so you can
ignore that. If the build from emaculation.com did not fix this you may
try adding -sdl instead to use the SDL graphics backend which works better
for this, people had problem with the default gtk backend and mouse on the
emaculation.com forum and recommended using -sdl instead.
Regards,
BALATON Zoltan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-06-02 20:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAD+yzTSr2edTNmzkGOH7todx7uVPbL_BSNSJPb62mJWCUSa8NA@mail.gmail.com>
2020-06-02 7:36 ` Sam460Ex screen mode, audio and network Philippe Mathieu-Daudé
2020-06-02 13:24 ` BALATON Zoltan
2020-06-02 14:58 ` BALATON Zoltan
2020-06-02 16:43 ` Andrea Palmatè
2020-06-02 16:59 ` Andrea Palmatè
2020-06-02 17:35 ` BALATON Zoltan
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).