source: trunk/softs/tsar_boot/README @ 758

Last change on this file since 758 was 758, checked in by cfuguet, 10 years ago

tsar_boot: improving configuration infrastructure

  • Using hard_config.h which respects the same sintax that the hard_config.h file of all TSAR platforms. This file can be then generated by the GIET-VM genmap tool or written manually.
  • All peripheral drivers have been moved to a drivers directory and they are compiled as a static library. This allows GCC to only include in the final .ELF the object files of used peripherals and not all of them.
  • Example hard_config.h and ldscripts have been introduced in the conf directory.
  • Improving comments in all files
File size: 1.7 KB
RevLine 
[758]1\author: Cesar Fuguet
2\date  : July 24, 2014
[292]3
[758]4TSAR BOOT-LOADER
5
[292]6Files:
7src/        Source files
[302]8            The entry point of this boot loader is the file reset.S
[292]9
10include/    Header files
11
[758]12driver/     Drivers source files and headers
13
14conf/       Platform specific files and ldscript
[347]15            For each platform, we must define a new directory.
[758]16            Mandatory files:
[292]17
[758]18              - hard_config.h (can be generated using giet-vm genmap tool)
[292]19
[758]20              - ldscript
[425]21
[758]22            Optional files:
[568]23
[758]24              - platform.dts (platform device tree)
[292]25
[758]26Makefile    Makefile to compile the boot loader.
27            Mandatory arguments:
[347]28
[758]29              - PLATFORM_DIR=<platform_dir>
[425]30
[758]31                Defines the directory where to find the plateform specific
32                files
[347]33
[758]34           Optional arguments:
[292]35
[758]36              - USE_DT=<value>
[292]37
[758]38                Value can be 1 or 0.
39                If a device tree file is not used, set this flag to 0. It is
40                set by default to 1.
[388]41
[758]42              - SYSTEM_CLK=<platform clock frequency>
[292]43
[758]44                Platform clock frequency in KHz
[388]45
[758]46              - DTS=<file.dts>
[292]47
[758]48                Platform device tree (by default is platform.dts)
[702]49
[758]50Examples:
[702]51
[758]52    make PLATFORM_DIR=<platform_dir> USE_DT=0
[702]53
[758]54        Compile for <platform_dir> and do not compile device tree file
[702]55
[758]56    make PLATFORM_DIR=<platform_dir> DTS=platform_fpga.dts SYSTEM_CLK=25000
[702]57
[758]58        Compile for <platform_dir> and compile the 'platform_dpga.dts'
59        device tree file. System clock frequency is 25 MHz
[702]60
[758]61    make PLATFORM_DIR=<platform_conf> SYSTEM_CLK=25000
[292]62
[758]63        Compile for <platform_dir> and compile the 'platform.dts'
64        device tree file (default name). System clock frequency is 25 MHz
[292]65
Note: See TracBrowser for help on using the repository browser.