*** tpb has joined #timvideos | 00:00 | |
*** panther has joined #timvideos | 02:00 | |
*** panther is now known as sab_123 | 02:01 | |
*** sb0 has joined #timvideos | 02:13 | |
mithro | tumbleweed: capture doesn't work at 1080p | 02:45 |
---|---|---|
mithro | tumbleweed: it would also half your frame rate | 02:53 |
*** CarlFK has joined #timvideos | 03:16 | |
*** ChanServ sets mode: +v CarlFK | 03:16 | |
sab_123 | mithro, to get started for the UART, I would write from USB into an end point after setting the correct vid and pid and use the hardware UART after setting up the timer . FOr the rx side, I would first set the isr interrupt after receiving the data arm the endpoint and wait correct? | 03:27 |
sab_123 | mithro, I remember that the last time we had this conversation you had some doubts if I understtod correctly. Just want to make sure this is what you need | 03:28 |
*** CarlFK has quit IRC | 03:44 | |
*** CarlFK has joined #timvideos | 03:56 | |
*** ChanServ sets mode: +v CarlFK | 03:56 | |
mithro | sab_123: no, what we need is a bunch of well documented, tested, composable parts which can be connected together to create what you described | 04:32 |
*** CarlFK has quit IRC | 04:51 | |
sab_123 | mithro, UART needs to be bitbanged too right? | 04:52 |
sab_123 | mithro, because like you were saying , not all have serial ports | 04:52 |
mithro | sab_123: yes, there are multiple different possibilities for the UART side - hardware uart, bit banged uart, fifo | 04:58 |
sab_123 | ok mithro , got it | 04:59 |
sab_123 | mithro, for the auto vectoring , on everyline I see BYTE dummy=INT2JT; which doesnt seem to be used at all. Do you want me to remove this?? | 05:11 |
mithro | sab_123: I have NFI what you are talking about - please be more descriptive | 05:12 |
sab_123 | http://fx2lib.sourceforge.net/docs/usbjt_8h-source.html | 05:12 |
tpb | Title: Fx2lib: include/usbjt.h Source File (at fx2lib.sourceforge.net) | 05:12 |
sab_123 | line number | 05:12 |
sab_123 | 40 | 05:12 |
mithro | sab_123: I don't know why you are looking at the very old stuff on sourceforge? | 05:16 |
sab_123 | nope | 05:16 |
sab_123 | Its the same code on your fx2lib too | 05:16 |
mithro | sab_123: Can you also explain why it exists? | 05:16 |
sab_123 | This one doesnt have it though | 05:18 |
sab_123 | https://github.com/djmuhlestein/fx2lib/blob/aaa470e377ca0bf861244b10cdf4bdc4615d8bc1/include/autovector.h | 05:18 |
tpb | Title: fx2lib/autovector.h at aaa470e377ca0bf861244b10cdf4bdc4615d8bc1 · djmuhlestein/fx2lib · GitHub (at github.com) | 05:19 |
sab_123 | I have to look at the makefile | 05:19 |
sab_123 | see which git is being pulled in | 05:19 |
*** Bertl_zZ is now known as Bertl | 05:26 | |
sab_123 | strange, its pulling in an older version | 05:27 |
sab_123 | https://github.com/timvideos/fx2lib/blob/master/include/autovector.h doesnt have it | 05:27 |
sab_123 | I just did a git clone and it pulls in one which has that line | 05:28 |
tpb | Title: fx2lib/autovector.h at master · timvideos/fx2lib · GitHub (at github.com) | 05:28 |
mithro | sab_123: do you know how to use gitk? | 05:33 |
sab_123 | nope, only git. If I do git clone https://github.com/timvideos/fx2lib | 05:34 |
tpb | Title: GitHub - timvideos/fx2lib: Library routines for creating firmware for the Cypress FX2 (CY7C68013 and variants) with SDCC (at github.com) | 05:34 |
sab_123 | I get a new one | 05:34 |
sab_123 | but on the HDMI2MISOC when I do make and it pulls in third party libs , I get an older version | 05:34 |
mithro | sab_123: You should learn how to use gitk | 05:35 |
mithro | sab_123: you also understand that there are different branches? | 05:36 |
sab_123 | yes | 05:36 |
sab_123 | master is default | 05:36 |
sab_123 | I havent changed it | 05:36 |
sab_123 | ah | 05:37 |
sab_123 | its pulling in detached branch by default | 05:38 |
sab_123 | yes | 05:38 |
sab_123 | that was the problem | 05:38 |
mithro | sab_123: that is not a problem, it is how submodules work | 05:39 |
mithro | sab_123: git submodules always point to a specific commit so that they are always consistent | 05:43 |
sab_123 | mithro, ah submodules , I have to read up on that, currently I will use the latest branch by checking out master | 06:04 |
sab_123 | I dont think there will be conflicts, the current commit is 2015 | 06:04 |
sab_123 | for the detached submodule which is being pulled in | 06:05 |
*** sb0 has quit IRC | 06:17 | |
*** sb0 has joined #timvideos | 06:49 | |
*** Bertl is now known as Bertl_oO | 06:51 | |
*** aps_ is now known as aps | 07:23 | |
tumbleweed | mithro: ah. Half frame rate would probably be fine... | 07:59 |
mithro | tumbleweed: I'm be around a bit later if you have people who want to hack on Opsis / HDMI2USB stuff | 08:02 |
olasd | sure | 08:03 |
olasd | (yes, I'm frustrated from yesterday :P) | 08:03 |
mithro | olasd: I'm around now | 08:53 |
mithro | olasd: what are you trying to do? | 08:53 |
olasd | so, I have one of the Opsis boards DebConf bought in front of me; I'm trying to flash a more recent firmware to try and get some more video modes available | 08:54 |
mithro | https://www.youtube.com/watch?v=GZNDQjCqIUM | 08:55 |
mithro | olasd: okay - step 1 is to get the FX2 on the board into "JTAG programming mode", there are a number of different ways to do that | 08:55 |
olasd | (we're using one of the three other boards in 720p mode; the last one was DOA / the USB doesn't enumerate) | 08:55 |
olasd | right, thus far I'm following :) | 08:55 |
mithro | olasd: The "firmware" for running the FX2 in JTAG programming mode comes from my ixo-usb-jtag repository | 08:56 |
mithro | olasd: https://github.com/mithro/ixo-usb-jtag | 08:57 |
tpb | Title: GitHub - mithro/ixo-usb-jtag: usb-jtag - Altera USB Blaster Emulation with a FX2 (at github.com) | 08:57 |
mithro | olasd: or the ixo-usb-jtag deb | 08:57 |
mithro | It can be loaded using the fxload command | 08:57 |
mithro | olasd: I have a tool called "HDMI2USB-mode-switch" which is designed to make it easy to do this | 08:58 |
mithro | olasd: but it needs a bunch of love to get into a good state | 08:59 |
*** sab_123 has quit IRC | 08:59 | |
mithro | olasd: https://github.com/mithro/HDMI2USB-mode-switch/tree/opsis-prod and https://github.com/timvideos/HDMI2USB-mode-switch/ | 08:59 |
tpb | Title: GitHub - mithro/HDMI2USB-mode-switch at opsis-prod (at github.com) | 08:59 |
mithro | olasd: if you know people who know Python, they could definitely help with finishing that stuff | 09:03 |
olasd | ok | 09:03 |
mithro | olasd: it would be good to get it packaged up for debian too | 09:04 |
mithro | then you could just go | 09:04 |
mithro | hdmi2usb-mode-switch --mode=jtag | 09:04 |
olasd | that worked | 09:06 |
olasd | \o/ | 09:06 |
mithro | olasd: which works? :P | 09:11 |
olasd | the jtag mode switch | 09:12 |
mithro | olasd: what output did you get? | 09:15 |
olasd | mithro: I'm now in a state where the board registers as idVendor=16c0, idProduct=06ad (Product: Opsis (JTAG Mode)). | 09:15 |
olasd | the output was just "found 1 board" | 09:15 |
mithro | olasd run it with --verbose :) | 09:15 |
mithro | olasd: you'll see the fxload and other commands it runs | 09:16 |
olasd | "Board already in required mode (jtag)" :P | 09:16 |
mithro | https://github.com/mithro/HDMI2USB-mode-switch/blob/opsis-prod/opsis-flash.sh | 09:16 |
tpb | Title: HDMI2USB-mode-switch/opsis-flash.sh at opsis-prod · mithro/HDMI2USB-mode-switch · GitHub (at github.com) | 09:16 |
mithro | Probably want to remove the eeprom programming steps | 09:17 |
olasd | should I replace the .bin with something newer? | 09:18 |
mithro | olasd: if you are building / hacking on the firmware then you'll want to use "make flash" in https://github.com/timvideos/HDMI2USB-misoc-firmware | 09:21 |
tpb | Title: GitHub - timvideos/HDMI2USB-misoc-firmware: A version of the HDMI2USB firmware based around the misoc+migen tools produced by m-labs. (at github.com) | 09:21 |
olasd | right, okay | 09:21 |
mithro | olasd: but you could use prebuilt ones from https://github.com/timvideos/HDMI2USB-misoc-firmware | 09:21 |
tpb | Title: GitHub - timvideos/HDMI2USB-misoc-firmware: A version of the HDMI2USB firmware based around the misoc+migen tools produced by m-labs. (at github.com) | 09:21 |
mithro | olasd: you should hack on https://github.com/timvideos/HDMI2USB-misoc-firmware/issues/63 | 09:24 |
tpb | Title: Allow user to add custom EDID mode · Issue #63 · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com) | 09:24 |
olasd | okay; the flashing seems to be unhappy | 09:28 |
olasd | let me paste the full output | 09:29 |
olasd | mithro: https://paste.debian.net/446079/ | 09:29 |
tpb | Title: debian Pastezone (at paste.debian.net) | 09:29 |
mithro | olasd: if you get a device DNA that looks like this | 09:32 |
mithro | DNA = 110000001100000011000000110000001100000010011110101000111 (0x181818181813d47) | 09:32 |
mithro | it means the ixo-usb-jtag is confused | 09:32 |
olasd | I do | 09:32 |
olasd | which means it is | 09:32 |
mithro | https://www.irccloud.com/pastebin/M7GzLIST/ | 09:32 |
tpb | Title: Pastebin | IRCCloud (at www.irccloud.com) | 09:32 |
mithro | Switch to the serial mode and then back to the jtag mode | 09:32 |
olasd | done, and DNA is still the same | 09:33 |
mithro | olasd: power cycle and try again | 09:34 |
mithro | we need to improve the FX2 firmware | 09:34 |
olasd | DNA = 110000001100000011000000110000001100000011000000110000001 (0x181818181818181) | 09:35 |
olasd | aha! | 09:35 |
olasd | so; output was different and still failed; another serial -> jtag cycle and apparently the board is flashing | 09:37 |
olasd | wrote 1507328 bytes from file spiflash/opsis_hdmi2usb-hdmi2usbsoc-opsis.bin in 56.280357s (26.155 KiB/s) | 09:38 |
olasd | whee | 09:38 |
mithro | yeah, 110000001100000011000000110000001100000011000000110000001 means that its just looping back the JTAG rather than getting to the FPGA properly | 09:41 |
olasd | righto | 09:41 |
olasd | hrm. | 09:48 |
mithro | olasd: Possibly because it isn't resetting the FPGA properly | 09:52 |
olasd | okay | 09:53 |
olasd | so | 09:53 |
olasd | I succeeded in flashing the HEAD revision of the HDMI2USB-misoc-firmware, that I built | 09:53 |
olasd | but | 09:54 |
olasd | mithro: https://paste.debian.net/446117/ is the output from make flash in the misoc-firmware repo | 09:56 |
tpb | Title: debian Pastezone (at paste.debian.net) | 09:56 |
mithro | It's kind of hard for me to read french - but it looks like the flashing part worked | 09:56 |
olasd | ah, sorry | 09:57 |
mithro | I think it says | 09:57 |
mithro | make: *** No rule to make target "flash-fx2" necessary to "flash". Stop. | 09:57 |
olasd | apparently there is no flash-fx2 target | 09:57 |
olasd | yeah | 09:57 |
olasd | the rest of the flashing worked | 09:57 |
mithro | Yeah, you don't need to flash-fx2 on the Opsis and I haven't written the code to flash the fx on an atlys :P | 09:58 |
mithro | olasd: if you power cycle after flashing | 09:58 |
mithro | olasd: hopefully it will come up with new firmware | 09:58 |
olasd | I did power cycle | 09:58 |
mithro | olasd: did it come back? :P | 09:58 |
olasd | and it just doesn't come back ;_; | 09:58 |
mithro | olasd: it can take about 30 seconds? | 09:59 |
mithro | olasd: what happens on the USB? | 09:59 |
olasd | yeah; I see [72815.373462] usb 1-2: New USB device found, idVendor=2a19, idProduct=5440 appear | 09:59 |
olasd | then disappear | 09:59 |
olasd | and then nothing | 09:59 |
mithro | olasd: sounds like the FPGA is resetting the FX2 but it isn't successfully loading the new firmware | 10:01 |
olasd | *nod* | 10:02 |
mithro | 2a19 5440 is the "FX2 has power but hasn't loaded new firmware" | 10:02 |
olasd | yeah, I gathered that from the usb ids page | 10:02 |
mithro | olasd: try disconnecting the FX2 RST jumper | 10:02 |
mithro | olasd: and loading the serial mode | 10:02 |
mithro | olasd: and see what the firmware is saying | 10:02 |
mithro | olasd: tumbleweed wasn't smart enough to get a LowSpeedIO board right? | 10:02 |
tumbleweed | it didn't seem like something that would be useful to us | 10:03 |
mithro | you guys are in Vienna right? | 10:03 |
tumbleweed | yep | 10:03 |
* olasd nods | 10:03 | |
mithro | tumbleweed: the LowSpeedIO has a UART on it, you can use that to connect to the serial console even when the FPGA is resetting the FX2 :P | 10:04 |
mithro | makes it easy to debug what is going on with the FX2 | 10:04 |
olasd | I'm sure we can find a ftdi somewhere | 10:04 |
olasd | lots of people from the metalab around | 10:04 |
tumbleweed | we found one :) | 10:05 |
mithro | tumbleweed: but were you going to connect it :P | 10:05 |
mithro | I guess you could try shoving some wires into the TOFE connector | 10:05 |
tumbleweed | urgh | 10:06 |
olasd | ah, yeah :-) | 10:06 |
olasd | so anyway | 10:06 |
mithro | olasd: btw - you have the SDA jumper connected right? | 10:06 |
olasd | yes | 10:07 |
olasd | I'm in serial mode; nothing happening on the serial port | 10:07 |
mithro | olasd: hit enter? | 10:07 |
olasd | I've done that :) | 10:07 |
mithro | you might need to be quick to catch what ever its outputting? | 10:08 |
mithro | I was sure that I asked for the FX2 serial lines to be put on a header, but it never seem to end up in the final design | 10:08 |
olasd | yeah, don't look like it | 10:09 |
olasd | :) | 10:09 |
mithro | olasd: otherwise you could have connected a FTDI device there | 10:10 |
mithro | olasd: _florent_ uses an adapter connected to the microSD pins | 10:11 |
mithro | olasd: https://github.com/timvideos/HDMI2USB-misoc-firmware/blob/master/platforms/opsis.py#L256 | 10:11 |
tpb | Title: HDMI2USB-misoc-firmware/opsis.py at master · timvideos/HDMI2USB-misoc-firmware · GitHub (at github.com) | 10:11 |
olasd | okay; I've flashed the firmware from the mode-switch repo and the board is back | 10:13 |
mithro | olasd: great | 10:13 |
mithro | olasd: I haven't been testing with a production opsis board recently | 10:13 |
mithro | olasd: so maybe something else is broken | 10:13 |
olasd | :) | 10:13 |
mithro | Now since it is 8:30pm on a Friday evening and SLUG is over, I'm going to head home | 10:25 |
olasd | :) | 10:30 |
olasd | well, I'm in a situation where i'm able to recover a working firmware, so I should be fine for a while | 10:31 |
olasd | at some point we might try to do something about the board that doesn't enumerate usb, if someone brings an external jtag board | 10:34 |
mithro | olasd: can you generate gateware? | 10:51 |
olasd | mmm | 10:52 |
olasd | yes, I'm pretty sure make gateware succeeded earlier | 10:52 |
mithro | IE "make gateware" | 10:52 |
olasd | I have been multitasking as it takes a while, however | 10:53 |
mithro | Btw you did an "export BOARD=opsis" right? | 10:53 |
olasd | yeah :) | 10:53 |
mithro | Ha great, I was thinking maybe you had flashed Atlys gateware on an Opsis which doesn't work | 10:54 |
mithro | olasd: if your any good at packaging, it work be good to get lm32 and or1k cross compilers into Debian | 10:55 |
olasd | I won't touch cross compiler packaging with a ten feet pole, sorry :) | 10:55 |
olasd | I tried that a few years back, it was a horrible horrible experience | 10:56 |
mithro | That's why we currently get you a working cross compiler with conda | 10:56 |
olasd | oh, yeah, I understand that; can't say I love it, but I've seen the other side | 10:57 |
mithro | Lm32 stuff is all upstream | 10:57 |
mithro | Dunno if they helps | 10:57 |
olasd | (getting a bare metal arm cortex m3 toolchain properly packaged; I think I started in 2008, got some packages working, but spent years explaining that no, the linux toolchains couldn't build properly for a bare metal target) | 10:57 |
olasd | (then I threw up my hands in the air and got back to doing more productive stuff) | 10:58 |
mithro | olasd: you a C programmer? | 10:59 |
olasd | it's been a long while since I've done embedded stuff; I maybe last did some real C programming in 2009 or so, and my last fray with vhdl was in 2010. and I don't have nearly enough free time to get back into it unfortunately | 11:00 |
olasd | (sorry :)) | 11:01 |
mithro | olasd: that is what you think ;) | 11:06 |
*** panther has joined #timvideos | 11:06 | |
*** panther is now known as sab_123 | 11:06 | |
olasd | no, that is what I know | 11:07 |
olasd | I'm going to spend the summer herding 29 interns and their mentors for GSoC/Outreachy in Debian | 11:07 |
olasd | and stop trying to sideband-volunteer me through tumbleweed :D | 11:07 |
*** panther_ has joined #timvideos | 11:32 | |
*** sab_123 has quit IRC | 11:32 | |
*** panther_ has quit IRC | 13:28 | |
*** CarlFK has joined #timvideos | 14:22 | |
*** ChanServ sets mode: +v CarlFK | 14:22 | |
*** springermac_ has joined #timvideos | 14:29 | |
*** springermac has quit IRC | 14:29 | |
*** springermac_ is now known as springermac | 14:29 | |
*** cr1901_modern1 has quit IRC | 14:35 | |
*** kaalikahn has quit IRC | 14:35 | |
*** _florent_ has quit IRC | 14:35 | |
*** cr1901_modern1 has joined #timvideos | 14:39 | |
*** kaalikahn has joined #timvideos | 14:40 | |
*** _florent_ has joined #timvideos | 14:45 | |
*** sb0 has quit IRC | 17:12 | |
CarlFK | mithro: https://hdmi2usb.tv/numato-opsis/ "Purchase a board from CrowdSupply or directly from Numato.com." | 17:37 |
CarlFK | I don't see how to purchase in either place | 17:37 |
*** CarlFK has quit IRC | 18:28 | |
*** CarlFK has joined #timvideos | 18:37 | |
*** ChanServ sets mode: +v CarlFK | 18:37 | |
*** CarlFK has quit IRC | 18:59 | |
*** CarlFK has joined #timvideos | 19:21 | |
*** ChanServ sets mode: +v CarlFK | 19:21 | |
*** CarlFK has quit IRC | 20:43 | |
*** CarlFK has joined #timvideos | 20:58 | |
*** ChanServ sets mode: +v CarlFK | 20:58 | |
*** Bertl_oO is now known as Bertl_zZ | 21:34 | |
*** CarlFK has quit IRC | 22:13 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!