Can all registered uses please login, even just for a few minutes..
It helps build a picture where our "good traffic" is coming from..
Thanks :)
It helps build a picture where our "good traffic" is coming from..
Thanks :)
EMUTos + AltRAM
EMUTos + AltRAM
Whilst developing PiStorm for Atari, I have noticed a couple of problems with EMUTos and AltRAM
1. if emulating a 68000 CPU, EMUTos does not recognise AltRAM (defined at 0x01000000)
2. I can assign a maximum of 32MB to AltRAM (68020, 30 and 40). Anything more, results in EMUTos reporting the AltRAM size = AltRAM + available system RAM - which then causes a Bus Error and EMUTos to abort loading.
eg. AltRAM defined as 64MB and Atari has 4MB of RAM, EMUTos reports AltRAM = 68MB
Does anyone know if these are known limitations?
1. if emulating a 68000 CPU, EMUTos does not recognise AltRAM (defined at 0x01000000)
2. I can assign a maximum of 32MB to AltRAM (68020, 30 and 40). Anything more, results in EMUTos reporting the AltRAM size = AltRAM + available system RAM - which then causes a Bus Error and EMUTos to abort loading.
eg. AltRAM defined as 64MB and Atari has 4MB of RAM, EMUTos reports AltRAM = 68MB
Does anyone know if these are known limitations?
ATARI STfm, STe, Mega ST, TT
Amstrad CPC464, CPC6128
PiStorm dev - https://github.com/gotaproblem/pistorm-atari
PiStorm JIT dev - https://github.com/gotaproblem/pistorm-atari-jit
Pico HDC - https://bbansolutions.co.uk
Amstrad CPC464, CPC6128
PiStorm dev - https://github.com/gotaproblem/pistorm-atari
PiStorm JIT dev - https://github.com/gotaproblem/pistorm-atari-jit
Pico HDC - https://bbansolutions.co.uk
Re: EMUTos + AltRAM
68000 is 24bit address bus so is limited to 16Mb address space.dad664npc wrote: Wed Aug 02, 2023 11:31 am 1. if emulating a 68000 CPU, EMUTos does not recognise AltRAM (defined at 0x01000000)
- chronicthehedgehog
- Site sponsor

- Posts: 384
- Joined: Sun May 08, 2022 6:11 pm
- Location: The Midlands
- Contact:
Re: EMUTos + AltRAM
Does your EmuTOS build have the correct MMU flags? Have you tried a custom build?
custom build
Just a long shot idea - I'm no expert on the matter
custom build
Just a long shot idea - I'm no expert on the matter
Re: EMUTos + AltRAM
I can never successfully build on that website - can you?
/home/www/usr/bin/../lib64/gcc/m68k-atari-mint/4.6.4/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
/home/www/usr/bin/../lib64/gcc/m68k-atari-mint/4.6.4/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
ATARI STfm, STe, Mega ST, TT
Amstrad CPC464, CPC6128
PiStorm dev - https://github.com/gotaproblem/pistorm-atari
PiStorm JIT dev - https://github.com/gotaproblem/pistorm-atari-jit
Pico HDC - https://bbansolutions.co.uk
Amstrad CPC464, CPC6128
PiStorm dev - https://github.com/gotaproblem/pistorm-atari
PiStorm JIT dev - https://github.com/gotaproblem/pistorm-atari-jit
Pico HDC - https://bbansolutions.co.uk
- stephen_usher
- Site sponsor

- Posts: 7508
- Joined: Mon Nov 13, 2017 7:19 pm
- Location: Oxford, UK.
- Contact:
Re: EMUTos + AltRAM
Looks like someone didn't set their LD_LIBRARY_PATH. 
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
Re: EMUTos + AltRAM
maybe invoke @czietz the expert on EmuTOS 
Re: EMUTos + AltRAM
That was a physical hardware limitation of the 68000 chip. I don't think emulated 68000 need to have that limitation. But you'd need to check the coding of the emulator.
Senior Principal ASIC Engineer - SystemVerilog, VHDL
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
Thalion Webshrine - http://thalion.atari.org
ST,STf,STfm,STe,MegaST,MegaSTe,Falcon060
A500+,A600,A4000/060,CD32,CDTV
- chronicthehedgehog
- Site sponsor

- Posts: 384
- Joined: Sun May 08, 2022 6:11 pm
- Location: The Midlands
- Contact:
Re: EMUTos + AltRAM
never trieddad664npc wrote: Wed Aug 02, 2023 1:21 pm I can never successfully build on that website - can you?
/home/www/usr/bin/../lib64/gcc/m68k-atari-mint/4.6.4/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
Just did - same error
- chronicthehedgehog
- Site sponsor

- Posts: 384
- Joined: Sun May 08, 2022 6:11 pm
- Location: The Midlands
- Contact:
Re: EMUTos + AltRAM
Maybe you can copy and paste the 'make' command (i.e. the comp. flags) to your own local builddad664npc wrote: Wed Aug 02, 2023 1:21 pm I can never successfully build on that website - can you?
/home/www/usr/bin/../lib64/gcc/m68k-atari-mint/4.6.4/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
Re: EMUTos + AltRAM
As far as the TT-RAM question is concerned, I can confirm (personally from my TT) that EmuTOS runs fine with 256 MiB TT-RAM. Therefore, I like to rule out any general issue with EmuTOS. This must be a problem specific to the PiStorm; which I have no experience with.
For the "fake" 68000 with TT-RAM, you should check whether IS_BUS32 (32 bit bus) is set to 1, otherwise EmuTOS will not try to detect TT-RAM: https://github.com/emutos/emutos/blob/a ... C14-L36C31
Regarding the custom build website: This is generously provided by @thorsten.otto; he would have to look into the error message.
Feel free to continue the discussion on the EmuTOS-devel mailing list in case you have more technical questions: https://sourceforge.net/p/emutos/mailman/emutos-devel/.
For the "fake" 68000 with TT-RAM, you should check whether IS_BUS32 (32 bit bus) is set to 1, otherwise EmuTOS will not try to detect TT-RAM: https://github.com/emutos/emutos/blob/a ... C14-L36C31
Regarding the custom build website: This is generously provided by @thorsten.otto; he would have to look into the error message.
Feel free to continue the discussion on the EmuTOS-devel mailing list in case you have more technical questions: https://sourceforge.net/p/emutos/mailman/emutos-devel/.
