Skip to content

Commit

Permalink
SDProfiler: update readme (commaai#30479)
Browse files Browse the repository at this point in the history
* update instructions

* fix that

* and that too
  • Loading branch information
jnewb1 authored Nov 20, 2023
1 parent 31ef352 commit 631691c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 8 deletions.
2 changes: 1 addition & 1 deletion selfdrive/debug/profiling/snapdragon/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SnapdragonProfiler/
SnapdragonProfiler/
7 changes: 0 additions & 7 deletions selfdrive/debug/profiling/snapdragon/README

This file was deleted.

13 changes: 13 additions & 0 deletions selfdrive/debug/profiling/snapdragon/README.md
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions selfdrive/debug/profiling/snapdragon/setup-profiler.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 631691c

Please sign in to comment.