Commit 8f9c3a55 authored by Robert Schmidt's avatar Robert Schmidt

Debugging of images with core dumps: improvements

- Four mounting of files, we need the absolute path. Even if the script
  gets relative paths, realpath will give the absolute path
- Correctly recognize and handle gNB images with AW2S support
parent 4340277b
...@@ -10,9 +10,10 @@ die() { ...@@ -10,9 +10,10 @@ die() {
exit 1 exit 1
} }
# for mounting into docker, need absolute path -> realpath
IMAGE=$1 IMAGE=$1
COREDUMP=$2 COREDUMP=$(realpath $2)
SOURCES=$3 SOURCES=$(realpath $3)
set -x set -x
...@@ -32,6 +33,9 @@ docker image inspect $IMAGE > /dev/null || exit 1 ...@@ -32,6 +33,9 @@ docker image inspect $IMAGE > /dev/null || exit 1
if [ $(grep "oai-gnb:" <<< $IMAGE) ] || [ $(grep "oai-gnb-aerial:" <<< $IMAGE) ]; then if [ $(grep "oai-gnb:" <<< $IMAGE) ] || [ $(grep "oai-gnb-aerial:" <<< $IMAGE) ]; then
EXEC=bin/nr-softmodem EXEC=bin/nr-softmodem
TYPEPATH=oai-gnb TYPEPATH=oai-gnb
elif [ $(grep "oai-gnb-aw2s:" <<< $IMAGE) ]; then
EXEC=bin/nr-softmodem
TYPEPATH=oai-gnb-aw2s
elif [ $(grep "oai-nr-ue:" <<< $IMAGE) ]; then elif [ $(grep "oai-nr-ue:" <<< $IMAGE) ]; then
EXEC=bin/nr-uesoftmodem EXEC=bin/nr-uesoftmodem
TYPEPATH=oai-nr-ue TYPEPATH=oai-nr-ue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment