Forum Discussion

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

uClinux Dist make won't go through

After doing twice make, tried NON_SMP_BUILD=1 make

still won't go through, looks like being lack of romfs, repeated make romfs, won't help.

Please suggest,

# #####################################################################

ethan@linux:~/uClinux-dist> NON_SMP_BUILD=1 make

make -C tools/ucfront

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

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

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

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -j1 -C linux-2.6.x zImage || exit 1

no emulation specific options.

make[1]: Entering directory `/home/ethan/uClinux-dist/linux-2.6.x'

CHK include/nios2_system.h

perl -I/home/ethan/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts /home/ethan/ uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < /home/ethan/ethan/niosII_stratix_1s40/standard/std_1s40.ptf > inclu de/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 &#39; UPD include/nios2_system.h&#39;; mv -f include/nios2_system.h.tmp inclu de/nios2_system.h; fi

CHK include/linux/version.h

CHK include/linux/utsrelease.h

CHK include/linux/compile.h

/home/ethan/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: Cannot ope n &#39;../romfs ../vendors/Altera/nios2nommu/romfs_list&#39;

make[2]: *** [usr/initramfs_data.cpio.gz] Error 1

make[1]: *** [usr] Error 2

make[1]: Leaving directory `/home/ethan/uClinux-dist/linux-2.6.x&#39;

make: *** [linux] Error 1

ethan@linux:~/uClinux-dist> make

make -C tools/ucfront

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

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

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

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront tools/ucfront-gcc

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront tools/ucfront-g++

ln -sf /home/ethan/uClinux-dist/tools/ucfront/ucfront-ld tools/ucfront-ld

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -j1 -C linux-2.6.x zImage || exit 1

no emulation specific options.

make[1]: Entering directory `/home/ethan/uClinux-dist/linux-2.6.x&#39;

CHK include/nios2_system.h

perl -I/home/ethan/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts /home/ethan/uClinux-dist/linux-2.6.x/arch/nios2nommu/scripts/gen_nios2_system.h.pl cpu sdram ext_flash < /home/ethan/ethan/niosII_stratix_1s40/standard/std_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 &#39; UPD include/nios2_system.h&#39;; mv -f include/nios2_system.h.tmp include/nios2_system.h; fi

CHK include/linux/version.h

CHK include/linux/utsrelease.h

CHK include/linux/compile.h

/home/ethan/uClinux-dist/linux-2.6.x/scripts/gen_initramfs_list.sh: Cannot open &#39;../romfs ../vendors/Altera/nios2nommu/romfs_list&#39;

make[2]: *** [usr/initramfs_data.cpio.gz] Error 1

make[1]: *** [usr] Error 2

make[1]: Leaving directory `/home/ethan/uClinux-dist/linux-2.6.x&#39;

make: *** [linux] Error 1

7 Replies

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

    Did you apply the nios2 patches as in the wiki?

    the file linux-2.6.x/usr/Makefile need the patch, or you can look at linux-2.6.19 or linux-2.6.20 .
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Applied patch uClinux-dist-20070130-nios2-02.diff.gz everything works find, thank you for your time.

    Just curious: would all the updates in lower version of patch all included in high version?

    like uClinux-dist-20070130-nios2-02.diff.gz > uClinux-dist-20060803-nios2-02.diff.gz

    Cause I need both Ethernet & USB.

    Maybe can help newbies by explaining the differece usage of all those patchs.

    I didn&#39;t see Changelog of uClinux-dist-20070130-nios2-02.diff.gz
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    These nios2 patches has been submitted to uClinux-dist, and merged. So the last patch was smaller, and just some minor update after the release. Don&#39;t use older patches on newer dist release, or it will be over patched.

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

    Well, things have changed now ... nios wiki not working , .. missing links .. :(

    Als0 there is not further patch for nios after 2007,

    Can any 1 tell what is the latest way to download uclinux on ltera DE2 board