Tuesday, 2016-06-07

*** tpb has joined #timvideos00:00
*** sb0 has joined #timvideos00:24
*** panther has joined #timvideos02:10
*** panther is now known as sab_12302:10
sab_123Hi02:10
*** rohitksingh_work has joined #timvideos04:34
*** panther_ has joined #timvideos04:44
*** sab_123 has quit IRC04:47
*** aom_ has joined #timvideos05:21
*** ssk1328 has joined #timvideos06:06
ssk1328mithro: For hdmi2usb-mode-switch, I don't understand what exactly should I run at command line.06:10
mithrohttps://github.com/mithro/HDMI2USB-misoc-firmware/blob/docs-scripts-update/scripts/README.md#jtag-mode06:11
tpbTitle: HDMI2USB-misoc-firmware/README.md at docs-scripts-update · mithro/HDMI2USB-misoc-firmware · GitHub (at github.com)06:11
ssk1328mithro: I downloaded the cleanup branch06:12
mithrossk1328: and you took a look at the makefile?06:12
ssk1328mithro: But I am supposed to run hdmi2usb-mode-switch.py file06:15
ssk1328mithro: I am not sure what to look for in make file06:15
*** se6astian|away is now known as se6astian06:16
mithrossk1328: you downloaded the cleanup branch and find no instructions or hdmi2usb-mode-switch file - where would you start looking?06:16
ssk1328mithro: Okay, the make file06:17
ssk1328But, the instructions say I am supposed to run something like,  hdmi2usb-mode-switch --mode=jtag06:17
ssk1328How exactly do I do that?06:18
mithrossk1328: I'd like you to look a little bit more before I give you more instructions06:19
ssk1328mithro: Ok, I will try06:21
*** Bertl_oO is now known as Bertl_zZ06:26
mithrossk1328: so, talk me through what you are trying?06:27
ssk1328mithro: In the cleanup branch, I ran setup.py file06:27
mithrossk1328: why?06:27
ssk1328mithro: I thought the modeswitch can be done using this file06:29
mithrossk1328: but you had a reason to think that, right?06:30
ssk1328mithro: Not really sure here. Earlier I was running a python file, so I ran this to see what this file does06:31
ssk1328mithro: Also the makefile didn't have anything for hdmi2usb-mode-switch06:32
mithrossk1328: Did you type some of the commands in the Makefile? Why / why not?06:36
ssk1328mithro: Some commands require a hdmi2usb-mode-switch.py file06:39
mithros/type/try/06:39
ssk1328mithro: Not really sure what the above means?06:42
mithrossk1328: Did you try some of the targets in the Makefile?06:42
ssk1328mithro: I tried make test06:43
mithrossk1328: what happened?06:43
ssk1328I get ImportError: No module named usb06:43
ssk1328wait i will pastebin the whole thing06:44
ssk1328http://pastebin.com/bgZqwEM706:45
tpbTitle: [email protected]:~/Desktop/GSoC/Untitled Folder/HDMI2USB-mode-switch-cleanup - Pastebin.com (at pastebin.com)06:45
mithrossk1328: okay, so the test failed complaining about something to do with a missing usb module - does anything in this file also talk about usb modules or installing them?06:47
ssk1328mithro: So the make test is basically running the test.py file in hdmi2usb/modeswitch/test.py06:48
mithrossk1328: yes06:49
ssk1328And the test.py file is importing libusb and lsusb06:49
mithrossk1328: but it failing with an error about a missing usb module06:49
ssk1328Yeah and the libusb.py is doing import usb06:50
mithrossk1328: yes06:51
ssk1328mithro: I guess python doesn't have required usb libaries06:51
mithrossk1328: So, does anything in this file look like it might be setting up an environment which has a usb module installed?06:51
ssk1328mithro: The find_usb_devices function06:54
mithrossk1328: so, why did you leave the Makefile?06:55
ssk1328It is using usb.busses(), so import usb is required for this fucntion06:55
ssk1328mithro: I was not sure how to use it for hdmi2usb-mode-switch06:57
mithrossk1328: so, you try the test target in the Makefile and it failed with an error06:57
ssk1328Yeah06:57
mithrossk1328: did you look at anything else in the Makefile?06:57
ssk1328mithro: I treid make read-dna, but there was not hdmi2usb-mode-switch.py file06:59
mithrossk1328: okay, that is two targets in this file06:59
ssk1328mithro: I guess I need to run make conda to install the requied usbmodules06:59
ssk1328And other packages first07:00
mithrossk1328: okay, so have you tried that?07:01
ssk1328I just did, I guess it will take some time to complete07:02
*** CarlFK has quit IRC07:08
mithrossk1328: so, I hope you are working on other things while you wait for that to download07:29
ssk1328mithro: So I encountered some more erros :(07:29
mithrossk1328: so, what are they?07:29
mithrossk1328: and what are you doing to figure out what is causing them?07:29
ssk1328So in the make conda when it runs this ./Miniconda3-latest-Linux-x86_64.sh -p conda -b07:30
ssk1328http://pastebin.com/SnH9ABYY07:32
tpbTitle: [email protected]:~/Desktop/GSoC/Untitled Folder/HDMI2USB-mode-switch-cleanup - Pastebin.com (at pastebin.com)07:32
mithrossk1328: looks like something went wrong when downloading07:36
ssk1328mithro: I have tried this 3-4 times07:36
mithrossk1328: do a "rm -rf conda; rm Miniconda3-latest-Linux-x86_64.sh" and try again07:36
ssk1328mithro: Trying this one more time07:38
mithrossk1328: did you remove that Miniconda3-latest-Linux file and retried?07:39
ssk1328Yeah, I did make clean-conda before trying again07:39
mithroYou can take a look at https://repo.continuum.io/miniconda/ and check the md5sum matches too07:40
tpbTitle: Miniconda installer archive (at repo.continuum.io)07:40
ssk1328mithro: The checksum is OK07:47
mithrossk1328: okay07:47
mithroand you are still getting the same error?07:47
ssk1328Yeah07:47
mithrooh07:48
mithrowhy do you have a space in your folder name?07:48
ssk1328mithro: Didn't rename it.07:49
mithrossk1328: spaces are bad07:49
ssk1328mithro: I am gonna try once more.07:49
ssk1328without the spaces07:49
ssk1328mithro: The previous errors were resolved08:01
ssk1328mithro: Also make test returns with a OK08:01
mithrossk1328: well, that is a lesson you hopefully only need to learn once :) - spaces are evil, plus name things from the start08:01
ssk1328mithro: Yeah08:02
ssk1328mithro: I still dont understand how to switch modes from here08:02
mithrossk1328: okay, so "make test" seems to work right? so you've made some progress08:04
ssk1328mithro: Yeah. Finally.08:04
ssk1328also read-dna doesn' work as the required.py file is not here08:05
mithrossk1328: when you ran the "make conda" did you notice anything in the output there?08:06
mithroSay a line which might have looked like08:06
mithroInstalling hdmi2usb-mode-switch script to xxxxx/HDMI2USB-mode-switch-clean/conda/bin08:07
*** se6astian is now known as se6astian|away08:07
ssk1328Yeah found it08:07
mithrossk1328: great!08:09
mithrossk1328: so, now I recommend you send a quick pull request which updates the README.md with the instructions you had to follow08:10
ssk1328mithro: Yeah, will definitely do that08:10
ssk1328mithro: I dont get how to use those files08:11
ssk1328Those are not python files, but normal text files08:11
mithrossk1328: add the bin directory to your path and run them08:11
mithroactually, you could just run the files with the full path too08:12
ssk1328ls08:12
ssk1328Ignore08:12
*** CarlFK has joined #timvideos08:33
*** ChanServ sets mode: +v CarlFK08:33
ssk1328mithro: So after doing ./conda/bin/hdmi2usb-mode-switch --mode=jtag -v08:39
ssk1328mithro: I did make load-gateware08:39
mithroAnd?08:40
ssk1328I get this http://pastebin.com/FML0VWkK08:41
tpbTitle: (H2U B=opsis) [email protected]:~/Desktop/built/HDMI2USB-misoc-firmware$ make - Pastebin.com (at pastebin.com)08:41
ssk1328Error: unable to open ftdi device: inappropriate permissions on device!08:41
ssk1328The same error I was getting yesterday :(08:41
mithroDid you look at the docs?08:41
ssk1328These ones https://opsis.hdmi2usb.tv/getting-started/usb-ids.html#usb-jtag-and-usb-uart08:43
ssk1328?08:43
mithroNo there ones I linked you in the email08:44
mithrohttps://github.com/mithro/HDMI2USB-misoc-firmware/blob/docs-scripts-update/scripts/README.md#inappropriate-permissions-on-device08:45
tpbTitle: HDMI2USB-misoc-firmware/README.md at docs-scripts-update · mithro/HDMI2USB-misoc-firmware · GitHub (at github.com)08:45
ssk1328Got it08:45
*** aom_ has quit IRC08:59
*** se6astian|away is now known as se6astian09:00
ssk1328mithro: Some progress09:01
ssk1328mithro: But now I am stuck in this error https://github.com/mithro/HDMI2USB-misoc-firmware/blob/docs-scripts-update/scripts/README.md#warn-bypassing-jtag-setup-events-due-to-errors09:01
tpbTitle: HDMI2USB-misoc-firmware/README.md at docs-scripts-update · mithro/HDMI2USB-misoc-firmware · GitHub (at github.com)09:01
ssk1328mithro: Also this is the output of make load-gateware09:04
ssk1328http://pastebin.com/rKexNHwS09:04
tpbTitle: (H2U B=opsis) [email protected]:~/Desktop/built/HDMI2USB-misoc-firmware$ make - Pastebin.com (at pastebin.com)09:04
ssk1328Update, fixed the above09:13
mithrossk1328: so?09:24
ssk1328mithro: Next I tried make connect-lm3209:25
ssk1328Unable to open serial port: Permission denied09:25
ssk1328Update, fixed it09:30
mithrossk1328: how?09:31
ssk1328Used this sudo chmod 666 /dev/ttyACM009:31
mithrossk1328: if you needed to do that, then you haven't gotten the udev rules installed correctly09:31
mithrossk1328: or they aren't working correctly09:32
ssk1328mithro: I did make install udev and it returned without any errors09:35
*** panther_ is now known as sab_12309:42
sab_123hi mithro09:52
mithrossk1328: okay found the problem09:58
ssk1328mithro: Do I need to manually change mode back to serial before I can use make connect-lm3210:19
ssk1328Right now the terminal  is stuck at [FLTERM] Starting...10:19
ssk1328mithro: I am in.10:31
ssk1328:)10:31
ssk1328mithro: Was able to connect input0 to output010:31
*** panther_ has joined #timvideos10:36
*** sab_123 has quit IRC10:36
ssk1328mithro: Anyother things I can try while I am at it10:49
mithrossk1328: I'll have an update for you shortly10:51
mithrossk1328: Okay, I've cleaned up and reworked the udev rules quite a bit11:14
mithrossk1328: can you give them a go?11:14
*** panther__ has joined #timvideos11:25
*** panther_ has quit IRC11:28
mithrossk1328: poke?11:44
ssk1328mithro: Just came back11:46
*** panther__ has quit IRC11:46
ssk1328So I should test the new udev stuff11:47
mithrossk1328: yes11:47
*** Bertl_zZ is now known as Bertl12:01
mithrossk1328: you should also get /dev/hdmi2usb/<serialno>/ symlinks now12:02
*** nueces has joined #timvideos12:36
*** sb0 has quit IRC12:49
*** rohitksingh_work has quit IRC13:27
tumbleweederr, is it just me or is the polarity of the ATX socket on the opsis wrong?13:49
*** FooBar is now known as SocialeDnstBali213:50
*** SocialeDnstBali2 is now known as FooBar13:51
mithrohttps://opsis.hdmi2usb.tv/getting-started/power.html#pcie-6-pin-connector13:51
mithrohttp://www.playtool.com/pages/psuconnectors/connectors.html13:53
tpbTitle: All about the various PC power supply cables and connectors (at www.playtool.com)13:53
tumbleweedwhich is compatible with the 4-pin ATX connector, but has the opposite polarity14:04
tumbleweedno, it seems ATX fucked up there14:05
tumbleweedwhy can't it be compatible with the 4-pin one? :)14:06
mithrotumbleweed: if you get out your pliers you can just rearrange the pins in the connector14:06
mithroactually I think xfxf just stuffed his in backwards really hard14:06
mithroI wouldn't recommend that14:06
mithrowell, I'm heading to bed14:07
olasdI usually just end up putting a diode bridge in front of the regulator to be able to use all the supply polarities :P14:07
mithrotumbleweed: when you get a chance, can you look at packaging https://github.com/mithro/HDMI2USB-mode-switch/tree/cleanup ? It should be in pretty good shape now14:08
tpbTitle: GitHub - mithro/HDMI2USB-mode-switch at cleanup (at github.com)14:08
mithroolasd: I should check, but I believe we put a protection diode for people pluggin the wrong polarity14:08
mithroolasd: and you might see an unpoulated diode bridge on the board14:09
mithroanyway, bedtime for me14:10
mithrotumbleweed: you should see the new udev rules I wrote today give you a stable /dev file for the boards14:10
olasdah, right, the wide range power supply has a diode bridge provision :)14:11
tumbleweedmithro: \o/14:12
mithrotumbleweed: there seems to be a bug in the current firmware were it isn't reading the mac address properly, but once that is fixed it should be stable14:13
tumbleweedalso \o/14:13
mithrotumbleweed: I'll probably do a "by location" type version too14:14
mithrobut I actually need to do some Google work occasionally :P14:14
tumbleweedis the board happy with 14V?14:18
mithroHrm, it might be okay I'd have to look at the specs14:19
mithro9V is definitely okay14:19
mithroanyway, really going now14:19
mithrorohit is a good person to ask14:19
*** rohitksingh has joined #timvideos14:21
*** rohitksingh1 has joined #timvideos14:23
*** rohitksingh has quit IRC14:25
*** sb0 has joined #timvideos14:45
*** Sewar has quit IRC14:46
*** Sewar has joined #timvideos14:53
*** sb0 has quit IRC15:37
*** se6astian is now known as se6astian|away15:50
*** Bertl is now known as Bertl_oO16:07
*** CarlFK has quit IRC16:15
*** CarlFK has joined #timvideos16:15
*** ChanServ sets mode: +v CarlFK16:15
*** se6astian|away is now known as se6astian16:18
*** tija has joined #timvideos16:59
*** ivodd_ is now known as ivodd17:42
*** se6astian is now known as se6astian|away17:46
*** sb0 has joined #timvideos18:50
*** sb0 has quit IRC18:55
*** sb0 has joined #timvideos19:00
*** rohitksingh1 has quit IRC19:45
*** sb0 has quit IRC19:57
*** tija has quit IRC20:10
*** se6astian|away is now known as se6astian20:39
*** sb0 has joined #timvideos20:44
*** sb0 has quit IRC20:58
*** CarlFK has quit IRC21:05
*** ssk1328 has quit IRC21:13
*** se6astian is now known as se6astian|away21:15
*** CarlFK has joined #timvideos21:38
*** ChanServ sets mode: +v CarlFK21:38
*** sb0 has joined #timvideos22:18

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!