Monday, 2016-10-10

*** tpb has joined #timvideos00:00
*** Kripton_ has quit IRC05:20
*** Kripton has joined #timvideos05:24
*** Bertl_zZ is now known as Bertl08:50
*** rohitksingh has joined #timvideos08:58
*** sb0 has quit IRC09:00
*** sb0 has joined #timvideos09:05
*** seaLne has quit IRC09:33
*** seaLne has joined #timvideos09:33
*** Bertl is now known as Bertl_zZ10:12
*** rohitksingh has quit IRC10:30
*** rohitksingh has joined #timvideos17:05
*** lep0le has joined #timvideos17:22
lep0lehello17:22
lep0lei have a question on howto flash an hdmi2usb.tv card17:22
lep0leopsis card17:22
lep0leso i follow the step of this page17:23
lep0lehttps://github.com/timvideos/HDMI2USB-numato-opsis-docs/wiki/FlashOpsis17:23
tpbTitle: FlashOpsis · timvideos/HDMI2USB-numato-opsis-docs Wiki · GitHub (at github.com)17:23
lep0lei follow all the step17:25
lep0les17:25
lep0leand i get stuck on17:25
lep0lesubprocess.CalledProcessError: Command '['git', 'rev-parse', 'HEAD']' returned non-zero exit status 128 Makefile:154 : la recette pour la cible « flash-gateware » a échouée make: *** [flash-gateware] Erreur 117:26
lep0lemaybe better with all the output of the flash command17:27
lep0lemake flash cd third_party/misoc && python3 make.py --external /home/lep0le/HDMI2USB-misoc-firmware --flash-proxy-dir /home/lep0le/HDMI2USB-misoc-firmware/third_party/flash_proxies --target opsis_hdmi2usb --target-option firmware_filename /home/lep0le/HDMI2USB-misoc-firmware/firmware/lm32/firmware.bin --csr_csv /home/lep0le/HDMI2USB-misoc-firmware/test/csr.csv --platform-option programmer openocd  flash-bitstream fatal: Not a git repository:17:27
*** lep0le has quit IRC17:29
*** lep0le has joined #timvideos17:29
lep0leand now the board appear in lsusb as :17:29
lep0leBus 001 Device 013: ID 16c0:06ad Van Ooijen Technische Informatica17:29
*** rohitksingh has quit IRC17:35
*** rohitksingh has joined #timvideos17:36
lep0leis there a tuto somewhere to solve my flash problem17:36
*** rohitksingh has quit IRC18:03
*** lep0le_ has joined #timvideos18:04
*** lep0le has quit IRC18:05
lep0le_hello18:05
lep0le_need help to flash an opsis board18:05
paddatrappermithro: ^^18:20
CarlFKlep0le_: i can try to help... in a few min18:37
lep0le_ok18:44
lep0le_i can wait18:44
lep0le_fewminutes18:45
CarlFKrage.18:54
CarlFKI have notes, I am sure they are on a github wiki page18:54
CarlFKI have no idea who's account or repo or anything18:54
lep0le_i'm trying to make my opsis board work18:54
lep0le_so i go to https://github.com/timvideos/HDMI2USB-numato-opsis-docs/wiki/FlashOpsis18:55
tpbTitle: FlashOpsis · timvideos/HDMI2USB-numato-opsis-docs Wiki · GitHub (at github.com)18:55
lep0le_and make all the command18:55
lep0le_it don't seem to work18:55
lep0le_now i got this error:18:56
lep0le_~/HDMI2USB-misoc-firmware $ source scripts/setup-env.sh             This script is: /home/lep0le/HDMI2USB-misoc-firmware/scripts/setup-env.sh          Firmware directory: /home/lep0le/HDMI2USB-misoc-firmware          Build directory is: /home/lep0le/HDMI2USB-misoc-firmware/build      3rd party directory is: /home/lep0le/HDMI2USB-misoc-firmware/third_party Build directory not found!18:56
CarlFKlep0le_: how is your python skills?19:02
lep0le_pity19:03
lep0le_i'm really a noob19:03
lep0le_my skills are movie, video19:03
lep0le_linux19:03
CarlFKhttp://paste.ubuntu.com/23304538/19:03
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:03
lep0le_but python19:03
CarlFKthat is not what I am looking for, but it is something19:03
CarlFKit loops over all the firmware dirs, flashes, resets and tests19:04
CarlFK default="atlys"19:04
lep0le_ok19:04
CarlFKI don't think I tested it for Opsis, but if you dig out the commands, we can limp though19:04
lep0le_how do i use it19:05
CarlFKif you dig out the commands ;)19:05
lep0le_ok19:05
CarlFKI made that to test builds to see which ones failed a test19:06
lep0le_ok19:06
CarlFKI don't expect you to do that19:06
lep0le_ok19:06
lep0le_so my last error was: lep0le@lep0le-P15xEMx ~/HDMI2USB-mode-switch $ ./opsis-update.sh Traceback (most recent call last):   File "./hdmi2usb-mode-switch.py", line 116, in <module>     assert len(boards) == 1, boards AssertionError: []19:06
lep0le_evrything work before19:06
lep0le_i change the path19:07
CarlFKlook at line 121 and 12919:07
CarlFKI have no idea how to help you with that process, so ignore it unless someone else comes around who has an idea about it.19:08
CarlFKthat process = what you posted about, I think make is involved19:08
lep0le_first commant 121 give hdmi2usb-mode-switch Traceback (most recent call last):   File "/home/lep0le/HDMI2USB-mode-switch/bin/hdmi2usb-mode-switch", line 116, in <module>     assert len(boards) == 1, boards AssertionError: []19:09
lep0le_2nd command 129 give me : hdmi2usb-mode-switch --load-fx2-firmware usage: hdmi2usb-mode-switch [-h] [--verbose] [--by-type {opsis,atlys}]                             [--by-mac BY_MAC] [--by-dna BY_DNA]                             [--by-position BY_POSITION] [--all ALL]                             [--get-usbfs] [--get-sysfs] [--get-state]                             [--get-video-device] [--get-serial-device]19:10
lep0le_ hdmi2usb-mode-switch --mode=jtag Traceback (most recent call last):   File "/home/lep0le/HDMI2USB-mode-switch/bin/hdmi2usb-mode-switch", line 116, in <module>     assert len(boards) == 1, boards AssertionError: []19:11
*** cr1901_modern1 has joined #timvideos19:12
*** cr1901_modern has quit IRC19:14
CarlFKlep0le_: pastebin the command and results19:19
lep0le_which command19:35
lep0le_i just did it before19:35
lep0le_so now i got this :19:39
lep0le_lep0le@lep0le-P15xEMx ~/HDMI2USB-mode-switch $ hdmi2usb-mode-switch --mode=jtagFound 1 boards.19:39
lep0le_the 2nd one give this return19:41
lep0le_lep0le@lep0le-P15xEMx ~/HDMI2USB-mode-switch $ hdmi2usb-mode-switch --load-fx2-firmware usage: hdmi2usb-mode-switch [-h] [--verbose] [--by-type {opsis,atlys}]                             [--by-mac BY_MAC] [--by-dna BY_DNA]                             [--by-position BY_POSITION] [--all ALL]                             [--get-usbfs] [--get-sysfs] [--get-state]                             [--get-video-device] [--get-serial-device]19:41
CarlFKdon't paste here19:41
lep0le_ah sorry19:41
CarlFKoh, there are 3 lines of commands you need: 121, 125, 12919:43
lep0le_https://paste.ubuntu.com/23304686/19:44
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:44
lep0le_https://paste.ubuntu.com/23304691/19:46
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:46
CarlFKyou need to pass a file name19:50
lep0le_file name ?19:51
lep0le_so in the 2nd part to flash the make flash give me this return:19:51
lep0le_https://paste.ubuntu.com/23304710/19:51
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:51
CarlFK(H2U B=opsis) lep0le@lep0le-P15xEMx ~/HDMI2USB-misoc-firmware $ make flash19:52
CarlFKI stopped reading19:52
CarlFKlep0le@lep0le-P15xEMx ~/HDMI2USB-mode-switch $ hdmi2usb-mode-switch --load-fx2-firmware  <file name goes here>19:52
CarlFKhere is another bunch of commands I have that are closer to instructions19:53
CarlFKhttp://paste.ubuntu.com/23304472/19:53
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)19:53
CarlFKbut that is a little old.  I can tell because I stopped using openocd a while ago.19:54
lep0le_now i got this error:20:02
lep0le_Error: couldn't open build/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin20:02
lep0le_when i do make flash20:02
lep0le_i gonna try your last set of commands20:03
CarlFKbuild/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin20:05
CarlFKpass the full path20:06
CarlFK(don't ask me, ask mithro why it is like that)20:06
lep0le_ok thanks how can i ask mithro20:12
lep0le_here i mean20:13
CarlFKmithro: why doesn't hdmi2usb-mode-switch --load-fx2-firmware look in the current dir for files?20:13
CarlFKwhat does work is the full path20:14
CarlFKand when you have an error, paste bin the whole thing.20:14
CarlFKthe one liners you post her only tell me 1/2 of what I need to help you20:14
lep0le_my last try give me this:20:34
lep0le_https://paste.ubuntu.com/23304876/20:34
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)20:34
lep0le_hello CarlFK i do all the commands of the paste.ubuntu.com/23304472/21:34
lep0le_and the result is this: https://paste.ubuntu.com/23305061/21:35
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)21:35
CarlFKlep0le_: what version do you have of:   openocd -v21:38
CarlFKOpen On-Chip Debugger 0.9.0+git20151228 (2016-01-26-04:52)21:38
*** lep0le has joined #timvideos22:36
lep0lehello carlFK22:36
CarlFKlep0le_: what version do you have of:   openocd -v22:37
*** lep0le_ has quit IRC22:38
lep0leopenocd give me a core dumped22:41
CarlFKoh jeez22:43
CarlFKwhat linux distro are you using ?22:43
lep0le0.9.0=git20151228-022:44
lep0lethis is my version22:44
lep0lei find it in synaptic22:44
lep0lei use mint 1722:44
lep0lelinux 4.2.0.19-lowlatency22:45
lep0leit's a trusty base system22:45
CarlFKhmm, I am a little confused.. that ver no is good, but not sure how you got it on trusty22:47
CarlFKapt-cache policy  openocd22:47
CarlFK500 http://ppa.launchpad.net/timvideos/fpga-support/ubuntu xenial/main amd64 Packages22:47
tpbTitle: Index of /timvideos/fpga-support/ubuntu (at ppa.launchpad.net)22:47
CarlFKI am pretty sure you need it to come from that ppa (not sure if the opsis patches have hit ubuntu repos yet, and surely not trusty)22:48
lep0lehttps://paste.ubuntu.com/23305444/22:50
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)22:50
CarlFKwell, that's good that you have the right version, but bad that it crashes22:54
CarlFKmode-switch.py works out the parameters needed for openocd22:55
CarlFKI thought I had seen that working ok22:55
lep0lenot sure to understand22:57
lep0leyou spoke of https://paste.ubuntu.com/23305061/22:58
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)22:58
CarlFKI see it crashed (core dump) there too22:59
CarlFKyou need to fix that first23:00
lep0leok23:00
lep0lehow can i do it23:00
CarlFKI would start with mint support ... try /j #mint23:01
CarlFKI am just guessing that #mint is good.  I can tell you #ubuntu is not a good place to ask about this23:01
lep0lenot sure there is lot of help in mint23:02
lep0lei will try23:02
lep0leif i sudo openocd i don't got the error23:08
CarlFKoh, do that23:13
CarlFKit isn't clear when we do and don't need sudo for these things, so ... if sudo works, ok.23:14
lep0lethe following command :23:17
lep0lesudo openocd -f board/numato_opsis.cfg -c 'init; xc6s_print_dna xc6s.tap; jtagspi_init 0 ~/HDMI2USB-mode-switch/flash_proxy/opsis/bscan_spi_xc6slx45t.bit; jtagspi_program /tmp/hdmi2usb/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin 0x0; exit'23:18
lep0leseem to work23:18
lep0lebut sudo ./hdmi2usb-mode-switch.py --verbose --flash-gateware /tmp/hdmi2usb/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin23:19
lep0legive me https://paste.ubuntu.com/23305531/23:19
tpbTitle: Ubuntu Pastebin (at paste.ubuntu.com)23:19
CarlFKdoes this exist? /tmp/hdmi2usb/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin23:21
lep0leno it doesn't, i just check23:26
lep0leis there a way to figure this out23:31
lep0le?23:31
CarlFKsudo ./hdmi2usb-mode-switch.py --verbose --flash-gateware /tmp/hdmi2usb/opsis_hdmi2usb-hdmi2usbsoc-opsis.binNumato Opsis in 'serial' mode at /dev/bus/usb/003/01223:42
CarlFK--flash-gateware /tmp/hdmi2usb/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin23:43
CarlFKyou need to pass the pathname to the file23:43
lep0lehow can i do this: pass the pathname to the file23:54

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