Forum Discussion
Altera_Forum
Honored Contributor
16 years agolinux:cant use make vendor_hwselect like uclinux
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???11 Replies
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
--- 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 - Altera_Forum
Honored Contributor
yes. I have tested it on the 2c35 nios dev board and de2.
- Hippo - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
You have this menu in the kernel configuration menu (at the top)...
cheers, Pat - Altera_Forum
Honored Contributor
Thanks for all the help. I successfully loaded linux on NIOS.
thanks again, regards, priya - Altera_Forum
Honored Contributor
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.