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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Make romfs, errors????????

Altera_Forum
Honored Contributor II
1,170 Views

Hi all. 

 

when i make command(build kernel binarytoolchain with board 1c12 on linux): make romfs 

 

===>some results: 

 

er@localhost uClinux-dist]$ make romfs 

............... 

echo "Altera/nios2nommu Version 3.2.0 -- " `date` > /home/user/uClinux-dist/romfs/etc/version 

make[2]: Leaving directory `/home/user/uClinux-dist/vendors/Altera/nios2nommu' 

make[1]: Leaving directory `/home/user/uClinux-dist/vendors' 

make[1]: Entering directory `/home/user/uClinux-dist/include' 

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

make[1]: Leaving directory `/home/user/uClinux-dist/include' 

make[1]: Entering directory `/home/user/uClinux-dist/lib' 

................ 

/bin/sh: nios2-elf-gcc: command not found 

/bin/sh: nios2-elf-gcc: command not found 

/bin/sh: nios2-elf-gcc: command not found 

make[2]: Entering directory `/home/user/uClinux-dist/uClibc' 

[ -e /home/user/uClinux-dist/romfs/lib ] || mkdir /home/user/uClinux-dist/romfs/lib 

/bin/sh: nios2-elf-gcc: command not found 

if [ "" ]; then  

romfs-inst.sh /lib/lib.so;  

 

make[2]: Entering directory `/home/user/uClinux-dist/user/boa' 

for i in src ; do make -C $i romfs || exit ; done 

make[3]: Entering directory `/home/user/uClinux-dist/user/boa/src' 

romfs-inst.sh /bin/boa 

cp: cannot stat `boa': No such file or directory 

make[3]: *** [romfs] Error 1 

make[3]: Leaving directory `/home/user/uClinux-dist/user/boa/src' 

make[2]: *** [romfs] Error 2 

make[2]: Leaving directory `/home/user/uClinux-dist/user/boa' 

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

make[1]: Leaving directory `/home/user/uClinux-dist/user' 

make: *** [romfs.subdirs] Error 1 

=========================== 

- why command nios2-elf-gcc not found. 

- file "init" created in directory romfs has problem:  

I open file "init", it warns errors:"/bin/init" does not exist. 

pls help me!!!!!!!!!!!!!! 

thanks
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
429 Views

make menuconfig 

 

check if you have the correct target? Altera, nios2nommu, and Libc must be None. 

Vendor/Product Selection ---> 

--- Select the Vendor you wish to target 

(Altera) Vendor 

--- Select the Product you wish to target 

(nios2nommu) Altera Products  

 

Kernel/Library/Defaults Selection ---> 

(linux-2.6.x) Kernel Version 

(None) Libc Version 

[*] Default all settings (lose changes) 

[ ] Customize Kernel Settings 

[ ] Customize Vendor/User Settings 

[ ] Update Default Vendor Settings 

Then <exit> <exit> <yes> 

DO NOT change any other setting until first successful boot.
0 Kudos
Reply