5:52 AM
CarlFK
mithro: I am adding notes to the readme, like PATH=$PWD/conda/bin:$PWD/bin:$PATH
5:53 AM
mithro
CarlFK: I'm pretty sure the code should find the unbind-helper without you adding it to the bin
5:53 AM
CarlFK
mithro: oh, I thought you ran it
5:53 AM
mithro
CarlFK: no
5:53 AM
5:53 AM
tpb
Title: HDMI2USB-mode-switch/lsusb.py at master · timvideos/HDMI2USB-mode-switch · GitHub (at
github.com )
5:55 AM
CarlFK
5:55 AM
5:55 AM
tpb
5:56 AM
mithro
CarlFK: does "/sys/bus/usb/devices/1-1.5:1.0/driver/unbind" exist?
5:57 AM
CarlFK: and can you do a "ls -l bin/unbind-helper" ?
5:57 AM
CarlFK
--w------- 1 root root 4096 Jun 25 00:37 /sys/bus/usb/devices/1-1.5:1.0/driver/unbind
5:57 AM
-rwxr-xr-x 1 juser juser 9056 Jun 25 00:46 bin/unbind-helper
5:57 AM
mithro
CarlFK: did you cancel the "make unbind-helper" command?
5:58 AM
Bertl_zZ is now known as Bertl
5:58 AM
CarlFK
mithro: maybe. I hit enter until the sudo failed, then $ chmod 755 bin/unbind-helper
5:58 AM
then re-ran make
5:59 AM
mithro
CarlFK: so you do see that there are two very important commands after that one in the makefile?
6:01 AM
sb0 joined the channel
6:02 AM
CarlFK
mithro: makefiles that call sudo is... not going to go over well with the debian folk
6:02 AM
mithro
CarlFK: They wouldn't be using the Makefile
6:02 AM
CarlFK: they would be doing the equivalent in the debian/rules file and the binary would be installed as being owned by root when the package is installed
6:04 AM
CarlFK
well.. I suspect the way you have this setup is going to make it hard for them. but I am not sure what would be better ... so ... never mind.
6:05 AM
-rwsr-xr-x 1 root root 9056 Jun 25 00:46 bin/unbind-helper
6:06 AM
mithro
CarlFK: The makefile sets up a developer environment - they are going to be doing a "python setup.py install" like any other python module
6:08 AM
CarlFK
mithro: Running 'fxload -t fx2lp -D /dev/bus/usb/001/011 -I /home/juser/HDMI2USB-mode-switch/hdmi2usb/firmware/fx2/atlys/ixo-usb-jtag.hex -v'
6:08 AM
6:08 AM
tpb
6:08 AM
mithro
CarlFK: they'll probably want to rewrite/rework the unbind helper anyway
6:08 AM
CarlFK: oh... That would be fixed by the udev rules
6:10 AM
Hrm, I wonder if the udev rules could also fix the unbind permissions....
6:11 AM
CarlFK: okay, maybe you should be running this as root if you haven't installed the udev rules
6:11 AM
CarlFK
LOL sudo: hdmi2usb-mode-switch: command not found
6:11 AM
it does't get the users path
6:12 AM
mithro
CarlFK: yeah
6:13 AM
CarlFK
mithro: this installs, right? sudo setup.py install
6:13 AM
mithro
CarlFK: Yes, but I've never tested that :P
6:13 AM
CarlFK
lol
6:13 AM
mithro
CarlFK: I only have so much time
6:13 AM
CarlFK
from setuptools import setup
6:13 AM
ImportError: No module named 'setuptools'
6:14 AM
ok, um.. let me sudo -s and set the path
6:14 AM
mithro
sudo apt-get python3-setuptools I think
6:15 AM
CarlFK
too late.
6:15 AM
DNA = 110000001100000011000000110000001100000011000000110000001 (0x181818181818181)
6:15 AM
I just re-run until it works, right ?
6:16 AM
mithro
CarlFK: Yeah - for the moment :(
6:16 AM
CarlFK: actually you might need to force it into serial mode
6:16 AM
CarlFK
mithro: how do I do that ?
6:17 AM
mithro
CarlFK: hdmi2usb-mode-switch --mode=serial
6:17 AM
Oh, wait you are on an Atlys....
6:17 AM
CarlFK
AssertionError: serial mode only valid on the opsis.
6:17 AM
lol
6:17 AM
mithro
CarlFK: Just try again maybe?
6:18 AM
CarlFK: basically, the different FX2 firmware we are using fight with each other about how the FX2 should be configured
6:18 AM
CarlFK
mithro: iv tried over 5 times. normally it gets it by the third when I was doing whatever commands I was doing for lca
6:18 AM
mithro
CarlFK: What were you doing for LCA?
6:19 AM
CarlFK: At some point we need to fix the FX2 firmware to actually properly set up the FX2 so we don't get those failures.
6:21 AM
CarlFK
mithro: er, not lca. what someone at DC figured out and I dropped it in the lca repo:
6:21 AM
6:21 AM
tpb
Title: video-scripts/opsis_setup.sh at master · xfxf/video-scripts · GitHub (at
github.com )
6:21 AM
mithro
CarlFK: sure
6:22 AM
CarlFK: those are opsis commands....
6:22 AM
CarlFK
ah right. I haven't done this to an atlys
6:23 AM
mithro
CarlFK: okay
6:23 AM
CarlFK: can you try power cycling the Atlys and running the command a few times?
6:24 AM
CarlFK
power cycled, re-ran, worked the first time ... well, new error
6:24 AM
DNA = 100110010110101100010110111000010010100001101000001001011 (0x132d62dc250d04b)
6:24 AM
loaded file /home/juser/HDMI2USB-mode-switch/hdmi2usb/firmware/spartan6/atlys/bscan_spi_xc6slx45.bit to pld device 0 in 4s 414024us
6:24 AM
Info : JTAG tap: xc6s.tap tap/device found: 0x34008093 (mfg: 0x049 (Xilinx), part: 0x4008, ver: 0x3)
6:24 AM
Error: Unknown flash device (ID 0x00ffffff)
6:25 AM
mithro
CarlFK: there is one peculiarity with the Atlys if it is still running the stock firmware from Digilent
6:25 AM
CarlFK
6:25 AM
tpb
6:26 AM
mithro
CarlFK: This board still has the stock Digilent firmware on it, right?
6:26 AM
CarlFK
mithro: correct
6:26 AM
mithro
CarlFK: let me dig up the special thing you need to do the first time
6:29 AM
Dammit, where did I put it....
6:31 AM
Neuron1k: we are running a little bit, will ping when we are ready
6:31 AM
Neuron1k
mithro: ok
6:33 AM
mithro
6:33 AM
tpb
Title: digilent_atlys [Generation of Reconfigurable Circuits from Machine Code] (at paginas.fe.up.pt)
6:33 AM
mithro
CarlFK: I'm sure I wrote better instructions down somewhere....
6:34 AM
Neuron1k: In your blog you mentioned hacking on a model
6:34 AM
Neuron1k: can you publish that code somewhere
6:35 AM
Neuron1k
mithro: It is added on my github
6:35 AM
mithro
Neuron1k: can you link it here
6:35 AM
Neuron1k
6:35 AM
tpb
Title: litejpeg/test/model at master · Neuron1k/litejpeg · GitHub (at
github.com )
6:36 AM
CarlFK
mithro: this? " The workaround is to set the J11 jumper on the board to avoid power on flash boot, thus leaving the flash in legacy SPI mode."
6:36 AM
mithro
CarlFK: Yes
6:37 AM
CarlFK: I think you need to remove the jumper after the board has booted while the power is still connected
6:40 AM
CarlFK: Please write this down somewhere in the Wiki
6:41 AM
CarlFK
mithro: k
6:41 AM
mithro: is j11 next to the usb-A jack, says "HOST" and in the picture here it doesn't look like there are header pins to jump?
6:41 AM
6:42 AM
mithro
CarlFK: it should definitely be around that big USB HOST connector
6:43 AM
CarlFK: JP9 seems to be on one side and JP11 on the other
6:44 AM
CarlFK
mithro: so .. jumper off, power, jumper on, hdmi2usb-mode-switch --flash-gateware... ?
6:44 AM
mithro
CarlFK: no
6:44 AM
CarlFK: jumper on, power on, jumper off, hdmi2usb-mode-switch --flash-gateware
6:53 AM
CarlFK
mithro: welll ... it didn't error
6:54 AM
mithro: I was expecting the hdmi2usb colorbars ,
6:56 AM
mithro
CarlFK: Does jp11 on your board have a header? Or are you just shorting it with a screwdriver?
6:56 AM
CarlFK
mithro: header
7:00 AM
mithro
Neuron1k: heyo
7:00 AM
Neuron1k: sorry about running late, we are now getting setup
7:01 AM
Neuron1k
mithro: ok, I will join the call
7:01 AM
panther joined the channel
7:02 AM
mithro
CarlFK: I might be back in a bit, otherwise I'll respond on my phone in 30 minutes
7:02 AM
CarlFK
mithro: k
7:05 AM
shenki
Neuron1k: are you on?
7:05 AM
Neuron1k
shenki: yes
7:06 AM
shenki
Neuron1k: ok. you keep dropping and coming back
7:07 AM
Neuron1k
shenki: I can't see you
7:07 AM
sb0 has quit
7:07 AM
shenki
Neuron1k: okay. we can't see you either
7:07 AM
Neuron1k: you've joined, but no video nor voice
7:08 AM
Neuron1k: do you want to try inviting us to a new hangout?
7:08 AM
Neuron1k
shenki: ok, I will drop and could you invite me instead?
7:08 AM
shenki
ok
7:09 AM
mithro
Neuron1k: have you tried restarting your browser?
7:10 AM
panther is now known as sab_123
7:20 AM
aravind_ joined the channel
7:25 AM
aravind_ has quit
7:25 AM
CarlFK: did ti work?
7:28 AM
CarlFK: Have to run, will be back tomorrow
7:29 AM
CarlFK: I'll push some updates to the udev rules which fix the permissions on unbind tomorrow
7:30 AM
CarlFK
k
7:30 AM
mithro: isn't there another step?
7:31 AM
mobydikc: you still around? I'm heading to bed.
7:32 AM
mithro
CarlFK: what do you mean?
7:33 AM
CarlFK
mithro: don't i need to send hdmi2usb.hex ?
7:34 AM
mithro
As I said, I've never been game enough to flash the ERPROM on an Atlys
7:37 AM
Which is where the .hex file goes
7:37 AM
CarlFK
mithro: what does this do: fxload -B libusb -D vid=0x16c0,pid=0x06ad -t fx2lp -I hdmi2usb.hex
7:38 AM
mithro
Loads it into ram
7:39 AM
That doesn't persist after power cycle
7:40 AM
Btw where does your fxload come from?
7:40 AM
CarlFK
k - so I either need to do that, or hdmi2usb-mode-switch --load-fx2-firmware
7:41 AM
mithro
Yes
7:41 AM
CarlFK
root@cnt1:~/HDMI2USB-mode-switch# apt-cache policy fxload
7:41 AM
7:41 AM
tpb
7:41 AM
CarlFK
hmm, not sure it works
7:42 AM
mithro
CarlFK: the mode switch tool will aways get the right vid:pid matter what mode the Atlys is in
7:43 AM
CarlFK
hdmi2usb-mode-switch --load-fx2-firmware /home/juser/HDMI2USB-firmware-prebuilt/archive/master/v0.0.0-639-g956a8b3/atlys/hdmi2usb/hdmi2usb.hex
7:43 AM
no error, but still not colorbars
7:43 AM
mithro
CarlFK: I haven't tested --load-fx-firmware recently but as the system has to load fx2 firmware to do the other operations, it would be weird if broken.
7:44 AM
CarlFK: you should get color bars after the gateware