分享

Trace32 安装 (pc

 jiffes 2017-08-03

Trace32 属于调试业内最强大的debug工具了,对于做机的人来说,多掌握一种调试手段意味着关键时候多一条解题的路,对于提升工作效率减轻工作量尤为重要。

下面简单介绍ubuntu14.04下安装Trace32的基本步骤。

1、拿到安装包,解压:

android@ubuntu:~$ ls -l
总用量 1712
-rw-rw-r-- 1 android android     80  411 16:09 autorun.inf
-rw-rw-r-- 1 android android 320653  411 16:09 ce.pdf
drwxrwxr-x 6 android android  69632  411 16:14 files
-rw-rw-r-- 1 android android 696099  411 16:09 icd_quick_installation.pdf
-rw-rw-r-- 1 android android 636576  411 16:09 installation.pdf
-rw-rw-r-- 1 android android   1917  411 16:09 known_issues.txt
-rw-rw-r-- 1 android android   7067  411 16:09 readme.txt
-rw-rw-r-- 1 android android     53  411 16:09 setup.bat

2、打开readme.txt,找到Linux版本安装步骤:

INSTALLATION ON PC_LINUX

Copy the /files directory structure from the CD to your disk. The utility "filecvt" should be used to convert the files to unix format. The host specific 32bit files can be found in the /bin/pc_linux directory. The host specific 64bit files can be found in the /bin/pc_linux64 directory.

  1. mount /mnt/cdrom (if not automatically mounted)
  2. mkdir /home/t32 (or similar)
  3. cp -r /mnt/cdrom/files/* /home/t32/ chmod -R u+w /home/t32/*
  4. cp ./demo/practice/t32.cmm /home/t32/
  5. /home/t32/bin/pc_linux64/filecvt /home/t32/
  6. Using an alternative PDF viewer for displaying the TRACE32 help files, please define an environment variable called T32PDFVIEWER. An entry in $home/.profile file looks as follows: export T32PDFVIEWER=/home/t32/bin/pc_linux64/t32_startpdfviewer.sh Please modify the template file to your needs if necessary.
  7. Please refer the installation manual for
    • TRACE32 font installation
    • setting of TRACE32 environment variables
    • modifying the TRACE32 configuration file /home/t32/bin/pc_linux64/config.t32
    • usage of USB interface (udev respectively legacy usbdevfs with hotplug interface)
  8. The start script t32_start.sh is only an example and must be modified to your needs.

The steps from point 7. about installing the fonts, setting environment variables, the modification of file config.t32 and USB interface usage are necessary !!! Please refer the installation guide in the manual for details.

3、按上面的2-8步骤安装即可,这里默认是安装到/home/t32/目录,后面我们会发现其实换成/opt/t32/目录将会更加便于加载分析高通的ramdump,所以这里我们改下安装目录到/opt/t32/.

创建安装目录:
android@ubuntu:~$ sudo mkdir -p /opt/t32

拷贝文件:
android@ubuntu:~$ sudo cp -r files/* /opt/t32/
android@ubuntu:~$ sudo cp files/demo/practice/t32.cmm /opt/t32

权限:
android@ubuntu:~$ sudo chmod -R u+w /opt/t32/*
android@ubuntu:~$ sudo chown android:android -R /opt/t32/*
android@ubuntu:~$ sudo chown android:android -R /usr/tmp

转换:
android@ubuntu:~$ sudo /opt/t32/bin/pc_linux64/filecvt /opt/t32/

增加环境变量:
android@ubuntu:~$ gedit .bashrc &
#Trace32
export T32PDFVIEWER=/opt/t32/bin/pc_linux64/t32_startpdfviewer.sh
export PATH=/opt/t32/bin/pc_linux64/:$PATH

刷新:
android@ubuntu:~$ source .bashrc

修改路径:
/opt/t32/bin/pc_linux64/t32_start.sh 
export T32SYS=/opt/t32

修改下面的注释:
/opt/t32/bin/pc_linux64/config.t32
OS=
SYS=/opt/t32
TMP=/usr/tmp

   4、执行示例脚本打开trace32主界面,搞定!

android@ubuntu:~$ t32_start.sh  &

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多