summaryrefslogtreecommitdiff
path: root/firmware/link
Commit message (Collapse)AuthorAgeFilesLines
* DFU: Support re-flashing of DFU via DFUHarald Welte2011-07-301-2/+2
| | | | | | | | | As we re-locate the entire sam7dfu program into RAM, we don't need to execute from flash and can thus re-program the DFU partition via the DFU protocol itself (alternate setting '1'). We also implement downloading executable code into RAM using alternate setting '2'. The latter part is not properly executed yet.
* add new RUN_FROM_RAM run-mode for direct DFU-to-RAM supportHarald Welte2011-07-301-0/+94
|
* use gcc/ld flags -ffunction-sections and --gc-sectionsHarald Welte2011-07-303-15/+15
| | | | This will discard unused functions from the resulting binary
* AT91SAM7S: Fix linker script (stack) for 64kByte flash versionHarald Welte2010-11-131-1/+1
|
* add linker scripts for AT91SAM7S64 (64kByte flash / 16kByte RAM) variantHarald Welte2010-11-122-0/+210
|
* cleanup, removed deprecated memory definitionsmeri2007-04-105-714/+0
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@293 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* cleanup, added volatile storage space at the end of flash memorymeri2007-04-104-13/+14
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@292 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* add __ramfunc (.ramfunc) to data sectionlaforge2006-09-272-0/+2
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@231 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* - we increase the DFU size from 4k to 16k size. This is mainly due to thelaforge2006-09-224-6/+100
| | | | | | | | | | | | | | | | | | | SAM7S128 and SAM7S256 being restricted to 16k lock region size. If we want to lock the bootloader, it has to be 16k aligned. This wastes a lot of memory, since a non-debug DFU implementation fits currently into less than 4k. But anyway, we have lots of flexibility for the future given that amount of space. - The DFU size change introduces also a change in dfu_api location to 0x103fd0 - Allow GETSTATE and GETSTATUS from runtime mode (optional in DFU spec) - Make dfu_status a .data.shared variable, since it is used from GETSTATUS which we already support in runtime mode - do some led switching while flashing via DFU - disable all non-usb/dbgu interrupts when switching to DFU mode - fix interrupt-storm problem when dbgu is used in DFU loader - add missing linker script for SAM7S128 git-svn-id: https://svn.openpcd.org:2342/trunk@218 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* DFU works (fix various bugs such as forgetting to shift the page number, ↵laforge2006-09-211-3/+3
| | | | | | checking for invalid page numbers, off-by-one error in flash page calculation, etc.) git-svn-id: https://svn.openpcd.org:2342/trunk@215 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* - fix linker scripts and Cstartup.S to correctly relocate shared datalaforge2006-09-202-2/+4
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@207 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* fix _edata_shared address definition laforge2006-09-202-4/+2
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@206 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* - fix relocation of _data_shared segmentlaforge2006-09-202-5/+14
| | | | git-svn-id: https://svn.openpcd.org:2342/trunk@205 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* - add linker scripts for SAM7S128laforge2006-09-202-1/+112
| | | | | | | - use S128 linker script if we build DFU for PCD git-svn-id: https://svn.openpcd.org:2342/trunk@204 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* Completely separate DFU from application program, we now have a real bootloader.laforge2006-09-132-0/+203
| | | | | | | | | | | | | | DFU occupies 0x00100000 - 0x00100fff in flash, application starts at 0x00101000. DFU also occupies the first couple of bytes in SRAM, application starts at 0x00200024. In order to produce a samba-flashable image, first build dfu.bin by typing 'make -f Makefule.dfu', succeeded by 'make TARGET=... DEBUG=... BOARD=...' and then concatenating the two files together, e.g. cat dfu.bin main_reqa.bin > flash.bin. Actual flashing via DFU is still not operational, but will be implemented next git-svn-id: https://svn.openpcd.org:2342/trunk@194 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
* move to new directorylaforge2006-09-125-0/+714
git-svn-id: https://svn.openpcd.org:2342/trunk@191 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
personal git repositories of Harald Welte. Your mileage may vary