Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ors-root-access
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ors-root-access
Commits
5bffb9e0
Commit
5bffb9e0
authored
Sep 23, 2024
by
Joanne Hugé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add script to patch amarisoft
parent
f5cebde5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
patch-amarisoft.sh
patch-amarisoft.sh
+25
-0
sdr-install.patch
sdr-install.patch
+11
-0
No files found.
patch-amarisoft.sh
0 → 100755
View file @
5bffb9e0
#!/bin/bash
AMARISOFT
=
"
$(
realpath
$1
)
"
VERSION
=
"
$(
echo
$(
basename
$1
)
|
cut
-d
.
-f2
)
"
DIR
=
"
$(
dirname
$(
realpath
$0
))
"
TMP
=
"/tmp/
$VERSION
-
$(
date
+%s
)
"
mkdir
$TMP
cd
$TMP
tar
-xzvf
$AMARISOFT
cd
$VERSION
rm
-f
*
aarch64
*
for
f
in
$(
ls
-1
*
linux
*
.tar.gz
)
;
do
tar
-xzvf
$f
done
cd
trx_sdr-linux-
$VERSION
patch
-p1
kernel/main.c <
$DIR
/kernel-ppm.patch
patch
-p1
install.sh <
$DIR
/sdr-install.patch
cd
..
for
f
in
$(
ls
-1
*
linux
*
.tar.gz
)
;
do
rm
-f
$f
tar
-czvf
$f
"
$(
echo
$f
|
cut
-d
.
-f1
)
"
rm
-rf
"
$(
echo
$f
|
cut
-d
.
-f1
)
"
done
cd
..
tar
-czvf
"
$DIR
/
$(
basename
$AMARISOFT
|
cut
-d
\.
-f1-2
)
.patched.tar.gz"
$VERSION
rm
-rf
$TMP
sdr-install.patch
0 → 100644
View file @
5bffb9e0
--- old-install.sh 2024-09-02 17:43:26.991954439 +0200
+++ install.sh 2024-09-02 17:43:03.472236155 +0200
@@ -651,7 +651,7 @@
CMD+=" -force"
fi
echo "Check firmwares$INFO"
- $CMD
+ #$CMD (ORS PATCH: Don't Upgrade SDR board with sdr_util upgrade)
fi
exit 0
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment