Added uboot tools
[keystone-rtos/mcsdk-tools.git] / boot_loader / uboot / nandwriter / nandwrite.cmd
2 /* source files */
3 nandwrite.obj
5 /* opts */
6 -c
7 -a
8 -stack 0x400
11 MEMORY
12 {
13         TCODE:  origin = 0x800000  length = 0x10000
14         DATA:   origin = 0x810000  length = 0x10000
15         STACK:  origin = 0x820000  length = 0x400
17         WRITE_BUF : origin   = 0x0c000000 length = 0x40000
18         READ_BUF  : origin   = 0x0c040000 length = 0x40000
19         SPARE_BUF : origin   = 0x0c080000 length = 0x20000
20         SCRATCH_BUF : origin = 0x0c0a0000 length = 0x20000
21 }
23 SECTIONS
24 {
25         .text > TCODE
27         .data   > DATA
28         .far    > DATA
29         .const  > DATA
30         .switch > DATA
31         .bss    > DATA
32         .cinit  > DATA
34         .stack > STACK
36         .d1 > WRITE_BUF
37         {
38                 _writeBlock = .;
39         }
41         .d2 > READ_BUF
42         {
43                 _readBlock = .;
44         }
46         .d3 > SPARE_BUF
47         {
48                 _spareBlock = .;
49         }
51         .d4 > SCRATCH_BUF
52         {
53                 _scratchBlock = .;
54         }
55 }