Hi DW,
> Now I want to put the configuration data (.sof) into the EPCS with a
> UBoot on top of it so that at boot up U-Boot will fire up from the EPCS
... snip ...
> can anyone suggest the correct steps to take (in script) to make the
> build happen
1. create the u-boot flash file with elf2flash and these parameters: --epcs
--base=0x0 --end=0x7fffffff
--flash=<the epcs chip designator>
--input=u-boot
--outfile=u-boot.flash
--boot=<path to epcs bootloader srec>
The bootloader srec is in the {install}/altera/kits/nios2/components/altera_nios2/boot_loader_epcs.srec
2. download u-boot to the epcs device. $ nios2-flash-programmer --epcs --input=u-boot.flash --sof=<path to pgm sof>
3. create the configuration flash file. $ sof2flash --epcs --input=<path to your system sof> --ofset=0x0 --output=config.flash
4. download the configuration flash file to the epcs device. $ nios2-flash-programmer --epcs --input=config.flash --sof=<path to pgm sof> --relocate
Don't forget the "--relocate -- it's important ;-)
... and you should be good-to-go at this point.
Hope this helps.
Regards,
--Scott