source: trunk/softs/tsar_boot/README @ 719

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

tsar_boot:

  • Fixing bug introduced in commit r688. Missing double quotes while calling echo command. The SVN revision was not correctly taken because of this.
  • Renaming version in VERSION. Convention: Text files name is in capital letters.
File size: 3.2 KB
RevLine 
[292]1TSAR BOOT LOADER
2
3Files:
4===============================================================================
5src/        Source files
[302]6            The entry point of this boot loader is the file reset.S
[292]7
8include/    Header files
9
[388]10conf/       Platform specific files and ldscript examples.
[347]11            For each platform, we must define a new directory.
[292]12
[702]13            - defs_platform.h:
[292]14
[702]15              This file is mandatory. This file defines the NB_PROCS per
16              cluster, the NB_CLUSTERS and the base address of the TTY, IOC,
17              XICU and MEMC (config) devices. It defines also:
[425]18
[702]19                #define USE_IOB
[568]20
[702]21                  This constant is used by the boot_ioc_read function to know
22                  if the buffer used to store the blocks from the block_device
23                  must be invalidated in the memory cache after the transfert
24                  has finished.
[292]25
[702]26                #define CACHE_COHERENCE
[347]27
[702]28                  This constant is used by the boot_ioc_read function to know
29                  if the buffer used to store the blocks from the block_device
30                  must be invalidated in the dcache after the transfert has
31                  finished.
[425]32
[702]33                #define CACHE_LINE_SIZE
34                 
35                  This constant is mandatory if CACHE_COHERENCE=0 or USE_IOB=1
36                  This constant defines the size in bytes of a cache line.
[347]37
[702]38                #define RESET_DEBUG
[292]39
[702]40                  Set value to 1 to show some debug messages during loading
[292]41
[702]42                #define IRQ_PER_PROC
[388]43
[702]44                  This constant is used to know how many XICU irq outputs are
45                  connected to each processor.
[292]46
[702]47            - platform_soclib.dts:
[388]48
[702]49              Device tree file. It is mandatory if compiling for a SOCLIB
50              platform and USE_DT=1.
[292]51
[702]52            - platform_fpga.dts:
53
54              Device tree file. It is mandatory if compiling for a FPGA
55              platform and USE_DT=1.
56
57            - ldscript:
58
59              LD script defining the segments of this boot loader.
60              We define two segments:
61
62                seg_stack_base:
63
64                  Base address of the stack used by processor 0 during the boot
65                  process. read-write data and bss will also be there.
66
67                seg_boot_base:
68               
69                  Base address of the code and read-only data defined for this
70                  loader
[292]71           
[702]72Makefile    Makefile to compile the boot loader. Arguments to pass:
[292]73
[702]74              PLATFORM_DIR=<platform_dir>
[292]75   
[702]76                Defines the directory where to find the plateform specific
77                files
[292]78
[702]79              SOCLIB=1
[292]80
[702]81                If using SOCLIB, define this flag to use the BLOCK DEVICE
82                driver and to choose the platform_soclib device tree.
[292]83
[702]84              RAMDISK=1
[653]85
[702]86                If using SOCLIB, define this flag to use a RAMDISK instead of
87                BLOCK DEVICE (Set this flag when the SOCLIB flag is also set)
[653]88
[702]89              USE_DT=0
[292]90
[702]91                If a device tree file is not used, set this flag to 0. It is
92                set by default to 1.
[292]93
[702]94              e.g. make PLATFORM_DIR=<platform_conf> \
95                        SOCLIB=1 \
96                        USE_DT=0 \
97                        RAMDISK=0
Note: See TracBrowser for help on using the repository browser.