| 1 | /* |
| 2 | ** Copyright (C) 2005 Wu Qi Ming <Qi-Ming.Wu@infineon.com> |
| 3 | ** |
| 4 | ** This program is free software; you can redistribute it and/or modify |
| 5 | ** it under the terms of the GNU General Public License as published by |
| 6 | ** the Free Software Foundation; either version 2 of the License, or |
| 7 | ** (at your option) any later version. |
| 8 | ** |
| 9 | ** This program is distributed in the hope that it will be useful, |
| 10 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | ** GNU General Public License for more details. |
| 13 | ** |
| 14 | ** You should have received a copy of the GNU General Public License |
| 15 | ** along with this program; if not, write to the Free Software |
| 16 | ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 17 | */ |
| 18 | |
| 19 | To build a u-boot for danube board, user need to do the following things: |
| 20 | To configure u-boot for a proper board, user need to modify two files accordingly. |
| 21 | |
| 22 | To configure u-boot for evaluation board, in danube-uboot/include/configs/danube.h, set |
| 23 | #define USE_EVALUATION_BOARD |
| 24 | #undef USE_REFERENCE_BOARD |
| 25 | and vice-versa. |
| 26 | |
| 27 | To let u-boot boot from ebu(flash,e.g), in danube-uboot/include/configus/danube.h, set |
| 28 | #define DANUBE_BOOT_FROM_EBU |
| 29 | Otherwise u-boot will be compiled for booting from RAM. |
| 30 | |
| 31 | To use DDR RAM running at 111M, in danube-uboot/include/configus/danube. |
| 32 | h, set |
| 33 | #define DANUBE_DDR_RAM_111M |
| 34 | #undef DANUBE_DDR_RAM_166M |
| 35 | and vice-versa. |
| 36 | |
| 37 | To define RAM size of RAM, in danube-uboot/include/configus/danube. |
| 38 | h, set |
| 39 | #define RAM_SIZE 0x2000000 /*32M ram*/ |
| 40 | This is an example for a 32M RAM. |
| 41 | |
| 42 | |
| 43 | Besides above settings, user need to change danube-uboot/board/danube/config.mk to set the loading address of u-boot. |
| 44 | If U-Boot is to boot from EBU(flash), user needs to set |
| 45 | TEXT_BASE=0xB0000000 |
| 46 | If u-boot is to boot from RAM, user needs to set |
| 47 | TEXT_BASE=0xa0400000 |
| 48 | |
| 49 | Use the script gct to build a uart downloadable u-boot image: |
| 50 | ./gct danube_ref_ddr166.conf u-boot.srec u-boot.asc |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |