captain-amygdala / pistorm

68k Hardware Emulator
MIT License
741 stars 104 forks source link

Created installer and update script to automate installation of PiStorm #38

Closed daniel-mrd-andersson closed 3 years ago

daniel-mrd-andersson commented 3 years ago

To simplify the installation and update process for users that are not that Linux experience a scripts for installation and update is created included an readme on how to enable WiFi and SSH directly when writing Linux image to SD card.

Added option to install Samba to ease the copying of files (roms/hdd images) to/from PiStorm Pi and also allowing for changes of config files via share.

PiStorm is added as a Linux service that starts when Pi is booted.

Script also install all needed decencies and updates the OS during installation.

LemaruX commented 3 years ago

You don't need to ask what version of PiStorm they have, as the revision is totally irrelevant. What matters is what CPLD is fitted as both rev A and rev B can use either EPM240 or EPM570. Your script as it stands, won't work if they choose rev A but have an EPM240 fitted

A better solution would be to just use flash.sh, which has superceded nprog.sh, as it will automatically detect the CPLD type and flash the correct bitstream. There is no need to use either of the nprog commands anymore, as flash.sh should always be present in the current repo

Blackbandit1804 commented 3 years ago

Hello, I used the new linux_install script today that worked so far but when I try a .hdf in the config I get this error

[PISCSI] Could not open PISCSI Boot ROM file for reading!

I get the same error with setvar piscsi6 platforms/amiga/pistorm.hdf

[AMIGA] PISCSI Interface Enabled. [PISCSI] Could not open PISCSI Boot ROM file for reading! Platform custom range: 00E80000-80010000 Platform mapped range: 00200000-72800000 [PISCSI] Failed to open file platforms/amiga/pistorm.hdf, could not map drive 6.

the path to the .hdf files are all corect

MfG Blackbandit1804

ghost commented 3 years ago

@daniel-mrd-andersson This installer script can't possibly work. You set the working directory to /srv/pistorm, but the data folder structure is not preserved there, and none of the necessary files from for instance the various /platforms/amiga/ subdirectories are available there either. The RTG needs the shader files from /platforms/amiga/rtg, PiSCSI needs the boot ROM from /platforms/amiga/piscsi, and there may be other relative paths used that I don't remember at the moment.

The PiStorm software is in active development, and running it from anywhere but the base directory where it is being built is not supported in any way. default.cfg will also be going away soon and get renamed to amiga.cfg. If you have any questions about what directory structures and files are needed at a minimum to provide an install script like this to users, you are welcome to ask on Discord in #software-pi or similar, but for now I'm going to have to revert these commits from the main repo.

daniel-mrd-andersson commented 3 years ago

Hello, I used the new linux_install script today that worked so far but when I try a .hdf in the config I get this error

[PISCSI] Could not open PISCSI Boot ROM file for reading!

An update to /etc/systemd/system/pistorm.service will fix this, change WorkingDirectory in that file to

WorkingDirectory=/usr/local/src/pistorm