--- Quote Start ---
originally posted by goutam_kumar@Apr 29 2006, 09:25 PM
hi hippo,
as per suggestion, i install fedora core 5.
it works fine and i am able to create image of uclinux for nios ii/s (standard).
thanks for your help.
i need to create an image of uclinux for nios ii/f (full_featured).
during making the image with same steps.
make zimage got fail with below mention error output.
kindly, acknowledge the error.
thanks & regard,
goutam
***************************************************************************
******** error message from zimage for full_featured ***********
***************************************************************************
no emulation specific options.
chk include/linux/version.h
upd include/linux/version.h
symlink include/asm -> include/asm-nios2nommu
split include/linux/autoconf.h -> include/config/*
chk include/nios2_system.h
perl -i/home/goutam/linux-2.6.x/arch/nios2nommu/scripts /home/goutam/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < full_1s40.ptf > include/nios2_system.h.tmp; if [ -r include/nios2_system.h ] && cmp -s include/nios2_system.h include/nios2_system.h.tmp; then rm -f include/nios2_system.h.tmp; else echo ' upd include/nios2_system.h'; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi
upd include/nios2_system.h
hostcc scripts/genksyms/genksyms.o
shipped scripts/genksyms/lex.c
shipped scripts/genksyms/parse.h
shipped scripts/genksyms/keywords.c
hostcc scripts/genksyms/lex.o
shipped scripts/genksyms/parse.c
hostcc scripts/genksyms/parse.o
hostld scripts/genksyms/genksyms
cc scripts/mod/empty.o
hostcc scripts/mod/mk_elfconfig
mkelf scripts/mod/elfconfig.h
hostcc scripts/mod/file2alias.o
hostcc scripts/mod/modpost.o
hostcc scripts/mod/sumversion.o
hostld scripts/mod/modpost
hostcc scripts/kallsyms
hostcc scripts/pnmtologo
hostcc scripts/conmakehash
hostcc scripts/bin2c
cc arch/nios2nommu/kernel/asm-offsets.s
chk include/asm-nios2nommu/asm-offsets.h
upd include/asm-nios2nommu/asm-offsets.h
cc init/main.o
chk include/linux/compile.h
upd include/linux/compile.h
cc init/version.o
cc init/do_mounts.o
cc init/do_mounts_rd.o
cc init/do_mounts_initrd.o
in file included from include/linux/unistd.h:9,
from init/do_mounts_initrd.c:2:
include/asm/unistd.h:659: error: syntax error before "setsid"
include/asm/unistd.h:659: warning: return type defaults to `int'
include/asm/unistd.h: in function `setsid':
include/asm/unistd.h:659: error: `pid_t' undeclared (first use in this function)
include/asm/unistd.h:659: error: (each undeclared identifier is reported only once
include/asm/unistd.h:659: error: for each function it appears in.)
include/asm/unistd.h: at top level:
include/asm/unistd.h:660: error: syntax error before "off_t"
include/asm/unistd.h:660: warning: function declaration isn't a prototype
include/asm/unistd.h: in function `write':
include/asm/unistd.h:660: error: `fd' undeclared (first use in this function)
include/asm/unistd.h:660: error: `buf' undeclared (first use in this function)
include/asm/unistd.h:660: error: `count' undeclared (first use in this function)
include/asm/unistd.h: at top level:
include/asm/unistd.h:661: error: syntax error before "off_t"
include/asm/unistd.h:661: warning: function declaration isn't a prototype
include/asm/unistd.h: in function `read':
include/asm/unistd.h:661: error: `fd' undeclared (first use in this function)
include/asm/unistd.h:661: error: `buf' undeclared (first use in this function)
include/asm/unistd.h:661: error: `count' undeclared (first use in this function)
include/asm/unistd.h: at top level:
include/asm/unistd.h:662: error: syntax error before "lseek"
include/asm/unistd.h:662: error: syntax error before "off_t"
include/asm/unistd.h:662: warning: return type defaults to `int'
include/asm/unistd.h:662: warning: function declaration isn't a prototype
include/asm/unistd.h: in function `lseek':
include/asm/unistd.h:662: error: `fd' undeclared (first use in this function)
include/asm/unistd.h:662: error: `offset' undeclared (first use in this function)
include/asm/unistd.h:662: error: `count' undeclared (first use in this function)
include/asm/unistd.h:662: error: `off_t' undeclared (first use in this function)
include/asm/unistd.h: at top level:
include/asm/unistd.h:668: error: syntax error before "waitpid"
include/asm/unistd.h:668: error: syntax error before "pid"
include/asm/unistd.h:668: warning: return type defaults to `int'
include/asm/unistd.h:668: warning: function declaration isn't a prototype
include/asm/unistd.h: in function `waitpid':
include/asm/unistd.h:668: error: `pid' undeclared (first use in this function)
include/asm/unistd.h:668: error: `wait_stat' undeclared (first use in this function)
include/asm/unistd.h:668: error: `options' undeclared (first use in this function)
include/asm/unistd.h:668: error: `pid_t' undeclared (first use in this function)
include/asm/unistd.h: at top level:
include/asm/unistd.h:671: error: syntax error before "wait"
include/asm/unistd.h:672: warning: return type defaults to `int'
make[1]: *** [init/do_mounts_initrd.o] error 1
make: *** [init] error 2
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14847)
--- quote end ---
--- Quote End ---
I am happy with your join. Welcome.
I check the full_featured 2C35, but didn't find problem in making zImage.
Please save the kernel tree of standard core.
Then prepare a free kernel source.
# kernel 2.6.11-uc0 source ported by microtronix
cp -a ~/download/mx140/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x ~
cd ~/linux-2.6.x
patch -p0 <~/download/kernel.diff
Since your are working on different cores/boards, it would be helpful to build outside the source tree, with -O=(object tree) option to kernel make.
There is a example to do it, check post#12 and# 14 in this thread,
http://forum.niosforum.com/forum/index.php?showtopic=3693 (
http://forum.niosforum.com/forum/index.php?showtopic=3693)