水曜日, 3月 21, 2007

jtagをコンパイルしてみる。

メモリを張ったので、その動作チェックのために、超ひさびさに、玄箱をいじってみた。
張ったメモリはマイクロンのMT48LC16M16A2-7E。
買いすぎたので余ってるけど、欲しい人います?
2個で4000円しますけど…(これでも赤字)
#普通に玄箱HG買ったほうが安いなぁ。量産の威力恐るべし。

メモリの量が増えたはずだけど、はんだ付けが甘くて復旧できなくなったら怖いので、
JTAGケーブルも作った。XilinxのPararell互換…のはず。
ピンも立てて、準備完了。あとはJTAGをコンパイルして…

…って通らないじゃん…

ちなみに環境はWin2K、Cygwinです。
http://www.yamasita.jp/BBS/2510.html
とか、
http://www.yamasita.jp/BBS/2417.html
とか、
http://www.google.co.jp/search?hl=ja&client=firefox&rls=org.mozilla%3Aja%3Aofficial&hs=zRz&q=%E7%8E%84%E7%AE%B1++jtag+%E3%82%B3%E3%83%B3%E3%83%91%E3%82%A4%E3%83%AB&btnG=Google+%E6%A4%9C%E7%B4%A2&lr=
とか、
http://nagou.cocolog-nifty.com/haley/2006/05/jtag_dbf4.html
を参考にがんばってるんですけどね…

今の状態は、
・include-0.4.2は./configure、make、make installとも通常終了。
・jtag-0.5.1は、./configureまでOK、makeでエラー。

エラーはこんな感じ。
前の方は特になんともなさそうなんで省略。
****************************************************************
make[5]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux/po
'
test -z "" || make
touch stamp-po
make[4]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux/po
'
make[4]: Entering directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/local/include/openwince -I/usr/local
/include/openwince/device -I/usr/local/include/openwince/arm -I./../include -g
-O2 -Wall -MT cmd_detectflash.o -MD -MP -MF ".deps/cmd_detectflash.Tpo" \
-c -o cmd_detectflash.o `test -f 'cmd/cmd_detectflash.c' || echo './'`
cmd/cmd_detectflash.c; \
then mv -f ".deps/cmd_detectflash.Tpo" ".deps/cmd_detectflash.Po"; \
else rm -f ".deps/cmd_detectflash.Tpo"; exit 1; \
fi
cmd/cmd_detectflash.c: In function `cmd_detectflash_run':
cmd/cmd_detectflash.c:43: error: too few arguments to function `detectflash'
make[4]: *** [cmd_detectflash.o] Error 1
make[4]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1/libbrux'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/jtag-0.5.1/jtag-0.5.1'
make: *** [all] Error 2
****************************************************************

見た感じ関数の引数が違うぞ、といってるけど、
関数の引数は合ってるんですが…
一体俺にどうしろと。

あー、わけわかんね。