*** tpb has joined #timvideos | 00:00 | |
cr1901_modern | mithro: Yes, I wanted you to review my commit yesterday for another round of feedback (and totally forgot to tell you). | 00:13 |
---|---|---|
mithro | cr1901_modern: Please put a comment on the pull request saying as such - otherwise I'll ignore it :-P | 00:13 |
cr1901_modern | mithro: https://github.com/timvideos/flterm/pull/3#issuecomment-327964545 :D | 00:15 |
tpb | Title: Add XMODEM support compatible w/ HDMI2USB by cr1901 · Pull Request #3 · timvideos/flterm · GitHub (at github.com) | 00:15 |
mithro | cr1901_modern: Just two minor changes and we can merge... | 00:18 |
cr1901_modern | mithro: Ok, cool | 00:19 |
mithro | CarlFK[m]: Your new bug doesn't make any sense :-P | 00:26 |
*** whatnick has joined #timvideos | 00:27 | |
cr1901_modern | mithro: What's wrong with the brace wrapping on the doxygen doc blocks? They all have that ending | 00:27 |
cr1901_modern | oh wait wait nevermind | 00:27 |
cr1901_modern | mithro: Pushed | 00:28 |
mithro | cr1901_modern: merged - now how about the other side :-P | 00:31 |
cr1901_modern | mithro: Working on it :P | 00:33 |
*** sb0 has joined #timvideos | 01:03 | |
*** sb0 has quit IRC | 01:18 | |
cr1901_modern | mithro: Do you have a pinout for the JTAG header? | 02:31 |
mithro | cr1901_modern: On? | 02:35 |
cr1901_modern | mithro: On Opsis... I wanted to see whether I could program the FPGA from Windows via direct connection to FPGA's JTAG pins | 02:35 |
cr1901_modern | (this appears to be "no") | 02:35 |
mithro | cr1901_modern: You should most definitely be able to do that | 02:36 |
mithro | cr1901_modern: That is how _florent_ does it | 02:36 |
mithro | cr1901_modern: The pins are standard positioned and labeled on the silkscreen | 02:37 |
cr1901_modern | Oh... oops | 02:37 |
cr1901_modern | mithro: I assumed I couldn't do it b/c I read the FPGA's JTAG pins go the the FX2 chip | 02:39 |
mithro | cr1901_modern: They do | 02:39 |
cr1901_modern | Is it a chain of multiple devices? | 02:39 |
cr1901_modern | FX2, then LX45? | 02:40 |
cr1901_modern | Nope, accoding to OpenOCD, only thing there is the FPGA... | 02:54 |
mithro | cr1901_modern: Correct | 02:58 |
cr1901_modern | hrm, Tera Term also can't display characters properly in windows using this driver ._. | 03:03 |
cr1901_modern | And neither can PuTTY (which numato themselves use | 03:05 |
cr1901_modern | mithro: ^^ What's the easiest way to get in contact w/ Numato? | 03:06 |
mithro | cr1901_modern: With the Mimas? | 03:06 |
cr1901_modern | mithro: Sadly, it extends to the Opsis too | 03:07 |
mithro | cr1901_modern: We don't have windows drivers for the Opsis? | 03:07 |
cr1901_modern | mithro: No, we do... just the serial port has the same problem w/ garbled characters on the Opsis as it does w/ the Mimasv2 | 03:08 |
mithro | cr1901_modern: Where are the Opsis windows drivers? | 03:09 |
cr1901_modern | mithro: http://numato.com/product/numato-opsis-fpga-based-open-video-platform Downloads tab | 03:09 |
tpb | Title: Numato Opsis: FPGA-based open video platform | Numato Lab (at numato.com) | 03:09 |
mithro | I started creating Windows drivers here -> https://github.com/mithro/HDMI2USB-and-Numato-Opsis-Windows-Drivers but never finished it... | 03:10 |
tpb | Title: GitHub - mithro/HDMI2USB-and-Numato-Opsis-Windows-Drivers: Drivers and related code/data for improving the hardware experience for the HDK on Windows (at github.com) | 03:10 |
mithro | Wow, numato's website just changed... | 03:10 |
mithro | I've never seen them before -- so no guarantees they work at all :-P | 03:11 |
xfxf | lol what | 03:12 |
xfxf | official windows drivers!? | 03:12 |
cr1901_modern | "you'll need a code-signing certificate" there's a way around this so you can deploy self-signed drivers without requiring test mode | 03:12 |
xfxf | wow | 03:12 |
cr1901_modern | but I don't remember the details | 03:12 |
xfxf | they've actually made proper inf/cat files for the usb device id's | 03:12 |
xfxf | just a cursory look over the zip contents just makes the device recognised properly under windows (capture, terminal, tofe lowspeed io), doesn't provide any software | 03:13 |
xfxf | mithro: i'm amused this happened without your knowledge lol | 03:13 |
xfxf | also this means they're selling them again? | 03:13 |
mithro | xfxf: Well, I sent them files to sign and stuff and they sent me stuff back - I didn't realize they had published stuff | 03:14 |
xfxf | mithro: ah, the contents of their zip look the same as your repo | 03:14 |
cr1901_modern | ... bahaha, really :P. Nice! | 03:14 |
mithro | It *definitely* wasn't finished | 03:14 |
xfxf | i rly should finish the bloody UI | 03:14 |
cr1901_modern | in any case, something's very wrong w/ both Numato serial ports | 03:14 |
mithro | xfxf: Yes you should | 03:15 |
cr1901_modern | I don't have a way to debug this... | 03:15 |
xfxf | i was quite enjoying writing it, different paradigm to web programming | 03:15 |
xfxf | actually had a legitimate reason to use explicit threading | 03:15 |
mithro | cr1901_modern: I wouldn't waste time on it | 03:15 |
cr1901_modern | mithro: I don't intend to, but it's still a bug/problem for windows development. | 03:16 |
mithro | cr1901_modern: Log a bug on the HDMI2USB-fx2-firmware repo about it | 03:16 |
CarlFK[m] | mithro (IRC): looks like that edid change landed ^ed6c81b (Tim Ansell 2017-08-17 13:31:39 +1000 339) { | 03:16 |
cr1901_modern | mithro: Will do | 03:17 |
CarlFK[m] | my opsis version built: Jul 27 2017 01:11:25 | 03:17 |
cr1901_modern | mithro: Just FYI, I've never had issues w/ FTDI or Keypsan CDC drivers; Numato seems to be the only place where I have issues. | 03:17 |
mithro | CarlFK[m]: Hrm.... Looking at https://github.com/timvideos/HDMI2USB-litex-firmware/blame/master/firmware/processor.c it seems like it was 8 months ago? | 03:18 |
tpb | Title: HDMI2USB-litex-firmware/firmware/processor.c at master · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com) | 03:18 |
CarlFK[m] | hmm.. um.. | 03:19 |
cr1901_modern | mithro: Btw... you said you have a blob of Numato's PIC firmware for the mimasv2 somewhere? (Just in case) | 03:20 |
mithro | cr1901_modern: Haven't had time to look for it yet | 03:20 |
mithro | be back later - getting lunch | 03:20 |
cr1901_modern | mithro: That's fine... have fun | 03:21 |
* CarlFK[m] uploaded an image: file1504841145208.jpg (412KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/GMZkokmsRWREUSZckPwlzzhp> | 03:26 | |
*** rohitksingh_work has joined #timvideos | 03:35 | |
mithro | CarlFK[m]: plug in a Windows or Mac computer | 03:36 |
CarlFK | mithro: um... no. ;) How about I file a bug report with whatever that GUI is? Whats the command line tool to show whatever that string is called ? | 03:38 |
mithro | xrandr --xprops I think? | 03:38 |
*** sb0 has joined #timvideos | 03:39 | |
*** paradisaeidae has joined #timvideos | 03:59 | |
Ishan_Bansal | mithro : Actually I feel asleep last night so I fixed some of the errors but I try to fix all the errors by tonight. | 04:05 |
mithro | Ishan_Bansal: no hurry, make sure you get good nights sleep :-) | 04:06 |
*** paradisaeidae has quit IRC | 05:04 | |
*** rohitksingh_work has quit IRC | 05:06 | |
*** sb0 has quit IRC | 05:58 | |
*** nueces has quit IRC | 06:08 | |
*** sb0 has joined #timvideos | 08:16 | |
*** sb0 has quit IRC | 08:33 | |
*** sb0 has joined #timvideos | 09:16 | |
*** cr1901_modern1 has joined #timvideos | 10:11 | |
*** cr1901_modern has quit IRC | 10:13 | |
CarlFK | mithro: juser@cnt1:~$ hwinfo --monitor --short | 11:51 |
CarlFK | monitor: HDMI2USB-1 HDMI2USB-2 Acer AL1511 | 11:51 |
mithro | CarlFK: hrm? | 11:52 |
CarlFK | hwinfo --monitor shows Model: "HDMI2USB-2" Vendor: OHW | 11:52 |
mithro | CarlFK: That is what I expect? | 11:53 |
CarlFK | mithro: yes - mostly just showing you what the command is in case you need it | 11:54 |
CarlFK | issue closed. Now I can make coffee | 11:57 |
mithro | CarlFK: Happy to solve your bug before you created it :-P | 12:25 |
CarlFK | mithro: do more of that! :p | 12:57 |
*** ChanServ sets mode: +v thaytan_ | 12:58 | |
*** thaytan_ is now known as thaytan | 12:58 | |
*** nueces has joined #timvideos | 13:07 | |
*** rohitksingh has joined #timvideos | 13:29 | |
*** tsglove has joined #timvideos | 13:50 | |
*** nueces has quit IRC | 14:04 | |
*** nueces has joined #timvideos | 16:05 | |
*** cr1901_modern1 is now known as cr1901_modern | 17:24 | |
*** rohitksingh has quit IRC | 18:14 | |
*** CarlFK has quit IRC | 22:14 | |
cr1901_modern | mithro: I just realized something (I think)... the opsis bitstream (i.e. the .bit/.bin file generated by ISE) embeds an extra copy of the LiteX BIOS in addition to the copy that's stored in flash. Is this correct? | 22:28 |
cr1901_modern | cc: _florent_ ^^ | 22:36 |
mithro | cr1901_modern: yes | 22:58 |
mithro | cr1901_modern: we want the same flash layout for consistence | 22:58 |
mithro | But having an embedded gateware means we don't have to flash the bios seperately | 22:59 |
cr1901_modern | mithro: So why doesn't mimasv2 have the same issue? | 23:04 |
mithro | The mimasv2 doesn't have the space being an lx9 | 23:07 |
mithro | cr1901_modern: at some point the lx45 in the Atlys / Opsis might get to full and we have to kick the bios out | 23:08 |
mithro | We should probably do that for the hdmi2usb target at some point | 23:09 |
cr1901_modern | I see... I tried reprogramming the opsis earlier... just as a test I loaded a bitstream by itself (no flash), and was surprised to see the LiteX BIOS w/ a "Sept 6, 2017" date | 23:09 |
cr1901_modern | (instead of a MiSoC BIOS w/ Jan 2016 date :P) | 23:09 |
cr1901_modern | So it threw me off a bit | 23:09 |
mithro | Sorry | 23:10 |
cr1901_modern | No worries | 23:11 |
cr1901_modern | right now I have a bigger issue. I flashed new firmware successfully, but I lost ttyACM0 :/ | 23:11 |
cr1901_modern | dmesg says: Product: Opsis (JTAG Mode) | 23:12 |
mithro | It does make it quick to load the gateware and then tftp the firmware during development | 23:12 |
cr1901_modern | mithro: True :P | 23:12 |
mithro | cr1901_modern: the FPGA will reset the FX2 after booting | 23:12 |
cr1901_modern | So this indicates the FPGA failed to boot properly (because it didn't exist JTAG mode)? | 23:13 |
mithro | Not necessarily | 23:13 |
mithro | cr1901_modern: I sent you a lsio board right? | 23:14 |
cr1901_modern | mithro: Yes, you did. It's attached to my Opsis right now | 23:15 |
mithro | cr1901_modern: you can use the USB UART on that too see everything even when the FX2 is being reset | 23:15 |
mithro | You have to set an environment variable to get that to happen | 23:16 |
mithro | To build a gateware with lsio board support | 23:16 |
mithro | Otherwise, just remove the jumper that will prevent the FPGA from resetting the FX2 | 23:17 |
cr1901_modern | mithro: Worth a shot. B/c right now my current status is... I can program the Opsis flash via my JTAG adapter (TLDR; it is most convenient for me right now compared to the "mode switch" way). But ttyACM1 decided to disappear when I power cycled the board | 23:17 |
cr1901_modern | (power cycle == "unplug it/plug it back in") | 23:18 |
mithro | https://opsis.hdmi2usb.tv/features/usb-peripheral.html#cypress-fx2-reset-circuit | 23:18 |
* cr1901_modern takes a look | 23:19 | |
mithro | What target are you flashing with at the moment? | 23:19 |
cr1901_modern | The flash.bin generated from opsis_lm32_base + bios + hdmi2usb firmware | 23:19 |
cr1901_modern | I flashed it at address 0 | 23:20 |
mithro | The fx2 should come up in JTAG mode in that config in theory | 23:20 |
mithro | Btw at some point I want to get mode switch working on windows | 23:21 |
cr1901_modern | mithro: Unplugging opsis USB cable now and plugging back in. | 23:22 |
mithro | Now we have fx2 loader in python that should be more doable | 23:22 |
cr1901_modern | mithro: "Btw at some point I want to get mode switch working on windows" Understood. Just doing what I thought would be the quickest way :P. | 23:23 |
mithro | Yeah, perfectly reasonable | 23:23 |
mithro | I was just hinting that might be on your to-do list next :-) | 23:24 |
cr1901_modern | mithro: That too :P | 23:25 |
cr1901_modern | mithro: Okay, I have some good news and bad news | 23:25 |
cr1901_modern | good news is Linux detects the device | 23:25 |
cr1901_modern | bad news is everything else: https://hastebin.com/rufipefago.vbs | 23:25 |
mithro | If we can port the xmodem code to the FX2 (and JTAG rather than SPI flash mode) | 23:26 |
mithro | cr1901_modern: that means the FX2 is in failsafe mode | 23:26 |
cr1901_modern | mithro: It is my intent to make libmodem able to target the 8051's w/ the limited buffer space | 23:26 |
cr1901_modern | mithro: I swear I didn't do anything bad... I think | 23:26 |
mithro | IE the FX2 was reset and it was unable to load the FX2 firmware off the FPGA | 23:27 |
cr1901_modern | VID/PID don't match Cypress in the dmesg output I linked | 23:28 |
mithro | https://opsis.hdmi2usb.tv/getting-started/usb-ids.html#summary | 23:28 |
mithro | Btw would appreciate help with updating the docs too :-) | 23:29 |
cr1901_modern | mithro: Okay that's fair... let me just un-hose my Opsis first | 23:30 |
mithro | https://github.com/timvideos/HDMI2USB-numato-opsis-docs?files=1 | 23:30 |
tpb | Title: HDMI2USB-numato-opsis-docs/ at master · timvideos/HDMI2USB-numato-opsis-docs · GitHub (at github.com) | 23:30 |
cr1901_modern | mithro: According to your table, I'm in "Unconfigured mode" | 23:33 |
mithro | Yeah | 23:35 |
* cr1901_modern consults FX2 datasheet | 23:35 | |
mithro | Means the FX2 booted from the EEPROM but was unable to read a full firmware from the FPGA | 23:35 |
mithro | You won't find it there | 23:36 |
cr1901_modern | mithro: Oh, I was wondering how the FX2 knows which I2C secondary it knows to talk to | 23:36 |
cr1901_modern | Since the FPGA and phyiscal EEPROM can both serve that role | 23:36 |
mithro | cr1901_modern: You can now send the FX2 firmware via USB using fxload | 23:37 |
mithro | cr1901_modern: the FX2 loads this program from the EEPROM -> https://github.com/timvideos/HDMI2USB-fx2-firmware/tree/master/microload | 23:38 |
tpb | Title: HDMI2USB-fx2-firmware/microload at master · timvideos/HDMI2USB-fx2-firmware · GitHub (at github.com) | 23:38 |
cr1901_modern | mithro: okay let me do that... | 23:39 |
mithro | cr1901_modern: the EEPROM is only 128 bytes, it isn't really big enough to store a real FX2 program | 23:39 |
cr1901_modern | Wait the docs say 2048 kilobits | 23:39 |
mithro | 2048 kilobits == 256 kilobytes -- but the top 128 bytes are not writable IIRC | 23:41 |
mithro | https://github.com/mithro/HDMI2USB-mode-switch/blob/opsis-prod/opsis_eeprom.py | 23:44 |
tpb | Title: HDMI2USB-mode-switch/opsis_eeprom.py at opsis-prod · mithro/HDMI2USB-mode-switch · GitHub (at github.com) | 23:44 |
cr1901_modern | Okay, got a i2c-prod.hex | 23:45 |
mithro | That doc needs some updates - the eeprom that was populated ignores the i2c address lines... | 23:45 |
mithro | cr1901_modern: you don't need that | 23:45 |
mithro | cr1901_modern: all you need to do is an "fxload <fx2 firmware>" - "hdmi2usb-modeswitch --mode=jtag" will do it for you | 23:47 |
mithro | cr1901_modern: or build a gateware with lsio support and then use the UART on that to see what is going wrong... | 23:47 |
mithro | cr1901_modern: don't touch the eeprom otherwise it will be a pain to get working again :-P | 23:49 |
mithro | paddatrapper: you going to be around this weekend? | 23:49 |
cr1901_modern | mithro: I won't lol... but at some point I'd like to be competent enough that I could touch the eeprom safely :P | 23:52 |
cr1901_modern | (Also recall I do have an external JTAG/SPI/I2C breakout programmer) | 23:53 |
cr1901_modern | So as incompetent as I might be tonight, it's not likely I'll actually truly hose my device (famous last words) | 23:53 |
mithro | cr1901_modern: it's actually pretty hard to get into a state were you can't recover by just removing some jumpers | 23:53 |
cr1901_modern | mithro: Okay, so now I'm back into JTAG Mode for the USB device returned | 23:55 |
mithro | cr1901_modern: what did you do? | 23:56 |
cr1901_modern | "hdmi2usb-modeswitch --mode=jtag" | 23:56 |
cr1901_modern | as soon as it finished dmesg showed the device reporting itself in JTAG mode | 23:56 |
cr1901_modern | Unplugging the USB cable and back in- device still shows up in JTAG mode | 23:58 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!