[292] | 1 | TSAR BOOT LOADER |
---|
| 2 | |
---|
| 3 | Files: |
---|
| 4 | =============================================================================== |
---|
| 5 | src/ Source files |
---|
| 6 | The entry point of this boot loader is the file reset.S |
---|
| 7 | |
---|
| 8 | include/ Header files |
---|
| 9 | |
---|
| 10 | conf/ Platform specific files and ldscript. |
---|
| 11 | For each platform, we must define a new directory. |
---|
| 12 | |
---|
| 13 | ---> defs_platform.h: |
---|
| 14 | |
---|
| 15 | This file is mandatory. This file defines the |
---|
| 16 | NB_PROCS per cluster, the NB_CLUSTERS and the base address of |
---|
| 17 | the TTY, IOC and XICU devices. |
---|
| 18 | |
---|
| 19 | ---> platform_soclib.dts: |
---|
| 20 | |
---|
| 21 | Device tree file. It is mandatory if compiling |
---|
| 22 | for a SOCLIB platform. If the application to execute does not use |
---|
| 23 | a device tree file, create an empty one. |
---|
| 24 | |
---|
| 25 | ---> platform_fpga.dts: |
---|
| 26 | Device tree file. It is mandatory if compiling |
---|
| 27 | for a FPGA platform. If the application to execute does not use |
---|
| 28 | a device tree file, create an empty one. |
---|
| 29 | |
---|
| 30 | ---> ldscript: |
---|
| 31 | LD script defining the segments of this boot loader. |
---|
| 32 | We define two segments: |
---|
| 33 | seg_stack_base: Base address of the stack used by processor 0 |
---|
| 34 | during the boot process. |
---|
| 35 | |
---|
| 36 | seg_boot_base: Base address of the code and data defined for |
---|
| 37 | this loader |
---|
| 38 | |
---|
| 39 | Makefile Makefile for compile the boot loader. |
---|
| 40 | Arguments to pass: |
---|
| 41 | |
---|
| 42 | ---> PLATFORM_DIR=conf/<platform_dir> |
---|
| 43 | |
---|
| 44 | Defines the directory where to find the plateform specific |
---|
| 45 | files |
---|
| 46 | |
---|
| 47 | ---> SOCLIB=1 |
---|
| 48 | |
---|
| 49 | If using SOCLIB, define this flag to use the SOCLIB device |
---|
| 50 | drivers |
---|
| 51 | |
---|
| 52 | ---> SYSCLK_FREQ=<value hz> |
---|
| 53 | |
---|
| 54 | If not SOCLIB platform, this flag allows us to choose the |
---|
| 55 | CLK frequency used in the hardware platform (i.e. FPGA). |
---|
| 56 | This information is used to configurate the SPI device |
---|
| 57 | which allow us to drive a SD card device. |
---|
| 58 | |
---|
| 59 | i.e. make PLATFORM_DIR=conf/<platform_dir> SYSCLK_FREQ=50000000 |
---|
| 60 | make PLATFORM_DIR=conf/<platform_dir> SOCLIB=1 |
---|