Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

vendor_hwselect - error 2

Altera_Forum
Honored Contributor II
1,516 Views

******************************************************************************** 

***************************************************** 

[root@localhost uClinux-dist]# make vendor_hwselect SYSPTF=~/uclinux/NiosII_stratixII_2s60_standard.ptf 

make ARCH=nios2 -C vendors vendor_hwselect 

make[1]: Entering directory `/root/uclinux/nios2-linux/uClinux-dist/vendors' 

make -C /root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /root/uclinux/nios2-linux/uClinux-dist/vendors/vendors-common.mak vendor_hwselect 

make[2]: Entering directory `/root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

[ -d /root/uclinux/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /root/uclinux/nios2-linux/uClinux-dist/romfs 

make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- hwselect 

make[3]: Entering directory `/root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

make[3]: *** No rule to make target `hwselect'. Stop. 

make[3]: Leaving directory `/root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

make[2]: *** [vendor_hwselect] Error 2 

make[2]: Leaving directory `/root/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

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

make[1]: Leaving directory `/root/uclinux/nios2-linux/uClinux-dist/vendors' 

make: *** [vendor_hwselect] Error 2 

******************************************************************************** 

*****************************************88 

I'm encountering the above error when I run the vendor_hwselect command 

 

caN ANYONE PLEASE LET ME KNOW IF ANYONE HAD THE SAME PROBLEM  

OR IF YOU THINK I MIGHT HAVE MADE FEW MISTAKES IN THE CONFIGURATION 

THANK YOU 

0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
101 Views

 

 

Hello, a few tips that might help: 

 

1) Did the project compile correctly? 

2) Have you tried putting the full path to the ptf file? 

3) I don't know about how you installed your software, but I make the hw select as a user and not as root, and in the nios2-linux/uclinux-dist directory 

4) Is the name for the PTF file correct? Do not mistake it for the project's name. 

 

Hope it helps 

 

Regards, 

 

Francisco 

Altera_Forum
Honored Contributor II
101 Views

5) Have you tryed to run "make menuconfig" first of vendor_hwselect ? 

6) Did you have write permission in PTF dir ? 

Regards
Altera_Forum
Honored Contributor II
101 Views

I've re tried it with changes mentioned by you  

and still it is the same error 

 

one thing i'm not sure is ..are these errors occurring coz I have not updated the uclinux_dist patches??? 

Altera_Forum
Honored Contributor II
101 Views

<div class='quotetop'>QUOTE (dilip @ Jul 7 2009, 01:30 PM) <{post_snapback}> (index.php?act=findpost&pid=23033)</div> 

--- Quote Start ---  

I&#39;ve re tried it with changes mentioned by you  

and still it is the same error 

 

one thing i&#39;m not sure is ..are these errors occurring coz I have not updated the uclinux_dist patches???[/b] 

--- Quote End ---  

 

 

 

which kernel version r u using? Make sure that your linux distribution is correctly extracted and tool chain is working fine. 

 

Good Luck...!
Altera_Forum
Honored Contributor II
101 Views

same error here in NEEK

Altera_Forum
Honored Contributor II
101 Views

Hi 

I revd following errors while compiling. I am unable to figure out what is problem. My design compiled correctly. 

 

make vendor_hwselect SYSPTF=/media/96A00F1FA00F0609/altera/temp/try1.ptf 

make ARCH=nios2 -C vendors vendor_hwselect 

make[1]: Entering directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors' 

make -C /home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. dir_v=/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2/. -f /home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/vendors-common.mak vendor_hwselect 

make[2]: Entering directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

[ -d /home/elysium/uclinux/nios2-linux/uClinux-dist/romfs/$i ] || mkdir -p /home/elysium/uclinux/nios2-linux/uClinux-dist/romfs 

make ARCH=nios2 CROSS_COMPILE=nios2-linux-uclibc- -C /home/elysium/uclinux/nios2-linux/uClinux-dist/../linux-2.6 O=/home/elysium/uclinux/nios2-linux/uClinux-dist/linux-2.6.x hwselect 

make[3]: Entering directory `/home/elysium/uclinux/nios2-linux/linux-2.6' 

GEN /home/elysium/uclinux/nios2-linux/uClinux-dist/linux-2.6.x/Makefile 

scripts/kconfig/conf -s arch/nios2/Kconfig# # configuration written to .config#  

make[4]: *** No rule to make target `hwselect'. Stop. 

make[3]: *** [sub-make] Error 2 

make[3]: Leaving directory `/home/elysium/uclinux/nios2-linux/linux-2.6' 

make[2]: *** [vendor_hwselect] Error 2 

make[2]: Leaving directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors/Altera/nios2' 

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

make[1]: Leaving directory `/home/elysium/uclinux/nios2-linux/uClinux-dist/vendors' 

make: *** [vendor_hwselect] Error 2 

 

I think CROSS COMPILER is not nios2-linux-uclibc- hwselect. Any help?
Altera_Forum
Honored Contributor II
101 Views

You have to change your branch for NO MMU which is test-nios2. Default branch is now for MMU version and hwselect is working only for NO MMU version. You have to: 

 

In nios2-linux/linux-2.6 

run command: 

git checkout test-nios2 

 

and the same command in nios2-linux/uClinux-dist 

 

Then you can use hwselect method.
Reply