captain-amygdala / pistorm

68k Hardware Emulator
MIT License
737 stars 103 forks source link

emulator problems #75

Closed Perits36 closed 7 months ago

Perits36 commented 7 months ago

This what I get when invoking emulator. I have followed your instructions to the letter, but as can be seen below to no avail. Pls help. /Sal (sal(at)gribsvad(dot)com pi@raspberrypi:~/pistorm $ sudo ./emulator --config amiga.config Config file amiga.config does not exist, please check that you've specified the path correctly. No config file specified. Trying to load default.cfg... [CFG] Failed to open config file default.cfg for reading. Couldn't load default.cfg, empty emulator config will be used. Creating platform config for none... No IDE drives mounted, disabling Gayle IDE component. Setting CPU type to 1.

^CReceived sigint 2, exiting. IRQs triggered: 0 IRQs serviced: 0 Last serviced IRQ: 8

LemaruX commented 7 months ago

If you follow the instructions properly, you will see it's amiga.cfg and not amiga.config.

Specify the correct file and it will work.

amiga.cfg is only really there to be used as a template. If you copy it to a new file called default.cfg then you don't need to specify it when running the emulator, as it will load it automatically.

Perits36 commented 7 months ago

Thanks for your rapid reply. I realized my mistake with the config file almost as I send the mail. Having said that I unfortunately get the same result with the config corrected. IE now amiga window:( A thought, can the reason be that the A1200 has no fast mem?

/Sal

From: Lemaru @.*** Sent: 2. februar 2024 01:48 To: captain-amygdala/pistorm Cc: Perits36; Author Subject: Re: [captain-amygdala/pistorm] emulator problems (Issue #75)

Closed #75 https://github.com/captain-amygdala/pistorm/issues/75 as completed.

— Reply to this email directly, view it on GitHub https://github.com/captain-amygdala/pistorm/issues/75#event-11677678799 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFZIBKTH7N544I7KMZ6B6OLYRQZVDAVCNFSM6AAAAABCVTQ3UGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGY3TONRXHA3TSOI . You are receiving this because you authored the thread.Image removed by sender.Message ID: @.***>

-- This email has been checked for viruses by Avast antivirus software. www.avast.com

LemaruX commented 7 months ago

The Pi provides the fast ram via the PiStorm.

Are you sure you are using the correct branch and following the correct instructions? You need to be using the PiStorm32 branch, and following the he instructions there

https://github.com/captain-amygdala/pistorm/tree/pistorm32-lite

Also make sure you are using the correct command to run the emulator (you need to specify the bitstream when running it)

LemaruX commented 7 months ago

Just to add, as this is a general support issue, and not really an issue with the PiStorm software, it would probably be easier to head over to the discord server where it'll be easier for us to help with your issue.

Perits36 commented 7 months ago

Again, thank you for your quick response.

I didn't invoke the bitstream part before but it appears it dosn't make any difference(:

I am attaching my amiga.cfg and the result when issuing the same.

I hope for your help and at the same time hope you aren't getting tired of this.

Kind regards,

Sal

From: Lemaru @.*** Sent: 4. februar 2024 18:16 To: captain-amygdala/pistorm Cc: Perits36; Author Subject: Re: [captain-amygdala/pistorm] emulator problems (Issue #75)

The Pi provides the fast ram via the PiStorm.

Are you sure you are using the correct branch and following the correct instructions? You need to be using the PiStorm32 branch, and following the he instructions there

https://github.com/captain-amygdala/pistorm/tree/pistorm32-lite

Also make sure you are using the correct command to run the emulator (you need to specify the bitstream when running it)

— Reply to this email directly, view it on GitHub https://github.com/captain-amygdala/pistorm/issues/75#issuecomment-1925842512 , or unsubscribe https://github.com/notifications/unsubscribe-auth/BFZIBKQ6AIBFU7U3SOH5Q2DYR663LAVCNFSM6AAAAABCVTQ3UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVHA2DENJRGI . You are receiving this because you authored the thread.Image removed by sender.Message ID: @.***>

-- This email has been checked for viruses by Avast antivirus software. www.avast.com

Sets CPU type. Valid types are (probably) 68000, 68010, 68020, 68EC020, 68030, >

cpu 68020

Map 512KB kickstart ROM to default offset.

map type=rom address=0xF80000 size=0x80000 file=kick.rom ovl=0 id=kickstart

Comment out the line above and uncomment the line below to automatically copy t>

map type=rom address=0xF80000 size=0x80000 file=kick.rom ovl=0 id=kickstart auto>

"Blackhole" the detected slow RAM on the Amiga 600. This enables maprom to work>

DO NOT ENABLE THIS UNLESS YOU ARE USING THE PISTORM ON AN AMIGA 600.

map type=register address=0xC00000 size=0x80000 id=blackhole_slow_a600

Want to map an extended ROM, such as CDTV or CD32?

map type=rom address=0xF00000 size=0x80000 file=cdtv.rom id=extended

Map 128MB of Fast RAM at 0x8000000, also known as 32-bit Fast RAM or CPU local >

Only supported properly on select Kickstarts, such as 3.1+ for Amiga 1200, 3000>

map type=ram address=0x08000000 size=128M id=cpu_slot_ram

Map 128MB of Z3 Fast. Note that the address here is not actually used, as it ge>

Enabling Z3 fast requires at least Kickstart 2.0.

If for some reason you need more than 128MB, you can change the size=128M to a >

like 256M, 512M, 1024M, or add additional map lines.

map type=ram address=0x10000000 size=256M id=z3_autoconf_fast

Max 8MB of Z2 Fast can be mapped due to addressing space limitations, but for i>

Do not map Zorro II Fast RAM unless you absolutely need it, as Z2 address space>

Cases where you may need Zorro II Fast may include emulating a 68000, 68010 or >

map type=ram address=0x200000 size=8M id=z2_autoconf_fast

map type=ram address=0x200000 size=2M id=z2_autoconf_fast

map type=ram address=0x400000 size=4M id=z2_autoconf_fast

This is fake Chip RAM, do not use on a real Amiga.

map type=ram address=0x0 size=2M

Map Gayle as a register range.

NOTE: Gayle emulation is currently non-functional. Do not enable this.

map type=register address=0xD80000 size=0x40000

Map RTC as a register range.

map type=register address=0xDC0000 size=0x10000

Number of instructions to run every main loop.

loopcycles 300

Set the platform to Amiga to enable all the registers and stuff.

platform amiga

Uncommenting the below this long comment DISABLES RTC emulation, letting reads/w>

There is no need to uncomment it unless you are either using a CDTV, you want to>

inside the computer, such as on a trapdoor memory expansion board, or if you hav>

A314 uses the RTC address range to communicate with the Amiga, and enabling RTC >

DO NOT UNCOMMENT THE LINE BELOW UNLESS YOU'VE READ AND UNDERSTOOD THE FIVE LINES>

setvar enable_rtc_emulation 0

Uncomment to enable RTG

setvar rtg

Uncomment to enable DPMS (monitor turns off) when RTG sleeps

setvar rtg-dpms

Uncomment the following lines to set the RTG native screen resolution width and >

setvar rtg-width 1280

setvar rtg-height 720

Uncommenting the lines below here sets the specified sample rate for the Pistorm>

device respectively. The PiStorm AHI device does not yet work properly, please r>

located in the directory platforms/amiga/ahi.

setvar pi-ahi-samplerate 44100

setvar pi-ahi

Uncomment to enable CDTV mode (not working, requires Kickstart 1.3+CDTV extended>

setvar cdtv

Uncomment this line to enable the PiSCSI interface

setvar piscsi

Use setvar piscsi0 through piscsi6 to add up to seven mapped drives to the inter>

setvar piscsi0 amiga.hdf

setvar piscsi1 PI1.hdf

A special disk that includes PiStorm drivers and utilities, comment out if not n>

setvar piscsi6 platforms/amiga/pistorm.hdf

Uncomment this line to enable the (currently non-working) Pi-Net interface.

setvar pi-net

Uncomment and edit to set a custom config filename for the A314 emulation

setvar a314_conf ./a314/files_pi/a314d.conf

Uncomment to enable A314 emulation

setvar a314

Please take note:

At the time of writing this (22 Jun 2021), the mouse and keyboard forwarding (fo>

It works properly in Workbench, and in a number of games and applications, but i>

Do not rely on the mouse and keyboard forwarding as your only means of input for>

Forward keyboard events to host system, defaults to off unless toggle key is pre>

Syntax: keyboard [grab key] [grab|nograb] [autoconnect|noautoconnect]

"grab" steals the keyboard from the Pi so Amiga/etc. input is not sent to the >

(also helps prevent sending any ctrl-alt-del to the Amiga from resetting the P>

#

"autoconnect" connects the keyboard to the Amiga/etc. on startup

keyboard k nograb noautoconnect

Select a specific filename for the keyboard event source.

This is typically /dev/input/event1 or event0, but it may be event3 with for ins>

Use ls /dev/input/event* to check which event files are available and try until >

kbfile /dev/input/event3

Forward mouse events to host system, defaults to off unless toggle key is presse>

Syntax is mouse [device] [toggle key] [autoconnect|noautoconnect]

(see "keyboard" above for autoconnect description)

mouse /dev/input/mice m noautoconnect

Uncommenting below moves slow ram to the chip ram giving 1MB of chip ram

NOTE: Requires a 1MB ECS Agnus (8372) and a trapdoor memory expansion!

setvar move-slow-to-chip

Swap DF0 with DF1/2/3 - Useful for Kickstart 1.x / Trackloader games that will o>

setvar swap-df0-df 1

@.***:~/pistorm $ sudo ./emulator bitstream.bin --config amiga.cfg [CFG] Set CPU type to 68020. [CFG] ROM identified: Kickstart 3.2 (47.96) 512KB [MUSASHI] Mapped read range 1: 00F80000-01000000 (0x7587e008) [CFG] [MAP 0] Added rom mapping for range 00F80000-00FFFFFF ID: kickstart [CFG] Allocating 268435456 bytes for RAM mapping (256 MB)... [CFG] [MAP 1] Added ram mapping for range 10000000-1FFFFFFF ID: z3_autoconf_fast [CFG] [MAP 2] Added register mapping for range 00DC0000-00DCFFFF ID: None [CFG] Set CPU loop cycles to 300. [CFG] Setting platform to amiga Creating platform config for amiga... [CFG] Adding 41877504 byte (39 MB) RAM mapping rtg_mem... [CFG] [MAP 3] Added ram_noalloc mapping for range 70010000-727FFFFF ID: rtg_mem [AMIGA] RTG Enabled. Platform custom range: 70000000-72810000 Platform mapped range: 00DC0000-72800000 [AMIGA] PISCSI Interface Enabled. [PISCSI] Loaded Boot ROM. Platform custom range: 00E80000-80010000 Platform mapped range: 00DC0000-72800000 [PISCSI] Map 0: [amiga.hdf] - 2113929216 bytes. [PISCSI] CHS: 4096 16 63 Finding partitions. Finding file systems. Done. [PISCSI] Map 6: [platforms/amiga/pistorm.hdf] - 2621440 bytes. [PISCSI] CHS: 160 1 32 Finding partitions. [PISCSI] Partition 0: DH99 (4) Finding file systems. [FSHD] Loaded and set up file system 1: DOS/1 Done. [AMIGA] A314 emulation enabled. [CFG] Enabled keyboard event forwarding, toggle key k. [CFG] Set keyboard event source file to /dev/input/event3. [CFG] Enabled mouse event forwarding from file /dev/input/mice, toggle key m. Performing setup for Amiga platform. No sub system specified. No Z2 Fast RAM configured. 256MB of Z3 Fast RAM configured at $10000000 Platform custom range: 00E80000-80010000 Platform mapped range: 00DC0000-72800000 No IDE drives mounted, disabling Gayle IDE component. Setting CPU type to 4. [PISCSI] Partition 0: DH99 (4) [FSHD] Loaded and set up file system 1: DOS/1 Platform custom range: 00E80000-80010000 Platform mapped range: 00DC0000-72800000 IPL thread running IPL thread created successfully [KBD] Keyboard thread started [MAIN] Keyboard thread created successfully [MAIN] CPU thread created successfully

LemaruX commented 7 months ago

Unfortunately nothing has been attached.

Check the readme on GitHub and you will find a link to the discord server where we have dedicated support channels.

If you head there it will be much easier to provide support than it is here