Trace32 安装 (pc_linux64)

来源:互联网 发布:淘宝脱胶险怎么设置 编辑:程序博客网 时间:2024/06/06 00:36

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.pdfdrwxrwxr-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 &#Trace32export T32PDFVIEWER=/opt/t32/bin/pc_linux64/t32_startpdfviewer.shexport 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.t32OS=SYS=/opt/t32TMP=/usr/tmp

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

android@ubuntu:~$ t32_start.sh  &

image

0 0