kopia lustrzana https://github.com/open-ham/OpenGD77
Added compiled versions of the tools
rodzic
9954af6754
commit
154aabc1ce
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
let ret=0
|
||||
|
||||
OS=`uname -s`
|
||||
|
||||
FIRMWARE="$(echo ${@:2:1})"
|
||||
|
||||
#Extract destination platform
|
||||
DM1801=$(echo "${@:3:1})" | grep -o DM-1801)
|
||||
GD77S=$(echo "${@:3:1})" | grep -o GD-77S)
|
||||
RD5R=$(echo "${@:3:1})" | grep -o RD-5R)
|
||||
GD77=""
|
||||
|
||||
# Due to similarity between 77 and 77S, first check if it wasn't GD-77S, then
|
||||
# check for GD-77 if it has failed.
|
||||
if [ -z "$GD77S" ]; then
|
||||
GD77=$(echo "${@:3:1})" | grep -o GD-77)
|
||||
fi
|
||||
|
||||
case "$OS" in
|
||||
"Linux")
|
||||
mono "$1/FirmwareLoader-Linux.exe" $GD77 $DM1801 $GD77S $RD5R $FIRMWARE
|
||||
ret=$?
|
||||
;;
|
||||
"Darwin")
|
||||
# doesn't even exist yet. Use Python script instead ?
|
||||
#mono "$1/FirmwareLoader-Darwin.exe" ${@:2}
|
||||
ret=$?
|
||||
;;
|
||||
*)
|
||||
ret=1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit $ret
|
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -0,0 +1,33 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
OS=`uname -s`
|
||||
MODEL=""
|
||||
FILENAME=""
|
||||
|
||||
for e in "$@"; do
|
||||
case "$e" in
|
||||
"DM-1801")
|
||||
MODEL="-m DM-1801"
|
||||
;;
|
||||
"GD-77S")
|
||||
MODEL="-m GD-77S"
|
||||
;;
|
||||
"RD-5R")
|
||||
MODEL="-m RD-5R"
|
||||
;;
|
||||
*)
|
||||
FILENAME="-f $e"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
case "$OS" in
|
||||
"Linux")
|
||||
../tools/bin2sgl.Linux $MODEL $FILENAME
|
||||
;;
|
||||
"Darwin")
|
||||
../tools/bin2sgl.Darwin $MODEL $FILENAME
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* Modified version by Roger VK3KYY - converts bin to SGL file by prepending the header
|
||||
* and encrypting the binary
|
||||
*
|
||||
* Original version...
|
||||
* GD-77 firmware decrypter/encrypter by DG4KLU.
|
||||
*
|
||||
* Copyright (C)2019 Kai Ludwig, DG4KLU
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
Ładowanie…
Reference in New Issue