blob: 0b07148b73a3ab1383f0c9f180349f5e7986cb51 [file] [log] [blame]
wdenka562e1b2005-01-09 18:21:42 +00001File: README.COBRA5272
2Author: Florian Schlote for Sentec elektronik (linux@sentec-elektronik.de)
Michal Simeke6ff9982023-09-08 09:11:31 +02003Contents: This is the README of U-Boot (Universal bootloader) for our
wdenka562e1b2005-01-09 18:21:42 +00004 COBRA5272 board.
5Version: v01.00
6Date: Tue Mar 30 00:28:33 CEST 2004
7License: This document is published under the GNU GPL
8______________________________________________________________________
9
10CHANGES
11040330 v01.00 Creation
12
13______________________________________________________________________
14
15
16CONFIGURING
17-----------
18
191. Modify include/configs/cobra5272.h acc. to your prefs
20
212. If necessary, modify board/cobra5272/config.mk (see below)
22
233.
24
25> make cobra5272_config
26
27> make
28
29
30Please refer to u-boot README (general info, u-boot-x-x-x/README),
Patrick Delaunayadd83912020-02-28 15:18:14 +010031to u-boot-x-x-x/board/cobra5272/README and
wdenka562e1b2005-01-09 18:21:42 +000032to the comments in u-boot-x-x-x/include/configs/cobra5272.h
33
Michal Simeke6ff9982023-09-08 09:11:31 +020034Configuring U-Boot is done by commenting/uncommenting preprocessor defines.
wdenka562e1b2005-01-09 18:21:42 +000035
36Default configuration is
37
38 FLASH version (for further info see subsection below)
39 link address 0xffe00000
40
41 16 MB RAM
42
43 network enabled
44 no default IP address for target, host set, no MACaddress set
45
46 bootdelay for autoboot 5 sec.
47 autoboot disabled
48
49
50#-----------------------------------
Michal Simeke6ff9982023-09-08 09:11:31 +020051# U-Boot FLASH version & RAM version
wdenka562e1b2005-01-09 18:21:42 +000052#-----------------------------------
53
Michal Simeke6ff9982023-09-08 09:11:31 +020054The U-Boot bootloader for Coldfire processors can be configured
wdenka562e1b2005-01-09 18:21:42 +000055
56 1. as a standalone bootloader residing in flash & relocating itself to RAM on
57 startup automatically => "FLASH version"
58
59 2. as a RAM version which will not load from flash automatically as it needs a
60 prestage bootloader ("chainloading") & is running only from the RAM address it
61 is linked to => "RAM version"
62
Michal Simeke6ff9982023-09-08 09:11:31 +020063 This version may be very helpful when installing U-Boot for the first time
wdenka562e1b2005-01-09 18:21:42 +000064 since it can be used to make available s. th. like a "bootstrap
65 mechanism".
66
67
68How to build the different images:
69
70------------------------------
71Flash version
72------------------------------
73
Michal Simeke6ff9982023-09-08 09:11:31 +020074Compile U-Boot
wdenka562e1b2005-01-09 18:21:42 +000075
76in dir ./u-boot-x-x-x/
77
78please first check:
79
Tom Rinie52fca22022-12-02 16:42:36 -050080 in ./configs/cobra5272_defconfig
wdenka562e1b2005-01-09 18:21:42 +000081
Tom Rinie52fca22022-12-02 16:42:36 -050082 CONFIG_MONITOR_IS_IN_RAM has to be not present in the file
wdenka562e1b2005-01-09 18:21:42 +000083
Michal Simeke6ff9982023-09-08 09:11:31 +020084 => U-Boot as single bootloader starting from flash
wdenka562e1b2005-01-09 18:21:42 +000085
86
Tom Rinie52fca22022-12-02 16:42:36 -050087 in configs/cobra5272_defconfig CONFIG_TEXT_BASE should be
wdenka562e1b2005-01-09 18:21:42 +000088
Tom Rinie52fca22022-12-02 16:42:36 -050089 CONFIG_TEXT_BASE=0xffe00000
wdenka562e1b2005-01-09 18:21:42 +000090
Michal Simeke6ff9982023-09-08 09:11:31 +020091 => linking address for U-Boot as single bootloader stored in flash
wdenka562e1b2005-01-09 18:21:42 +000092
93then:
94
95 host> make cobra5272_config
96 rm -f include/config.h include/config.mk
97 Configuring for cobra5272 board...
98 host> make
99 [...]
100
101 host> cp u-boot.bin /tftpboot/u-boot_flash.bin
102
103
104------------------------------
105RAM version
106------------------------------
107
108in dir ./u-boot-x-x-x/
109
110 host> make distclean
111
112please modify the settings:
Tom Rinie52fca22022-12-02 16:42:36 -0500113 in ./configs/cobra5272_defconfig
wdenka562e1b2005-01-09 18:21:42 +0000114
Tom Rinie52fca22022-12-02 16:42:36 -0500115 CONFIG_MONITOR_IS_IN_RAM now has to be enabled, e. g. as follows:
wdenka562e1b2005-01-09 18:21:42 +0000116
Tom Rinie52fca22022-12-02 16:42:36 -0500117 CONFIG_MONITOR_IS_IN_RAM=y
wdenka562e1b2005-01-09 18:21:42 +0000118
Michal Simeke6ff9982023-09-08 09:11:31 +0200119 => U-Boot as RAM version, chainloaded by another bootloader or using bdm cable
wdenka562e1b2005-01-09 18:21:42 +0000120
121
Tom Rinie52fca22022-12-02 16:42:36 -0500122 in configs/cobra5272_defconfig CONFIG_TEXT_BASE should be
wdenka562e1b2005-01-09 18:21:42 +0000123
Tom Rinie52fca22022-12-02 16:42:36 -0500124 CONFIG_TEXT_BASE=0x00020000
wdenka562e1b2005-01-09 18:21:42 +0000125
126 => target linking address for RAM
127
128
129then:
130
131 host> make cobra5272_config
132 rm -f include/config.h include/config.mk
133 Configuring for cobra5272 board...
134 host> make
135 [...]
136
137 host> cp u-boot.bin /tftpboot/u-boot_ram.bin
138
139
140----
141HINT
142----
143
144If the m68k-elf-toolchain & the m68k-bdm-gdb is installed you can run the RAM
145version by typing (in dir ./u-boot-x-x-x/)
146"board/cobra5272/bdm/load-cobra_uboot" ,
147in ./u-boot-x-x-x/ the RAM version u-boot (elf format) has to be available.