[Suzaku:02073] Re: 開発環境が構築できません

mizo email@hidden
2011年 2月 16日 (水) 15:16:31 JST


溝渕です。

> chmod 754 /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/rc.sysinit
> chmod:
`/home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/rc.sysinit'にアク
セスできません:
> そのようなファイルやディレクトリはありません
> make[1]: *** [romfs] エラー 1

上記エラーが出ている箇所は、
atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL/Makefile
の以下の箇所になります。

269: # At last, change the permission of boot scripts
270: 	chmod 754 $(ROMFSDIR)/etc/rc.sysinit

atmark-dist-20090318/romfs/etc/rc.sysinit
は同じMakefileの以下の場所で作られます。

187: ifdef CONFIG_USER_BUSYBOX_INIT
188:	$(ROMFSINST) etc/rc/sysinit /etc/rc.sysinit

atmark-distのコンフィギュレーションで、BusyBoxのinitを外すなどされました
か?以下のコマンドを入力し、"CONFIG_USER_BUSYBOX_INIT"が"y"になっていな
ければエラーとなってしまいます。
[pc]$ cd atmark-dist-20090318
[pc]$ grep CONFIG_USER_BUSYBOX_INIT config/.config
CONFIG_USER_BUSYBOX_INIT=y

一度SUZAKUスターターキットのデフォルト設定でビルドしてみていただけますで
しょうか?

atmark-distのコンフィギュレーションをデフォルト設定にする方法は、
「SUZAKUスターターキットガイド(Linux開発編) [SUZAKU-V]」の「4.2.2. デ
フォルト設定」が参考になると思います。マニュアルは以下のURLより取得でき
ます。

[スターターキット: ダウンロード]
http://suzaku.atmark-techno.com/series/stk/download

> また、合わせて動作確認ずみのlinuxのディストリビューションを教えていた
だけると
> 幸です。

ATDE2は、SUZAKUの開発環境があらかじめインストールされたVMware仮想マシン
のデータイメージです。ATDE2は以下のURLより取得できます。

[ATDE]
http://suzaku.atmark-techno.com/atde

以上ご確認ください。

tatsuhiro nakamura wrote:
> 朱雀メーリングリストへ
> 
> はじめまして。
> このたびシステム開発のためsuzakuのstarterkitをはじめ、
> 複数購入しました。
> ubuntu10.10の32bitマシンに開発環境を構築しようとしましたが、
> エラーでインストールできません。
> 過去のメーリングリストを参考に
> 
> 
> [PC]$ sudo echo "deb http://download.atmark-techno.com/debian etch/" >>
> /etc/apt/sources.list
> [PC]$ sudo apt-get update
> [PC]$ sudo apt-get install atde-essential-powerpc
> ののち、
> 
> [PC]$ wget
> http://suzaku.atmark-techno.com/files/downloads/suzaku/dist/atmark-dist-20080717.tar.gz
> [PC]$ wget
> http://suzaku.atmark-techno.com/files/downloads/suzaku/dist/linux-2.6.18-at9.tar.gz
> [PC]$ tar zxvf atmark-dist-20080717.tar.gz
> [PC]$ tar zxvf linux-2.6.18-at9.tar.gz
> [PC]$ ls
> atmark-dist-20080717         linux-2.6.18-at9
> atmark-dist-20080717.tar.gz  linux-2.6.18-at9.tar.gz
> [PC]$ cd atmark-dist-20080717
> [PC]$ ln -s ../linux-2.6.18-at9 linux-2.6.x
> [PC]$ make menuconfig
> 
> の指示にしたがってatmark-dist-20090318 とlinux-2.6.18-at11
> に読み替えて実行してます。
> また開発PCで
> file 4.12-1 以降Determines file type using “magic” numbers
> genext2fs 1.3-7.1-cvs20050225 ext2 filesystem generator for embedded
> system
> genromfs 0.5.1-3 以降This is the mkfs equivalent for romfs
> filesystem
> libncurses5-dev 5.4-4 以降Developer’s libraries and docs for ncurses
> perl 5.8.4-8 以降Larry Wall's Practical Extraction and Report
> Language
> sed 4.1.2-8 以降The GNU sed stream editor
> zlib1g-dev 1.2.2-4 以降compression library - development
> 
> のインストールはしました。
> 
> 以下にエラーログをつけます。
> どなたか、対処法が見当できるかた返信お願いします。
> また、合わせて動作確認ずみのlinuxのディストリビューションを教えていただけると
> 幸です。
> 
> 
> make ARCH=ppc CROSS_COMPILE=powerpc-linux- -C
> /home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL/.
> make[1]: ディレクトリ
> `/home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL'
> に入ります
> for i in  ; do make -C $i || exit  ; done
> make[1]: ディレクトリ
> `/home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL'
> から出ます
> make ARCH=ppc CROSS_COMPILE=powerpc-linux- -C
> /home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL/.
> romfs
> make[1]: ディレクトリ
> `/home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL'
> に入ります
> [ -d /home/nakamura/suzaku/atmark-dist-20090318/romfs/$i ] || mkdir -p
> /home/nakamura/suzaku/atmark-dist-20090318/romfs
> for i in bin dev dev/flash etc home lib mnt proc sbin usr var; do \
>                [ -d
> /home/nakamura/suzaku/atmark-dist-20090318/romfs/$i ] || mkdir
> -p /home/nakamura/suzaku/atmark-dist-20090318/romfs/$i; \
>        done
> for i in  ; do make -C $i romfs || exit  ; done
> mkdir -p /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/init.d
> mkdir -p /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/rc.d
> for i in tty,c,5,0      console,c,5,1   mem,c,1,1     kmem,c,1,2
> null,c,1,3 ttyS0,c,4,64 zero,c,1,5     random,c,1,8    urandom,c,1,9
> ptyp0,c,2,0    ptyp1,c,2,1     ptyp2,c,2,2   ptyp3,c,2,3 ptyp4,c,2,4
>  ptyp5,c,2,5     ptyp6,c,2,6   ptyp7,c,2,7 ptyp8,c,2,8    ptyp9,c,2,9
>   ptypa,c,2,10  ptypb,c,2,11 ptypc,c,2,12   ptypd,c,2,13
> ptype,c,2,14  ptypf,c,2,15 ttyp0,c,3,0    ttyp1,c,3,1     ttyp2,c,3,2
>  ttyp3,c,3,3 ttyp4,c,3,4    ttyp5,c,3,5     ttyp6,c,3,6   ttyp7,c,3,7
> ttyp8,c,3,8    ttyp9,c,3,9     ttypa,c,3,10  ttypb,c,3,11 ttypc,c,3,12
>  ttypd,c,3,13    ttype,c,3,14  ttypf,c,3,15
> mtd0,c,90,0     mtdr0,c,90,1    mtdblock0,b,31,0
> mtd1,c,90,2     mtdr1,c,90,3    mtdblock1,b,31,1
> mtd2,c,90,4     mtdr2,c,90,5    mtdblock2,b,31,2
> mtd3,c,90,6     mtdr3,c,90,7    mtdblock3,b,31,3 mtd4,c,90,8
>        mtdr4,c,90,9    mtdblock4,b,31,4 mtd5,c,90,10
>        mtdr5,c,90,11   mtdblock5,b,31,5 mtd6,c,90,12
>        mtdr6,c,90,13   mtdblock6,b,31,6 mtd7,c,90,14
>        mtdr7,c,90,15   mtdblock7,b,31,7 sil7segc,c,65,0; do \
>                touch /home/nakamura/suzaku/atmark-dist-20090318/romfs/dev/@$i; \
>        done
> for i in all,c,90,0 fpga,c,90,2 boot,c,90,4 config,c,90,6 image,c,90,8
> kernel,c,90,10 user,c,90,12; do \
>                touch
> /home/nakamura/suzaku/atmark-dist-20090318/romfs/dev/flash/@$i; \
>        done
> romfs-inst.sh -s /var/tmp /tmp
> romfs-inst.sh etc/host.conf /etc/host.conf
> romfs-inst.sh etc/hosts /etc/hosts
> romfs-inst.sh etc/hosts.allow /etc/hosts.allow
> romfs-inst.sh etc/hosts.deny /etc/hosts.deny
> romfs-inst.sh etc/nsswitch.conf /etc/nsswitch.conf
> romfs-inst.sh etc/protocols /etc/protocols
> romfs-inst.sh etc/rpc /etc/rpc
> romfs-inst.sh -A ^root: -a "root:mBXPTTOUwAavE:0:0::/:/bin/sh" /etc/passwd
> romfs-inst.sh -A ^nobody: -a "nobody:!:65534:65534::/tmp:" /etc/passwd
> romfs-inst.sh -e CONFIG_USER_NET_TOOLS_HOSTNAME \
>                        etc/rc/hostname /etc/init.d/hostname
> romfs-inst.sh -e CONFIG_USER_SYSUTILS_HOSTNAME  \
>                        etc/rc/hostname /etc/init.d/hostname
> romfs-inst.sh -e CONFIG_USER_BUSYBOX_HOSTNAME \
>                        etc/rc/hostname /etc/init.d/hostname
> [ -e /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/init.d/hostname ] && \
>                romfs-inst.sh -a "/bin/hostname SUZAKU-V.SZ410-SIL"
> /etc/init.d/hostname
> make[1]: [romfs] エラー 1 (無視されました)
> [ -e /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/init.d/hostname ] && \
>                romfs-inst.sh -s /etc/init.d/hostname /etc/rc.d/S30hostname
> make[1]: [romfs] エラー 1 (無視されました)
> romfs-inst.sh etc/resolv.conf /etc/resolv.conf
> romfs-inst.sh etc/rc/ifconfig /etc/init.d/network
> romfs-inst.sh -s /etc/init.d/network /etc/rc.d/S40network
> romfs-inst.sh -e CONFIG_USER_INETD_INETD \
>                        etc/rc/inetd /etc/init.d/inetd
> romfs-inst.sh -e CONFIG_USER_INETD_INETD \
>                        -s /etc/init.d/inetd /etc/rc.d/S50inetd
> romfs-inst.sh ../../Generic/romfs/etc/services /etc/services
> chmod 754 /home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/rc.sysinit
> chmod: `/home/nakamura/suzaku/atmark-dist-20090318/romfs/etc/rc.sysinit'にアクセスできません:
> そのようなファイルやディレクトリはありません
> make[1]: *** [romfs] エラー 1
> make[1]: ディレクトリ
> `/home/nakamura/suzaku/atmark-dist-20090318/vendors/AtmarkTechno/SUZAKU-V.SZ410-SIL'
> から出ます
> make: *** [romfs] エラー 2
> _______________________________________________
> suzaku mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/suzaku
> 




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