xref: /OK3568_Linux_fs/u-boot/board/cobra5272/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFile:		README.COBRA5272
2*4882a593SmuzhiyunAuthor:		Florian Schlote for Sentec elektronik (linux@sentec-elektronik.de)
3*4882a593SmuzhiyunContents:	This is the README of u-boot (Universal bootloader) for our
4*4882a593Smuzhiyun		COBRA5272 board.
5*4882a593SmuzhiyunVersion:	v01.00
6*4882a593SmuzhiyunDate:		Tue Mar 30 00:28:33 CEST 2004
7*4882a593SmuzhiyunLicense:	This document is published under the GNU GPL
8*4882a593Smuzhiyun______________________________________________________________________
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunCHANGES
11*4882a593Smuzhiyun040330   v01.00 Creation
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun______________________________________________________________________
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunCONFIGURING
17*4882a593Smuzhiyun-----------
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun1. Modify include/configs/cobra5272.h acc. to your prefs
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun2. If necessary, modify board/cobra5272/config.mk (see below)
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun3.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun> make cobra5272_config
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun> make
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun
30*4882a593SmuzhiyunPlease refer to u-boot README (general info, u-boot-x-x-x/README),
31*4882a593Smuzhiyunto u-boot-x-x-x/doc/README.COBRA5272 and
32*4882a593Smuzhiyunto the comments in u-boot-x-x-x/include/configs/cobra5272.h
33*4882a593Smuzhiyun
34*4882a593SmuzhiyunConfiguring u-boot is done by commenting/uncommenting preprocessor defines.
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunDefault configuration is
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun	FLASH version (for further info see subsection below)
39*4882a593Smuzhiyun	link address 0xffe00000
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun	16 MB RAM
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun	network enabled
44*4882a593Smuzhiyun	no default IP address for target, host set, no MACaddress set
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	bootdelay for autoboot 5 sec.
47*4882a593Smuzhiyun	autoboot disabled
48*4882a593Smuzhiyun
49*4882a593Smuzhiyun
50*4882a593Smuzhiyun#-----------------------------------
51*4882a593Smuzhiyun# u-boot FLASH version & RAM version
52*4882a593Smuzhiyun#-----------------------------------
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunThe u-boot bootloader for Coldfire processors can be configured
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun	1. as a standalone bootloader residing in flash & relocating itself to RAM on
57*4882a593Smuzhiyun	startup automatically => "FLASH version"
58*4882a593Smuzhiyun
59*4882a593Smuzhiyun	2. as a RAM version which will not load from flash automatically as it needs a
60*4882a593Smuzhiyun	prestage bootloader ("chainloading") & is running only from the RAM address it
61*4882a593Smuzhiyun	is linked to => "RAM version"
62*4882a593Smuzhiyun
63*4882a593Smuzhiyun	This version may be very helpful when installing u-boot for the first time
64*4882a593Smuzhiyun	since it can be used to make available s. th. like a "bootstrap
65*4882a593Smuzhiyun	mechanism".
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun
68*4882a593SmuzhiyunHow to build the different images:
69*4882a593Smuzhiyun
70*4882a593Smuzhiyun------------------------------
71*4882a593SmuzhiyunFlash version
72*4882a593Smuzhiyun------------------------------
73*4882a593Smuzhiyun
74*4882a593SmuzhiyunCompile u-boot
75*4882a593Smuzhiyun
76*4882a593Smuzhiyunin dir ./u-boot-x-x-x/
77*4882a593Smuzhiyun
78*4882a593Smuzhiyunplease first check:
79*4882a593Smuzhiyun
80*4882a593Smuzhiyun	in ./include/configs/cobra5272.h
81*4882a593Smuzhiyun
82*4882a593Smuzhiyun		CONFIG_MONITOR_IS_IN_RAM has to be undefined, e. g. as follows:
83*4882a593Smuzhiyun
84*4882a593Smuzhiyun		#if 0
85*4882a593Smuzhiyun			#define CONFIG_MONITOR_IS_IN_RAM
86*4882a593Smuzhiyun			/* define if monitor is started from a pre-loader */
87*4882a593Smuzhiyun		#endif
88*4882a593Smuzhiyun
89*4882a593Smuzhiyun	=> u-boot as single bootloader starting from flash
90*4882a593Smuzhiyun
91*4882a593Smuzhiyun
92*4882a593Smuzhiyun	in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be
93*4882a593Smuzhiyun
94*4882a593Smuzhiyun		CONFIG_SYS_TEXT_BASE = 0xffe00000
95*4882a593Smuzhiyun
96*4882a593Smuzhiyun	=> linking address for u-boot as single bootloader stored in flash
97*4882a593Smuzhiyun
98*4882a593Smuzhiyunthen:
99*4882a593Smuzhiyun
100*4882a593Smuzhiyun	host> make cobra5272_config
101*4882a593Smuzhiyun		rm -f include/config.h include/config.mk
102*4882a593Smuzhiyun		Configuring for cobra5272 board...
103*4882a593Smuzhiyun	host> make
104*4882a593Smuzhiyun		[...]
105*4882a593Smuzhiyun
106*4882a593Smuzhiyun	host> cp u-boot.bin /tftpboot/u-boot_flash.bin
107*4882a593Smuzhiyun
108*4882a593Smuzhiyun
109*4882a593Smuzhiyun------------------------------
110*4882a593SmuzhiyunRAM version
111*4882a593Smuzhiyun------------------------------
112*4882a593Smuzhiyun
113*4882a593Smuzhiyunin dir ./u-boot-x-x-x/
114*4882a593Smuzhiyun
115*4882a593Smuzhiyun	host> make distclean
116*4882a593Smuzhiyun
117*4882a593Smuzhiyunplease modify the settings:
118*4882a593Smuzhiyun
119*4882a593Smuzhiyun	in ./include/configs/cobra5272.h
120*4882a593Smuzhiyun
121*4882a593Smuzhiyun		CONFIG_MONITOR_IS_IN_RAM now has to be defined, e. g. as follows:
122*4882a593Smuzhiyun
123*4882a593Smuzhiyun		#if 1
124*4882a593Smuzhiyun			#define CONFIG_MONITOR_IS_IN_RAM
125*4882a593Smuzhiyun			/*define if monitor is started from a pre-loader */
126*4882a593Smuzhiyun		#endif
127*4882a593Smuzhiyun
128*4882a593Smuzhiyun	=> u-boot as RAM version, chainloaded by another bootloader or using bdm cable
129*4882a593Smuzhiyun
130*4882a593Smuzhiyun
131*4882a593Smuzhiyun	in board/cobra5272/config.mk CONFIG_SYS_TEXT_BASE should be
132*4882a593Smuzhiyun
133*4882a593Smuzhiyun		CONFIG_SYS_TEXT_BASE = 0x00020000
134*4882a593Smuzhiyun
135*4882a593Smuzhiyun	=> target linking address for RAM
136*4882a593Smuzhiyun
137*4882a593Smuzhiyun
138*4882a593Smuzhiyunthen:
139*4882a593Smuzhiyun
140*4882a593Smuzhiyun	host> make cobra5272_config
141*4882a593Smuzhiyun		rm -f include/config.h include/config.mk
142*4882a593Smuzhiyun		Configuring for cobra5272 board...
143*4882a593Smuzhiyun	host> make
144*4882a593Smuzhiyun		[...]
145*4882a593Smuzhiyun
146*4882a593Smuzhiyun	host> cp u-boot.bin /tftpboot/u-boot_ram.bin
147*4882a593Smuzhiyun
148*4882a593Smuzhiyun
149*4882a593Smuzhiyun----
150*4882a593SmuzhiyunHINT
151*4882a593Smuzhiyun----
152*4882a593Smuzhiyun
153*4882a593SmuzhiyunIf the m68k-elf-toolchain & the m68k-bdm-gdb is installed you can run the RAM
154*4882a593Smuzhiyunversion by typing (in dir ./u-boot-x-x-x/)
155*4882a593Smuzhiyun"board/cobra5272/bdm/load-cobra_uboot" ,
156*4882a593Smuzhiyunin ./u-boot-x-x-x/ the RAM version u-boot (elf format) has to be available.
157