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.
12748 Discussions

(make vendor_hwselect SYSPTF ERROR) Perl hwselect.pl when compile uclinux kernel

Altera_Forum
Honored Contributor II
1,150 Views

I never met this before. succeed in uClinux2007,uClinux2009.But crashed in uClinux2010* . 

 

 

root@spomu-desktop:/home/work/uClinux-dist201010# make vendor_hwselect SYSPTF="/home/work/niosII.ptf" 

make ARCH=nios2nommu -C vendors vendor_hwselect 

make[1]: Entering directory `/home/work/uClinux-dist201010/vendors' 

make -C /home/work/uClinux-dist201010/vendors/Altera/nios2nommu/. dir_v=/home/work/uClinux-dist201010/vendors/Altera/nios2nommu/. -f /home/work/uClinux-dist201010/vendors/vendors-common.mak vendor_hwselect 

make[2]: Entering directory `/home/work/uClinux-dist201010/vendors/Altera/nios2nommu' 

[ -d /home/work/uClinux-dist201010/romfs/$i ] || mkdir -p /home/work/uClinux-dist201010/romfs 

make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- CFLAGS_KERNEL="" AFLAGS_KERNEL="" -C /home/work/uClinux-dist201010/linux-2.6.x hwselect 

no emulation specific options. 

make[3]: Entering directory `/home/work/uClinux-dist201010/linux-2.6.x' 

RUNNING hwselect 

Can't locate PTF/SystemPTF.pm in @INC (@INC contains: /arch/nios2nommu/scripts /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at /home/work/uClinux-dist201010/linux-2.6.x/arch/nios2nommu/scripts/hwselect.pl line 8. 

BEGIN failed--compilation aborted at /home/work/uClinux-dist201010/linux-2.6.x/arch/nios2nommu/scripts/hwselect.pl line 8. 

make[3]: *** [hwselect] error 2 

make[3]:Leaving directory `/home/work/uClinux-dist201010/linux-2.6.x' 

make[2]: *** [vendor_hwselect] error 2 

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

make[1]: *** [vendor_hwselect] error 2 

make[1]:Leaving directory `/home/work/uClinux-dist201010/vendors' 

make: *** [vendor_hwselect] error 2 

 

Why the same perl enviroment cause different results by changing uClinux version?I found that files in dir "arch" are all the same among kenerl linux2.6.x 2007,2009&2010 

This block me for a long time , need help ~~~
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
441 Views

Hi, 

 

seems that you didn't choose the right branch for it. if you use the noMMU version  

the output of git branch should be that test-nios2 is selected. so this must be selected in the 'uClinux-dist' as well as in the 'linux2.6' folder. 

I don't know if the noMMU also works with the "trunk"-branch from "nios2 linux distribution". Even if this is possible the command make vendor_hwselect is not used in the "new" distribution. 

 

Urmel
0 Kudos
Reply