Changes between Version 4 and Version 5 of epics/bbb/debian


Ignore:
Timestamp:
06/21/17 13:35:21 (8 years ago)
Author:
Tetsuya Michikawa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • epics/bbb/debian

    v4 v5  
    103103=== streamdevice ===
    104104
    105 streamdeviceも同じ。
    106 
     105streamdeviceも同じ。[[br]]
     106但し、streamdeviceはgitHubに入っているので、masterをダウンロード。
     107
     108{{{
     109root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/stream
     110root@beaglebone:/opt/epics/R315.5# cd src
     111root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/paulscherrerinstitute/StreamDevice/archive/master.zip
     112root@beaglebone:/opt/epics/R315.5/src# mv master.zip streamdevice.zip
     113root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/stream
     114root@beaglebone:/opt/epics/R315.5/modules/soft/stream# unzip ../../../src/streamdevice.zip
     115root@beaglebone:/opt/epics/R315.5/modules/soft/stream# mv StreamDevice-master 2.7.7
     116root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7/
     117
     118root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# export PATH=/opt/epics/R315.5/base/bin/linux-arm:$PATH
     119root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# makeBaseApp.pl -t support
     120root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# emacs -nw configure/RELEASE
     121
     122SNCSEQ = $(EPICS_BASE)/../modules/soft/seq/2.2.4/
     123ASYN   = $(EPICS_BASE)/../modules/soft/asyn/4-31
     124
     125ここで、/opt/epics/R315.5/modules/soft/stream/2.7.7以下の各ディレクトリにあるMakefileのTOPを変更。
     126
     127TOP=..    -> TOP=.
     128TOP=../.. -> TOP=./..
     129
     130
     131root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# make
     132}}}
    107133
    108134
    109135== modules/instruments ==
    110136
    111 BBBのIOを使うために専用(?)のmoduleをmakeする。
    112 
     137BBBのIOを使うために専用(?)のmoduleをmakeする。[[br]]
     138展開するディレクトリを作成。
     139
     140{{{
     141root@beaglebone:/opt/epics/R315.5/modules# mkdir -p instruments/bbb
     142}}}
    113143
    114144=== devgpio ===
    115145
    116 
    117 
    118 
     146GPIOを使うためのドライバサポート。[[br]]
     147gitHubからダウンロード。
     148
     149{{{
     150root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/epics-devgpio/archive/master.zip
     151root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_devgpio.zip
     152root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb
     153root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_devgpio.zip
     154root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv epics-devgpio-master devgpio
     155root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd devgpio
     156root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# emacs -nw configure/RELEASE
     157
     158SNCSEQ=$(EPICS_BASE)/../modules/soft/seq/2.2.4
     159
     160# EPICS_BASE usually appears last so other apps can override stuff:
     161EPICS_BASE=/opt/epics/R315.5/base
     162
     163root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# make
     164}}}
    119165
    120166=== drvAsynI2C ===
    121167
     168今度はI2Cを使うためのドライバサポート。[[br]]
     169asynとstreamdeviceでI2Cが使えるようになる。[[br]]
     170これもgitHubからダウンロード。[[br]]
     171
     172{{{
     173root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/drvAsynI2C/archive/master.zip
     174root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_asyni2c.zip
     175root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb
     176root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_asyni2c.zip
     177root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv drvAsynI2C-master drvAsynI2C
     178root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd drvAsynI2C
     179root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# emacs -nw configure/RELEASE
     180
     181EPICS_BASE=/opt/epics/R315.5/base
     182ASYN=$(EPICS_BASE)/../modules/soft/asyn/4-31
     183
     184root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# make
     185}}}
     186
     187このままの状態ではstreamdeviceを使った通信ができないので、一緒に入っているパッチをStreamDeviceにあてる必要がある。[[br]]
     188パッチを当てるstreamdeviceは 2.7.7_I2Cとして別にコンパイルしなおす。[[br]]
     189
     190{{{
     191root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# cd /opt/epics/R315.5/modules/soft/stream/
     192root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cp -r 2.7.7 2.7.7_I2C
     193root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7_I2C
     194root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# patch -p2 < /opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C/streamDevice/0001-Added-asynI2C-interface.patch
     195patching file src/AsynDriverInterface.cc
     196patching file streamApp/Makefile
     197can't find file to patch at input line 87
     198Perhaps you used the wrong -p or --strip option?
     199The text leading up to this was:
     200--------------------------
     201|diff --git a/configure/RELEASE b/configure/RELEASE
     202|index bee74c1..b95de67 100644
     203|--- a/configure/RELEASE
     204|+++ b/configure/RELEASE
     205--------------------------
     206File to patch: ^C
     207
     208configure/RELEASEは自分で編集。以下の行を追加。
     209
     210DRVASYNI2C=$(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C
     211
     212root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# make clean;make
     213
     214}}}
     215
     216IOCで使うときには、configure/RELEASEに
     217
     218{{{
     219ASYN       = $(EPICS_BASE)/../modules/soft/asyn/4-31
     220STREAM     = $(EPICS_BASE)/../modules/soft/stream/2.7.7_I2C
     221DRVASYNI2C = $(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C
     222}}}
     223
     224を設定する。
    122225
    123226