FC2ブログ

[NEEK][Linux]組み込みLinuxまでの手順(8)(MMU=内臓SRAM)

SSRAMが動くプロジェクトも完成し、zImageも作成出来たが、nios2-download時にVerifyエラー
になる。
参考書籍の手順で行くと、make menuconfigでnios2nommuではなく、nios2を選択することになる。
というか、nios2しか選択出来ない。しかし、MMUを搭載してなかったので、追加してみる。

 ・SOPC BuilderでNiosIIにMMU(内臓SRAM、設定はでdefault)を追加してGenerate。

 ・生成したptfで以下実行。

[root@localhost uClinux-dist]# make vendor_hwselect=/mnt/hgfs/vm_share/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.
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[1]: Leaving directory `/home/bob/nios2-linux/linux-2.6'
if [ -f /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/vmlinux ]; then \
ln -f /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/vmlinux /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/linux ; \
fi
. /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/.config; if [ "$CONFIG_MODULES" = "y" ]; then \
[ -d /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/modules ] || mkdir /home/bob/nios2-linux/uClinux-dist/linux-2.6.x/modules; \
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 modules; \
fi
for dir in lib user ; do [ ! -d $dir ] || make ARCH=nios2 -C $dir || exit 1 ; done
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/lib'
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
[ -z "" ] || make -j1 || exit $?
[ -z "" ] || (cd /home/bob/nios2-linux/uClinux-dist/staging; chmod 755 ./usr/lib/lib*.so*; chmod 644 ./usr/lib/lib*.la ./usr/lib/lib*.a; sed -i -e "/^libdir=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr/lib':" -e "/^dependency_libs=/s: /usr/lib/: /home/bob/nios2-linux/uClinux-dist/staging/usr/lib/:g" ./usr/lib/*.la; sed -i "/^prefix=/s:=.*:='/home/bob/nios2-linux/uClinux-dist/staging/usr':" ./usr/lib/pkgconfig/*.pc ./usr/bin/*-config; true)
make[1]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/lib'
make[1]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user'
make -j1 /home/bob/nios2-linux/uClinux-dist/prop /home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/. boa busybox cgi_generic dhcpcd-new ftp ftpd games inetd init sash telnetd || exit $?
make[2]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user'
[ ! -d "/home/bob/nios2-linux/uClinux-dist/prop" ] || ( touch /home/bob/nios2-linux/uClinux-dist/prop/.sgbuilt_user && make -C /home/bob/nios2-linux/uClinux-dist/prop ) || exit $?
make[2]: Nothing to be done for `/home/bob/nios2-linux/uClinux-dist/vendors/Altera/nios2/.'.
[ ! -d "boa" ] || ( touch boa/.sgbuilt_user && make -C boa ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/boa'
make -C build-boa-0.94.14rc21
make[4]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/boa/build-boa-0.94.14rc21'
(cd src && make -w)
make[5]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/boa/build-boa-0.94.14rc21/src'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/boa/build-boa-0.94.14rc21/src'
make[4]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/boa/build-boa-0.94.14rc21'
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/boa'
[ ! -d "busybox" ] || ( touch busybox/.sgbuilt_user && make -C busybox ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/busybox'
make -C build-busybox
make[4]: 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
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
make[4]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/busybox/build-busybox'
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/busybox'
[ ! -d "cgi_generic" ] || ( touch cgi_generic/.sgbuilt_user && make -C cgi_generic ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/cgi_generic'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/cgi_generic'
[ ! -d "dhcpcd-new" ] || ( touch dhcpcd-new/.sgbuilt_user && make -C dhcpcd-new ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/dhcpcd-new'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/dhcpcd-new'
[ ! -d "ftp" ] || ( touch ftp/.sgbuilt_user && make -C ftp ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftp'
for i in ftp ; do make -C $i all ; done
make[4]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftp/ftp'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftp/ftp'
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftp'
[ ! -d "ftpd" ] || ( touch ftpd/.sgbuilt_user && make -C ftpd ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/ftpd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/ftpd'
[ ! -d "games" ] || ( touch games/.sgbuilt_user && make -C games ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/games'
for i in dummy ; do \
[ $i = dummy ] || make -C $i || exit ; \
done
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/games'
[ ! -d "inetd" ] || ( touch inetd/.sgbuilt_user && make -C inetd ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/inetd'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/inetd'
[ ! -d "init" ] || ( touch init/.sgbuilt_user && make -C init ) || exit $?
make[3]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/init'
make[3]: Nothing to be done for `all'.
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'
make -j1 -C libsash
make[4]: Entering directory `/home/bob/nios2-linux/uClinux-dist/user/sash/libsash'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/home/bob/nios2-linux/uClinux-dist/user/sash/libsash'
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'
make[3]: Nothing to be done for `all'.
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'



  ・平行してNiosII EDSでGenerate BSPを実行したら、以下エラーMSGウィンドウ。

'Generating...(hoge_bsp)' has encountered a problem
Error executing 'nios2-bsp-generate-files --bsp-dir --settings settings.bsp'. unexpected return code 1.
Error message:
SEVERE: HAL-based operating system do not support a CPU with an MMU.
SEVERE: HAL-based operating system do not support a CPU with an MMU.
SEVERE: nios2-bsp-generate-files failed.

スポンサーサイト



カレンダー
09 | 2011/10 | 11
- - - - - - 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 31 - - - - -
累積訪問者
現在の訪問者
現在の閲覧者数:
最新記事
最新トラックバック
最新コメント
月別アーカイブ
カテゴリ
プロフィール

bobgosso

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

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

この人とブロともになる

QRコード
QRコード