Forum Discussion

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

make linux image error

I am trying to customize my own uClinux kernel and create a zImage to be run on the Altera DE2 board. However, after I run "make vendor_hwselect SYSPTF=...", I then type make to compile the kernel and apps, and it quits with an error as seen in the last six lines below. These lines were copied directly from the Ubuntu terminal I am working in. Any help on this issue is greatly appreciated.

phil@ubuntu:~/Desktop/uClinux-dist$ make

make -C tools/ucfront

make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/tools/ucfront'

cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront ucfront.c args.c util.c execute.c

cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront-ld ucfront-ld.c args.c util.c execute.c

cc -o jlibtool jlibtool.c

make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/tools/ucfront'

ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc

ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++

ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld

ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/jlibtool tools/jlibtool

make -C tools/sg-cksum

make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/tools/sg-cksum'

cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc32.c

make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/tools/sg-cksum'

ln -sf /home/phil/Desktop/uClinux-dist/tools/sg-cksum/cksum tools/cksum

chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh

make -C config automake

make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/config'

make[1]: Nothing to be done for `automake'.

make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/config'

. linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then

mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`;

touch $CONFIG_INITRAMFS_SOURCE || exit 1;

fi

dirname: extra operand `../vendors/altera/nios2nommu/romfs_list'

try `dirname --help' for more information.

mkdir: missing operand

try `mkdir --help' for more information.

touch: cannot touch `../vendors/altera/nios2nommu/romfs_list': no such file or directory

make: *** [linux] error 1

5 Replies

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

    <div class='quotetop'>QUOTE (ppitou @ Jul 9 2009, 05:38 PM) <{post_snapback}> (index.php?act=findpost&pid=23053)</div>

    --- Quote Start ---

    You are "making" from the wrong directory. check your install but you should "make" under /nios2-linux/uClinux-dist

    go back and follow http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux)[/b]

    --- Quote End ---

    ok thanks for the reply .. however i used http://www.nioswiki.com/operatingsystems/u...binarytoolchain (http://www.nioswiki.com/operatingsystems/uclinux/binarytoolchain) instead of what you posted because on the uClinux page it says "2. Install Nios2Linux install the source and build tools. Or you can use prebuild BinaryToolchain ." and i chose the later rather then the former .. should i just restart fresh from the link you posted .. or is there a way to fix it using the prebuilt binary toolchain? thanks
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    <div class='quotetop'>QUOTE (TwistedNRG @ Jul 9 2009, 06:20 PM) <{post_snapback}> (index.php?act=findpost&pid=23054)</div>

    --- Quote Start ---

    <div class='quotetop'>QUOTE (ppitou @ Jul 9 2009, 05:38 PM) <{post_snapback}> (index.php?act=findpost&pid=23053)

    --- Quote End ---

    --- Quote Start ---

    You are "making" from the wrong directory. check your install but you should "make" under /nios2-linux/uClinux-dist

    go back and follow http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux)[/b]

    --- Quote End ---

    ok thanks for the reply .. however i used http://www.nioswiki.com/operatingsystems/u...binarytoolchain (http://www.nioswiki.com/operatingsystems/uclinux/binarytoolchain) instead of what you posted because on the uClinux page it says "2. Install Nios2Linux install the source and build tools. Or you can use prebuild BinaryToolchain ." and i chose the later rather then the former .. should i just restart fresh from the link you posted .. or is there a way to fix it using the prebuilt binary toolchain? thanks

    [/b]

    --- Quote End ---

    ok ignore what i said above .. i should have still done those few steps before hand ..

    when i put this into my terminal "gettext ccache zlib1g-dev libx11-dev texinfo liblzo2-dev" i get an error saying gettext too many arguments .. any idea on that?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    all errors have been fixed .. no need to reply anymore .. thanks for the help

    /end thread
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I am trying to customize my own uClinux kernel and create a zImage to be run on the Altera DE2 board. However, after I run "make vendor_hwselect SYSPTF=...", I then type make to compile the kernel and apps, and it quits with an error as seen in the last six lines below. These lines were copied directly from the Ubuntu terminal I am working in. Any help on this issue is greatly appreciated.

    phil@ubuntu:~/Desktop/uClinux-dist$ make

    make -C tools/ucfront

    make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/tools/ucfront&#39;

    cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront ucfront.c args.c util.c execute.c

    cc -g -Werror -Wall -DHAVE_MKSTEMP -o ucfront-ld ucfront-ld.c args.c util.c execute.c

    cc -o jlibtool jlibtool.c

    make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/tools/ucfront&#39;

    ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc

    ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++

    ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld

    ln -sf /home/phil/Desktop/uClinux-dist/tools/ucfront/jlibtool tools/jlibtool

    make -C tools/sg-cksum

    make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/tools/sg-cksum&#39;

    cc -Werror -Wall -DHAVE_MKSTEMP -o cksum cksum.c crc.c print.c sum1.c sum2.c crc32.c

    make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/tools/sg-cksum&#39;

    ln -sf /home/phil/Desktop/uClinux-dist/tools/sg-cksum/cksum tools/cksum

    chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh

    make -C config automake

    make[1]: Entering directory `/home/phil/Desktop/uClinux-dist/config&#39;

    make[1]: Nothing to be done for `automake&#39;.

    make[1]: Leaving directory `/home/phil/Desktop/uClinux-dist/config&#39;

    . linux-2.6.x/.config; if [ "$CONFIG_INITRAMFS_SOURCE" != "" ]; then

    mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`;

    touch $CONFIG_INITRAMFS_SOURCE || exit 1;

    fi

    dirname: extra operand `../vendors/altera/nios2nommu/romfs_list&#39;

    try `dirname --help&#39; for more information.

    mkdir: missing operand

    try `mkdir --help&#39; for more information.

    touch: cannot touch `../vendors/altera/nios2nommu/romfs_list&#39;: no such file or directory

    make: *** [linux] error 1

    --- Quote End ---

    How you resolved it? I encounter the same question too!