an update in the last week or so now causes the asserts to fail.
I added a hexdump and it looks like some code is swapping bytes.
odroid@odroid64:~$ sudo hdmi2usb-mode-switch --load-gateware /tmp/atlys_hdmi2usb-hdmi2usbsoc-atlys.bit WARNING:root:unbind-helper not found, will have to run as root!
b'\x00\t\x0f\xf0\x0f\xf0\x0f\xf0\x0f\xf0\x00\x00\x01'
00000000: 00 09 0F F0 0F F0 0F F0 0F F0 00 00 01 .............
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 91, in init
key, value = self.unpack_key(f)
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 69, in unpack_key
assert_eq(null, b'\x00')
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 15, in assert_eq
assert a == b, "'%s' (%r) != '%s' (%r)" % (a, a, b, b)
AssertionError: 'b'f'' (b'f') != 'b'\x00'' (b'\x00')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/hdmi2usb-mode-switch", line 9, in
load_entry_point('hdmi2usb.modeswitch==0.0.0.post115', 'console_scripts', 'hdmi2usb-mode-switch')()
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/cli.py", line 260, in main
verbose=args.verbose)
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/boards.py", line 149, in load_fpga
xfile = files.XilinxBitFile(filepath)
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 106, in init
raise TypeError(e)
TypeError: 'b'f'' (b'f') != 'b'\x00'' (b'\x00')
odroid@odroid64:~$
an update in the last week or so now causes the asserts to fail.
I added a hexdump and it looks like some code is swapping bytes.
odroid@odroid64:~$ sudo hdmi2usb-mode-switch --load-gateware /tmp/atlys_hdmi2usb-hdmi2usbsoc-atlys.bit WARNING:root:unbind-helper not found, will have to run as root! b'\x00\t\x0f\xf0\x0f\xf0\x0f\xf0\x0f\xf0\x00\x00\x01' 00000000: 00 09 0F F0 0F F0 0F F0 0F F0 00 00 01 ............. Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 91, in init key, value = self.unpack_key(f) File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 69, in unpack_key assert_eq(null, b'\x00') File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 15, in assert_eq assert a == b, "'%s' (%r) != '%s' (%r)" % (a, a, b, b) AssertionError: 'b'f'' (b'f') != 'b'\x00'' (b'\x00')
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/hdmi2usb-mode-switch", line 9, in
load_entry_point('hdmi2usb.modeswitch==0.0.0.post115', 'console_scripts', 'hdmi2usb-mode-switch')()
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/cli.py", line 260, in main
verbose=args.verbose)
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/boards.py", line 149, in load_fpga
xfile = files.XilinxBitFile(filepath)
File "/usr/local/lib/python3.5/dist-packages/hdmi2usb.modeswitch-0.0.0.post115-py3.5.egg/hdmi2usb/modeswitch/files.py", line 106, in init
raise TypeError(e)
TypeError: 'b'f'' (b'f') != 'b'\x00'' (b'\x00')
odroid@odroid64:~$
header from modeswitch odroid@odroid64:~$ # 0000000 0900 f00f f00f f00f f00f 0000 6101 3700
start of file: odroid@odroid64:~$ # 0000000 0009 0FF0 0FF0 0FF0 0FF0 0000 01