Last change
on this file since 291 was
276,
checked in by bouyer, 12 years ago
|
A boot loader to be stored in ROM of a TSAR platform.
Based on Cesar FUGUET's work.
Platform-specific files are in a subdirectory, e.g. platform_fpga_de2-115,
so the same code can be targetted to different platforms.
The platform is selected with the PLATFORM_DIR environnement variable.
The supported variant are soclib and fpga, the later being the default
and the former selected by defining the SOCLIB environnement variable.
The boot loader embeds a binary device tree describing the platform,
to be used by the loaded software.
|
File size:
781 bytes
|
Rev | Line | |
---|
[276] | 1 | /********************************************************** |
---|
| 2 | File : ldscript |
---|
| 3 | Author : Cesar Fuguet |
---|
| 4 | Date : June 2011 |
---|
| 5 | **********************************************************/ |
---|
| 6 | |
---|
| 7 | /* definition of the base address for all segments |
---|
| 8 | The peripherals base addresses are referenced by the |
---|
| 9 | software drivers and must be defined, even if the |
---|
| 10 | peripherals are not present in the architecture */ |
---|
| 11 | |
---|
| 12 | seg_stack_base = 0x04000000; |
---|
| 13 | seg_reset_heap_base = 0x04400000; |
---|
| 14 | |
---|
| 15 | seg_reset_code_base = 0xBFC00000; /* le code de boot */ |
---|
| 16 | |
---|
| 17 | /* Grouping sections into segments */ |
---|
| 18 | |
---|
| 19 | ENTRY(boot) |
---|
| 20 | SECTIONS |
---|
| 21 | { |
---|
| 22 | . = seg_reset_code_base; |
---|
| 23 | .text : { |
---|
| 24 | *(.boot) |
---|
| 25 | *(.reset) |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | .data ALIGN(0x4) : { |
---|
| 29 | *(.reset_data) |
---|
| 30 | . = ALIGN(0x4); |
---|
| 31 | dtb_addr = .; |
---|
| 32 | INCLUDE "objs/platform.ld"; |
---|
| 33 | } |
---|
| 34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.