Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

install "Nios II Linux v1.4 released"

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

15 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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'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 ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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