http://ds.arm.com/downloads/
# mkdir /usr/local/DS500-Strealine
# cd /home/clementyan/下載/
# mv DS500-BN-00019-r5p0-21rel1.tgz /usr/local/DS500-Strealine
# cd /usr/local/DS500-Strealine
# tar xfva DS500-BN-00019-r5p0-21rel1.tgz
安裝須知
1.先確認容量是否足夠,至少3GB
# df -h
檔案系統 容量 已用 可用 已用% 掛載點
/dev/sda1 2.7G 392M 2.2G 16% /
udev 10M 0 10M 0% /dev
tmpfs 1.6G 9.0M 1.6G 1% /run
/dev/sda3 19G 14G 3.8G 79% /usr
tmpfs 3.8G 321M 3.5G 9% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.8G 0 3.8G 0% /sys/fs/cgroup
/dev/sda6 9.1G 2.5G 6.2G 29% /var
/dev/sda8 68G 13G 52G 20% /home
/dev/sda5 19G 472M 17G 3% /opt
/dev/sda2 88M 48M 35M 58% /boot
tmpfs 777M 4.0K 777M 1% /run/user/0
2.DS-5 Streamline相依32位元函式庫,需要加入ia-32架構的套件,並安裝所需套件。
加入ia-32架構的套件請參考http://clementyan.blogspot.tw/2014/12/debian-64-32-skype.html
安裝所需套件
# apt-get install libasound2:i386 libatk1.0-0:i386 libc6:i386 libcairo2:i386 libfontconfig1:i386 libfreetype6:i386 libgl1-mesa-glx:i386 libglu1-mesa:i386 libglib2.0-0:i386 libgtk2.0-0:i386 libncurses5:i386 libstdc++6:i386 libusb-0.1-4:i386 libx11-6:i386 libxcursor1:i386 libxft2:i386 libxi6:i386 libxp6:i386 libxrandr2:i386 libxrender1:i386 libxt6:i386 libxtst6:i386
底下兩個套件請跟上面套件分開裝
# apt-get install zlib1g:i386 libxmu6:i386 libwebkitgtk-1.0-0
開始安裝
# sh install.sh
# sh install.sh
=============================================
Welcome to the Installer for ARM DS-5 v5.21.1
=============================================
--- Host target check...[x86_64]
.
.
Please answer with one of: 'yes' or 'no/quit'
Do you agree to the above terms and conditions? yes
Please answer with one of: 'yes/y' or 'no/n'
Run installation platform requirement checks? [default: yes]
--- Running installation platform requirement checks
Running dependency check [succeeded]
Where would you like to install to? [default: /usr/local/DS-5_v5.21.1]
Please answer with one of: 'yes/y' or 'no/n'
'/usr/local/DS-5_v5.21.1' does not exist, create? [default: yes]
--- Installing to '/usr/local/DS-5_v5.21.1' (This may take a while...)
Please answer with one of: 'yes/y' or 'no/n'
Install desktop menu item additions? [default: yes]
--- Installing menu entries
Post install stage provides the following functions:
- Set default toolkit selection
- Installation of USB drivers for RealView ICE and DSTREAM hardware units
Please answer with one of: 'yes/y' or 'no/n'
Run post install setup scripts? [default: yes]
--- Running post install setup scripts
No default toolkit set
-----------------------------------
Installation completed successfully
-----------------------------------
To start using ARM DS-5 v5.21.1 either:
- Create a suite sub-shell using /usr/local/DS-5_v5.21.1/bin/suite_exec <shell>
- Launch GUI tools via their desktop menu entries
The Release notes for the product can be found here: file:///usr/local/DS-5_v5.21.1/sw/info/readme.html
=============================================
# cd /usr/local/DS-5_v5.21.1/bin/
# ln -s /usr/local/DS-5_v5.21.1/bin/eclipse /usr/local/bin/eclipse
$ eclipse
/usr/local/bin/eclipse: 11: .: Can't open /usr/local/sw/info/env.sh
# cd /usr/local/DS-5_v5.21.1/
# mv sw ../
$ eclipse
=======================================================================
ARM Energy Probe
安裝driver(Energy Probe driver)
# apt-get install libudev-dev
安裝完後插入電腦會亮綠燈,紅燈表示可能沒裝驅動程式
$ mkdir -p ARM/Energy Probe
=======================================================================
=======================================================================
# cd /usr/local/DS-5_v5.21.1/arm/gator/daemon-src/
# tar xfva gator-daemon.tar.gz
# cd gator-daemon
# make -j4
安裝Cross-compiler
請參考https://clementyan.blogspot.com/b/post-preview?token=cUCg2U0BAAA.79TEz-FdjWbkTg3drVej_w.15Vr6Gq3ZN7PfJLzADNtDA&postId=4001233641543620768&type=POST
編譯arm kernel
Note: 檢查下列參數是否有致能
# cat .config |grep CONFIG_PROFILING
CONFIG_PROFILING=y
# cat .config |grep CONFIG_PERF_EVENTS
CONFIG_PERF_EVENTS=y
# cat .config |grep CONFIG_FTRACE
CONFIG_FTRACE=y
# cat .config |grep CONFIG_HIGH_RES_TIMERS
CONFIG_HIGH_RES_TIMERS=y
# cat .config |grep CONFIG_HW_PERF_EVENTS
CONFIG_HW_PERF_EVENTS=y
# cat .config |grep CONFIG_CPU_FREQ
CONFIG_CPU_FREQ=y
# cat .config |grep CONFIG_GENERIC_TRACER
CONFIG_GENERIC_TRACER=y
# cat .config |grep CONFIG_TRACING
CONFIG_TRACING=y
確認完成後即可開始編譯
請參考https://docs.google.com/document/d/1-Hzek_Z8oJxRrgbZgsZy8ZVgZ9ogM9W4eY5jemhk4mE/edit
下載gator driver source code
https://github.com/ARM-software/gator
# unzip gator-master.zip
# cd gator-master
# cd driver
# make -C /usr/src/linux M=`pwd` ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules -j8
# ls -l gator.ko
-rw-r--r-- 1 root root 100572 7月 24 14:26 gator.ko
# cd ..
# cd daemon
# make CROSS_COMPILE=arm-linux-gnueabihf- -j8
# ls -l g*
-rwxr-xr-x 1 root root 515076 7月 24 14:43 gatord
最後
Reference:
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka14522.html
readme.html
沒有留言:
張貼留言
文章有誤或有問題麻煩您留言告知! 謝謝您~~