Add Makefile for fpga directory (Windows codepath is untested, in any case, go.bat is still there)

Retire rbt2c.pl, instead use objcopy to directly convert the .bit file into an .o that can be linked with the flash image
Rename armsrc/fpga.c to armsrc/fpgaloader.c (since there is now a new fpga.o, created from fpga.bit)
Remove fpgaimg.c from subversion, add fpga.bit
Instead of creating fpgaimage.elf and osimage.elf separately, now create a joined fullimage.elf 
  first (obsoleting ldscript-full), then extract only the fpga and os sections with objcopy
  (This creates unspecific warnings about an empty segment, need to investigate)
Implement a rudimentary .bit parser in the firmware, use that to locate the bitstream in the new
  fpgaimage (which is just a plain copy of the fpga.bit file) and send it to the FPGA
  The code will check the format that's in flash and fall back to the legacy format
This commit is contained in:
henryk@ploetzli.ch committed 2009-08-27 23:29:49 +00:00
1 parent 391a974f53
commit e73e717239
12 files changed
+178 -10651

No files matched your search

+4 -1
View File
@@ -3,7 +3,10 @@ INCLUDE ../common/ldscript.common
ENTRY(Vector)
SECTIONS
{
.start : { obj/start.o(.text) } >osimage
fpgaimage : {
*(fpga_bit.data)
} >fpgaimage
.start : { *(.startos) } >osimage
.text : {
*(.text)
*(.text.*)