--- Quote Start ---
originally posted by repa+jun 22 2006, 12:58 am--><div class='quotetop'>quote (repa @ jun 22 2006, 12:58 am)</div>
--- quote start ---
<!--quotebegin-jay_1025@Jun 21 2006, 01:52 PM
hello all
i have modified cpu cloclk to 100mhz in sopc builder and cup input singal conneted from c1 of sdram pll,then generate new ptf.
but i could not open ptf file under uclinux-dist-test dir.
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
[faye@localhost uclinux-dist-test]$ make linux_hwselect sysptf=nios_clk100.ptf
kconfig_notimestamp=1 make arch=nios2nommu cross_compile=nios2-linux-uclibc- arch=nios2nommu cross_compile=nios2-linux-uclibc- -c linux-2.6.x hwselect
no emulation specific options.
make[1]: entering directory `/home/faye/uclinux-dist-test/linux-2.6.x'
running hwselect
error: could not open system ptf file.
make[1]: leaving directory `/home/faye/uclinux-dist-test/linux-2.6.x' --- Quote End ---
Do you know how to solve this problem ?
Thx !
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16313)</div>
[/b]
--- Quote End ---
As you notice, the make program enters directory home/faye/uClinux-dist-test/linux-2.6.x and runs hwselect from there, so that's where the ptf needs to be. Copy the ptf there, or give the absolute address of the ptf, something like SYSPTF=/home/faye/uClinux-dist-test/nios_clk100.ptf, or like hippo said, ~/project/nios_clk100.ptf.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16328)</div>
[/b]
--- Quote End ---
hello hippo & Repa
Thanks very much !
I can open PTF file now that two questions about open PTF file.
Q1:
I use this way to open PTF is OK in linux-2.6.16.1(buildroot) with no path.
Q2: Why I can open anthor PTF file in uClinux-dist-test with no path?
such as following
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
[faye@localhost uClinux-dist-test]$ ls
autoconf.h Documentation linux-2.4.x README uClinux-dist.diff.gz
bin freeswan linux-2.6.x romfs user
config images Makefile SOURCE vendors
config.arch include nios_605.ptf system_0.ptf
config.in lib nios_clk100.ptf tools
COPYING linux-2.0.x openswan uClibc
[faye@localhost uClinux-dist-test]$ make linux_hwselect SYSPTF=nios_605.ptf KCONFIG_NOTIMESTAMP=1 make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C linux-2.6.x hwselect
no emulation specific options.
make[1]: Entering directory `/home/faye/uClinux-dist-test/linux-2.6.x'
RUNNING hwselect
--- Please select which CPU you wish to build the kernel against:
(1) cpu_0 - Class: altera_nios2 Type: f Version: 5.11
Selection: 1
--- Please select a device to upload the kernel to:
(1) cfi_flash_0
Class: altera_avalon_cfi_flash
Size: 4194304 bytes
Selection: 1
--- Please select a device to execute kernel from:
(1) sram_0
Class: user_logic_SRAM_16Bits_512K
Size: 524288 bytes
(2) sdram_0
Class: altera_avalon_new_sdram_controller
Size: 8388608 bytes
(3) epcs_controller
Class: altera_avalon_epcs_flash_controller
Size: 2048 bytes
Selection: 2
--- Summary using
PTF: nios_605.ptf
CPU: cpu_0
Device to upload to: cfi_flash_0
Program memory to execute from: sdram_0
--- Settings written to /home/faye/uClinux-dist-test/linux-2.6.x/arch/nios2nommu/
hardware.mk make[1]: Leaving directory `/home/faye/uClinux-dist-test/linux-2.6.x'
[faye@localhost uClinux-dist-test]$[/b]
--- Quote End ---
Thx !