more robust launcher scripts, 4MiB port 2 card for 48GX

This commit is contained in:
Gwenhael Le Moine 2024-03-26 15:19:57 +01:00
parent e5435d799a
commit 42e6109b3b
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 18 additions and 14 deletions

18
dist/run48.sh vendored
View file

@ -1,19 +1,21 @@
#!/bin/bash -eu #!/bin/bash -eu
STATEDIR=./stateDir.48 cd "$(dirname "$0")" ; CWD=$(pwd)
mkdir -p $STATEDIR
if [ ! -e $STATEDIR/gxrom-r ]; then STATEDIR=$CWD/stateDir.48
mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/gxrom-r ]; then
make -C .. get-roms make -C .. get-roms
cp ../ROMs/gxrom-r $STATEDIR/gxrom-r cp ../ROMs/gxrom-r "$STATEDIR"/gxrom-r
fi fi
RAM='' RAM=''
if [ ! -e $STATEDIR/ram ]; then if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset RAM=-reset
fi fi
[ ! -e $STATEDIR/port1 ] && dd if=/dev/zero of=$STATEDIR/port1 bs=1k count=128 [ ! -e "$STATEDIR"/port1 ] && dd if=/dev/zero of="$STATEDIR"/port1 bs=1k count=128
[ ! -e $STATEDIR/port2 ] && dd if=/dev/zero of=$STATEDIR/port2 bs=1k count=1024 [ ! -e "$STATEDIR"/port2 ] && dd if=/dev/zero of="$STATEDIR"/port2 bs=1k count=4096
./run_saturn -face hp48 -hw hp48 -stateDir $STATEDIR -rom gxrom-r $RAM -port1 port1 -port2 port2 ./run_saturn -face hp48 -hw hp48 -stateDir "$STATEDIR" -rom gxrom-r $RAM -port1 port1 -port2 port2

14
dist/run49.sh vendored
View file

@ -1,10 +1,12 @@
#!/bin/bash -eu #!/bin/bash -eu
STATEDIR=./stateDir.49 cd "$(dirname "$0")" ; CWD=$(pwd)
mkdir -p $STATEDIR
if [ ! -e $STATEDIR/rom.49g ]; then STATEDIR=$CWD/stateDir.49
( cd $STATEDIR mkdir -p "$STATEDIR"
if [ ! -e "$STATEDIR"/rom.49g ]; then
( cd "$STATEDIR"
# wget -c https://www.hpcalc.org/hp49/pc/rom/hp4950v210.zip -O rom.zip # wget -c https://www.hpcalc.org/hp49/pc/rom/hp4950v210.zip -O rom.zip
wget -c https://www.hpcalc.org/hp49/pc/rom/beta1196.zip -O rom.zip wget -c https://www.hpcalc.org/hp49/pc/rom/beta1196.zip -O rom.zip
unzip rom.zip unzip rom.zip
@ -13,8 +15,8 @@ if [ ! -e $STATEDIR/rom.49g ]; then
fi fi
RAM='' RAM=''
if [ ! -e $STATEDIR/ram ]; then if [ ! -e "$STATEDIR"/ram ]; then
RAM=-reset RAM=-reset
fi fi
./run_saturn -face hp49 -hw hp49 -stateDir $STATEDIR -rom rom.49g $RAM ./run_saturn -face hp49 -hw hp49 -stateDir "$STATEDIR" -rom rom.49g $RAM