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

linux:cant use make vendor_hwselect like uclinux

Altera_Forum
Honored Contributor II
1,769 Views

hi 

after make menuconfig 

i want to map my *.ptf file,i think it will like uclinux ,then  

i input make vendor_hwselect SYSPTF/... 

but it report erros as below: 

 

[root@localhost uClinux-dist]# make vendor_hwselect SYSPTF=/mnt/hgfs/Download/mycpu.ptf  

make ARCH=nios2 -C vendors vendor_hwselect 

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

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

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

make hwselect 

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

make[3]: *** NO RULE TO CREATE “hwselect”。 stopped。 

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

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

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

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

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

make: *** [vendor_hwselect] error 2 

 

 

is the nios linux still cant to apply to custom CPU??? 

0 Kudos
11 Replies
Altera_Forum
Honored Contributor II
449 Views

The new kernel doesn't use hwselect script, it uses sopc generated header instead. Please follow the wiki, 

http://www.nioswiki.com/linux (http://www.nioswiki.com/linux

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

 

--- Quote Start ---  

The new kernel doesn't use hwselect script, it uses sopc generated header instead. Please follow the wiki, 

http://www.nioswiki.com/linux 

 

- Hippo 

--- Quote End ---  

 

hi,can you tell me that if Linux can porting to niosii with cycloneii FPGA?3q
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

yes. I have tested it on the 2c35 nios dev board and de2. 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Hi, 

I am trying to do the same thing and I am having similar problems. How do I include the SOPC generated header when building the kernel? I am using the Cyclone III board ( EP3C25F). I have a ptf file but not able to use it with the make vendor_hwselect 

 

Thanks for all the help, 

regards, 

priya
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Why don't you read the messages in this thread ???? :mad: 

 

Hippo already wrote:  

 

The new kernel doesn't use hwselect script, it uses sopc generated header instead. Please follow the wiki, 

http://www.nioswiki.com/linux 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Hi, 

 

I'm using the NIOS II processor (with MMU) with Linux on a Stratix 1S10 board. Everything is OK. 

 

In your case, you don't use "make hwselect" with Linux (just for the µClinux distro) but you have to generate a custom_fpga.h from the .sopc file with the sopc-create-header-files tool. 

Put it in the nios2-linux/linux-2.6/arch/nios2/include/asm directory. 

In the same way, modify the nios2-linux/linux-2.6/arch/nios2/include/asm/nios.h for sticking to your board. 

More infos here: http://nioswiki.com/linux/creating_a_nios_ii_design_with_an_mmu 

 

The main difficulty is to define the right SoPC system with MMU enabled for NIOS II... 

 

Pat.
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Thanks for you replies.  

I am not able to configure Nois2 for custom fpga (highlighted in red). 

I don't get that option when I run 'make menuconfig' 

What am I missing here? How do I make the kernel to look for custom_fpga.h? 

 

 

cd uClinux-dist 

make menuconfig # select Altera,nios2. kernel config your FPGA. 

 

NiosII Configuration --->NiosII FPGA configuration --->(X) CUSTOM_FPGA 

 

makeThanks for you patience, 

regards,priya
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

You have this menu in the kernel configuration menu (at the top)... 

 

cheers, 

Pat
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Thanks for all the help. I successfully loaded linux on NIOS. 

thanks again, 

regards, 

priya
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Is there a golden version of the DE2 as described by hippo on this thread? 

I am having no problems with the development process (use of custom_fpga.h, etc.), but my finished kernel never boots to completion. It would be nice to see a matched set of sopc/ptf/custom_fpga files, and a default configuration for menuconfig that works with them.
0 Kudos
Altera_Forum
Honored Contributor II
449 Views

Hello, 

 

I hope someone can help me, i am trying to build my own kernel. but i have the same problem as described in this thread: 

 

can't find Nios2 configuration in the menu:  

 

NiosII Configuration --->NiosII FPGA configuration --->(X) CUSTOM_FPGA 

 

I followed this tutorial: 

 

http://www.mail-archive.com/linuxkernelnewbies@googlegroups.com/msg01853.html
0 Kudos
Reply