Forum Discussion
Altera_Forum
Honored Contributor
20 years agouclinux for full_featured
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 . . . 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 26 Replies
- Altera_Forum
Honored Contributor
--- 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)
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo+apr 29 2006, 09:34 pm--><div class='quotetop'>quote (hippo @ apr 29 2006, 09:34 pm)</div>--- quote start ---
<!--quotebegin-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
.
.
.
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) <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14850)</div> [/b] --- Quote End --- Hello Hippo, I am working with Nios II stratix professional (EP1S40) development board. I had tried for full-featrued by doing "make distclean" in standard linux source tree. According to you, I have to select new source treee. I will check with this also and let you know. I need one more help. " I have to port two seperate uclinux on two seperate Nios II processor with cohesive communication support." Kindly guide to port two uclinux on a single chip. thanks & regards, Goutam
- Altera_Forum
Honored Contributor
I have built a zImage for full_1s40.ptf without problem.
For the dual nios2 uclinux project, you can make two copy of the original ptf. Modified each one to have different sdram size and base, uart base, reset address, exception..etc. eg, Module sdram original Address_Width=22, Base_Address=0x01000000, become cpu1, Address_Width=21, Base_Address=0x01000000, cpu2, Address_Width=21, Base_Address=0x01800000, So that you can build two kernel images. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@May 3 2006, 08:58 PM i have built a zimage for full_1s40.ptf without problem.for the dual nios2 uclinux project, you can make two copy of the original ptf.
modified each one to have different sdram size and base, uart base, reset address, exception..etc.
eg, module sdram
original address_width=22, base_address=0x01000000,
become
cpu1, address_width=21, base_address=0x01000000,
cpu2, address_width=21, base_address=0x01800000,
so that you can build two kernel images.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15004)
--- quote end ---
--- Quote End --- Hello Hippo, I am able to build zImage of full_1s40.ptf But during boot-up period, it got hang on PID value. The boot sequence is below: ******************************** Uncompressing Linux... Ok, booting the kernel. Linux version 2.6.11-uc0 ([email protected]) (gcc version 3.4.6)# 4 Wed May 3 16:05:52 IST 2006 uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: PID hash table entries: 128 (order: 7, 2048 bytes) ******************************** Kindly, acknowledge me, what is fault during building the zImage for full_1s40.ptf. thanks & regard, Goutam
- Altera_Forum
Honored Contributor
Please check the exception vector (interrupt vector) in cpu setting of spoc builder.
It must be in sdram. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@May 4 2006, 05:19 PM please check the exception vector (interrupt vector) in cpu setting of spoc builder.it must be in sdram.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15032)
--- quote end ---
--- Quote End --- Hell Hippo, I checked that exception vector is in sdram only. what to do? thanks & regard, Goutam