[Armadillo:00593] Re: ブートローダーの作成

Fumito Morishima email@hidden
2005年 11月 1日 (火) 19:30:21 JST


森島です。

> 他との絡みでcygwin(意図的に)上のarm-elf-gccで開発していました。

なるほど。開発環境の問題ですね。

> 実験すれば良いことですが、このクロス開発ツールをcygwin上に展開した場合ど
> の様な問題がありますでしょうか。

以前は cygwinを推奨していたのですが、いろいろと問題が発生したので、
現在は coLinux を推奨している経緯があります。

例えば、このMLでも以下のような指摘を受けてます。
http://lists.atmark-techno.com/pipermail/armadillo/2004-May/000009.html

takaya wrote:
> takayaです。
> 
> 森島 様
> 
> 返信有り難う御座います。
> 
> make target=armadillo9
> を実行すると下記メッセージがでます。
> 
> 貼り付け開始
> make -C src/host/common
> make[1]: Entering directory
> `/home/takaya/hermit-1.3-armadillo9-3/src/host/common'
> Makefile:42: crc.d: No such file or directory
> Makefile:42: download.d: No such file or directory
> Makefile:42: eth.d: No such file or directory
> Makefile:42: ethutil.d: No such file or directory
> Makefile:42: flash.d: No such file or directory
> Makefile:42: main.d: No such file or directory
> Makefile:42: memmap.d: No such file or directory
> Makefile:42: options.d: No such file or directory
> Makefile:42: region.d: No such file or directory
> Makefile:42: serial.d: No such file or directory
> Makefile:42: target.d: No such file or directory
> Makefile:42: util.d: No such file or directory
> ../../../depend.sh util.c util.d -Wall -g -I../../../include
> ../../../depend.sh target.c target.d -Wall -g -I../../../include
> ../../../depend.sh serial.c serial.d -Wall -g -I../../../include
> ../../../depend.sh region.c region.d -Wall -g -I../../../include
> ../../../depend.sh options.c options.d -Wall -g -I../../../include
> ../../../depend.sh memmap.c memmap.d -Wall -g -I../../../include
> ../../../depend.sh main.c main.d -Wall -g -I../../../include
> ../../../depend.sh flash.c flash.d -Wall -g -I../../../include
> ../../../depend.sh ethutil.c ethutil.d -Wall -g -I../../../include
> ../../../depend.sh eth.c eth.d -Wall -g -I../../../include
> eth.c:6:29: linux/if_packet.h: No such file or directory
> eth.c:8:27: netinet/ether.h: No such file or directory
> ../../../depend.sh download.c download.d -Wall -g -I../../../include
> ../../../depend.sh crc.c crc.d -Wall -g -I../../../include
> make[1]: Leaving directory
> `/home/takaya/hermit-1.3-armadillo9-3/src/host/common'
> make[1]: Entering directory
> `/home/takaya/hermit-1.3-armadillo9-3/src/host/common'
> Makefile:42: eth.d: No such file or directory
> ../../../depend.sh eth.c eth.d -Wall -g -I../../../include
> eth.c:6:29: linux/if_packet.h: No such file or directory
> eth.c:8:27: netinet/ether.h: No such file or directory
> gcc -Wall -g -I../../../include    -c -o crc.o crc.c
> gcc -Wall -g -I../../../include    -c -o download.o download.c
> download.c: In function `do_download':
> download.c:50: warning: unsigned int format, uint32_t arg (arg 6)
> download.c:54: warning: unsigned int format, uint32_t arg (arg 5)
> gcc -Wall -g -I../../../include    -c -o eth.o eth.c
> eth.c:6:29: linux/if_packet.h: No such file or directory
> eth.c:8:27: netinet/ether.h: No such file or directory
> eth.c: In function `eth_raw_socket':
> eth.c:26: error: `PF_PACKET' undeclared (first use in this function)
> eth.c:26: error: (Each undeclared identifier is reported only once
> eth.c:26: error: for each function it appears in.)
> eth.c:26: error: `ETH_P_ALL' undeclared (first use in this function)
> eth.c: In function `eth_open':
> eth.c:34: error: storage size of 'sa' isn't known
> eth.c:50: error: `AF_PACKET' undeclared (first use in this function)
> eth.c:51: error: `ETH_P_ALL' undeclared (first use in this function)
> eth.c:52: warning: implicit declaration of function `if_nametoindex'
> eth.c:63: error: `ARPHRD_ETHER' undeclared (first use in this function)
> eth.c:34: warning: unused variable `sa'
> make[1]: *** [eth.o] Error 1
> make[1]: Leaving directory
> `/home/takaya/hermit-1.3-armadillo9-3/src/host/common'
> make: *** [host] Error 2
> 貼り付け終了
> 
> software manual version 1.0.6 P23の画面表示が
> [PC ~]$ tar zxf hermit_1.3-armadillo9-1.tar.gz
> で説明も作業用PCと書いてあったので、
> 他との絡みでcygwin(意図的に)上のarm-elf-gccで開発していました。
> 展開ディレクトリ先の各Makefileを読むと
> CC=arm-linux-
> となっているので、Linux上に御社提供のクロス開発ツールを展開するのが大前
> 提のようですね。
> 
> 実験すれば良いことですが、このクロス開発ツールをcygwin上に展開した場合ど
> の様な問題がありますでしょうか。
> 何卒ご教示下さい。
> 
> 
> 
> Fumito Morishima wrote:
> 
>>森島です。
>>
>>
>>
>>>6.includeファイルが見つからないの表示が出て、make失敗
>>
>>
>>この時のコマンドの内容と、エラー出力を記載してもらえますか?
>>
>>takaya wrote:
>>
>>
>>>takayaです。
>>>
>>>皆様、ご教示ください。
>>>
>>>bootloaderの領域を広げようと思い、
>>>1.hermit-at_1.0.0.tar.gzをダウンロード。
>>>2.homeで展開。
>>>3.hermit-at-1.0.0/src/target/armadillo9/memregions.hの
>>>  MTDPARTSを変更。
>>>4.展開dirに移動。
>>>5.make target=armadillo9
>>>6.includeファイルが見つからないの表示が出て、make失敗
>>>7.linux-2.6.12.3-a9-1.tar.gzをダウンロード。
>>>8.7.のinclude/linuxなどを -Iオプションで追加
>>>9.make失敗
>>>
>>>ソフトウェアマニュアルのブートローダの作成項の用に簡単に作成するには
>>>どの様にすれば宜しいでしょうか。
>>>
>>>宜しくお願い致します。
>>>
>>>_______________________________________________
>>>armadillo mailing list
>>>email@hidden
>>>http://lists.atmark-techno.com/mailman/listinfo/armadillo
>>
>>_______________________________________________
>>armadillo mailing list
>>email@hidden
>>http://lists.atmark-techno.com/mailman/listinfo/armadillo
>>
>>
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/mailman/listinfo/armadillo



armadillo メーリングリストの案内