1 This port of U-Boot will run on a Motorola Sandpoint 3 development
2 system equipped with a Unity X4 PPMC card (MPC8240 CPU) only. It is a
3 snapshot of work in progress and far from being completed. In order
4 to run it on the target system, it has to be downloaded using the
5 DINK32 monitor program that came with your Sandpoint system. Please
6 note that DINK32 does not accept the S-Record file created by the
7 U-Boot build process unmodified, because it contains CR/LF line
8 terminators. You have to strip the CR characters first. There is a
9 tiny script named 'dinkdl' I created for this purpose.
11 The Sandpoint port is based on the work of Rob Taylor, who does not
12 seem to maintain it any more. I can be reached by mail as
20 The port was tested on a Sandpoint 8240 X3 board, with U-Boot
21 installed in the flash memory of the CPU card. Please use the
22 following DIP switch settings:
26 SW1.1: on SW1.2: on SW1.3: on SW1.4: on
27 SW1.5: on SW1.6: on SW1.7: on SW1.8: on
29 SW2.1: on SW2.2: on SW2.3: on SW2.4: on
30 SW2.5: on SW2.6: on SW2.7: on SW2.8: on
35 SW2.1: OFF SW2.2: OFF SW2.3: on SW2.4: on
36 SW2.5: OFF SW2.6: OFF SW2.7: OFF SW2.8: OFF
38 SW3.1: OFF SW3.2: on SW3.3: OFF SW3.4: OFF
39 SW3.5: on SW3.6: OFF SW3.7: OFF SW3.8: on
42 The followind detailed description of installation and initial steps
43 with U-Boot and QNX was provided by Jim Sandoz <sandoz@lucent.com>:
46 Directions for installing U-Boot on Sandpoint+Unity8240
47 using the Abatron BDI2000 BDM/JTAG debugger ...
49 Background and Reference info:
50 http://u-boot.sourceforge.net/
51 http://www.abatron.ch/
52 http://www.abatron.ch/BDI/bdihw.html
53 http://www.abatron.ch/DataSheets/BDI2000.pdf
54 http://www.abatron.ch/Manuals/ManGdbCOP-2000C.pdf
55 http://e-www.motorola.com/collateral/SPX3UM.pdf
56 http://e-www.motorola.com/collateral/UNITYX4CONFIG.pdf
62 | | <---------------> | | | | |
63 |PC | rs232 | BDI |=============[] | |
64 | | |2000 | BDM probe | | |
65 | | <---------------> | | |----- |
66 === ethernet ===== | |
76 Sandpoint X3 8240 processor board DIP switch settings, with
77 U-Boot to be installed in the flash memory of the CPU card:
79 Motorola Sandpoint X3 Motherboard:
80 SW1.1: on SW1.2: on SW1.3: on SW1.4: on
81 SW1.5: on SW1.6: on SW1.7: on SW1.8: on
82 SW2.1: on SW2.2: on SW2.3: on SW2.4: on
83 SW2.5: on SW2.6: on SW2.7: on SW2.8: on
85 Motorola Unity 8240 CPU Card:
86 SW2.1: OFF SW2.2: OFF SW2.3: on SW2.4: on
87 SW2.5: OFF SW2.6: OFF SW2.7: OFF SW2.8: OFF
88 SW3.1: OFF SW3.2: on SW3.3: OFF SW3.4: OFF
89 SW3.5: on SW3.6: OFF SW3.7: OFF SW3.8: on
93 Connect the BDI2000 Cable to the Sandpoint/Unity 8240:
95 BDM Pin 1 on the Unity 8240 processor board is towards the
96 PCI PMC connectors, or away from the socketed SDRAM, i.e.:
118 Setting up the BDI2000, and preparing for TCP/IP network comms:
120 Connect the BDI2000 to the PC using the supplied serial cable.
121 Download the BDI2000 software and install it using setup.exe.
123 [Note: of course you can also use the Linux command line tool
124 "bdisetup" to configure your BDI2000 - the sources are included on
125 the floppy disk that comes with your BDI2000. Just in case you don't
126 have any Windows PC's - like me :-) -- wd ]
128 Power up the BDI2000; then follow directions to assign the IP
129 address and related network information. Note that U-Boot
130 will be loaded to the Sandpoint via tftp. You need to either
131 use the Abatron-provided tftp application or provide a tftp
132 server (e.g. Linux/Solaris/*BSD) somewhere on your network.
133 Once the IP address etc are assigned via the RS232 port,
134 further communication with the BDI2000 will happen via the
138 Making a TCP/IP network connection to the Abatron BDI2000:
140 Telnet to the Abatron BDI2000. Assuming that all of the
141 networking info was loaded via RS232 correctly, you will see
142 the following (scrolling):
144 - TARGET: waiting for target Vcc
145 - TARGET: waiting for target Vcc
149 Power up the target Sandpoint:
150 If the BDM connections are correct, the following will now appear:
152 - TARGET: waiting for target Vcc
153 - TARGET: waiting for target Vcc
154 - TARGET: processing power-up delay
155 - TARGET: processing user reset request
157 - Reset JTAG controller passed
158 - Bypass check: 0x55 => 0xAA
159 - Bypass check: 0x55 => 0xAA
160 - JTAG exists check passed
161 - Target PVR is 0x00810101
163 - Check running state passed
164 - BDI scans COP freeze command
167 - Check stopped state passed
168 - Check LSRL length passed
169 - BDI sets breakpoint at 0xFFF00100
170 - BDI resumes program execution
171 - Waiting for target stop passed
172 - TARGET: Target PVR is 0x00810101
173 - TARGET: reseting target passed
174 - TARGET: processing target startup ....
175 - TARGET: processing target startup passed
180 Erase the current contents of the flash memory:
183 Erasing flash at 0xfff00000
186 Erasing flash at 0xfff04000
189 Erasing flash at 0xfff06000
192 Erasing flash at 0xfff08000
195 Erasing flash at 0xfff10000
198 Erasing flash at 0xfff20000
203 Program the flash memory with the U-Boot image:
205 BDI>prog 0xFFF00000 u-boot.bin bin
206 Programming u-boot.bin , please wait ....
207 Programming flash passed
211 Connect PC to Sandpoint:
212 Using a crossover serial cable, attach the PC serial port to the
213 Sandpoint's COM1. Set communications parameters to 8N1 / 9600 baud.
217 Reset the Unity and begin U-Boot execution:
220 - TARGET: processing user reset request
221 - TARGET: Target PVR is 0x00810101
222 - TARGET: reseting target passed
223 - TARGET: processing target init list ....
224 - TARGET: processing target init list passed
228 Now see output from U-Boot running, sent via serial port:
230 U-Boot 1.1.4 (Jan 23 2002 - 18:29:19)
232 CPU: MPC8240 Revision 1.1 at 264 MHz: 16 kB I-Cache 16 kB D-Cache
233 Board: Sandpoint 8240 Unity
236 PCI: scanning bus0 ...
237 bus dev fn venID devID class rev MBAR0 MBAR1 IPIN ILINE
238 00 00 00 1057 0003 060000 13 00000008 00000000 01 00
239 00 0b 00 10ad 0565 060100 10 00000000 00000000 00 00
240 00 0f 00 8086 1229 020000 08 80000000 80000001 01 00
248 Set and save any required environmental variables, examples of some:
250 => setenv ethaddr 00:03:47:97:D0:79
251 => setenv bootfile your_qnx_image_here
252 => setenv hostname sandpointX
253 => setenv netmask 255.255.255.0
254 => setenv ipaddr 192.168.0.11
255 => setenv serverip 192.168.0.10
256 => setenv gatewayip=192.168.0.1
258 Saving Environment to Flash...
259 Un-Protected 1 sectors
263 Writing to Flash... done
267 **** Example environment: ****
273 ethaddr=00:03:47:97:E4:6B
274 load=tftp 100000 u-boot.bin
275 update=protect off all;era FFF00000 FFF3FFFF;cp.b 100000 FFF00000 ${filesize};saveenv
277 gatewayip=145.17.228.1
278 netmask=255.255.255.0
280 serverip=145.17.242.46
285 Environment size: 332/8188 bytes
288 here's some text useful stuff for cut-n-paste:
289 setenv hostname sandpoint1
290 setenv netmask 255.255.255.0
291 setenv ipaddr 145.17.228.81
292 setenv serverip 145.17.242.46
293 setenv gatewayip 145.17.228.1
297 Test U-Boot by tftp'ing new U-Boot, overwriting current:
300 Un-Protect Flash Bank # 1
301 => tftp 100000 u-boot.bin
302 eth: Intel i82559 PCI EtherExpressPro @0x80000000(bus=0, device=15, func=0)
304 TFTP from server 145.17.242.46; our IP address is 145.17.228.42; sending through
306 Filename 'u-boot.bin'.
307 Load address: 0x100000
308 Loading: #########################
310 Bytes transferred = 127628 (1f28c hex)
314 Erase Flash Bank # 2 - missing
315 => cp.b 0x100000 FFF00000 1f28c
316 Copy to Flash... done
318 Saving Environment to Flash...
319 Un-Protected 1 sectors
323 Writing to Flash... done
327 You can put these commands into some environment variables;
329 => setenv load tftp 100000 u-boot.bin
330 => setenv update protect off all\;era FFF00000 FFF3FFFF\;cp.b 100000 FFF00000 \${filesize}\;saveenv
333 Then you just have to type "run load" then "run update"
336 eth: Intel i82559 PCI EtherExpressPro @0x80000000(bus=0, device=15, func=0)
338 TFTP from server 145.17.242.46; our IP address is 145.17.228.42; sending through
340 Filename 'u-boot.bin'.
341 Load address: 0x100000
342 Loading: #########################
344 Bytes transferred = 127748 (1f304 hex)
346 Un-Protect Flash Bank # 1
347 Un-Protect Flash Bank # 2
348 Erase Flash from 0xfff00000 to 0xfff3ffff
351 Copy to Flash... done
352 Saving Environment to Flash...
353 Un-Protected 1 sectors
357 Writing to Flash... done
363 Load OS image (ELF format) via U-Boot using tftp
366 => tftp 800000 sandpoint-simple.elf
367 eth: Intel i82559 PCI EtherExpressPro @0x80000000(bus=0, device=15, func=0)
369 TFTP from server 145.17.242.46; our IP address is 145.17.228.42; sending through
371 Filename 'sandpoint-simple.elf'.
372 Load address: 0x800000
373 Loading: #################################################################
374 #################################################################
375 #################################################################
376 ########################
378 Bytes transferred = 1120284 (11181c hex)
382 Begin OS image execution: (note that unless you have the
383 serial parameters of your OS image set to 9600 (i.e. same as
384 the U-Boot binary) you will get garbage here until you change
385 the serial communications speed.
388 Loading @ 0x001f0100 (1120028 bytes)
389 ## Starting application at 0x001f1d28 ...
390 Replace init_hwinfo() with a board specific version
394 Header size=0x0000009c, Total Size=0x000005c0, #Cpu=1, Type=1
395 <...loader and kernel messages snipped...>
397 Welcome to Neutrino on the Sandpoint
405 U-Boot's SourceForge CVS repository can be checked out
406 through anonymous (pserver) CVS with the following
407 instruction set. The module you wish to check out must
408 be specified as the modulename. When prompted for a
409 password for anonymous, simply press the Enter key.
411 cvs -d:pserver:anonymous@cvs.u-boot.sourceforge.net:/cvsroot/u-boot login
413 cvs -z6 -d:pserver:anonymous@cvs.u-boot.sourceforge.net:/cvsroot/u-boot co -P u-boot