diff --git a/selfdrive/debug/profiling/snapdragon/.gitignore b/selfdrive/debug/profiling/snapdragon/.gitignore index 5d3033efb3db39..80078842a04964 100644 --- a/selfdrive/debug/profiling/snapdragon/.gitignore +++ b/selfdrive/debug/profiling/snapdragon/.gitignore @@ -1 +1 @@ -SnapdragonProfiler/ +SnapdragonProfiler/ \ No newline at end of file diff --git a/selfdrive/debug/profiling/snapdragon/README b/selfdrive/debug/profiling/snapdragon/README deleted file mode 100644 index ee826b413a635d..00000000000000 --- a/selfdrive/debug/profiling/snapdragon/README +++ /dev/null @@ -1,7 +0,0 @@ -snapdragon profiler --------- - -* download from https://developer.qualcomm.com/software/snapdragon-profiler -* unzip to selfdrive/debug/profiling/snapdragon/SnapdragonProfiler -* run ./setup-agnos.sh -* run selfdrive/debug/adb.sh on device diff --git a/selfdrive/debug/profiling/snapdragon/README.md b/selfdrive/debug/profiling/snapdragon/README.md new file mode 100644 index 00000000000000..0bf6cd99e600dd --- /dev/null +++ b/selfdrive/debug/profiling/snapdragon/README.md @@ -0,0 +1,13 @@ +snapdragon profiler +-------- + + +* download from https://developer.qualcomm.com/software/snapdragon-profiler/tools-archive (need a qc developer account) + * choose v2021.5 (verified working with 20.04) +* unzip to selfdrive/debug/profiling/snapdragon/SnapdragonProfiler +* run ```./setup-profiler.sh``` +* run ```./setup-agnos.sh``` +* run ```selfdrive/debug/adb.sh``` on device +* run the ```adb connect xxx``` command that was given to you on local pc (if you changed adb path in previous step, run that version of adb) +* cd to SnapdragonProfiler and run ```./run_sdp.sh``` +* connect to device -> choose device you just setup \ No newline at end of file diff --git a/selfdrive/debug/profiling/snapdragon/setup-profiler.sh b/selfdrive/debug/profiling/snapdragon/setup-profiler.sh new file mode 100755 index 00000000000000..aaec1bf756b8c3 --- /dev/null +++ b/selfdrive/debug/profiling/snapdragon/setup-profiler.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# install depends +sudo apt update +sudo apt-get install libc++1 libc++abi1 default-jre android-tools-adb gtk-sharp2 + +# setup mono +sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF +sudo apt install apt-transport-https ca-certificates +echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list +sudo apt update +sudo apt-get install -y mono-complete + +echo "Setup successful, you should now be able to run the profiler with cd SnapdragonProfiler and ./run_sdp.sh" \ No newline at end of file