x49gp/pull-firmware.sh

24 lines
698 B
Bash
Raw Normal View History

2024-10-21 17:49:33 +02:00
CWD=$(pwd)
TEMPDIR=${TEMPDIR:-$CWD/tmpdir}
FWDIR=${FWDIR:-$CWD/firmware}
2024-10-21 17:49:33 +02:00
mkdir -p "$FWDIR"
mkdir -p "$TEMPDIR"
cd "$TEMPDIR" || exit 1
2024-10-21 17:59:39 +02:00
echo "Retrieving Bootloader from hpcalc.org for HP 49g+ and HP 50g..."
2021-11-21 22:41:31 +01:00
wget https://www.hpcalc.org/hp49/pc/rom/hp-arm-models-bootloader.zip
2024-10-21 17:49:33 +02:00
unzip -j hp-arm-models-bootloader.zip -d "$TEMPDIR"
mv ./*.bin "$FWDIR"/
2024-10-21 17:59:39 +02:00
echo "Retrieving ROM 2.15 from hpcalc.org for HP 49g+ and HP 50g..."
wget https://www.hpcalc.org/hp49/pc/rom/hp4950v215.zip
2024-10-21 17:49:33 +02:00
unzip -j hp4950v215.zip -d "$TEMPDIR"
mv ./*.bin "$FWDIR"/
2024-10-21 17:59:39 +02:00
echo "Retrieving latest Unofficial newRPL build..."
wget https://hpgcc3.org/downloads/newrplfw.bin -O "$FWDIR"/newrplfw.bin
2024-10-21 17:49:33 +02:00
cd "$CWD" || exit 1
rm -rf "$TEMPDIR"