Ha az U-Boot programunkat csak a JTAG adapteren keresztül tudjuk feltölteni, a következő lépésekre lesz szükség:
me@computer \~> telnet localhost 4444
Trying 127.0.0.1...
Connected to computer.
Escape character is '\^]'.
Open On-Chip Debugger
> reset
Target 0 halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x200000d3 pc: 0x00000000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
> resume
Target 0 resumed
> halt
requesting target halt...
> Target 0 halted
target halted in ARM state due to debug request, current mode: Supervisor
cpsr: 0x800000d3 pc: 0x05415244
MMU: disabled, D-Cache: disabled, I-Cache: enabled
> flash probe 0
flash 'cfi' found at 0x60000000
> flash auto_erase on
> flash protect 0 0 1 off
cleared protection for sectors 0 through 1 on flash bank 0
> flash write_image /home/me/cs-e9302/u-boot-1.3.4/u-boot.bin 0x60000000
wrote 126940 byte from file /home/me/cs-e9302/u-boot-1.3.4/u-boot.bin in 11s 79513us (11.188655 kb/s)
Előtte egy másik konzolon indítsuk el az openocd-t (cs-ep9302.cfg):
me@computer \~> sudo openocd -f cs-ep9302.cfg