Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi nvs,
The .config is not related to ptf. The ptf is used to create a header file for hardware address. When you run,make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=your_system.ptf it will ask you some questions, like these. And you should make selections. <div class='quotetop'>QUOTE </div> --- Quote Start --- no emulation specific options. RUNNING hwselect --- Please select which CPU you wish to build the kernel against: (1) cpu_0 - Class: altera_nios2 Type: f Version: 5.1 Selection: 1 --- Please select a device to upload the kernel to: (1) cfi_flash_0 Class: altera_avalon_cfi_flash Size: 8388608 bytes Selection: 1 --- Please select a device to execute kernel from: (1) ddr_sdram_0 Class: ddr_sdram_component Size: 67108864 bytes (2) onchip_memory_0 Class: altera_avalon_onchip_memory2 Size: 8192 bytes Selection: 1 --- Summary using PTF: /home/jack/prog/v1.ptf CPU: cpu_0 Device to upload to: cfi_flash_0 Program memory to execute from: ddr_sdram_0 --- Settings written to /home/jack/linux-2.6.15.3/arch/nios2nommu/hardware.mk[/b] --- Quote End --- You will always need a cfi memory for the hwselect perl script, even when you use EPCS. Just add a dummy cfi flash to a copy of your real ptf and make the hwselect happy. It is for hwselect only. You dont need it for hardware. That's what required for hwselect, <div class='quotetop'>QUOTE </div> --- Quote Start --- You should start with a mininal system with only nios2 cpu core,dram,timer,jtag/serial console and a cfi flash, (which can be dummy and removed later). Note, the interrupt vector (ie, execption vector) should be in uClinux program memory.[/b] --- Quote End --- You need a full featured timer.