Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12608 Discussions

install "Nios II Linux v1.4 released"

Altera_Forum
Honored Contributor II
1,405 Views

hi! 

 

i've just tried to install the downloaded linux. there was an error message: 

"Cygwin extension were not installed properly. 

Please see README for instruction on how to install them manually" 

what does that mean? could not find a hint in README on how to install 

them manually. 

system : XP, quartus v51, nios v51. 

 

torsten
0 Kudos
15 Replies
Altera_Forum
Honored Contributor II
591 Views
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

hi, 

try to follow the thread on a debian distribution. 

does not run succesfully till the end. 

regards torsten
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by torsten grevsmuehl@Apr 21 2006, 04:43 PM 

hi, 

try to follow the thread on a debian distribution. 

does not run succesfully till the end. 

regards torsten 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14543) 

--- quote end ---  

 

--- Quote End ---  

 

I use Fedora Core 5 and Slackware 10.2 . 

Jdhar uses Ubuntu. 

Where do you fail? 

Please check if you have gcc3.xx ?
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

Torsten, 

 

I have built uClinux successfully on the Debian platform. There were small problems (which maybe Debian-related?), but basically it works OK for me. 

 

What fails exactly? Please post some details on this thread.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
591 Views

The cross gcc is finished. 

the problem is in making elf2flt . 

try remove toolchain_build_nios2/elf2flt dir, and make again. 

if still failed in making elf2flt, check those include headers.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

hi! 

 

sorry, it&#39;s me again. 

what include files should be checked at which location. 

what Makefile should i try again? 

could i have a problem with permissions etc.? 

 

regards grevsmuehl
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by torsten grevsmuehl@Apr 24 2006, 08:49 PM 

hi! 

 

sorry, it&#39;s me again. 

what include files should be checked at which location. 

what makefile should i try again? 

could i have a problem with permissions etc.? 

 

regards  grevsmuehl 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14602) 

--- quote end ---  

 

--- Quote End ---  

 

Please check this first. 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: No such file or directory 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:39:20: symcat.h: No such file or directory 

 

On my FC5, there are /usr/include/ ansidecl.h and symcat.h . 

 

hootsmon, would you give some hints about Debian? 

 

Buildroot runs in user account. It does not need root account. So the user permissions should be Okay.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by torsten grevsmuehl@Apr 24 2006, 06:58 PM 

make -j1 -c /home/grev/buildroot/toolchain_build_nios2/elf2flt all 

make[1]: entering directory `/home/grev/buildroot/toolchain_build_nios2/elf2flt&#39; 

gcc -g -o2 -dpackage_name=\"\" -dpackage_tarname=\"\" -dpackage_version=\"\" -dpackage_string=\"\" -dpackage_bugreport=\"\" -dstdc_headers=1 -dhave_sys_types_h=1 -dhave_sys_stat_h=1 -dhave_stdlib_h=1 -dhave_string_h=1 -dhave_memory_h=1 -dhave_strings_h=1 -dhave_inttypes_h=1 -dhave_stdint_h=1 -dhave_unistd_h=1 -dhave_fcntl_h=1 -dhave_unistd_h=1 -dhave_vprintf=1 -dhave_dcgettext=1  -dtarget_nios2 -i/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/ -o elf2flt /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c /home/grev/buildroot/toolchain_build_nios2/elf2flt/stubs.c /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/libbfd.a /home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/libiberty/libiberty.a 

in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52: 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:38:22: ansidecl.h: no such file or directory 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:39:20: symcat.h: no such file or directory 

in file included from /home/grev/buildroot/toolchain_build_nios2/elf2flt/elf2flt.c:52: 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:834: error: parse error before "params" 

/home/grev/buildroot/toolchain_build_nios2/binutils-2.15-build/bfd/bfd.h:838: error: parse error before "params" 

--- Quote End ---  

 

I see this exact behaviour on my Debian platform too, so now we can confirm this is definitely Debian related (I thought it might be). 

 

The good news is there&#39;s a 1-line workaround, but for now I have to work from memory, since I&#39;m not at my Debian PC today. Basically, just hack elf2flt&#39;s Makefile, so that "ansidecl.h" is found in the include path. I don&#39;t know why only Debian need this. I will make a patch tomorrow, but in the meantime, give this a try.... 

 

1) cd ~/buildroot/toolchain_build_nios2/elf2flt/ 

 

2) find .. -name "ansidecl.h" -print 

* Note path for "ansidecl.h", I think its in current dir? 

 

3) vi Makefile 

* search for "-I" 

* add another -I {path} so that ansidecl.h and friends are includable  

 

4) make clean 

5) make 

6) make install 

7) cd ~buildroot 

8) make 

 

That should make buildroot OK. At this stage I recommend rebuilding busybox, as per step# 12 of hippo&#39;s buildroot guide.  

 

Good luck http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

Here is my patch to make elf2flt compile properly on Debian platform.... 

Index: toolchain/elf2flt/elf2flt.mk =================================================================== --- toolchain/elf2flt/elf2flt.mk        (original) +++ toolchain/elf2flt/elf2flt.mk        (working copy) @@ -20,6 +20,7 @@        (cd $(ELF2FLT_DIR); rm -rf config.cache;                $(ELF2FLT_DIR)/configure                --with-bfd-include-dir=$(BINUTILS_DIR1)/bfd/ +               --with-binutils-include-dir=$(BINUTILS_DIR)/include/                --target=$(REAL_GNU_TARGET_NAME)                --with-libbfd=$(BINUTILS_DIR1)/bfd/libbfd.a                --with-libiberty=$(BINUTILS_DIR1)/libiberty/libiberty.a \ 

Thorsten, here&#39;s how to apply it.... 

1) Save the patch into ~/download/elf2flt.diff 

2) cd ~/buildroot 

3) patch -p0 <~/download/elf2flt.diff 

4) rm -rf toolchain_build_nios2/elf2flt 

5) make 

 

Hippo, does this patch look allright to you? 

Will it have any affect on non-Debian users? 

Should something like this go in svn?
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by hootsmon@Apr 26 2006, 11:49 AM 

here is my patch to make elf2flt compile properly on debian platform.... 

index: toolchain/elf2flt/elf2flt.mk =================================================================== --- toolchain/elf2flt/elf2flt.mk        (original) +++ toolchain/elf2flt/elf2flt.mk        (working copy) @@ -20,6 +20,7 @@        (cd $(elf2flt_dir); rm -rf config.cache;                $(elf2flt_dir)/configure                --with-bfd-include-dir=$(binutils_dir1)/bfd/ +               --with-binutils-include-dir=$(binutils_dir)/include/                --target=$(real_gnu_target_name)                --with-libbfd=$(binutils_dir1)/bfd/libbfd.a                --with-libiberty=$(binutils_dir1)/libiberty/libiberty.a \ 

thorsten, here&#39;s how to apply it.... 

1) save the patch into ~/download/elf2flt.diff 

2) cd ~/buildroot 

3) patch -p0 <~/download/elf2flt.diff 

4) rm -rf toolchain_build_nios2/elf2flt 

5) make 

 

hippo, does this patch look allright to you? 

will it have any affect on non-debian users? 

should something like this go in svn? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14680)</div> 

--- Quote End ---  

 

Hootsmon, 

I have tested the patch on FC5. The elf2flt works well. Good job. 

Could you post the patch to buildroot group of bug report on busybox.net ?
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by hippo@Apr 28 2006, 12:55 AM 

hootsmon, 

i have tested the patch on fc5. the elf2flt works well. good job. 

could you post the patch to buildroot group of bug report on busybox.net

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14765) 

--- quote end ---  

 

--- Quote End ---  

 

 

Thanks hippo, I&#39;ll post it.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

hello! 

 

try to do the patch. saved your code in elf2flt.diff in directory "download". 

try to run the given command. here is the result. sorry, did i forgot something 

(permissions, line of codes ...)? should i do the cjange by hand? 

_____________________________________________________________________ 

grev@mhfppcx7974note:~/buildroot$ patch -p0 <~/download/elf2flt.diff 

patching file toolchain/elf2flt/elf2flt.mk 

Hunk# 1 FAILED at 20. 

1 out of 1 hunk FAILED -- saving rejects to file toolchain/elf2flt/elf2flt.mk.rej 

grev@mhfppcx7974note:~/buildroot$ 5~ 

--------------------------------------------------------------- 

 

kind regards torsten
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

 

--- Quote Start ---  

originally posted by torsten grevsmuehl@May 2 2006, 07:35 PM 

hello! 

 

try to do the patch. saved your code in elf2flt.diff in directory "download". 

try to run the given command. here is the result. sorry, did i forgot something 

(permissions, line of codes ...)? should i do the cjange by hand? 

_____________________________________________________________________ 

grev@mhfppcx7974note:~/buildroot$ patch -p0 <~/download/elf2flt.diff 

patching file toolchain/elf2flt/elf2flt.mk 

hunk# 1 failed at 20. 

1 out of 1 hunk failed -- saving rejects to file toolchain/elf2flt/elf2flt.mk.rej 

grev@mhfppcx7974note:~/buildroot$ 5~ 

--------------------------------------------------------------- 

 

kind regards  torsten 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14937) 

--- quote end ---  

 

--- Quote End ---  

 

Add "-l" option to patch command to ignore white space in patch file.
0 Kudos
Altera_Forum
Honored Contributor II
591 Views

hello hippo! hello hootsmon! 

 

removed all dir. put patch command (with option -l) into buildscript. 

let buildscript run like it did the first time.did not observe output of 

buildscript nor put it to a file. here the last lines taken from commandline: 

~/buildroot/build_nios2/root/usr/bin/uniq -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/unix2dos -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/unzip -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/uptime -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/uudecode -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/uuencode -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/vlock -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/wc -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/wget -> ../../bin/busybox ~/buildroot/build_nios2/root/usr/bin/which -> ../../bin/busybox make: Leaving directory `~/buildroot/build_nios2/busybox&#39;# Just in case chmod a+x  ~/buildroot/build_nios2/root/usr/share/udhcpc/default.script 

so everything seems to be in the right place now. is there a quick check 

if it is working or should one simply proceed with hippo&#39;s thread? 

 

next: how to keep the things up to date? 

 

kind regards to all involved solving my questions 

torsten
0 Kudos
Reply