Hi aihuazou,
All you should need is a target. Here's what I added for example:
target PCI5441 {
alias { "Psyent PCI-5441" }
packages { CYGPKG_HAL_NIOS2
CYGPKG_SOPC
CYGPKG_ALTERA_AVALON_UART
CYGPKG_ALTERA_AVALON_JTAG_UART
CYGPKG_ALTERA_AVALON_TIMER
CYGPKG_ALTERA_AVALON_AM29LV065D_FLASH
CYGPKG_DEVS_FLASH_AMD_AM29XXXXX
}
description "
This target provides the packages needed to run
eCos on the Psyent PCI-5441 Media Processor board."
}
The "Nios II Generic" was a nice start -- although it really isn't very generic since
it assumes too much hardware ;-)
If you need to add new device drivers or other such components, then you can
monkey with cdl. Otherwise, you might be making extra work for yourself.
> what is the difference between the package "sopc" and "nios2" ?
"sopc" is a "package" controlled by a cdl. "nios2" is a target. The target includes
specific packages.
Regards,
--Scott