Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
50 user(s) are online (25 user(s) are browsing Forums)

Members: 1
Guests: 49

Amigafreak02, more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 10 11 ... 14 »
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro

small video
amigaONE started with 2gb
only with the boot cd-rom
and starting "Ranger"

I wanted to ask do I need to boot from hard-disk
is there any trick to do as for pegasos2 ?

Thank you

I'm sorry but time passes and I'm a bit lazy I don't do it on purpose
it's just the age

and thanks also to @balaton for this experiment he wanted to do.

https://youtu.be/X5APihbAVDc


Edited by white on 2023/8/31 19:51:53
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro

ok i read the thread,
I tried a little bit of everything and the speed is good
I'll make a video later

it is essential to find a way to do a hard reset of the machine
to work well.

HERE QUAKE TEST TIMEDEMO MODE
https://youtu.be/majQUP6jXPM


the test was done with the old one
siliconmotion502.chip

current tests with rtl8139 lose connection
very often as reported by @Maijestro

currently the system is complete in all its parts and sfs latest version is used.

I hope it can be useful and share the various configurations to use.
They are just tests, which I hope will help in some way.

As soon as possible I'll make a more complete video of the whole system.
As soon as I configure all the programs.

@Maijestro
I sent a PM


Edited by white on 2023/9/1 10:24:37
Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@whiteQuote:
white wrote:@Maijestro

small video
amigaONE started with 2gb
only with the boot cd-rom
and starting "Ranger"


Thanks for the video it seems to run well on your machine too.

Maybe in the future the sound and network problems will be solved.

Since you can not save boot settings in the firmware, NVRAM would of course be advantageous.

And finally of course 32 bit output borvorzugt 3D accelerated. Then we would have a perfect Qemu AmigaOs4.1 machine, but I'm dreaming again

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro

Yes you are right,
There have been many steps forward in emulation.

You can do many things with the current emulation is already a good result.

Too bad about the policies applied by hardware developers in general.
A change of course would be nice especially on hardware prices.

A question
Do you think it's possible OS 3.9 (ppc) with AmigaONE ?
Have you tried it had crossed my mind just out of curiosity to give it a try.

But I probably don't think it's possible.


What are your opinions about 3.9 on AmigaONE ?

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@white
Quote:
Do you think it's possible OS 3.9 (ppc) with AmigaONE ?
AmigaOS 3.9 is m68k, not PPC, but running it inside UAE on AmigaOS 4.x (or on any other system with an UAE port) is possible.
Downgrading to the illegal AmigaOS 3.1.x/3.2.x versions doesn't help, they are m68k only as well, and much worse than AmigaOS 3.9 was.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@joerg

I don't really want to get into this topic, because almost everything is "illegal" with them, someone must have commissioned Hyperion-Entertainment to distribute AmigaOs4.1, AmigaOs3.1.x, I don't have the knowledge how they have it, but as far as I know there is probably no other way to be able to develop AmigaOs in any form, because AmigaOs is not OpenSource like e.g. MorphOs, where it seems to run a bit better because of that.

I keep neutral to everything and of course I am happy to be able to use AmigaOs4.1 in some form at all. There were just too many disputes in the past years. We should be glad that the development continues, even if quite slowly.

I also appreciate their knowledge as they often helped with problems. We should end this topic, it's really not good.


Edited by Maijestro on 2023/9/1 21:09:33
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@joerg
@Maijestro

My question was harmless just out of curiosity.
I have yet to have somewhere in the external hd "moana loader"
As well as amithlon is everything else.

I don't know the architecture well as I said before
Many years ago I chose the "ps1" instead of "ppc+voodoo"
And since then I have only emulated AmigaOS
I remember using winUAE 0.8xx with a GPRS phone to connect to the internet


Edited by white on 2023/9/2 4:33:53
Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@Maijestro
Quote:
I don't really want to get into this topic, because almost everything is "illegal" with them, someone must have commissioned Hyperion-Entertainment to distribute AmigaOs4.1, AmigaOs3.1.x,
Hyperion has (or had) a licence from Amiga Inc. for developing AmigaOS 4.x on PPC systems, but limited to classic Amigas and "AmigaOne" NG systems.
Hyperion has (or had) a licence from Amiga Inc. for using AmigaOS 3.1 (and older versions), but limited to the unmodified Kickstart and Workbench image/ADF files for the UAE included in AmigaOS 4.x.

Hyperion never had any licence to use the AmigaOS sources for updated AmigaOS 3.1/m68k versions. Additionally some parts of AmigaOS 3.[12].x are based on stolen AmigaOS 4.x sources and were illegally ported to m68k. The usual licences of the OS4 developers to Hyperion were of course PPC only, for example my AmigaOS 4.x CDFileSystem port was illegally backported to AmigaOS 3.x/m68k and included in AmiagOS 3.[12].x.
Even if it would have been covered by my CDFileSystem licence, which isn't the case, Hyperion would have had to pay me the x cent licence fee per copy of AmigaOS sold including it, which they didn't do since about 2005 for the AmigaOS 4.x/PPC versions any more, let alone the pirate copy AmigaOS 3.[12].x/m68k versions of it.

Quote:
because AmigaOs is not OpenSource like e.g. MorphOs, where it seems to run a bit better because of that.
Since when is AROS/PPC, aka MorphOS, open source?
AROS is open source, but AFAIK not any of the hundreds, or even thousands, of bug and AmigaOS compatibility fixes the MorphOS developers had to add to the AROS sources to make them usable.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@Balaton

Ok, I understood a bit how to debug the AHI output a bit. Not sure if you or anyone else can do anything with it.

I debugged it like this...AmigaOs4.1 completely booted Sound.prefs opened debug output set to full with kernel.debug. After that I started the startup sound of Amigaos4.1 and recorded the output.

I also passed the information to Volker, maybe you can do something with it too.

TAG_DONE)
AHI_SetFreq(0160000x5FC514600)
AHI_SetVol(00x000100000x000080000x5FC514600)
AHI_SetSound(000x000000000x000008000x5FC514600)
AHI_SetSound(0655350x000000000x000000000x5FC514600)
Terminating IO Request 0x5FE1E250AHI_SetVol(00x000100000x000080000x5FC514601)
AHI_SetEffect(0x5FBDEE90 (Effect 0x00000001), 0x5FC51460)
AHI_SampleFrameSize(8)=>4
AHI_UnloadSound
(10x5FC51460)
=>
0
BeginIO
(0x5FE1E250)
CMD_WRITE
AHI_SampleFrameSize
(8)=>4
AHI_LoadSound
(110x5FBDEEC80x5FC51460) [T:0x00000008 A:0x5FEEA000 L:2048]=>0
AHI_PlayA
(0x5FC51460,
               
AHIP_BeginChannel0,
                   
AHIP_LoopFreq16000,
                    
AHIP_LoopVol1.0,
                    
AHIP_LoopPan0.500,
                  
AHIP_LoopSound1,
                 
AHIP_LoopOffset0x00000000,
                 
AHIP_LoopLength0x00000800,
                 
AHIP_EndChannel0,
  
TAG_DONE)
AHI_SetFreq(0160000x5FC514600)
AHI_SetVol(00x000100000x000080000x5FC514600)
AHI_SetSound(010x000000000x000008000x5FC514600)
AHI_SetSound(0655350x000000000x000000000x5FC514600)
Terminating IO Request 0x5FE1E2A0AHI_SetVol(00x000100000x000080000x5FC514601)
AHI_SetEffect(0x5FBDEE90 (Effect 0x00000001), 0x5FC51460)
AHI_SampleFrameSize(8)=>4
AHI_UnloadSound
(00x5FC51460)
=>
0
BeginIO
(0x5FE1E2A0)
CMD_WRITE
AHI_SampleFrameSize
(8)=>4
AHI_LoadSound
(010x5FBDEEC80x5FC51460) [T:0x00000008 A:0x5FEE8000 L:256]=>0
AHI_PlayA
(0x5FC51460,
               
AHIP_BeginChannel0,
                   
AHIP_LoopFreq16000,
                    
AHIP_LoopVol1.0,
                    
AHIP_LoopPan0.500,
                  
AHIP_LoopSound0,
                 
AHIP_LoopOffset0x00000000,
                 
AHIP_LoopLength0x00000100,
                 
AHIP_EndChannel0,
  
TAG_DONE)
AHI_SetFreq(0160000x5FC514600)
AHI_SetVol(00x000100000x000080000x5FC514600)
AHI_SetSound(000x000000000x000001000x5FC514600)
AHI_SetSound(0655350x000000000x000000000x5FC514600)
Terminating IO Request 0x5FE1E250AHI_SetVol(00x000100000x000080000x5FC514601)
AHI_SetEffect(0x5FBDEE90 (Effect 0x00000001), 0x5FC51460)
AHI_SampleFrameSize(8)=>4
AHI_UnloadSound
(10x5FC51460)
=>
0
AbortIO
(0x5FE1E2A0)AHI_SetSound(0655350x000000000x000000000x5FC514601)
Terminating IO Request 0x5FE1E2A0AHI_SetEffect(0x5FC1BD50 (Effect 0x00000001), 0x5FC51460)
AHI_SampleFrameSize(8)=>4
AHI_UnloadSound
(00x5FC51460)
=>-
2
=>0
CloseDevice
(0x5FE1E250)
CloseDevice(0x5FE1E2A0)
AHI_SetEffect(0x603FF820 (Effect 0x80000005), 0x5FC51460)
AHI_FreeAudio(0x5FC51460)
AHI_UnloadSound(1270x5FC51460)
AHI_UnloadSound(1260x5FC51460)
AHI_UnloadSound(1250x5FC51460)
AHI_UnloadSound(1240x5FC51460)
AHI_UnloadSound(1230x5FC51460)
AHI_UnloadSound(1220x5FC51460)
AHI_UnloadSound(1210x5FC51460)
AHI_UnloadSound(1200x5FC51460)
AHI_UnloadSound(1190x5FC51460)
AHI_UnloadSound(1180x5FC51460)
AHI_UnloadSound(1170x5FC51460)
AHI_UnloadSound(1160x5FC51460)
AHI_UnloadSound(1150x5FC51460)
AHI_UnloadSound(1140x5FC51460)
AHI_UnloadSound(1130x5FC51460)
AHI_UnloadSound(1120x5FC51460)
AHI_UnloadSound(1110x5FC51460)
AHI_UnloadSound(1100x5FC51460)
AHI_UnloadSound(1090x5FC51460)
AHI_UnloadSound(1080x5FC51460)
AHI_UnloadSound(1070x5FC51460)
AHI_UnloadSound(1060x5FC51460)
AHI_UnloadSound(1050x5FC51460)
AHI_UnloadSound(1040x5FC51460)
AHI_UnloadSound(1030x5FC51460)
AHI_UnloadSound(1020x5FC51460)
AHI_UnloadSound(1010x5FC51460)
AHI_UnloadSound(1000x5FC51460)
AHI_UnloadSound(990x5FC51460)
AHI_UnloadSound(980x5FC51460)
AHI_UnloadSound(970x5FC51460)
AHI_UnloadSound(960x5FC51460)
AHI_UnloadSound(950x5FC51460)
AHI_UnloadSound(940x5FC51460)
AHI_UnloadSound(930x5FC51460)
AHI_UnloadSound(920x5FC51460)
AHI_UnloadSound(910x5FC51460)
AHI_UnloadSound(900x5FC51460)
AHI_UnloadSound(890x5FC51460)
AHI_UnloadSound(880x5FC51460)
AHI_UnloadSound(870x5FC51460)
AHI_UnloadSound(860x5FC51460)
AHI_UnloadSound(850x5FC51460)
AHI_UnloadSound(840x5FC51460)
AHI_UnloadSound(830x5FC51460)
AHI_UnloadSound(820x5FC51460)
AHI_UnloadSound(810x5FC51460)
AHI_UnloadSound(800x5FC51460)
AHI_UnloadSound(790x5FC51460)
AHI_UnloadSound(780x5FC51460)
AHI_UnloadSound(770x5FC51460)
AHI_UnloadSound(760x5FC51460)
AHI_UnloadSound(750x5FC51460)
AHI_UnloadSound(740x5FC51460)
AHI_UnloadSound(730x5FC51460)
AHI_UnloadSound(720x5FC51460)
AHI_UnloadSound(710x5FC51460)
AHI_UnloadSound(700x5FC51460)
AHI_UnloadSound(690x5FC51460)
AHI_UnloadSound(680x5FC51460)
AHI_UnloadSound(670x5FC51460)
AHI_UnloadSound(660x5FC51460)
AHI_UnloadSound(650x5FC51460)
AHI_UnloadSound(640x5FC51460)
AHI_UnloadSound(630x5FC51460)
AHI_UnloadSound(620x5FC51460)
AHI_UnloadSound(610x5FC51460)
AHI_UnloadSound(600x5FC51460)
AHI_UnloadSound(590x5FC51460)
AHI_UnloadSound(580x5FC51460)
AHI_UnloadSound(570x5FC51460)
AHI_UnloadSound(560x5FC51460)
AHI_UnloadSound(550x5FC51460)
AHI_UnloadSound(540x5FC51460)
AHI_UnloadSound(530x5FC51460)
AHI_UnloadSound(520x5FC51460)
AHI_UnloadSound(510x5FC51460)
AHI_UnloadSound(500x5FC51460)
AHI_UnloadSound(490x5FC51460)
AHI_UnloadSound(480x5FC51460)
AHI_UnloadSound(470x5FC51460)
AHI_UnloadSound(460x5FC51460)
AHI_UnloadSound(450x5FC51460)
AHI_UnloadSound(440x5FC51460)
AHI_UnloadSound(430x5FC51460)
AHI_UnloadSound(420x5FC51460)
AHI_UnloadSound(410x5FC51460)
AHI_UnloadSound(400x5FC51460)
AHI_UnloadSound(390x5FC51460)
AHI_UnloadSound(380x5FC51460)
AHI_UnloadSound(370x5FC51460)
AHI_UnloadSound(360x5FC51460)
AHI_UnloadSound(350x5FC51460)
AHI_UnloadSound(340x5FC51460)
AHI_UnloadSound(330x5FC51460)
AHI_UnloadSound(320x5FC51460)
AHI_UnloadSound(310x5FC51460)
AHI_UnloadSound(300x5FC51460)
AHI_UnloadSound(290x5FC51460)
AHI_UnloadSound(280x5FC51460)
AHI_UnloadSound(270x5FC51460)
AHI_UnloadSound(260x5FC51460)
AHI_UnloadSound(250x5FC51460)
AHI_UnloadSound(240x5FC51460)
AHI_UnloadSound(230x5FC51460)
AHI_UnloadSound(220x5FC51460)
AHI_UnloadSound(210x5FC51460)
AHI_UnloadSound(200x5FC51460)
AHI_UnloadSound(190x5FC51460)
AHI_UnloadSound(180x5FC51460)
AHI_UnloadSound(170x5FC51460)
AHI_UnloadSound(160x5FC51460)
AHI_UnloadSound(150x5FC51460)
AHI_UnloadSound(140x5FC51460)
AHI_UnloadSound(130x5FC51460)
AHI_UnloadSound(120x5FC51460)
AHI_UnloadSound(110x5FC51460)
AHI_UnloadSound(100x5FC51460)
AHI_UnloadSound(90x5FC51460)
AHI_UnloadSound(80x5FC51460)
AHI_UnloadSound(70x5FC51460)
AHI_UnloadSound(60x5FC51460)
AHI_UnloadSound(50x5FC51460)
AHI_UnloadSound(40x5FC51460)
AHI_UnloadSound(30x5FC51460)
AHI_UnloadSound(20x5FC51460)
AHI_UnloadSound(10x5FC51460)
AHI_UnloadSound(00x5FC51460)
[
_impl_RemTaskRemoving 0x60DEE7D0 (self) = ahi.device Unit Process
[_impl_RemTaskRemoving 0x60DEE950 (self) = sound.datatype process
CloseDevice
(0x60CBA500)
WarningExpected I/O request 0x00000000.
[
_impl_AddTaskAdding Task 0x60043070windowfade.task (0x02042498)
[
_impl_RemTaskRemoving 0x60043070 (self) = windowfade.task
[_impl_RemTaskRemoving 0x60B2B080 (self) = CON/con-handler 53.82 
[_impl_RemTaskRemoving 0x60DE3040 (self) = Sound

Saving session
...
...
copying shared history...
...
saving history...truncating history files...
...
completed.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro
The log is not useful to me but hopefully Volker can find out something from it. I think he said previously that the AHI prefs test sound uses too small buffers so it won't play correctly but other apps do it differently. But maybe not on amigaone, I don't know and only hope Volker is interested enough to find this out. What you could try is getting the same logs with pegasos2 as well where it works and try to compare if any settings are different (apart from memory addresses which would of course be different) but that needs some digging of the AHI sources to find out what the numbers in the debug log actually mean. That's why they aren't useful to me because I don't want to spend time to read the AHI source and find out. Maybe somebody who already knows it could look at it or somebody who interested enough to learn this.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@Balaton

Together with Volker and the last es1370 patch series from 17.09 I wanted to do a trace output with -msg timestamp=on -trace "es1370_*" on the Qemu AmigaOne branch. But there is no output neither with -msg timestamp=on -trace "es1370_*" nor with -trace enable="via*" on the official source Qemu master I can record it without problems with -trace enable="via*" but since here the patch series from 17.09 was not installed, there is also no output with the es1370.

I'm not sure, but it seems to not work via the source https://osdn.net/projects/qmiga/scm/git/qemu/summary.

Do you have any idea what this could be?

Edit: Problem solved -serial stdio has prevented the trace output after removing this line it works.


Would it be helpful to record the trace output of ac97 from Pegasos2/AmigaOne so that we can compare why there is no sound output under the AmigaOne emulation?


Edited by Maijestro on 2023/9/24 17:49:25
Edited by Maijestro on 2023/9/24 18:03:07
MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro
This may depend on the trace backend you compiled QEMU with. I usually use --enable-trace-backends=log which just logs to the stdout/stderr and can be redirected from there but Volker preferred simpletrace that writes a binary file and needs to be processed with a python script to get the logs instead. I don't know what you did but seems to be solved anyway.

I can't debug QEMU audio stuff so whatever is useful for Volker. If need some help from me you can cc me on emails but probably can't help much as I don't know how these things work. I've just implemented the emulation of the sound part following the chip datasheet then the rest is done by QEMU and AmigaOS so don't know what those parts are doing so if the problem comes from those parts we need an expert on those to find it.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@balaton

According to Volker it looks like a problem with the AmigaOne interrupts.

8068@1695572866.865261:es1370_transfer_audio ch=1 CURR_CT=1744 BUF_SIZE=1763 CURR_SAMP_CT=19 SAMP_CT=881 leftover=0 irq=0
8068
@1695572866.875543:es1370_transfer_audio ch=1 CURR_CT=0 BUF_SIZE=1763 CURR_SAMP_CT=881 SAMP_CT=881 leftover=0 irq=1
8068
@1695572866.885867:es1370_lost_interrupt ch=1 lost interrupt
8068
@1695572866.885870:es1370_transfer_audio ch=1 CURR_CT=882 BUF_SIZE=1763 CURR_SAMP_CT=881 SAMP_CT=881 leftover=0 irq=1
8068
@1695572866.896409:es1370_transfer_audio ch=1 CURR_CT=1516 BUF_SIZE=1763 CURR_SAMP_CT=247 SAMP_CT=881 leftover=0 irq=0
8068
@1695572866.906746:es1370_transfer_audio ch=1 CURR_CT=0 BUF_SIZE=1763 CURR_SAMP_CT=881 SAMP_CT=881 leftover=0 irq=1
8068
@1695572866.916993:es1370_transfer_audio ch=1 CURR_CT=776 BUF_SIZE=1763 CURR_SAMP_CT=105 SAMP_CT=881 leftover=0 irq=0
8068
@1695572866.927660:es1370_transfer_audio ch=1 CURR_CT=882 BUF_SIZE=1763 CURR_SAMP_CT=881 SAMP_CT=881 leftover=0 irq=1
8068
@1695572866.937910:es1370_lost_interrupt ch=1 lost interrupt
8068
@1695572866.937913:es1370_transfer_audio ch=1 CURR_CT=0 BUF_SIZE=1763 CURR_SAMP_CT=881 SAMP_CT=881 leftover=0 irq=1
8068
@1695572866.948185:es1370_transfer_audio ch=1 CURR_CT=548 BUF_SIZE=1763 CURR_SAMP_CT=333 SAMP_CT=881 leftover=0 irq=0


Quote Volker: AmigaOS uses two audio buffers for playback. One buffer is written while the other is played back. An interrupt informs the operating system that a buffer has been played back completely and can now be rewritten. If an interrupt is lost, the buffer that is currently being replayed is rewritten. These are the audible audio problems. With the next lost interrupt everything is correct again.

The audio interrupt is still not reset by the interrupt routine 11ms after the interrupt was set. But I can't tell from the log file if the interrupt latency is just too long or if the interrupt was really lost. The es1370 audio device is not responsible for this. QuoteEnd

Since you have implemented the AmigaOne part this would probably be interesting for you that there is a problem within the AmigaOne emulation and it is not due to the es1370 part, maybe this is also the reason why ac97 does not work, but I am not sure.

If Volker is right, it won't be long before we find the problem. I just wanted to inform you about the progress, if you think of anything else, let me know.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro
As the interrupt handling is slightly different between amigaone and pegasos2 I suspected it's some problem there but without more details I can't find it. Now testng with Volker seems to confirm this but it's still not sure if this is because something is not emulated correctly or roo frequent interrupts are just too slow in emulation. If it's just slow maybe increasing the buffer size in AHI could avoid this as that should make the interrupts less frequent but I don't know how to set that and have no time to experiment with it.

Maybe it helps if I write down what I know which is what I've written. The VIA chip has two embedded ISA PICs, these are created in hw/isa/vt82686.c::via_isa_realize() calling i8259_init() and just use the existing QEMU ISA PIC emulation that should generally work as all other machines using ISA PIC use this although we had to add some legacy mode which nothing else used but AmigaOS so there may be some corner cases but it's less likely. This emulation is used by both amigaone and pegasos2. The PCI interrupts are also connected to VIA chip and this may not be emulated in all detail but should work as long as everything is mapped to a single interrupt as it is in pegasso2 and amigaone apparently. This was discussed in the email thread on qemu list I've linked in the other thread when discussing passed through GPU interrupts and the patches in the pegasos2 branch of the qmiga repo tried to solve but testing with those patches made no difference so maybe this isn't the problem either but could be if something in AmigaOS relies on something that happens differently on real hardware. The ISA and PCI interrupts should raise the cpu_intr of the VIA chip which is connected to the PPC CPU external interrupt in hw/ppc/amigaone.c (the pegasos2 routes this through the MV64361 GPP input so it's a bit more complex there). Then acknowledging the interrupts can either be done writing PIC registers or using a virtual acknowledge register of the north bridge which seems to be used in AmigaOS, this is emulated in hw/pci-host/articia.c for amigaone and hw/pci-host/mv64361.c for pegasos2.

That's all I did and don't know if any of these could be wrong or something missing. For that I'd need some advice from somebody who actually knows how these machines work and how AmigaOS uses these. We apparently have some problem with interrupts which is causeing problems on amigaone and likely also the netowork freeze issue on pegasos2 but I don'w know what to fix or even what to check without some help so I'm not working on this just wait for somebody to find out what the problem is so we can then think about how to fix it. The hard part is identifying the problem, once it's understood, implementing a fix is usually simple.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@balaton

We all have little time, I also work full time and not on Qemu and AmigaOs4.1

Thanks for the hint, I will forward it to Volker, maybe he can do something with it. Unfortunately I don't understand much about it, but I know how to keep people busy, because I like to use this emulation with AmigaOs4.1 very much and I know how well it has developed and works.

I'll keep you posted on how things develop

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro
Yes I know all this takes time, that's why I'd like more people to add in some time otherwise it will take forever for me alone.

In the little free time I had I've tried compiling a U-Boot from source for amigaone which would be needed to be able to submit the patches for inclusion in QEMU. I found that old U-Boot versions don't compile with newer gcc any more and newer U-Boot versions dropped the AmigaOneG3SE board. I could add back this board in the sam460ex 2010.06.05 U-Boot version and compile that and it starts but crashes within the BIOS emulator even if I use the same bios emulator that works with the sam460ex U-Boot. So something is still wrong in either the board support code, bios emulator glue code or in CPU support for 74xx CPUs. Also the sources for the AmigaOne board seem to be missing parts and the binary U-Boot says Board: AmigaOne while the one in upstream U-Boot says Board: AmigaOneG3SE so I think what's upstream is not the complete source for the AmigaOne binary U-Boot we're using and I could not reconstruct it.

That's where I'm stuck now in upstreaming amigaone patches. I've written to some people asking for the U-Boot source but hot no reply so far so if somebody has a source that at some point should have worked please pass it to me. (I have all the U-Boot versions in git so don't need any of those but actual AmigaOne U-Boot source corresponding to the binary on Hyperion's site that should have been available on asking in the 3 years it was released. Somebody should have asked and saved it I hope. If I can't get this I'd need to emulate U-Boot as well which is more work I'd like to avoid.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@balaton

What does that mean exactly that you can't merge the new AmigaOne emulation to Qemu Master 8.2 without U-Boot (Source) ?

It would be fantastic if we could have it available in Qemu 8.2 for everyone. Volker will surely be able to solve the problem with the sound and the AmigaOne emulation is really very fast and in parts (sdl1) even a bit more compatible than the Pegasos2 emulation.

Again other things are missing like nvram, because we use U-Boot as firmware, which does not save firmware configurations permanently. I'm not sure if Volker only cares about the Qemu sound part, but maybe he could help with that too.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Quite a regular
Quite a regular


See User information
@Maijestro
Adding nvram should not be diffucult but to include the machine in QEMU it should be able to boot something without needing non-free stuff that's redistributable with QEMU. Since U-Boot is GPL it's only redistributable with source (or even if it would be OK to reditribute the binary QEMU wants to be able to reproduce all binaries from source so I can't include just binsries without source). So we need the U-Boot source to build the amigaone firmware or have to implement -kernel command line option to be able to boot a Linux kernel at least but then people wanting to run AmigaOS would need to download firmware separately or I'd need to emulate too much of U-Boot which is more work. So easiest way is if somebody digs up the source for the AmigaOne firmware which should have been available before so I'm sure somebody still has it so would just need to make it available which is legal to do because of the GPL. If it does not compile now that's not a problem, I can look at fixing it but I don't want to rewrite it from scratch or from the fragments that were upstream in U-Boot in the past.

Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@all

I ask again is there someone who knows where the source code for (U-Boot 1.1.1) for AmigaOneXe/MicroA1 is or can provide it for Qemu AmigaOneXe?

Balaton needs this source to add the AmigaOneXe emulation together with the U-Boot firmware in Qemu. The AmigaOneXe emulation is in some parts even better than the Pegaso2 emulation and we would have 2 fully fledged machines that people could use. In addition we could add functions to the free U-Boot firmware.

The AmigaOneXe emulation already works very well, there is only one problem with the sound to solve, but also here someone is working since last week to fix this.

Please support the AmigaOneXe project.

Who can give hints should do it here in the thread, or contact Balaton directly.

MacStudio ARM M1 Max Qemu//Pegasos2 AmigaOs4.1 FE / AmigaOne x5000/40 AmigaOs4.1 FE
Go to top
Re: qemu emualtion of AmigaONE XE
Just can't stay away
Just can't stay away


See User information
@Maijestro
Quote:
I ask again is there someone who knows where the source code for (U-Boot 1.1.1) for AmigaOneXe/MicroA1 is or can provide it for Qemu AmigaOneXe?
Complete source code for the U-Boot image files for the AmigaOne SE and XE should have been available, but not for the µA1:
The µA1-C has a twice as large EEPROM compared to the SE and XE and in addition to U-Boot includes the BIOS ROM for the onboard ATI Radeon 7000 gfx card.
(And yes, that's GPL compatible, the U-Boot code wasn't linked to the ATI BIOS code in any way, it's just 2 independent BIOS binaries in a single file/EEPROM.)

The AmigaOne emulation in QEmu is getting more important, I guess nearly all Pegasos2 AmigaOS 4.1 licences are sold out already and only AmigaOne licences are still available, not only do a lot of former AmigaOne users with broken hardware still have one, but the AmigaOS 4.1 AmigaOne licences sold to AmigaOS dealers should have been at least 50 times as much as Pegasos2 ones as well.


Edited by joerg on 2023/9/27 18:14:15
Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 10 11 ... 14 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project