I finally got the cable to connect to the TQ2416, I also found that I already had a jtag adapter in an old box in my garage. The device I have is the following
https://www.olimex.com/Products/ARM/JTAG/ARM-USB-OCD/But now I am banging my head, because when I use openocd I can write the u-boot to nand, I can verify the nand, but after I reset the board and I dump the nand that I had verified its all 0x00.
>nand probe 0
NAND flash device 'NAND 256MiB 3.3V 8-bit (unknown)' found
> nand write 0 "../u-boot-with-spl.bin" 0x00000000
wrote file ../u-boot-with-spl.bin to NAND flash 0 up to offset 0x00038000 in 148.598999s (1.498 KiB/s)
> nand verify 0 "../u-boot-with-spl.bin" 0x00000000
>reset run
Hence I decided to try urjtag but I get some error already when I do the detect
jtag> cable ARM-USB-OCD
Connected to libftdi driver.
jtag> detect
warning: TDO seems to be stuck at 1
I have attached my compiled u-boot had to rename it hex.
Are there any commercial tools both s/w and h/w that are better? Seems to me that openocd is a bit flakey, had to restart many times lower the speed of adapter to 500 kHz to reliably be able to halt the cpu.