[Suzaku:01294] SUZAKU-Vスターターキットの開発について
Kensuke TAKITA
email@hidden
2008年 11月 21日 (金) 20:01:55 JST
お世話になっております,滝田@ハイボット です.
最近,SUZAKU-Vスターターキット(SZ410-SIL)を使い始めた者です.開発環境の
整備をしているのですが,どうしてもうまくいかないので,相談させてください.
使っている開発環境は,DELL PRECISION M65にUbuntu Desktop 日本語 Remix CD
をつかって,Ubuntu 8.10をいれたものです.
必要なツール類は,
http://suzaku.atmark-techno.com/filebrowser/cross-dev/powerpc/deb
からダウンロードし,インストールしてあります.そのほか必要なパッケージ・
ダウンローダはインストール済みです.
suzaku_starter_kit_guide_linux_ja-2.0.1.pdfの「4.1.atmark-distについて」
にそって,atmark-dist-20080717.tar.gz,linux-2.6.18-at9.tar.gzを展開し,
atmark-dist-20080717のしたにlinux-2.6.xとして,linux-2.6.18-at9にシンボ
リックリンクをはりました.コンフィギュレーションも同PDFの4.2にあるとおり,
項目を選択してあります.
x x --- Select the Vendor you wish to target x x
x x (AtmarkTechno) Vendor x x
x x --- Select the Product you wish to target x x
x x (SUZAKU-V.SZ410-SIL) AtmarkTechno Products
x x --- Kernel is linux-2.6.x x x
x x (default) Cross-dev x x
x x (None) Libc Version x x
x x [*] Default all settings (lose changes) (NEW) x x
x x [ ] Customize Kernel Settings (NEW) x x
x x [ ] Customize Vendor/User Settings (NEW) x x
x x [ ] Update Default Vendor Settings (NEW) x x
カーネルコンフィギュレーションを保存する(同pdf中の図4-8)のあとENTERを押
すと下記のような文言が表示されます.
Saving your kernel configuration...
*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
Badly placed ()'s.
*********************** NOTICE ****************************
There is no preset config for linux-2.6.x on platform AtmarkTechno/SUZAKU-V.SZ410-SIL.
If you choose to continue you will have to setup a linux
config from scratch which is a very complex task.
You will find it easier if you can copy a config.linux-2.6.x
from another platform that is similar.
If you know what you are doing press <ENTER> otherwise
Type ^C to abort.
ここでさらにENTERを押します.
このあと質問事項に入っていきます
.
*
* Processor
*
Processor Type
> 1. 6xx/7xx/74xx/52xx/82xx/83xx (6xx) (NEW)
2. 40x (40x) (NEW)
3. 44x (44x) (NEW)
4. 8xx (8xx) (NEW)
5. e200 (E200) (NEW)
6. e500 (E500) (NEW)
choice[1-6]:
と聞かれるので,2を選択します.次に,
*
* IBM 4xx options
*
Machine Type
1. Bubinga (BUBINGA) (NEW)
2. CPCI405 (CPCI405) (NEW)
3. EP405/EP405PC (EP405) (NEW)
4. Redwood-5 (REDWOOD_5) (NEW)
5. Redwood-6 (REDWOOD_6) (NEW)
6. SUZAKU-V SZ310 (SUZAKU_SZ310) (NEW)
7. SUZAKU-V SZ410 (SUZAKU_SZ410) (NEW)
8. Sycamore (SYCAMORE) (NEW)
> 9. Walnut (WALNUT) (NEW)
10. Xilinx-ML300 (XILINX_ML300) (NEW)
11. Xilinx-ML403 (XILINX_ML403) (NEW)
choice[1-11]: 9 <−これは私が選択したのではなく選択されてました.
PPC4xx DMA controller support (PPC4xx_DMA) [N/y] (NEW)
と聞かれるので,デフォルトのままにします.その後もすべてデフォルトのまま
にします.
最後に,
*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.
make[2]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717/config' から出ます
make[1]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717' から出ます
と表示されてコマンドプロンプトに帰ってくる.
そこで,makeと打つと,
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function ‘get_src_version’:
scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: 警告: unused variable ‘filelist’
make[3]: *** [scripts/mod/sumversion.o] エラー 1
make[2]: *** [scripts/mod] エラー 2
make[1]: *** [scripts] エラー 2
make[1]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/linux-2.6.18-at9' から出ます
make: *** [linux] エラー 1
とでるので,sumversion.cをエディターで開いて,/usr/include/linux/limits.h
を参考にPATH_MAXを4096に書き換える.makeを再度実行すると,こんどは,
CC [M] drivers/mtd/nand/nand_base.o
drivers/mtd/nand/nand_base.c: In function ‘nand_get_flash_type’:
drivers/mtd/nand/nand_base.c:2286: error: ‘NFMS’ undeclared (first use in this function)
drivers/mtd/nand/nand_base.c:2286: error: (Each undeclared identifier is reported only once
drivers/mtd/nand/nand_base.c:2286: error: for each function it appears in.)
drivers/mtd/nand/nand_base.c:2286: error: ‘NFMS_BIT’ undeclared (first use in this function)
でとまるので,該当箇所(2285-2287行)をコメントアウトする.
で,とりあえず,カーネルのコンパイルは終了してzimageが出来て,
powerpc-linux-gcc -o dhcpcd arp.o buildmsg.o client.o dhcpcd.o peekfd.o signals.o udpipgen.o
make[2]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717/user/dhcpcd-new' から出ます
make[2]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717/user/flatfsd_old' に入ります
make[2]: *** `all' に必要なターゲット `ERROR-no-flatfsd-storage-type-defined' を make するルールがありません. 中止.
make[2]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717/user/flatfsd_old' から出ます
make[1]: *** [all] エラー 2
make[1]: ディレクトリ `/home/takita/works/CROSS/SUZAKU/atmark-dist-20080717/user' から出ます
make: *** [subdirs] エラー 1
というところで,引っかかっています.
マニュアルにはこういうエラー時の記載は無いのですが,本来エラーは起きない
と言うことなのでしょうか?
だとすると何が間違っているのでしょうか?
何かご意見等いただけると幸いです.
以上,よろしくお願いいたします.
--------------------------------------------------------------------------
Kensuke TAKITA <email@hidden>
at HiBot Corp.
Addr: 201 University Corporate Relations Bldg.,
2-10-1 Kamata, Ota-ku Tokyo, 144-0052 JAPAN
Tel/Fax: +81-3-5876-5888
--------------------------------------------------------------------------
suzaku メーリングリストの案内