*** tpb has joined #timvideos | 00:00 | |
thaytan | xfxf, sorry - I missed your entire reply | 00:58 |
---|---|---|
thaytan | I meant that I have a core 2 ubuntu machine that's our webserver that could get some extra things on it, and my main dev machine that could take a chroot if needed, plus misc raspberry pi's and things that could generate test feeds | 00:59 |
thaytan | xfxf, let me know when you're on your way | 00:59 |
*** gk_-1wm_- has joined #timvideos | 01:39 | |
*** gk_-1wm_- has left #timvideos | 01:39 | |
CarlFK | thaytan: I am surprised you dont have some i3 sort of class machines for testing hardware things | 01:43 |
xfxf | thaytan: I'm omw now, running a little late sorry. Google maps says 4 hrs | 02:40 |
*** puck is now known as puck`` | 03:08 | |
*** [d__d] has quit IRC | 05:25 | |
*** [d__d] has joined #timvideos | 05:27 | |
*** CarlFK has quit IRC | 06:42 | |
*** CarlFK has joined #timvideos | 06:52 | |
*** ChanServ sets mode: +v CarlFK | 06:52 | |
xfxf | mithro: you around? having issues building gateware on latest nextgen branch | 09:31 |
xfxf | + rolling back doesn't work as submodules have changed, repo's have gone etc | 09:37 |
mithro | xfxf: I noticed that the CI was broken but haven't had a chance to look at it | 09:47 |
xfxf | right, thaytan and I are trying to get a build env running on his system (Fedora) | 09:47 |
xfxf | We think it's good but want to actually build a firmware | 09:48 |
mithro | xfxf: Well, at the moment all I know is you are having issues :-P some error outputs might be helpful | 09:59 |
xfxf | we're progressing as i managed to tarball up a version i had running at lca w/ submodules already installed, but i'll paste the current error | 10:01 |
thaytan | mithro, Sherlock Holmes would have worked it out by now :( | 10:01 |
thaytan | ValueError: Cannot extract CSR name from code, need to specify. | 10:01 |
thaytan | File "/home/jan/devel/HDMI2USB/HDMI2USB-litex-firmware/third_party/litex/litex/soc/interconnect/csr.py", line 37, in __init__ | 10:01 |
xfxf | ^ that | 10:01 |
thaytan | http://pastebin.com/jjr5ysxx | 10:02 |
tpb | Title: 2>&1 | tee -a /home/jan/devel/HDMI2USB/HDMI2USB-litex-firmware/build/opsis_video - Pastebin.com (at pastebin.com) | 10:02 |
thaytan | and that I'm running on fedora, where there is no tempfile command :) | 10:02 |
xfxf | does same thing on my machine which i repeatedly built gateware/firmware on at lca (ubuntu LTS) | 10:02 |
mithro | That is what the CI is failing with | 10:29 |
mithro | oh... I might know what the problem is | 10:30 |
mithro | xfxf / thaytan: Can you run "python --verison" | 10:31 |
thaytan | [jan@thyme ~]$ python --version | 10:32 |
thaytan | Python 2.7.13 | 10:32 |
thaytan | [jan@thyme ~]$ python3 --version | 10:32 |
thaytan | Python 3.5.2 | 10:32 |
thaytan | mithro, might just need to change a #! somewhere? | 10:34 |
xfxf | (H2U P=opsis R=nextgen) xf@yogacore:~/dev/video/HDMI2USB-litex-firmware$ python --version | 10:34 |
xfxf | Python 3.6.0 :: Continuum Analytics, Inc. | 10:34 |
xfxf | (H2U P=opsis R=nextgen) xf@yogacore:~/dev/video/HDMI2USB-litex-firmware$ python3 --version | 10:34 |
xfxf | Python 3.6.0 :: Continuum Analytics, Inc. | 10:34 |
xfxf | it's the same for thaytan, he hadn't source'd setup-env.sh | 10:35 |
thaytan | python --version | 10:35 |
thaytan | Python 3.6.0 :: Continuum Analytics, Inc. | 10:35 |
mithro | I'll puth a tempory fix shortly | 10:36 |
xfxf | thx | 10:39 |
mithro | Two options it seems | 10:51 |
mithro | https://github.com/povauboin/litex/commit/699299b5367af8a0675d6f2b808e2be80c2eedb4 or make conda use python 3.5 for now | 10:51 |
tpb | Title: gen/fhdl/tracer: port to python 3.6 · povauboin/litex@699299b · GitHub (at github.com) | 10:51 |
mithro | xfxf / thaytan: BTW There is an open issue where you build gateware and it results in an output which fails memtest | 11:02 |
thaytan | mithro, yep, that commit fixes it | 11:02 |
thaytan | I'm building 2 gateware now - xfxf's tree from a month or so ago and nextgen with that fix cherry-picked | 11:03 |
mithro | Sadly the current fix is, "just try again" | 11:03 |
thaytan | oh great | 11:03 |
mithro | thaytan: I'm testing a different "work around" -> https://github.com/mithro/HDMI2USB-litex-firmware/pull/44 | 11:03 |
tpb | Title: Force conda version to Python 3.5 by mithro · Pull Request #44 · mithro/HDMI2USB-litex-firmware · GitHub (at github.com) | 11:03 |
thaytan | non-deterministic build | 11:03 |
thaytan | mithro, 3.5 is what ryan's "old tree" has | 11:04 |
thaytan | I wish the build could multithread | 11:04 |
mithro | thaytan: Yeah, the setup script is pointing at "conda latest" which moved to 3.6 like 2 weeks ago it seems | 11:04 |
thaytan | there's 11 cores sitting idle | 11:04 |
mithro | thaytan: In what way? | 11:04 |
thaytan | xilinx is single thread it seems | 11:05 |
mithro | thaytan: Yes correct | 11:08 |
mithro | ISE is mostly single threaded | 11:08 |
mithro | thaytan: so, why are you and xfxf having a party without me? :-P | 11:09 |
xfxf | oh humm - i'm trying to do 'make gateware-load' but the usb device goes down after loading and doesn't come back up again | 11:09 |
*** thaytan has quit IRC | 11:09 | |
xfxf | i vaguely recall this is related to the etheernet thing | 11:09 |
*** thaytan has joined #timvideos | 11:14 | |
*** ChanServ sets mode: +v thaytan | 11:15 | |
mithro | xfxf: What version are you building? | 11:17 |
mithro | xfxf: I was sure that I made it so the FX2 would still come up by default if no firmware is loaded | 11:18 |
xfxf | oh it's an old version from like a month back, the recent one doesn't build for me | 11:19 |
xfxf | actually i'm a bit tired, d/w, me trying to report bugs to you for an old version is stupid | 11:19 |
mithro | https://github.com/mithro/HDMI2USB-litex-firmware/commit/7d721b3cbc1079818129b9a045cc6b9762802842 | 11:20 |
tpb | Title: Make the reset signals be Tristates · mithro/HDMI2USB-litex-firmware@7d721b3 · GitHub (at github.com) | 11:20 |
xfxf | https://anonscm.debian.org/git/debconf-video/ansible.git | 11:21 |
tpb | Title: debconf-video/ansible - Ansible playbooks for the DebConf Video Team's machines (at anonscm.debian.org) | 11:21 |
mithro | xfxf / thaytan: That change has been merged | 11:27 |
xfxf | ta, i'll try building agan | 11:28 |
mithro | xfxf: You'll need to re-run ./scripts/download-env.sh (running ./scripts/enter-env.sh should complain) | 11:29 |
xfxf | mithro: ack, noticed those files changed, doing that | 11:30 |
thaytan | I'm building with the python 3.6 change instead | 11:32 |
xfxf | appears to be building now \o/ | 11:34 |
mithro | thaytan: Yeah - that fix needs to be cleaned up to allow both Python 3.6 and Python 3.5 | 11:35 |
thaytan | I built a gateware | 11:41 |
thaytan | I built a firmware | 11:41 |
thaytan | I loaded a gateware | 11:41 |
thaytan | BIOS | 11:41 |
thaytan | (it's a Koan) | 11:41 |
xfxf | mithro: it's make gateware-load, firmware-load, then flterm and 'serialboot', right? | 11:43 |
xfxf | (i may be remembering wrong, docco is super out of date now) | 11:43 |
xfxf | nm, sorted | 11:44 |
mithro | firmware-load will run flterm | 11:46 |
mithro | and serialboot is correct | 11:46 |
thaytan | it didn't because my udev alias didn't appear | 11:46 |
xfxf | yeah, there was a udev issue, so it wasn't running, thaytan figured it out | 11:46 |
thaytan | but it's OK, I ran it manually | 11:46 |
thaytan | mithro, I'm doing all this on Fedora 25, btw | 11:47 |
mithro | However, I highly recommend setting up tftp loading of firmware | 11:47 |
thaytan | so some differences but it's working | 11:47 |
thaytan | for now, I just want a working board to do GStreamer / vocto stuff against | 11:47 |
mithro | thaytan: If anything needs to change in the scripts, happy to see Fedora tested | 11:47 |
thaytan | no need to load firmware too often | 11:47 |
thaytan | mithro, the only thing that was actually wrong is Fedora has a newer libftdi that has libftdi1.so.2 and the included openocd wants libftdi.so.1 (different lib name and .so version) | 11:48 |
thaytan | but the API seems compat, because a symlink worked | 11:48 |
mithro | you might want to install the udev rules from https://github.com/timvideos/HDMI2USB-mode-switch/tree/master/udev | 11:48 |
tpb | Title: HDMI2USB-mode-switch/udev at master · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 11:48 |
mithro | BTW You have roughly until I finish my dinner before I head to bed | 11:49 |
thaytan | mithro, udev rules are installed, but I only got /dev/hdmi2usb/by-num/opsis0/usbdev instead of /dev/hdmi2usb/by-num/opsis0/tty | 11:50 |
xfxf | mithro: yeah, already pointed him to that | 11:50 |
thaytan | I have a firmware flashed, but it seems to be booting in JTAG mode until I switch it | 11:51 |
mithro | thaytan: Hrm... the bot should *never* boot in JTAG mode - have you installed the old ixo-usb-jtag rules which do auto-fxload stuff? | 11:52 |
thaytan | mithro, I have the rules from https://github.com/timvideos/HDMI2USB-mode-switch.git master udev/ subdir | 11:52 |
tpb | Title: GitHub - timvideos/HDMI2USB-mode-switch: Tool for switching boards supported by HDMI2USB firmware between multiple different modes (programming, webcam, etc). (at github.com) | 11:52 |
thaytan | I don't see any automatic fxload there | 11:53 |
mithro | thaytan: Those are the right ones | 11:53 |
mithro | You *dont* want this one -> https://github.com/mithro/ixo-usb-jtag/blob/master/scripts/ixo-usb-jtag.rules | 11:53 |
tpb | Title: ixo-usb-jtag/ixo-usb-jtag.rules at master · mithro/ixo-usb-jtag · GitHub (at github.com) | 11:53 |
thaytan | oh, I do have that | 11:55 |
thaytan | something installed it, must be from the HDMI2USB-litex-fimrware repo | 11:55 |
mithro | thaytan: I'm guessing its from the old firmware | 11:55 |
mithro | thaytan: were was that file installed? | 11:56 |
mithro | BTW the gateware we used at LCA is here -> http://hopper.mithis.com/~tim/ | 11:57 |
tpb | Title: Index of /~tim (at hopper.mithis.com) | 11:57 |
thaytan | mithro, https://github.com/timvideos/HDMI2USB-mode-switch/tree/master/udev has 98-hdmi2usbaux-ixo-usb-jtag.rules right there | 11:58 |
tpb | Title: HDMI2USB-mode-switch/udev at master · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 11:58 |
mithro | thaytan: That is different to the ixo-usb-jtag.rules above | 11:58 |
mithro | Check for a /lib/udev/rules.d/85-ixo-usb-jtag.rules | 11:59 |
mithro | should have "fxload" in it | 11:59 |
thaytan | nothing in /lib/udev/rules.d no | 12:00 |
mithro | hrm.... | 12:02 |
thaytan | mithro, http://pastebin.ca/3772126 when I power the board | 12:03 |
tpb | Title: pastebin - Miscellany - post number 3772126 (at pastebin.ca) | 12:03 |
thaytan | does the board put itself in serial mode, or should udev? | 12:03 |
mithro | thaytan: Oh, 5440 is not JTAG mode, that is the "failsafe mode" | 12:04 |
mithro | The board will always some up with that at first and then disconnect and come up with the right one | 12:04 |
mithro | thaytan: HDMI2USB-mode-switch can be used to put it into serial mode | 12:04 |
mithro | thaytan: See targets/opsis/Makefile.mk | 12:05 |
thaytan | mithro, OK - I can switch it to serial OK | 12:06 |
thaytan | it's coming up with the new firmware | 12:06 |
thaytan | but it's not switching on its own at boot | 12:06 |
thaytan | I get WARNING:root:unbind-helper not found, will have to run as root! too | 12:06 |
thaytan | not sure what that means | 12:07 |
mithro | thaytan: It'll only switch after firmware is loaded | 12:07 |
thaytan | http://pastebin.ca/3772129 | 12:07 |
tpb | Title: pastebin - Something - post number 3772129 (at pastebin.ca) | 12:07 |
thaytan | that's after I switch to serial | 12:07 |
mithro | so unless you flash the firmware or load the firmware via network it won't come up on it's own until after the serialboot command | 12:07 |
thaytan | that's the firmware in flash | 12:08 |
thaytan | (I ran make flash-opsis) | 12:08 |
mithro | thaytan: and you power cycled after flashing? | 12:08 |
thaytan | yes | 12:08 |
thaytan | and if I run 'reboot' in the flterm console, it'll come back up in JTAG mode | 12:08 |
mithro | thaytan: 5440 != JTAG mode | 12:09 |
mithro | thaytan: reboot also != power cycle | 12:09 |
mithro | Does xfxf have the Opsis with the LowSpeedIO board + ftdi adapter there? | 12:11 |
thaytan | mithro, I have also pulled the cable since uploading the firmware to flash | 12:12 |
mithro | thaytan: So, after disconnecting the power and connecting the power again the board should come up as 5440 for a couple of seconds and then disappear and come back as 5442 | 12:13 |
thaytan | and OK - powersafe != JTAG (except that's what it says in the syslog :-P) | 12:13 |
mithro | powersafe? | 12:14 |
thaytan | power cycle | 12:14 |
thaytan | sorry, getting late for me | 12:14 |
thaytan | http://pastebin.ca/3772132 | 12:14 |
tpb | Title: pastebin - Mine - post number 3772132 (at pastebin.ca) | 12:14 |
thaytan | that's a clean power cycle (actually the same as the one before) | 12:14 |
mithro | Opsis (JTAG Mode) is idVendor=16c0, idProduct=06ad | 12:14 |
thaytan | it goes 5440 then disconnects and comes back as 16c0, idProduct=06ad | 12:14 |
mithro | Which target did you build the gateware for? | 12:15 |
thaytan | that's the same as the earlier paste - I think you missed it before | 12:15 |
thaytan | mithro, opsis, nextgen branch | 12:15 |
thaytan | (H2U P=opsis) | 12:15 |
mithro | export TARGET=hdmi2usb | 12:16 |
mithro | rebuild | 12:16 |
mithro | Looks like we set the default target to video, which doesn't include the JPEG encoder + usb interface | 12:16 |
thaytan | OK, cool | 12:17 |
thaytan | compiling gatware | 12:17 |
thaytan | what's the difference between gateware and firmware? | 12:17 |
mithro | Which is why its coming up in JTAG mode | 12:17 |
thaytan | FPGA bitstream vs CPU code? | 12:17 |
mithro | gateware == stuff which configures the FPGA (IE the hardware description in FPGA gate terms) | 12:18 |
mithro | firmware == stuff which runs on the softcore embedded inside the FPGA gateware | 12:18 |
thaytan | OK, so reloading the gateware should be sufficient, or firmware too? | 12:18 |
mithro | Both | 12:18 |
thaytan | OK | 12:18 |
mithro | Firmware is gateware specific | 12:19 |
mithro | because it depends on location of registers and stuff | 12:19 |
mithro | which will move about if features are enabled/disabled | 12:19 |
thaytan | built gateware in 8m20.725s | 12:30 |
thaytan | unlike ryan's "old tree" which seemed to get stuck | 12:30 |
xfxf | I take no responsibility for that tree :P | 12:33 |
xfxf | that said, built for me okay in 15 mins or so | 12:33 |
thaytan | time python -u ./make.py --platform=opsis --target=video --cpu-type=lm32 --iprange=192.168.100 \ | 12:42 |
thaytan | even though I have (H2U P=opsis T=hdmi2usb R=nextgen) | 12:42 |
mithro | thaytan: The gateware should take ~30 minutes | 12:43 |
mithro | thaytan: did you do a "TARGET=hdmi2usb" or an "export TARGET=hdmi2usb" ? | 12:46 |
mithro | thaytan: Try "make help" and see what that says too... | 12:46 |
thaytan | err derr | 12:46 |
thaytan | sorry | 12:46 |
mithro | thaytan: Do you know if there is a way to "detect" the export value on a variable? | 12:47 |
thaytan | yes, that's building it correctly now | 12:47 |
thaytan | mithro, export | grep $VAR ? | 12:47 |
mithro | thaytan: I was thinking "hdmi2usb_prompt() {" function which updates the prompt could check that export is set on the TARGET/PLATFORM/PROG stuff... | 12:49 |
thaytan | export with no args lists all exported vars | 12:59 |
thaytan | so that'd work | 12:59 |
thaytan | real18m0.626s | 13:05 |
thaytan | took considerably longer that time | 13:05 |
thaytan | mithro, there's no line hooked to a hardware reset that JTAG mode could exercise? | 13:11 |
thaytan | (is the physical power-cycle really needed?) | 13:11 |
thaytan | nm - I'll check it in the morning when I'm back next to the board | 13:14 |
thaytan | g'night | 13:14 |
mithro | thaytan: We just added something like that to mode-switch | 13:15 |
mithro | thaytan: but I haven't tested on an Opsis yet | 13:15 |
thaytan | mithro, whereabouts? | 13:16 |
mithro | hdmi2usb-mode-switch --reset-gateware | 13:16 |
mithro | might not be merged yet | 13:16 |
mithro | https://github.com/timvideos/HDMI2USB-mode-switch/pull/54 | 13:17 |
tpb | Title: Add --reset-gateware by mithro · Pull Request #54 · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 13:17 |
thaytan | yeah, not merged | 13:21 |
thaytan | I think I won't play with that tonight, I'll just wait until morning and walk back to the shed and pull the cable | 13:22 |
thaytan | o/ | 13:22 |
*** springermac has quit IRC | 15:38 | |
*** springermac has joined #timvideos | 15:39 | |
*** rohitksingh has joined #timvideos | 16:35 | |
*** SamSagaZ__ has joined #timvideos | 17:26 | |
*** SamSagaZ_ has quit IRC | 17:29 | |
*** CarlFK has quit IRC | 20:53 | |
*** rohitksingh has quit IRC | 21:36 | |
*** rohitksingh has joined #timvideos | 21:36 | |
*** rohitksingh has quit IRC | 22:24 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!