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
This commit is contained in:
@@ -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
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user