1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-24 02:13:21 +02:00
xburst-tools/qiboot/gta03-qi.ocd
Andy Green d06a3c2c3a add-openocd-script.patch
This is the script for gta03 load by openocd.  We use the single qi
image for all purposes now so U-Boot lowlevel_foo style crap is dead.

We have to run the first part of init before copying qi image to
TEXT_BASE (0x33000000) because DRAM is not functional until then.

Fixed branchthrough at 0x8 is used as a place to hang the breakpoint.

Signed-off-by: Andy Green <andy@openmoko.com>
2008-11-28 10:16:37 +00:00

34 lines
564 B
Plaintext
Executable File

# gta03 Qi script
# Andy Green <andy@openmoko.com>
reset halt
wait_halt
# bring the steppingstone part of qi image into steppingstone
#
load_binary /projects/openmoko/bootloader/image/qi 0x0
#
# mark ourselves as JTAG load
#
mww 0x4 0xffffffff
#
# we have to run that so SDRAM exists in a usable way
# fixed jumpthrough at 0x8 is executed after steppingstone
# init (including RAM) has completed
#
bp 0x8 4 hw
resume 0x0
wait_halt
rbp 0x8
#
# now prep the SDRAM
#
load_binary /projects/openmoko/bootloader/image/qi 0x33000000
#
# and continue...
resume 0x8
#