Hiteg O-link Debugger

I recently bought a mini2440 and a o-link usb-jtag interface from Hiteg (http://www.developmentboard.net). After searching the Internet I couldn’t find a configuration file to make o-link work with openocd, thus I tried myself.

Driver (udev rule)

ACTION!="add", GOTO="olink_rules_end"
SUBSYSTEM!="usb_device", GOTO="olink_rules_end"

SYSFS{idVendor}=="1457", SYSFS{idProduct}=="5118", MODE="0666", GROUP="plugdev", RUN+="/sbin/modprobe ftdi_sio vendor=0x1457 product=0x5118"

LABEL="olink_rules_end"

openocd.cfg

source ./o-link.cfg
source ./mini2440.cfg

o-link.cfg

interface ft2232
ft2232_vid_pid 0x1457 0x5118
ft2232_layout "jtagkey"

mini2440.cfg

The file provided in the openocd installation package has an errata. Line 142 should be

nand device $_CHIPNAME.nand s3c2440 $_CHIPNAME.cpu

instead of

nand device s3c2440 0