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

build an eCos library error

Altera_Forum
Honored Contributor II
2,258 Views

hi all: 

 

when i build an eCos library in 6.1 step 1,some errors occurs : 

 

"Error loading the default hardware template 'nios_dev_board': 

Package CYGPKY_HAL_NIOS@, 7 errors occurred while reading in the CDLvdata." 

 

I select "ok",then let me "please specify the root of the eCos repository tree". the default tree is"default rounte is c:\altera\kits\nios2_51\components\ecos\ecos-current" .. 

 

 

this is the error log : 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_SYSCLK_DEV, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_TEXT_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_RODATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_RWDATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_TEXT_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_RODATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_RWDATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_SYSCLK_DEV, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_TEXT_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_RODATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGHWR_HAL_NIOS2_RWDATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_TEXT_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_RODATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

c:/DOCUME~1/lyg/LOCALS~1/Temp/nios2_auto.cdl, option CYGSEM_ROM_MONITOR_RWDATA_REGION, property legal_values: error 

End of expression reached when expecting an operand. 

<end of data>{ ...} 

 

can anydody help me build an eCos library?? 

thanks!
0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
1,322 Views

Make sure you have specified the &#39;--cpu=&#39; parameter correctly. This should be set to the name of your Nios II processor in the SOPC builder, and it&#39;s also case sensitive! 

 

There appears to be no validation for this parameter, so if you specify incorrectly you get the errors you describe (at least on my system running version 6.0).
0 Kudos
Altera_Forum
Honored Contributor II
1,322 Views

Thank you,nigelatta! 

 

 

 

I download a cygwin peogram and installed it. Changed the "root of the eCos repository tree".From "c:\altera\kits\nios2_51\components\ecos\ecos-current" to "c:\cygwin\eCos" . the tool appeared and had no error . 

 

But i can&#39;t find "Nios II development Board(Altera)" in "build -> templates".
0 Kudos
Altera_Forum
Honored Contributor II
1,322 Views

If you are working with an Altera development board I don&#39;t think you should try to bypass the Altera supplied configuration. 

 

My software versions are Quartus II 6.0, SOPC builder 6.0, Nios II 6.01 and working through the &#39;eCos for Nios II.htm&#39; document worked ok for me.
0 Kudos
Altera_Forum
Honored Contributor II
1,322 Views

Thank you, nigelatta! 

You are Right! 

My "--cpu=" parameter was not correct. 

 

But i meet a new error. When i open an exist file ,some error occur. 

 

C:\altera\ecos_demo\lib\demo.ecc: error 

Attempt to load an unknown package `CYGPKG_DEVS_ALT_MAC&#39;. 

C:\altera\ecos_demo\lib\demo.ecc: error 

The savefile contains a cdl_package command for `CYGPKG_DEVS_ALT_MAC&#39; which has not been loaded. 

C:\altera\ecos_demo\lib\demo.ecc: error 

The savefile contains a cdl_component command for an unknown component `CYGPKG_DEVS_ALT_MAC_OPTIONS&#39; 

C:\altera\ecos_demo\lib\demo.ecc: error 

The savefile contains a cdl_option for an unknown option `CYGPKG_DEVS_ALT_MAC_CFLAGS_ADD&#39; 

C:\altera\ecos_demo\lib\demo.ecc: error 

The savefile contains a cdl_option for an unknown option `CYGDAT_ALT_MAC_GET_ESA&#39; 

C:\altera\ecos_demo\lib\demo.ecc: error 

The savefile contains a cdl_option for an unknown option `CYGDAT_ALT_MAC_ESA_DEFAULT&#39; 

 

Is it meaning c:\altera\kits\...\ecos\package\devs\alt\mac is missing ? or not ?
0 Kudos
Altera_Forum
Honored Contributor II
1,322 Views

Where did you get the demo.ecc file from ? Is it one which you have created or was it supplied from somewhere else ? 

 

I can find no reference to CYGPKG_DEVS_ALT_MAC on my system, but the options look like they are related to setting the MAC address for the ethernet adapter. 

 

These functions are contained in package CYGPKG_ALTERA_AVALON_LAN91C111 (ecos\ecos-current\packages\devs\eth\sopc\altera_avalon_lan91c111) on my system and so I suspect you are trying to load a file created with some previous version and there have been some changes since.
0 Kudos
Altera_Forum
Honored Contributor II
1,322 Views

The ecc.demo is from ALTERA&#39;s reference_designs. Refrence_design did no use lan91c11,maybe a MAC ip-core. Now i don;t know how to do it . 

Reading the ecos2.0doc will help!? 

 

I found an ecos package and added it in ecos. Then i open it.(2006.12.6) 

 

-------------------------------------------------------------------------------------------- 

1. cd c:/ecos/1c20 

2. nios2configtool --ptf=..... --cpu=cpu 

3. build -> generate build tree 

4. build -> library 

5. make INSTALL_DIR=1c20_install  

or make INSTALL_DIR=c:/ecos/1c20/1c20_install  

or make INSTALL_DIR=cygdrive/c/ecos/1c201c20_install  

 

the same error is : make :***no targets specifed and no make file found,stop  

how can generate a make file ?
0 Kudos
Reply