[NEEK][Linux]組み込みLinuxまでの手順(7)(SOPC Builder)

Qsysではptfファイルが生成されないので、諦めてSOPC Builderで試す。

    参考資料: FPGAボードで学ぶ組込みシステム開発入門 [Altera編]

  ・cd /home/bob
   tar xvf download/nios2-linux-20090730.tar

  ・チェックアウトする。cd /home/bob/nios2-linux

[root@localhost nios2-linux]# ./checkout
Checking out files: 100% (6071/6071), done.
Checking out files: 100% (20582/20582), done.
Checking out files: 100% (28092/28092), done.
Checking out files: 100% (8238/8238), done.
Checking out files: 100% (106483/106483), done.



  ・ツールチェーン関連作業は既に以下データでやってるので省略。
    /home/bob/download/nios2gcc-20080203.tar.bz2

  ・SOPC Builderで、uclinux搭載用システム作る。
     NiosII /f、Interval Timer、JTAG UART、SSRAM、CFI(Common Flash Interface)、
      System ID、Avalon-MM Pipeline Bridge、Avalon-MM Tristate Bridge

  ・これまでやった作業履歴を使い、以下コマンドから再開。

[root@localhost uClinux-dist]# make vendor_hwselect SYSPTF=/mnt/hgfs/vm_share/uclinux.ptf
make ARCH=nios2nommu -C vendors vendor_hwselect
make[1]: Entering directory `/home/bob/uClinux-dist/vendors'
make -C /home/bob/uClinux-dist/vendors/Altera/nios2nommu/. dir_v=/home/bob/uClinux-dist/vendors/Altera/nios2nommu/. -f /home/bob/uClinux-dist/vendors/vendors-common.mak vendor_hwselect
make[2]: Entering directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/uClinux-dist/linux-2.6.x hwselect
no emulation specific options.
make[3]: Entering directory `/home/bob/uClinux-dist/linux-2.6.x'
RUNNING hwselect

--- Please select which CPU you wish to build the kernel against:

(1) cpu - Class: altera_nios2 Type: f Version: 7.08110

Selection: 1

--- Please select a device to upload the kernel to:

(1) cfi_flash
Class: altera_avalon_cfi_flash
Size: 67108864 bytes

Selection: 1

--- Please select a device to execute kernel from:

(1) ssram
Class: altera_avalon_cy7c1380_ssram
Size: 1048576 bytes

Selection: 1

--- Summary using

PTF: /mnt/hgfs/vm_share/uclinux.ptf
CPU: cpu
Device to upload to: cfi_flash
Program memory to execute from: ssram

--- Settings written to /home/bob/uClinux-dist/linux-2.6.x/arch/nios2nommu/hardware.mk

make[3]: Leaving directory `/home/bob/uClinux-dist/linux-2.6.x'
make[2]: Leaving directory `/home/bob/uClinux-dist/vendors/Altera/nios2nommu'
make[1]: Leaving directory `/home/bob/uClinux-dist/vendors'



  ・SSRAMとFlashの2つ構成でやり直し。/home/bob/nios2-linux/uClinux-distに移動して以下実行。

[root@localhost uClinux-dist]# make vendor_hwselect SYSPTF=/mnt/hgfs/vm_share/uclinux.ptf
make ARCH=nios2 -C vendors vendor_hwselect
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors'
make -C /home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/bob/nios2-linux/uClinux-dist/vendors/vendors-common.mak vendor_hwselect
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
[ -d /home/bob/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /home/bob/nios2-linux/uClinux-dist/romfs
make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/nios2-linux/uClinux-dist/../linux-2.6 O=/home/bob/nios2-linux/uClinux-dist/linux-2.6.x hwselect
make[3]: Entering directory `/home/bob/nios2-linux/linux-2.6'
no emulation specific options.
no emulation specific options.
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
GEN /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s arch/nios2/Kconfig
no emulation specific options.
RUNNING hwselect

--- Please select which CPU you wish to build the kernel against:

(1) cpu - Class: altera_nios2 Type: f Version: 7.08110

Selection: 1

--- Please select a device to execute kernel from:

(1) cfi_flash
Class: altera_avalon_cfi_flash
Size: 67108864 bytes

(2) ssram
Class: altera_avalon_cy7c1380_ssram
Size: 1048576 bytes

Selection: 2

--- Summary using

PTF: /mnt/hgfs/vm_share/uclinux.ptf
CPU: cpu
Program memory to execute from: ssram

--- Settings written to /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/hardware.mk

make[3]: Leaving directory `/home/bob/nios2-linux/linux-2.6'
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors'



  ・同じDIRでmakeを実行すると、10分ほどコンパイルされて、以下のようにimage/zImageが生成された。



make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/init'
[ ! -d "sash" ] || ( touch sash/.sgbuilt_user && make -C sash ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/sash'
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o sash.o sash.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o cmds.o cmds.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o cmd_uclinux.o cmd_uclinux.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o ls.o ls.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o hexdump.o hexdump.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o df.o df.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o free.o free.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o hostname.o hostname.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o date.o date.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o ps.o ps.c
make -j1 -C libsash
make[4]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/sash/libsash'
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_intflag -o intflag.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a intflag.o
nios2-linux-uclibc-ar: creating libsash.a
a - intflag.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_modestring -o modestring.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a modestring.o
a - modestring.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_timestring -o timestring.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a timestring.o
a - timestring.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_isadir -o isadir.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a isadir.o
a - isadir.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_copyfile -o copyfile.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a copyfile.o
a - copyfile.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_buildname -o buildname.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a buildname.o
a - buildname.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_expandwildcards -o expandwildcards.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a expandwildcards.o
a - expandwildcards.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_namesort -o namesort.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a namesort.o
a - namesort.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_match -o match.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a match.o
a - match.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_makeargs -o makeargs.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a makeargs.o
a - makeargs.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_makestring -o makestring.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a makestring.o
a - makestring.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_chunks -o chunks.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a chunks.o
a - chunks.o
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DCONFIG_USER_SASH_PS -DCOMMAND_HISTORY -I../ -DL_expandenvvar -o expandenvvar.o -c utils.c
nios2-linux-uclibc-ar rv libsash.a expandenvvar.o
a - expandenvvar.o
nios2-linux-uclibc-ranlib libsash.a
make[4]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/sash/libsash'
nios2-linux-uclibc-gcc -Wl,-d -Wl,-elf2flt -L/home/bob/nios2-linux/uClinux-dist/staging/usr/lib -o sh sash.o cmds.o cmd_uclinux.o ls.o hexdump.o df.o free.o hostname.o date.o ps.o libsash/libsash.a
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/sash'
[ ! -d "telnetd" ] || ( touch telnetd/.sgbuilt_user && make -C telnetd ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/telnetd'
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o telnetd.o telnetd.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o state.o state.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o termstat.o termstat.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o slc.o slc.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o sys_term.o sys_term.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o utility.o utility.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o global.o global.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o authenc.o authenc.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o logwtmp.o logwtmp.c
nios2-linux-uclibc-gcc -O2 -g -fno-builtin -DPARANOID_TTYS -DUSE_TERMIO -DKLUDGELINEMODE -D_GNU_SOURCE -Wall -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/home/bob/nios2-linux/uClinux-dist -I/home/bob/nios2-linux/uClinux-dist/linux-2.6.x/include -I/home/bob/nios2-linux/uClinux-dist/staging/usr/include -D__adjtimex=adjtimex -c -o logout.o logout.c
nios2-linux-uclibc-gcc -Wl,-d -Wl,-elf2flt -L/home/bob/nios2-linux/uClinux-dist/staging/usr/lib -o telnetd telnetd.o state.o termstat.o slc.o sys_term.o utility.o global.o authenc.o logwtmp.o logout.o -lutil
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/telnetd'
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user'
rm -f /home/bob/nios2-linux/uClinux-dist/images/romfs-inst.log
for dir in vendors lib user ; do [ ! -d $dir ] || make ARCH=nios2 -C $dir romfs || exit 1 ; done
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors'
make -C /home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/bob/nios2-linux/uClinux-dist/vendors/vendors-common.mak romfs
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
[ -d /home/bob/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /home/bob/nios2-linux/uClinux-dist/romfs
for i in bin sbin dev etc home lib mnt proc usr var sys tmp etc/config etc/default etc/dhcpc home/ftp home/httpd home/httpd/cgi-bin usr/bin usr/sbin usr/share /usr/share/udhcpc; do \
[ -d /home/bob/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /home/bob/nios2-linux/uClinux-dist/romfs/$i; \
done
chmod 777 /home/bob/nios2-linux/uClinux-dist/romfs/tmp
chmod 777 /home/bob/nios2-linux/uClinux-dist/romfs/home/ftp
romfs-inst.sh ../../Generic/romfs /
24 blocks
romfs-inst.sh -s /bin/init /init
romfs-inst.sh /etc/inittab
romfs-inst.sh /etc/rc
romfs-inst.sh /etc/TZ
romfs-inst.sh /etc/passwd
romfs-inst.sh /etc/group
romfs-inst.sh /etc/hosts
romfs-inst.sh /etc/host.conf
romfs-inst.sh /etc/ftpwelcome
romfs-inst.sh /etc/ftpusers
romfs-inst.sh -o y -d /etc/boa/boa.conf
romfs-inst.sh -o y -d /home/httpd/favicon.ico
romfs-inst.sh /etc/mime.types
romfs-inst.sh /usr/share/udhcpc/default.script
chmod 777 /home/bob/nios2-linux/uClinux-dist/romfs/usr/share/udhcpc/default.script
echo "Altera/nios2 Version 3.2.0 -- " `date` > /home/bob/nios2-linux/uClinux-dist/romfs/etc/version
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors'
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/lib'
for i in ; do \
[ ! -d $i ] || make -C $i romfs || exit $? ; \
done
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/lib'
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user'
for i in boa busybox cgi_generic dhcpcd-new ftp ftpd games inetd init sash telnetd /home/bob/nios2-linux/uClinux-dist/prop ; do \
[ ! -d $i ] || make -C $i romfs || exit $? ; \
done
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/boa'
romfs-inst.sh build-boa-0.94.14rc21/src/boa /bin/boa
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/boa'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/busybox'
rm -rf build-busybox/"./_install"
make -C build-busybox install
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/busybox/build-busybox'
make -C /home/bob/nios2-linux/uClinux-dist/user/busybox/busybox O=/home/bob/nios2-linux/uClinux-dist/user/busybox/build-busybox install
Using /home/bob/nios2-linux/uClinux-dist/user/busybox/busybox as source for busybox
GEN /home/bob/nios2-linux/uClinux-dist/user/busybox/build-busybox/Makefile
./_install/bin/cp -> busybox
./_install/bin/dd -> busybox
./_install/bin/dmesg -> busybox
./_install/bin/login -> busybox
./_install/bin/mount -> busybox
./_install/bin/netstat -> busybox
./_install/bin/ping -> busybox
./_install/bin/rm -> busybox
./_install/sbin/ifconfig -> ../bin/busybox
./_install/sbin/insmod -> ../bin/busybox
./_install/sbin/lsmod -> ../bin/busybox
./_install/sbin/modprobe -> ../bin/busybox
./_install/sbin/rmmod -> ../bin/busybox
./_install/sbin/route -> ../bin/busybox
./_install/usr/bin/passwd -> ../../bin/busybox
./_install/usr/bin/wget -> ../../bin/busybox


--------------------------------------------------
You will probably need to make your busybox binary
setuid root to ensure all configured applets will
work properly.
--------------------------------------------------

make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/busybox/build-busybox'
cp -pPR build-busybox/"./_install"/* /home/bob/nios2-linux/uClinux-dist/romfs/
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/busybox'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/cgi_generic'
romfs-inst.sh /home/bob/nios2-linux/uClinux-dist/vendors/Generic/httpd /home/httpd
2 blocks
romfs-inst.sh /home/httpd/cgi-bin/cgi_demo
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/cgi_generic'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/dhcpcd-new'
romfs-inst.sh /bin/dhcpcd
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/dhcpcd-new'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftp'
for i in ftp ; do make -C $i romfs ; done
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftp/ftp'
romfs-inst.sh /bin/ftp
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftp/ftp'
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftp'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftpd'
romfs-inst.sh /bin/ftpd
romfs-inst.sh -e CONFIG_USER_FTPD_FTPD \
-a "ftp stream tcp nowait root /bin/ftpd -l" /etc/inetd.conf
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftpd'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/games'
for i in dummy ; do \
[ $i = dummy ] || make -C $i romfs || exit ; \
done
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/games'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/inetd'
romfs-inst.sh /bin/inetd
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/inetd'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/init'
romfs-inst.sh -e CONFIG_USER_INIT_EXPAND /bin/expand
romfs-inst.sh -e CONFIG_USER_INIT_INIT /bin/init
romfs-inst.sh -e CONFIG_USER_INIT_INIT -e CONFIG_USER_FACTORY_FACTTEST \
-a "facttest:unknown:/bin/facttest" /etc/inittab
romfs-inst.sh -e CONFIG_USER_INIT_INIT -e CONFIG_USER_BUSYBOX_SYSLOGD \
-a "slog:unknown:/sbin/syslogd -n" /etc/inittab
romfs-inst.sh -e CONFIG_USER_INIT_INIT -e CONFIG_USER_BUSYBOX_KLOGD \
-a "klog:unknown:/sbin/klogd -n" /etc/inittab
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/init'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/sash'
romfs-inst.sh -e CONFIG_USER_SASH_SH /bin/sh
romfs-inst.sh -e CONFIG_USER_SASH_REBOOT /bin/reboot
romfs-inst.sh -e CONFIG_USER_SASH_SHUTDOWN /bin/shutdown
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/sash'
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/telnetd'
romfs-inst.sh /bin/telnetd
romfs-inst.sh -e CONFIG_USER_TELNETD_TELNETD \
-a "telnet stream tcp nowait root /bin/telnetd" /etc/inetd.conf
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/telnetd'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user'
. /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/.config; \
. /home/bob/nios2-linux/uClinux-dist/config/.config; \
if [ "$CONFIG_MODULES" = "y" ]; then \
[ -d /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules ] || mkdir -p /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules; \
rm -f /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules/modules.dep; \
make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/nios2-linux/uClinux-dist/../linux-2.6 O=/home/bob/nios2-linux/uClinux-dist/linux-2.6.x INSTALL_MOD_PATH=/home/bob/nios2-linux/uClinux-dist/romfs DEPMOD=true modules_install; \
rm -f /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules/*/build; \
rm -f /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules/*/source; \
find /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules -type f -name "*o" | xargs nios2-linux-uclibc-strip -R .comment -R .note -g --strip-unneeded; \
env NM=nios2-linux-uclibc-nm /home/bob/nios2-linux/uClinux-dist/user/busybox/depmod.pl -P _ -b /home/bob/nios2-linux/uClinux-dist/romfs/lib/modules/ -k /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/vmlinux; \
fi
make ARCH=nios2 -C vendors romfs.post
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors'
make -C /home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/bob/nios2-linux/uClinux-dist/vendors/vendors-common.mak romfs.post
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
make[2]: Nothing to be done for `romfs.post'.
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors'
find /home/bob/nios2-linux/uClinux-dist/romfs/. -name CVS | xargs -r rm -rf
[ -d /home/bob/nios2-linux/uClinux-dist/images ] || mkdir /home/bob/nios2-linux/uClinux-dist/images
make ARCH=nios2 -C vendors image
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors'
make -C /home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/bob/nios2-linux/uClinux-dist/vendors/vendors-common.mak image
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
[ -d /home/bob/nios2-linux/uClinux-dist/images ] || mkdir -p /home/bob/nios2-linux/uClinux-dist/images
chmod -R +x /home/bob/nios2-linux/uClinux-dist/romfs/bin
rm /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/usr/initramfs_data.cpio.gz
LDFLAGS="" make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/nios2-linux/uClinux-dist/../linux-2.6 O=/home/bob/nios2-linux/uClinux-dist/linux-2.6.x zImage
make[3]: Entering directory `/home/bob/nios2-linux/linux-2.6'
no emulation specific options.
CHK include/asm-nios2/nios2.h
perl -I/home/bob/nios2-linux/linux-2.6/arch/nios2/scripts /home/bob/nios2-linux/linux-2.6/arch/nios2/scripts/gen_nios2.h.pl cpu ssram < /mnt/hgfs/vm_share/uclinux.ptf > include/asm-nios2/nios2.h.tmp; if [ -r include/asm-nios2/nios2.h ] && cmp -s include/asm-nios2/nios2.h include/asm-nios2/nios2.h.tmp; then rm -f include/asm-nios2/nios2.h.tmp; else echo ' UPD include/asm-nios2/nios2.h'; mv -f include/asm-nios2/nios2.h.tmp include/asm-nios2/nios2.h; fi
Using /home/bob/nios2-linux/linux-2.6 as source for kernel
GEN /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/Makefile
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-nios2
CALL /home/bob/nios2-linux/linux-2.6/scripts/checksyscalls.sh
CHK include/linux/compile.h
GEN usr/initramfs_data.cpio.gz
AS usr/initramfs_data.gz.o
LD usr/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 2 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD vmlinux
SYSMAP System.map
OBJCOPY arch/nios2/boot/vmlinux.bin
GZIP arch/nios2/boot/vmlinux.gz
OBJCOPY arch/nios2/boot/compressed/vmlinux.bin
GZIP arch/nios2/boot/compressed/vmlinux.bin.gz
LD arch/nios2/boot/compressed/piggy.o
LD arch/nios2/boot/compressed/vmlinux
OBJCOPY arch/nios2/boot/zImage
Kernel: arch/nios2/boot/zImage is ready
make[3]: Leaving directory `/home/bob/nios2-linux/linux-2.6'
cp /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/boot/zImage /home/bob/nios2-linux/uClinux-dist/images/zImage
make[2]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2'
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/vendors'



  ・VMwareの共有フォルダ経由で、zImageをWindowsへコピー。

  ・QuartusのProgrammerで、sofをダウンロードしておく。

  ・C:\altera\11.0sp1\nios2eds\Nios II Command Shell.batを実行。
   zImageが存在するフォルダまで移動。

  ・以下コマンドでダウンロード実行。


bash-3.1$ nios2-download -g zImage
Using cable "USB-Blaster [USB-0]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 1348KB in 43.5s (30.9KB/s)
Verifying 0C500000 ( 0%)
Verify failed between address 0xC500000 and 0xC502AA5
Leaving target processor paused



  ・「Verify failed between address 0xC500000 and 0xC502AA5」って出てる。
   SOPC Builderのシステム構成で何かミスったかな?

  ・SOPC Builder構成の中で、JTAG UARTが、NiosのData masterかInst masterどちらかにしか
   接続出来ないようになってる。今はData master。
   Inst masterに接続したらどうだろう?と思い実験。
   気まぐれに、ptf置き場を変えたら、以下エラー。(/mnt/hgfs/vm_share/uclinux.ptfに無いと指摘された)
   make vendor_hwselectの時は、一度やったパスを変えてはダメみたい。

[root@localhost uClinux-dist]# make vendor_hwselect=uclinux.ptf
ln -sf staging-pkg-config tools/nios2-linux-uclibc-pkg-config
rm -f /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/usr/initramfs_data.cpio.gz
make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/bob/nios2-linux/uClinux-dist/../linux-2.6 O=/home/bob/nios2-linux/uClinux-dist/linux-2.6.x -j1 zImage || exit 1
make[1]: Entering directory `/home/bob/nios2-linux/linux-2.6'
no emulation specific options.
make[2]: *** No rule to make target `/mnt/hgfs/vm_share/uclinux.ptf', needed by `include/asm-nios2/nios2.h'. Stop.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/bob/nios2-linux/linux-2.6'
make: *** [linux] Error 1


スポンサーサイト
カレンダー
08 | 2011/09 | 10
- - - - 1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 -
累積訪問者
現在の訪問者
現在の閲覧者数:
最新記事
最新トラックバック
最新コメント
月別アーカイブ
カテゴリ
プロフィール

bobgosso

Author:bobgosso
FPGAのブログへようこそ!

検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QRコード