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++
12589 Discussions

uClinux Dist make won't go through

Altera_Forum
Honored Contributor II
1,287 Views

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
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
280 Views

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 .
0 Kudos
Altera_Forum
Honored Contributor II
280 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
280 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
280 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
280 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
280 Views

NIOS Wiki moved to the Altera site:  

 

http://www.alterawiki.com/wiki/linux_for_the_nios_ii_processor 

 

(and is not that easy to be found and searched any more:cry:)  

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
280 Views

Thanks Micheal :)

0 Kudos
Reply