# Pastebin CDSrOSly root@yogacore:/usr/local/bin# hdmi2usb-mode-switch --mode serial Using FX2 firmware /lib/firmware/opsis-fx2/usb-uart.ihx Found 1 boards. root@yogacore:/usr/local/bin# hdmi2usb-mode-switch -v --flash-image ~/Downloads/image-gateware+bios+firmware.bin Numato Opsis in 'serial' mode at /dev/bus/usb/002/013 /sys/bus/usb/devices/2-2 /sys/bus/usb/devices/2-2:1.0 /sys/bus/usb/devices/2-2:1.1 Board is currently used by drivers ('cdc_acm',) Serial port at /dev/ttyACM0 My root dir: /usr/share/hdmi2usb-mode-switch/hdmi2usb/modeswitch Going from serial to jtag Detaching drivers from board. Using FX2 firmware /lib/firmware/ixo-usb-jtag/usbjtag-opsis.hex Running 'fxload -t fx2lp -D /dev/bus/usb/002/013 -I /lib/firmware/ixo-usb-jtag/usbjtag-opsis.hex -v' Numato Opsis in 'jtag' mode at /dev/bus/usb/002/014 /sys/bus/usb/devices/2-2 /sys/bus/usb/devices/2-2:1.0 Board was Board(dev=LsusbDevice(2a19:5441:0003 'ffffd880395739d1'), type='opsis', state='serial') Board now Board(dev=LsusbDevice(16c0:06ad:0004 'hw_opsis'), type='opsis', state='jtag') Numato Opsis in 'jtag' mode at /dev/bus/usb/002/014 /sys/bus/usb/devices/2-2 /sys/bus/usb/devices/2-2:1.0 Running ['openocd', '-f', 'board/numato_opsis.cfg', '-c', 'init; xc6s_print_dna xc6s.tap; jtagspi_init 0 /usr/share/hdmi2usb-mode-switch/hdmi2usb/firmware/spartan6/opsis/bscan_spi_xc6slx45t.bit; jtagspi_program /home/xf/Downloads/image-gateware+bios+firmware.bin 0x0; exit'] Open On-Chip Debugger 0.9.0+git20151228 (2016-01-26-04:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Warn : Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only Info : only one transport option; autoselect 'jtag' Warn : incomplete ublast_vid_pid configuration jtagspi_program Info : usb blaster interface using libftdi Info : This adapter doesn't support configurable speed Info : TAP xc6s.tap does not have IDCODE Info : JTAG tap: auto0.tap tap/device found: 0x81010101 (mfg: 0x080 (), part: 0x1010, ver: 0x8) Info : JTAG tap: auto1.tap tap/device found: 0x01404981 (mfg: 0x4c0 (), part: 0x1404, ver: 0x0) Info : TAP auto2.tap does not have IDCODE Info : JTAG tap: auto3.tap tap/device found: 0xffffffd1 (mfg: 0x7e8 (), part: 0xffff, ver: 0xf) Error: xc6s.tap: IR capture error; saw 0x03 not 0x01 Warn : Bypassing JTAG setup events due to errors DNA = 110000001100000011000000110000001100000010011100000011100 (0x18181818181381c) loaded file /usr/share/hdmi2usb-mode-switch/hdmi2usb/firmware/spartan6/opsis/bscan_spi_xc6slx45t.bit to pld device 0 in 10s 134055us Info : JTAG tap: xc6s.tap tap/device found: 0x02020203 (mfg: 0x101 (Camintonn Corporation), part: 0x2020, ver: 0x0) Warn : JTAG tap: xc6s.tap UNEXPECTED: 0x02020203 (mfg: 0x101 (Camintonn Corporation), part: 0x2020, ver: 0x0) Error: JTAG tap: xc6s.tap expected 1 of 13: 0x04000093 (mfg: 0x049 (Xilinx), part: 0x4000, ver: 0x0) Error: JTAG tap: xc6s.tap expected 2 of 13: 0x04001093 (mfg: 0x049 (Xilinx), part: 0x4001, ver: 0x0) Error: JTAG tap: xc6s.tap expected 3 of 13: 0x04002093 (mfg: 0x049 (Xilinx), part: 0x4002, ver: 0x0) Error: JTAG tap: xc6s.tap expected 4 of 13: 0x04004093 (mfg: 0x049 (Xilinx), part: 0x4004, ver: 0x0) Error: JTAG tap: xc6s.tap expected 5 of 13: 0x04024093 (mfg: 0x049 (Xilinx), part: 0x4024, ver: 0x0) Error: JTAG tap: xc6s.tap expected 6 of 13: 0x04008093 (mfg: 0x049 (Xilinx), part: 0x4008, ver: 0x0) Error: JTAG tap: xc6s.tap expected 7 of 13: 0x04028093 (mfg: 0x049 (Xilinx), part: 0x4028, ver: 0x0) Error: JTAG tap: xc6s.tap expected 8 of 13: 0x0400e093 (mfg: 0x049 (Xilinx), part: 0x400e, ver: 0x0) Error: JTAG tap: xc6s.tap expected 9 of 13: 0x0402e093 (mfg: 0x049 (Xilinx), part: 0x402e, ver: 0x0) Error: JTAG tap: xc6s.tap expected 10 of 1: 0x04011093 (mfg: 0x049 (Xilinx), part: 0x4011, ver: 0x0) Error: JTAG tap: xc6s.tap expected 11 of 1: 0x04031093 (mfg: 0x049 (Xilinx), part: 0x4031, ver: 0x0) Error: JTAG tap: xc6s.tap expected 12 of 1: 0x0401d093 (mfg: 0x049 (Xilinx), part: 0x401d, ver: 0x0) Error: JTAG tap: xc6s.tap expected 13 of 1: 0x0403d093 (mfg: 0x049 (Xilinx), part: 0x403d, ver: 0x0) Info : TAP auto0.tap does not have IDCODE Info : JTAG tap: auto1.tap tap/device found: 0x01404981 (mfg: 0x4c0 (), part: 0x1404, ver: 0x0) Info : TAP auto2.tap does not have IDCODE Info : JTAG tap: auto3.tap tap/device found: 0xffffffd1 (mfg: 0x7e8 (), part: 0xffff, ver: 0xf) Error: Trying to use configured scan chain anyway... Error: xc6s.tap: IR capture error; saw 0x03 not 0x01 Warn : Bypassing JTAG setup events due to errors Error: Unknown flash device (ID 0x00818181) After flashing, the board will need to be power cycled. Traceback (most recent call last): File "/usr/bin/hdmi2usb-mode-switch", line 9, in load_entry_point('hdmi2usb.modeswitch==0.0.1', 'console_scripts', 'hdmi2usb-mode-switch')() File "/usr/share/hdmi2usb-mode-switch/hdmi2usb/modeswitch/cli.py", line 366, in main board, args.flash_image, verbose=args.verbose) File "/usr/share/hdmi2usb-mode-switch/hdmi2usb/modeswitch/boards.py", line 306, in flash_gateware verbose=verbose) File "/usr/share/hdmi2usb-mode-switch/hdmi2usb/modeswitch/boards.py", line 264, in _openocd_flash return _openocd_script(board, script, verbose=verbose) File "/usr/share/hdmi2usb-mode-switch/hdmi2usb/modeswitch/boards.py", line 216, in _openocd_script output) hdmi2usb.modeswitch.boards.OpenOCDError: OpenOCD run failure: Returned 1. OpenOCD command line resulted in 1 ----- ['openocd', '-f', 'board/numato_opsis.cfg', '-c', 'init; xc6s_print_dna xc6s.tap; jtagspi_init 0 /usr/share/hdmi2usb-mode-switch/hdmi2usb/firmware/spartan6/opsis/bscan_spi_xc6slx45t.bit; jtagspi_program /home/xf/Downloads/image-gateware+bios+firmware.bin 0x0; exit'] ----- OpenOCD output: ----- Open On-Chip Debugger 0.9.0+git20151228 (2016-01-26-04:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Warn : Adapter driver 'usb_blaster' did not declare which transports it allows; assuming legacy JTAG-only Info : only one transport option; autoselect 'jtag' Warn : incomplete ublast_vid_pid configuration jtagspi_program Info : usb blaster interface using libftdi Info : This adapter doesn't support configurable speed Info : TAP xc6s.tap does not have IDCODE Info : JTAG tap: auto0.tap tap/device found: 0x81010101 (mfg: 0x080 (), part: 0x1010, ver: 0x8) Info : JTAG tap: auto1.tap tap/device found: 0x01404981 (mfg: 0x4c0 (), part: 0x1404, ver: 0x0) Info : TAP auto2.tap does not have IDCODE Info : JTAG tap: auto3.tap tap/device found: 0xffffffd1 (mfg: 0x7e8 (), part: 0xffff, ver: 0xf) Error: xc6s.tap: IR capture error; saw 0x03 not 0x01 Warn : Bypassing JTAG setup events due to errors DNA = 110000001100000011000000110000001100000010011100000011100 (0x18181818181381c) loaded file /usr/share/hdmi2usb-mode-switch/hdmi2usb/firmware/spartan6/opsis/bscan_spi_xc6slx45t.bit to pld device 0 in 10s 134055us Info : JTAG tap: xc6s.tap tap/device found: 0x02020203 (mfg: 0x101 (Camintonn Corporation), part: 0x2020, ver: 0x0) Warn : JTAG tap: xc6s.tap UNEXPECTED: 0x02020203 (mfg: 0x101 (Camintonn Corporation), part: 0x2020, ver: 0x0) Error: JTAG tap: xc6s.tap expected 1 of 13: 0x04000093 (mfg: 0x049 (Xilinx), part: 0x4000, ver: 0x0) Error: JTAG tap: xc6s.tap expected 2 of 13: 0x04001093 (mfg: 0x049 (Xilinx), part: 0x4001, ver: 0x0) Error: JTAG tap: xc6s.tap expected 3 of 13: 0x04002093 (mfg: 0x049 (Xilinx), part: 0x4002, ver: 0x0) Error: JTAG tap: xc6s.tap expected 4 of 13: 0x04004093 (mfg: 0x049 (Xilinx), part: 0x4004, ver: 0x0) Error: JTAG tap: xc6s.tap expected 5 of 13: 0x04024093 (mfg: 0x049 (Xilinx), part: 0x4024, ver: 0x0) Error: JTAG tap: xc6s.tap expected 6 of 13: 0x04008093 (mfg: 0x049 (Xilinx), part: 0x4008, ver: 0x0) Error: JTAG tap: xc6s.tap expected 7 of 13: 0x04028093 (mfg: 0x049 (Xilinx), part: 0x4028, ver: 0x0) Error: JTAG tap: xc6s.tap expected 8 of 13: 0x0400e093 (mfg: 0x049 (Xilinx), part: 0x400e, ver: 0x0) Error: JTAG tap: xc6s.tap expected 9 of 13: 0x0402e093 (mfg: 0x049 (Xilinx), part: 0x402e, ver: 0x0) Error: JTAG tap: xc6s.tap expected 10 of 1: 0x04011093 (mfg: 0x049 (Xilinx), part: 0x4011, ver: 0x0) Error: JTAG tap: xc6s.tap expected 11 of 1: 0x04031093 (mfg: 0x049 (Xilinx), part: 0x4031, ver: 0x0) Error: JTAG tap: xc6s.tap expected 12 of 1: 0x0401d093 (mfg: 0x049 (Xilinx), part: 0x401d, ver: 0x0) Error: JTAG tap: xc6s.tap expected 13 of 1: 0x0403d093 (mfg: 0x049 (Xilinx), part: 0x403d, ver: 0x0) Info : TAP auto0.tap does not have IDCODE Info : JTAG tap: auto1.tap tap/device found: 0x01404981 (mfg: 0x4c0 (), part: 0x1404, ver: 0x0) Info : TAP auto2.tap does not have IDCODE Info : JTAG tap: auto3.tap tap/device found: 0xffffffd1 (mfg: 0x7e8 (), part: 0xffff, ver: 0xf) Error: Trying to use configured scan chain anyway... Error: xc6s.tap: IR capture error; saw 0x03 not 0x01 Warn : Bypassing JTAG setup events due to errors Error: Unknown flash device (ID 0x00818181) -----