Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
36 user(s) are online (31 user(s) are browsing Forums)

Members: 0
Guests: 36

more...

Headlines

Forum Index


Board index » All Posts (smarkusg)




Re: Porting astromenace to AmigaOS4
Just popping in
Just popping in


@SinanSam460

This version should work on SDL2.
https://github.com/viewizard/astromenace/tree/1.3.2

just change in config.h #define use_SDL2.
then just change in $BUILD_DIR/CMakeFIles/AstroMence.dir/link.txt from -lSDL to -lSDL2.

I needed a version for SDL1 this is what I discovered today.
I still have a problem as usual.... on AOS4.
I checked as usual on Linuxe and both versions of SDL1 and SDL2 work fine.



https://ibb.co/FVtRcVt

https://ibb.co/G3NKp0C

Go to top


Re: sdl12-compat
Just popping in
Just popping in


@Maijestro

>I just want to understand

Simply put:
1. Library SDL1 :
"The 1.2 branch of SDL is deprecated. While we occasionally collect fixes in revision control, there has not been a formal release since 2012, and we have no intention to do future releases, either."
2. SDL2 is said to have better output device interoperability, improved audio support, better video performance. At least it should be
"This sdl12-compat project allows for old, out-of-date games and other applications relying on the old SDL 1.2 interface to in turn run via the modern SDL2 library"
3. Useful for Qemu Pegasos 2 where there is a problem with sm502 and SDL1 at G4.

Go to top


Re: sdl12-compat
Just popping in
Just popping in


@Capehill

sdl12-compat is a static library with me.

readelf -./src/uae


Dynamic section at offset 0x366060 contains 20 entries
:
  
Tag        Type                         Name/Value
 0x00000001 
(NEEDED)                     Shared library: [libz.so.1]
 
0x00000001 (NEEDED)                     Shared library: [libdl.so]
 
0x00000001 (NEEDED)                     Shared library: [libstdc++.so]
 
0x00000001 (NEEDED)                     Shared library: [libgcc.so]
 
0x00000001 (NEEDED)                     Shared library: [libc.so]
 
0x00000004 (HASH)                       0x1000128
 0x00000005 
(STRTAB)                     0x1000ef4
 0x00000006 
(SYMTAB)                     0x1000594
 0x0000000a 
(STRSZ)                      1376 (bytes)
 
0x0000000b (SYMENT)                     16 (bytes)
 
0x00000015 (DEBUG)                      0x0
 0x00000003 
(PLTGOT)                     0x131f000
 0x00000002 
(PLTRELSZ)                   1392 (bytes)
 
0x00000014 (PLTREL)                     RELA
 0x00000017 
(JMPREL)                     0x1001478
 0x00000007 
(RELA)                       0x1001454
 0x00000008 
(RELASZ)                     1428 (bytes)
 
0x00000009 (RELAENT)                    12 (bytes)
 
0x6000000e (Operating System specific6000000e)        0x2
 0x00000000 
(NULL)                       0x0


File: ./libSDL.a(SDL12_compat.c.obj)

There is no dynamic section in this file.


uae config 

  
$ ./configure CFLAGS=-O2 -mcrt=newlib ....



E-UAE running with no configuration and no rom - just like in the second video of this thread.

Serial log with libSD2 debug
[OS4_OpenLibraryOpening 'AmigaInput.library' version 51 succeeded (address 0x695D5018)
[
OS4_GetInterfaceGetting interface for libbase 0x695D5018 succeeded (address 0x640AE700)
[
AMIGAINPUT_InitEnumDevices returned 0
[AMIGAINPUT_InitFound 0 joysticks
[SDL_DestroyMutexDestroying mutex 0x6FFAAC80
[AMIGAINPUT_CloseLibraryCalled
[OS4_DropInterfaceDropping interface 0x640AE700
[OS4_CloseLibraryClosing library 0x695D5018
[SDL_DestroyMutexDestroying mutex 0x6FFAACA0
[SDL_DestroyMutexDestroying mutex 0x6FFAAC20
[OS4_FreeCursorCalled 0x62347508
[OS4_VideoQuitCalled
[OS4_FreeCursorCalled 0x6234DDF0
[OS4_QuitModesCalled
[OS4_UnlockPubScreenUnlocking public screen 0x6912B388
[OS4_DeleteDeviceCalled
[OS4_FreeSystemResourcesCalled
[OS4_DropInterfaceDropping interface 0x6FF451E0
[OS4_FreeSystemResourcesClosing input.device
[OS4_FreeSystemResourcesFreeing IORequest
[OS4_FreeSystemResourcesFreeing MsgPort
[OS4_FreeSystemResourcesFreeing memory pool
[OS4_FreeSystemResourcesReplying app messages
[OS4_FreeSystemResourcesFreeing app message port
[OS4_FreeSystemResourcesFreeing user port
[OS4_UnregisterApplicationUnregistered application with id 6
[SDL_SemPostSignalling task 0x636744F0 for semaphore 0x62346B40
[SDL_SemPostSemaphore 0x62346B40 value 1
[SDL_SYS_WaitThreadWaiting for 'SDLTimer'
[SDL_SemWaitTimeoutSemaphore 0x62346B40 got signal 0x8000
[OS4_ExitThreadCalled from task 0x636744F0finalData 0x660FB950
[OS4_ExitThreadRemoving node 0x660FB950 from children list
[
OS4_ExitThreadSignalling waiters
[OS4_TimerDestroyDestroying timer 0x660FB960 for task 0x636744F0
[OS4_TimerCleanupFreeing timer request 0x65F9C8B0
[OS4_TimerCleanupFreeing timer port 0x65F9EB00
[OS4_ExitThreadExiting
[SDL_SYS_WaitThreadSome child thread terminated
[SDL_SYS_WaitThreadThread 'SDLTimer' doesn't exist
[SDL_DestroySemaphore] Destroying semaphore 0x62346B40
[SDL_DestroyMutex] Destroying mutex 0x6FFAAB60



This test https://github.com/libsdl-org/sdl12-co ... blob/main/test/testlock.c

makes a similar mistake
"- testlock work, but at some point it crash badly -->
"SDL thread (null) (0x4eb97e88)""




Thanks for your help and advice


Edited by smarkusg on 2023/9/24 20:22:56
Edited by smarkusg on 2023/9/24 20:23:56
Edited by smarkusg on 2023/9/24 20:24:40
Edited by smarkusg on 2023/9/24 20:36:46
Go to top


Re: sdl12-compat
Just popping in
Just popping in


@Maijestro

>On the first video you show E-UAE with sdl12-compat ,or only in the second video where it breaks?

It works. I just gave a short video of what it uses - SDL2.

here is a longer video

https://streamable.com/ids9b1


>I don't know if I understood correctly, SDL12Compat is a SDL1 and 2 merge? If so it would be a good thing to port SDL12-Compat for AmigaOs4.1 in general because you don't have to care about SDL1 and SDL2 separately anymore.

Yes. It's helpful for older programs and it's clear that there won't be a port to SDL2.

I asked if anyone has tried this before so as not to do it a second time. If someone has tried it, they may have found a solution to a few problems.

Go to top


sdl12-compat
Just popping in
Just popping in


Hello

For those familiar with the current Qemu problem with SDL1 and sm502 Qemu, I decided to make a sdl12-compat port. Currently it is a pure copilation with no changes for AOS4.
In general it can be useful not only for Qemu

https://www.phoronix.com/news/sdl12-compat-1.2.66

git: https://github.com/libsdl-org/sdl12-compat


There are some problems that I, with my level of knowledge, can't do anything more about and fix on AOS4.

Has anyone tried or is there any sdl12-compat port on AOS4 ?

How it works here:
https://streamable.com/6xicgh


Threads problem:


https://streamable.com/4k0nld

Thank you for your help

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@white

>it's probably an E-UAE problem with qemu
>or it would be useful to know if anyone uses real hardware for 4.1
>with E-UAE encounters the same problem with the demo-scenes of "elude" with >Workbench 3.2.

Elude is a group from the AmigaOS scene from my country ... must work on my hardware
They were always unlucky to come second from what I remember....

https://streamable.com/xeyo6t

https://streamable.com/p6ase0

It works although sometimes you have to wait a while.

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@white

>here you can see a slight overclock to 4.9 ghz (Ryzen 5800x)

The question is, after how long will an overheating processor and its surroundings start to stick to you due to heat.... 3 years (such are the snardards of current boards) ? Not to mention the noise...


>The difference is not big, and in my opinion it is certainly not the
The >difference between the two processors.

these are different architectures - in one x86 _64 is better in the other ARM , is big....

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@LiveForIt

>Stopping the development of SMP ...
..
>Even if ARM/QEMU becomes faster, I don't think it >should stop the pressure of Multicore support on >PowerPC

You have missed one thing. Qemu currently uses a single core sentence from the emulation CPU when emulating. If it can use more the gap will be the same.... ...and getting bigger every year. ..Qemu is an open source project and not only deals with AOS4 emulation but all of PPC and not only PPC....

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@Maijestro

I used to test something with e-uae....
so it works nicely on Qemu. You could use a better graphics card with acceleration ..not a 2D industrial graphics card.

https://streamable.com/qd1ks6

*film is without sound but runs normally

edit:
The story starts with uae (unix amiga emulator). Then there was e-uae, then winuae. The offshoot of e-uae was p-uae ... then fs-uae =winuae+p-uae. Of these projects, winuae and p-uae is still under development. The old author of p-uae made an interesting reference to winuae ... but you'll have to find it


Edited by smarkusg on 2023/9/15 23:29:58
Edited by smarkusg on 2023/9/15 23:31:40
Edited by smarkusg on 2023/9/15 23:51:01
Edited by smarkusg on 2023/9/15 23:51:17
Go to top


Re: have you seen this?
Just popping in
Just popping in


@LiveForIt

Emulation will always be emulation.
Anyone can check the software, you just have to assign them what to check.
What expensive M1 laptop ?
I use the basic version of the Apple Mini m1.
Price ? 1/3 X5000 when I bought ... current price 1/2 A1222+ as it will come out one day ....
Second hardware X86_64 price ... don't even ask 1/10 x5000 ?
Always with a few attempts no matter on what hardware an idea may arise, maybe stupid maybe not - which may be useful. But if this is unnecessary I close my "blog"


Edited by smarkusg on 2023/9/13 22:31:58
Go to top


Re: have you seen this?
Just popping in
Just popping in


@HunoPPC

I have removed :
https://github.com/phoboslab/wipeout-r ... 085ca048f6d001130b071f85f

It contains all the code that @joerg" suggested as problematic and is corrected by @jabirulo and @SinanSam460.
The version xeno74 from the forum https://forum.hyperion-entertainment.com/viewtopic.php?f=58&p=57520 is devoid of this patch.

I don't have an alignment problem on Qemu so the game runs under minigl all the time anyway.

https://ibb.co/cC7X8fT

I don't have a real Amiga NG hardware to check it. Apparently it works just doesn't display the image. So something else I have wrong....

Go to top


Re: have you seen this?
Just popping in
Just popping in


@samo79
Quote:
@HunoPPC
Niceee!!
For wipEout any chance for us poor users with old gfx cards?


Just what @kas1e @jabirulo @SinanSam460 are working on .... PPC code compatibility (I'm a fast learner ;-} )
Compilation under minigl works very well, no need for GL4ES,EGL...


Edited by smarkusg on 2023/9/12 22:25:37
Go to top


Re: have you seen this?
Just popping in
Just popping in


@kas1e
Quote:
@smarksugs
Emulation can easily deal with alignment issues by default.. But again, maybe G3/G4 and os4 kernel for peg2 are same forgiving for as x1000's cpu. I can check that all on all x1000,x5000,sam460,peg2 and winuae


I checked on Sam460 emulation under QEMU and Pegasos 2 with your test program.

Apple M1 - Problem does not occur.

@joerg
Thanks for the tip "-mstrict-align" I was convinced that this was fixed definitively since gcc-10.

Go to top


Re: have you seen this?
Just popping in
Just popping in


@kas1e

If no one has checked this before and it is not a problem for you
Maybe someone will also find such information useful.

Thank you

Go to top


Re: have you seen this?
Just popping in
Just popping in


@kas1e

Currently QEMU emulation Pegasos 2 x86_64
I will check at home on the Apple M1

Go to top


Re: What the fastest possible x64 emulation way of OS4 today ?
Just popping in
Just popping in


@LiveForIt

>I have a Apple M2, this way I ask.

On MacOs it is very simple. If you don't want to compile.

1. install - here is a description https://brew.sh/

2. here is what you need to do to install - the dependencies/required packages are described and will install themselves

https://formulae.brew.sh/formula/qemu#default

In my case it looks like this. Homebrew installs all packages land in "/opt" - standard settings.
This does not violate the Macos system files. One directory where the files are and adding environment variables .
The uninstallation of Homebrew itself is also simple.

To compile as far as I remember you need these (if some is missing install ):

brew install
--
libffi
gettext
glib
pkg-config
pixman
ninja
--

I hope this helps you

Go to top


Re: have you seen this?
Just popping in
Just popping in


@kas1e

Thank you very much for the detailed explanation.
The code has to be improved for PPC according to the specification, some CPUs can handle it and some OSes have implemented the improvement to work properly and it can be partially fixed at compile level.


Can you tell me one more thing. ?
I have checked the test program on the G3 and G4 it seems that this problem does not occur.
I checked under Emulation but I don't know if this is reflected to the real hardware.
If the CPU allows unbalanced floating point access does this affect performance ? (another lame question )

As I understand the problem only applies to x5000 and Sam460 ... what about Tabor ( e500V2) ?

Thank you again very much for the big dose of knowledge

Go to top


Re: have you seen this?
Just popping in
Just popping in


@samo79

The author of the code will close your ticket reporting with the description.
"...Works on all systems. Please report the cause of the problem to the AmigaOS4 developers..."

@all

But a lame question
The problem lies where ?
@HunoPPC wrote - Problem on SAM440
post #48 " Qemu SAM works....
@LiveForIt writes ... "And the textures should be 16bit under QEMU with current drivers, as that's all WB can display,
put perhaps its not working in 32bit, because its using 16bit textures."

On X1000 it works ... on a real Pegasos 2 and AmigaOne will also work ?

is there a problem with the library ? kernel ? - Linux PPC and Morphos works
I know , stupid question and I apologize , but I don't know enough about AOS4.

Go to top


Re: have you seen this?
Just popping in
Just popping in


@jabirulo

>and using sam460 (AMCC PPC460EX) in QEMU does it work too?

Yes, it works with Wazp3D.

https://ibb.co/51zxy3H


Edited by smarkusg on 2023/9/10 10:20:31
Go to top


Re: have you seen this?
Just popping in
Just popping in


@Maijestro

See post #37
there is a binary version - you must have a "data file"
wip-dev->wipeout-rewrite ->winepgame
game run on qemu with Wazp3D.
See post #21
Need to play with Wazp3D settings to make it run faster. It is not based on GL4ES.

edit:
In general, it's strange - high-level libraries and you have to use magic to make it work after AOS4


Edited by smarkusg on 2023/9/9 23:34:20
Edited by smarkusg on 2023/9/9 23:36:34
Go to top



TopTop
(1) 2 3 4 5 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project