nios2_iss usability
Wei-Tsun Sun
wsun013 at gmail.com
Mon Apr 6 20:47:22 UTC 2009
I just make a copy of nios2_iss directory and named it nios2_de2_1 (I
am using DE2 as my dev board).
Changed a few files:
- linkcmd : I used nios2-ide to create a system library with
corresponding ptf file, dig the generated.x out from the
system_description directory of the system library. Adding few bits
and pieces are required. (RamBase, RamSize, HeapSize.........)
- bsp.h : filled base address and other values by refering to the
system.h generated by the ide
- create ./make/custom/nios2_de2_1.cfg
The hello and ticker work on my DE2 hardware now.
>
> Now parts of the function names collide with what you'll find in
> newlib, like gettimeofday (AFAIR). You can rename these functions by
> generating your own alt_syscall.h from the already generated files:
>
I didn't use the wrapped nios2-elf-gcc compiler, instead of that, I get
the sources from the Altera's FTP and build the gcc against the newlib
1.17 with pathch provided by Joel and I made some patches to the
libgloss to make it compile fine. The gettimeofday function is in the
libgloss/nios2/nosys_gettod.c.
> This should give you a nice .a file with most of the stuff inside. It
> was my plan to integrate this nicely; but so far I got stuck with
> problems building gcc and newlib together. I'm starting to dream about
> commercial compilers...
>
> I hope above information helps you.
I also patched bits and pieces of the Makefile.am/Makefile.in in
cpukit/wrapup and c/src/wrapup because it was generating 8bytes
librtemsbsp.a and librtemscpu.a...
I will do more testing on this and will write up some steps I took when
I have time.....
Thanks for all the info.
More information about the users
mailing list