Board logo

标题: 安装nios2linux-1.4后编译的编译结果 [打印本页]

作者: zhengkaike    时间: 2006-5-26 16:06     标题: 安装nios2linux-1.4后编译的编译结果

下载安装nios2linux-1.4后编译出现如下错误,请问是是什么原因?


我用的 是de2板子,Cyclone (ep2c35),是不是不支持这块芯片?


 


编译结果:


------------------------------------------------
Microtronix Linux Extensions
Version 1.4, Built June 20, 2005
------------------------------------------------
make: Entering directory `/cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
  no emulation specific options.
  Using /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel
  GEN    /cygdrive/d/altera/kits/nios2_51/bin/eclipse/workspace/nios_linux/build/Makefile
  CHK     include/linux/version.h
  CHK     include/nios2_system.h
  HOSTCC  scripts/basic/fixdep
scripts/basic/.fixdep.d: done.
  HOSTCC  scripts/basic/split-include
scripts/basic/.split-include.d: done.
  HOSTCC  scripts/basic/docproc
scripts/basic/.docproc.d: done.
  HOSTCC  scripts/mod/mk_elfconfig
scripts/mod/.mk_elfconfig.d: done.
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
scripts/mod/.file2alias.o.d: done.
  HOSTCC  scripts/mod/modpost.o
scripts/mod/.modpost.o.d: done.
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/.sumversion.o.d: done.
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/kallsyms
scripts/.kallsyms.d: done.
  HOSTCC  scripts/bin2c
scripts/.bin2c.d: done.
make[2]: `arch/nios2nommu/kernel/asm-offsets.s' is up to date.
  CHK     include/asm-nios2nommu/asm-offsets.h
  CHK     include/linux/compile.h
  CC      init/do_mounts_initrd.o
In file included from /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/unistd.h:9,
                 from /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/init/do_mounts_initrd.c:2:
include2/asm/unistd.h:659: error: parse error before "setsid"
include2/asm/unistd.h:659: warning: return type defaults to `int'
include2/asm/unistd.h: In function `setsid':
include2/asm/unistd.h:659: error: `pid_t' undeclared (first use in this function)
include2/asm/unistd.h:659: error: (Each undeclared identifier is reported only once
include2/asm/unistd.h:659: error: for each function it appears in.)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:660: error: parse error before "off_t"
include2/asm/unistd.h:660: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `write':
include2/asm/unistd.h:660: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:660: error: `buf' undeclared (first use in this function)
include2/asm/unistd.h:660: error: `count' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:661: error: parse error before "off_t"
include2/asm/unistd.h:661: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `read':
include2/asm/unistd.h:661: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:661: error: `buf' undeclared (first use in this function)
include2/asm/unistd.h:661: error: `count' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:662: error: parse error before "lseek"
include2/asm/unistd.h:662: error: parse error before "off_t"
include2/asm/unistd.h:662: warning: return type defaults to `int'
include2/asm/unistd.h:662: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `lseek':
include2/asm/unistd.h:662: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `offset' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `count' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `off_t' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:668: error: parse error before "waitpid"
include2/asm/unistd.h:668: error: parse error before "pid"
include2/asm/unistd.h:668: warning: return type defaults to `int'
include2/asm/unistd.h:668: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `waitpid':
include2/asm/unistd.h:668: error: `pid' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `wait_stat' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `options' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `pid_t' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:671: error: parse error before "wait"
include2/asm/unistd.h:672: warning: return type defaults to `int'
make[2]: *** [init/do_mounts_initrd.o] Error 1
make[1]: *** [init] Error 2
make: *** [_all] Error 2
make: Leaving directory `/cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'


作者: kzw    时间: 2006-5-26 22:10

这个1.4对他不直接支持。
作者: zhengkaike    时间: 2006-5-27 11:11

那有没有支持EP2C35的?
作者: mage1982    时间: 2006-5-27 19:26

DE2的板子当然不能直接支持
不然Microtronix 还不得和Terasic 拼命???
自己移植吧~~~
作者: zhengkaike    时间: 2006-5-27 21:11

今天按照http://hungryhippo.jot.com/WikiHome的资料,设置NIOS2在LINUX下的编译环境,但出现了一些问题,各位帮忙看一下,设置步骤:
1、tar jxf nios2gcc.tar.bz2 -C /
2、tar jxf nios2libs.tar.bz2 -C /
3、tar jxf nios2rootfs.tar.bz2
4、PATH=$PATH:/opt/nios2/bin
测试:nios2-linux-uclibc-gcc -v 没有问题
5、tar jxf uClinux-dist-test-20060511.tar.bz2
6、cd uClinux-dist-test
zcat uClinux-dist.diff.gz | patch -p0

7、cd ~/linux-2.6.x
make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=your_system.ptf

8、make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig

做到这一步时,出现如下错误:
arch/nios2nommu/kconfig: 239: can't open file "mm/kconfig"

但是用make menuconfig时,可以出现选择界面,但是Device drivers-->charcter devices-->serial drivers-->里面找不到JTAG UART选项。
请各位帮忙分析以下,可能是什么原因?先谢谢了!
作者: kzw    时间: 2006-5-29 10:52

这种非官方的环境,没有商业维护确实很容易出问题,并且也不好找技术支持。




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0