*** tpb has joined #timvideos | 00:00 | |
xfxf | jea: pong | 00:13 |
---|---|---|
mithro | cr1901_modern: ping? | 00:28 |
cr1901_modern | mithro: pong | 00:29 |
mithro | cr1901_modern: So, IIRC you were looking at writing to the spiflash? | 00:36 |
cr1901_modern | mithro: Correct, reading and writing spiflash, and adding xmodem/sfl loading | 00:37 |
mithro | cr1901_modern: Where did you get to on that? | 00:37 |
cr1901_modern | writing xmodem/sfl impl, spiflash reading and writing works in 1x mode. I didn't get it working in 4x mode, and I need a new power supply for my Opsis >> | 00:38 |
cr1901_modern | Could you recommend an Amazon link for a power supply? I don't have the CPU supply I used anymore (long story) | 00:38 |
cr1901_modern | Currently writing* xmodem/sfl impl. | 00:39 |
mithro | cr1901_modern: I sure document somewhere the connector size on the Opsis | 00:39 |
mithro | cr1901_modern: Something like this should work -> https://www.amazon.com/NorthPada-Adapter-Charger-Supply-Listed/dp/B01ICSD93Q/ref=sr_1_1?ie=UTF8&qid=1500251925&sr=8-1-spons&keywords=12V+DC&psc=1 | 00:39 |
mithro | Oh wait, yay past Mithro -> https://opsis.hdmi2usb.tv/getting-started/power.html | 00:40 |
mithro | Inner Diameter: 2.0mm | 00:40 |
mithro | Outer Diameter: 5.5mm | 00:40 |
mithro | I think that one I linked should work | 00:41 |
mithro | We should figure out a good power supply and put an amazon affiliate link to them on that page | 00:41 |
* cr1901_modern agrees lol | 00:41 | |
cr1901_modern | You also wanted me to implement loading on QEMU | 00:42 |
mithro | cr1901_modern: Loading on QEMU? | 00:42 |
cr1901_modern | spiflash emulation* on QEMU so you can load firmware over a virtual serial port | 00:43 |
mithro | cr1901_modern: We have spiflash emulation in QEMU already (both reading and writing) | 00:43 |
cr1901_modern | Oh, then it was just making sure loading firmware works | 00:44 |
cr1901_modern | through a virtual serial port* | 00:44 |
cr1901_modern | using QEMU** | 00:45 |
jea | xfxf: i'm going to prefix this by saying i expect the answer to be no, but just want to check anyway | 00:51 |
jea | xfxf: is there any possibility of getting 2 LA opsis sent to brisbane this week for me to use at wordcamp (an LA event), and then i send them back next monday after the event? | 00:52 |
jea | i know it is close to pycon, so that makes it more unlikely, but just thought i would ask | 00:53 |
mithro | cr1901_modern: I think it already does - haven't bothered testing it yet | 00:55 |
mithro | jea: I have 2 * Opsis that I could lend you | 00:55 |
jea | mithro: that would be awsome if I could borrow them | 00:56 |
cr1901_modern | mithro: Could you please test for me? Running QEMU at the moment is not possible (on Windoze) | 00:57 |
mithro | jea: I'm not sure the best way to ship you them? | 00:57 |
mithro | jea: They also come with the implication that you'll do some more Opsis hacking :-P | 00:57 |
jea | haha yes, more opsis hacking is on the cards. i have a dev environment properly setup as of the weekend, so it will be much simpler to do now :D | 00:58 |
mithro | Yay! | 00:58 |
mithro | jea: When do you need them by? | 00:58 |
jea | I'm not too sure on the best shipping. the event is this weekend (late notice sorry - was working on other options but they seem to have gone out the window) | 00:59 |
mithro | jea: Okay, I'll try and pop out at lunch time and ship them by overnight express | 00:59 |
mithro | jea: Can you give me an address + mobile number to ship too? | 00:59 |
mithro | jea: I don't have power supplies but do have redmere cables | 01:00 |
jea | yep, i can do all that. power supplies should be fine to get, and I now have 8 of the new monoprice active hdmi cables (i think they replaced redmere), so I think that should be covered | 01:02 |
mithro | jea: I keep redmere cables in the Opsis boxes :-) | 01:02 |
jea | these ones https://www.monoprice.com/Product?p_id=13588 | 01:02 |
jea | ah, good idea! | 01:02 |
jea | will I email you the address? | 01:03 |
mithro | jea: please do | 01:05 |
mithro | jea: Remind me about 1-2pm | 01:05 |
cr1901_modern | mithro: This is a stupid question, but what is SSI flash? https://github.com/timvideos/qemu-litex/commit/fe10ef8789c3dbdf7c5cc70082ae99e308671fbe | 01:05 |
tpb | Title: litex: Working spiflash emulation. · timvideos/qemu-litex@fe10ef8 · GitHub (at github.com) | 01:05 |
jea | mithro: ok, will do :) | 01:05 |
cr1901_modern | What does SSI stand for*? | 01:05 |
mithro | SSI is what qemu calls SPI | 01:05 |
cr1901_modern | Okay, so the idea is that you just compile the firmware, and qemu provides emulation of litex peripherals? | 01:06 |
mithro | cr1901_modern: /* QEMU Synchronous Serial Interface support. */ | 01:06 |
mithro | Acording to https://github.com/openvstorage/qemu/blob/master/include/hw/ssi.h | 01:06 |
tpb | Title: qemu/ssi.h at master · openvstorage/qemu · GitHub (at github.com) | 01:06 |
mithro | cr1901_modern: Yes | 01:06 |
mithro | cr1901_modern: In theory qemu the way we use it should actually run under cygwin.... | 01:07 |
cr1901_modern | QEMU Needs KVM IIC | 01:07 |
cr1901_modern | IIRC* | 01:07 |
mithro | cr1901_modern: Its actually the other way around KVM needs QEMU | 01:12 |
mithro | cr1901_modern: KVM uses QEMU for emulation of hardware peripherals | 01:12 |
mithro | cr1901_modern: Seems to be some older info at http://lassauge.free.fr/qemu/ and some more modern info at http://wiki.qemu.org/Hosts/W32 | 01:13 |
tpb | Title: Qemu On Windows (at lassauge.free.fr) | 01:13 |
cr1901_modern | mithro: My mistake I will take a look | 01:13 |
cr1901_modern | mithro: Some Litex changes recently (?) broke the build (_florent_ refactored the cores), so I need to investigate those first. | 01:19 |
cr1901_modern | refactored the python module paths* | 01:19 |
mithro | cr1901_modern: Okay | 01:19 |
cr1901_modern | mithro: I have an old XMODEM implementation in C89. Would you be open to me trying to use that (as an external dep)? If not, I can rip out the functionality from it. And lastly, have you looked into ekermit? | 01:22 |
cr1901_modern | I despise the documentation but it is a smarter/more efficient protocol than XMODEM | 01:22 |
mithro | cr1901_modern: I think I linked to xobs xmodem implementation? That seems like a better thing to steal from? | 01:23 |
mithro | cr1901_modern: The point of xmodem is not because it is a good protocol but because everything under the sun already supports it | 01:23 |
cr1901_modern | mithro: Well, would xobs object to me stealing it? That's my only concern. | 01:26 |
mithro | cr1901_modern: No - it's FOSS so you can steal from it :-) | 01:26 |
cr1901_modern | Fair lol | 01:26 |
cr1901_modern | mithro: More bikeshed painting: if implementing the full spec of xmodem, the recv loop is kinda ugly. I think xob's only implements the 1K variant, where my impl impls the whole spec (supposed to fall back to 128byte if 1K fails). Of course, xob's version is nicer to read :). | 01:28 |
mithro | Okay... | 01:29 |
mithro | Feel free to improve xobs version and send him an update :-P | 01:29 |
cr1901_modern | This was me asking: You want me to impl the whole spec? | 01:29 |
mithro | cr1901_modern: That is unclear to me | 01:30 |
mithro | cr1901_modern: Well, you are only implementing receiving.... | 01:30 |
mithro | cr1901_modern: Support for the different sizes would be nice I think? | 01:30 |
cr1901_modern | xmodem is receiver driven protocol; it sends out a byte requesting 1024-byte packets three times. If it doesn't receive a response back within 3 times, it falls back to sending out a request for 128-byte packets w/ CRC. If the receiver receives a byte from the transmitter indicating "I don't support either of 1024-byte or 128-byte w/ CRC", the receiver falls back to 128 byte with 8-bit checksum. | 01:32 |
cr1901_modern | mithro: Okay, that answers my q | 01:32 |
jea | mithro: reminder as requested | 03:41 |
mithro | jea: Try again in an hour :-P | 03:41 |
jea | ok! | 03:41 |
mithro | paddatrapper: I think I've reviewed everything you had outstanding? | 04:09 |
mithro | jea: Okay, heading over to the post office now | 04:15 |
jea | mithro: thanks :) | 04:15 |
mithro | you need 2 right? | 04:16 |
mithro | jea: ^ | 04:17 |
jea | 2 assuming atlys works tonight, otherwise 3 | 04:17 |
jea | i'm hoping atlys will work | 04:17 |
*** rk[ghost] has quit IRC | 04:48 | |
vys | mithro: the atlys has separate flashing/console USB connections, correct? | 04:52 |
*** rk[ghost] has joined #timvideos | 04:55 | |
mithro | jea: you have email | 04:58 |
mithro | vys: not sure what you mean? | 04:58 |
mithro | vys: The atlys does have a hardware UART on it | 04:58 |
mithro | vys: That is only used for the control serial port console | 05:01 |
vys | the original that you gave jea has two uUSB jacks on it, one with UART acessible via the /dev/ttyACM0 file, and another one that reports a different VID/PID and enumeration doesn no ttyACM0 | 05:01 |
vys | doesn't create ttyACM0* | 05:02 |
mithro | vys: Eventually I hope that we don't have to use that any more | 05:02 |
vys | sure | 05:02 |
mithro | vys: The hardware UART on the second jack doesn't work with the ACM driver you need the exart driver | 05:02 |
vys | that answers my next question | 05:02 |
mithro | exart / vizzini module - # Get the vizzini module, only needed for the Atlys board #apt-get install -y vizzini-dkms | 05:03 |
vys | jea: so perhaps the atlys works fine | 05:04 |
vys | I wrote a thing to use instead of flterm | 05:04 |
vys | https://gist.github.com/vystrela/829f9539c4fb9ba50a751c3b5b0bfe51 | 05:04 |
tpb | Title: Connect to HDMI2USB serial using bash and cat · GitHub (at gist.github.com) | 05:04 |
vys | but I wasn't getting anything out of /dev/ttyACM, so I'll try that when I have an opportunity to do so | 05:05 |
mithro | vys: I doubt that will work | 05:05 |
vys | thanks mithro | 05:05 |
mithro | vys: The UARTs are kind of grumpy / borked | 05:05 |
vys | this was running flawlessly on the opsis last night | 05:06 |
mithro | vys: You should use hdmi2usbd -> https://github.com/timvideos/HDMI2USB-controlproxy-daemon | 05:06 |
tpb | Title: GitHub - timvideos/HDMI2USB-controlproxy-daemon: Simple serial to network proxy daemon suitable for use with HDMI2USB devices. (at github.com) | 05:06 |
mithro | vys: There is no flow control with the above, so if your computer happens to be faster or the opsis happens to be a bit slower you'll end up with weird behaviour | 05:07 |
mithro | vys: Very dependent on the computer | 05:07 |
vys | I'll believe that | 05:07 |
vys | I won't advertise it then :) | 05:07 |
vys | I was using it on my laptop with busted USB that only talks to opsis :) | 05:08 |
mithro | vys: I'm hoping that as paddatrapper gets more familiar with the fx2 firmware I can persuade him into doing work like making the USB-CDC ACM interface on the FX2 be connected to the FPGA on the Atlys via a bit banging serial port (on the Opsis there is hardware serial port that can be used). | 05:11 |
mithro | vys: https://github.com/timvideos/HDMI2USB-mode-switch/issues/58 | 05:12 |
tpb | Title: udev rules should blacklist the exart / vizzini hardware UART on the Atlys from the USB-CDC ACM driver (and maybe warn about the condition) · Issue #58 · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 05:12 |
mithro | https://github.com/mithro/exar-uart-driver | 05:15 |
tpb | Title: GitHub - mithro/exar-uart-driver: Linux kernel driver for the Exar xr21v141x "vizzini" UART (at github.com) | 05:15 |
*** shenki has joined #timvideos | 05:17 | |
*** ChanServ sets mode: +v shenki | 05:17 | |
* mithro beats shenki with a large trout | 05:28 | |
mithro | shenki: If you had gotten that driver into the kernel back in Nov 15, 2015 when we wrote that code, it would probably be in LTS distros by now! | 05:29 |
shenki | \o/ | 05:35 |
mithro | shenki: But you did not.... | 05:35 |
shenki | not google's lts tho. they still run 14.04 | 05:35 |
shenki | :P | 05:35 |
mithro | so :-( | 05:36 |
shenki | mithro: ok. did you find the patch that the debian dude wrote for is? | 05:36 |
shenki | mithro: ok. did you find the patch that the debian dude wrote for us? | 05:36 |
mithro | shenki: I can find him, why did we want to find him? | 05:36 |
shenki | not the person, just the patch | 05:37 |
shenki | i will reivew it and send it upstream | 05:37 |
shenki | the blocker is i started running my laptop with secure boot turned on a few years ago | 05:38 |
shenki | which means i can't test it on the laptop | 05:38 |
shenki | i do have random linux boards to test it on, so i'll use a raspi or something to test it | 05:38 |
mithro | shenki: https://github.com/timvideos/HDMI2USB-mode-switch/issues/58 | 05:42 |
tpb | Title: udev rules should blacklist the exart / vizzini hardware UART on the Atlys from the USB-CDC ACM driver (and maybe warn about the condition) · Issue #58 · timvideos/HDMI2USB-mode-switch · GitHub (at github.com) | 05:42 |
mithro | @shenki - My email says to look here -> https://github.com/shenki/linux/tree/vizzini | 05:42 |
tpb | Title: GitHub - shenki/linux at vizzini (at github.com) | 05:42 |
mithro | @shenki - IIRC We got to the driver working but wanted to refactor things slightly. I'm pretty sure we wanted to move this hack -> https://github.com/shenki/linux/blob/vizzini/drivers/usb/serial/usb-serial.c#L818-L857 into the probe function because the vizzini module has similar functionality at https://github.com/shenki/linux/blob/vizzini/drivers/usb/serial/vizzini.c#L297-L321 | 05:42 |
tpb | Title: linux/usb-serial.c at vizzini · shenki/linux · GitHub (at github.com) | 05:42 |
shenki | that's not the one that the debian guy wrote | 05:43 |
mithro | shenki: https://github.com/shenki/linux/commit/6d9c8057f8ca17853cd67a4975d1b9b2e893c565 | 05:43 |
tpb | Title: usb-serial: Add vizzini driver for Exar USB 2 serial adapters · shenki/linux@6d9c805 · GitHub (at github.com) | 05:43 |
shenki | https://lists.debian.org/debian-wnpp/2015/11/msg00491.html | 05:44 |
tpb | Title: Bug#804350: ITP: vizzini -- Kernel driver for Exar XR21V1414 USB UART (at lists.debian.org) | 05:44 |
shenki | yep | 05:44 |
mithro | shenki: bwhacks is Ben Hutchings the debian guy | 05:44 |
mithro | shenki: You added a patch on top of his patch in that branch | 05:44 |
mithro | Ben Hutchings the debian guy doesn't have an Atlys board | 05:45 |
shenki | yep | 05:45 |
shenki | so we need to: | 05:45 |
shenki | apply it to something modern, like 4.13-rc1 | 05:46 |
shenki | test it with the hardware | 05:46 |
shenki | send it to lkml | 05:46 |
mithro | If you apply it to something modern I'm sure I can find you a hardware tester | 05:47 |
mithro | <cough> CarlFK <cough> vys <cough> | 05:47 |
vys | I do in fact have hardware | 05:48 |
mithro | shenki: It should be pretty simple rebase, I doubt the usb-serial driver gets much love :-P | 05:48 |
mithro | shenki: Help get your commit count up ;-) | 05:48 |
shenki | i don't get to commit it - that's gregkh's tree :) | 05:49 |
shenki | vys: do you know how to build + boot your own kernels? | 05:49 |
vys | theoretically | 05:50 |
vys | I do it at work for our hardware, but there is a gap between that and my laptop | 05:50 |
vys | I can read things and ask things though | 05:51 |
shenki | heh. you could test it on your hardware :) | 05:51 |
shenki | yeah, i can guide you through it | 05:51 |
mithro | shenki: I'm not sure how you get grub to find your own custom kernel these days, do you just put something in /boot ? | 05:53 |
shenki | easiest way to do it is to 'sudo make install' | 05:54 |
shenki | that will call your distro's helper scripts to generate an initramfs and boot entires | 05:54 |
shenki | otherwise we can try to build an out of tree module against the system's headers | 05:55 |
jea | mithro: thank you very much for that! it will help immensely | 06:05 |
shenki | vys: let me know when you're ready to do some testing | 07:47 |
shenki | vys: what distro do you have on your laptop? | 07:47 |
shenki | vys: ozlabs.org/~joel/vizzini-usb-serial.tar.xz | 07:53 |
shenki | vys: grab that, untar, make && make install | 07:54 |
shenki | then plug in your device | 07:54 |
CarlFK | mithro: huh what? | 07:55 |
shenki | or anyone who is lurking and has a Atlys board in arms reach | 07:56 |
paddatrapper | mithro: thanks for the reviews, I'll address them this morning | 08:10 |
Ishan_Bansal | shenki : ping | 08:29 |
shenki | Ishan_Bansal: hello | 08:29 |
Ishan_Bansal | shenki : Hi, I have added the RLEmain and the entrophycoder in the same branch as the rle-core. | 08:30 |
Ishan_Bansal | Is it ok, or should I create a new one and add them in those ? | 08:31 |
Ishan_Bansal | for the present they are in the rle-core itself. | 08:31 |
shenki | Ishan_Bansal: that's fine for now | 08:50 |
shenki | Ishan_Bansal: the URL on your blog post is malformed | 08:50 |
CarlFK | shenki: I have an atlys hooked up to a box you can ssh to | 08:52 |
Ishan_Bansal | shenki: Let me see. | 09:08 |
shenki | CarlFK: cool! want to email me the details? | 09:13 |
shenki | CarlFK: does it have the usb cable plugged in to the exar device? | 09:13 |
shenki | (i think that's the usb port on the side, instead of the one where you get the uvc device from) | 09:13 |
Ishan_Bansal | shenki : I have updated the blog. | 09:18 |
shenki | cool | 09:20 |
CarlFK | shenki: both of them are plugged in | 09:21 |
shenki | CarlFK: cool | 09:21 |
shenki | CarlFK: can you unplug and re-plug the exar usb cable? | 09:26 |
shenki | please | 09:27 |
CarlFK | can I do both? | 09:27 |
shenki | yea | 09:27 |
CarlFK | im not sure which is wich | 09:27 |
shenki | hrm. something is broken | 09:28 |
shenki | CarlFK: thanks! will do some debugging | 09:28 |
shenki | mithro: did you patch the driver you were using to make it show up as /dev/ttyXRUSB0? | 09:30 |
CarlFK | shenki: there may be a udev rule on that does that | 09:31 |
CarlFK | shenki: im heading back to bed for 4 hours - so if you need it touched.. sorry :p | 09:45 |
vys | I don't have an atlys/opsis | 11:05 |
vys | they are all at jea's house | 11:05 |
vys | 17:47 <+shenki> vys: what distro do you have on your laptop? | 11:05 |
vys | I'm using fedora | 11:06 |
vys | he might have a box I can ssh into | 11:07 |
jea | i will have a box soon. need to make it work again | 11:12 |
CarlFK | im up | 13:01 |
xfxf | jea: sorry missed your message earlier - yes more than happy to send you any of the LA opsis's, but you need it by this weekend, right? | 13:23 |
xfxf | my criteria is i need them tested on a recent firmware - you're doing that for me by using them. bringing them back when you come to pycon is fine | 13:23 |
mithro | xfxf: I've already sent him some of mine | 14:02 |
mithro | paddatrapper: Lets keep fx2lib board agnostic and HDMI2USB-fx2-firmware board specific | 15:38 |
CarlFK | mithro: don't forget your reminder to make symlinks https://github.com/timvideos/HDMI2USB-litex-firmware/issues/328 | 15:40 |
tpb | Title: HDMI2USB-firmware-prebuilt links to unstable testing, stable · Issue #328 · timvideos/HDMI2USB-litex-firmware · GitHub (at github.com) | 15:40 |
*** MatrixTraveler[m has quit IRC | 16:40 | |
*** jea[m] has quit IRC | 17:11 | |
*** jea[m] has joined #timvideos | 17:20 | |
paddatrapper | mithro: ok cool | 17:28 |
*** rohitksingh has joined #timvideos | 17:53 | |
*** rohitksingh has quit IRC | 18:22 | |
jea | xfxf: thanks for that. mithro sent me some (which just arrived, thanks tim!), so that should cover me now | 23:22 |
mithro | jea: Oh, great! | 23:48 |
jea | mithro: there are lots of connectors in the box. i think they are right angle things for the tofe interface? | 23:49 |
mithro | jea: They are for the Numato to Digilent PMOD converter | 23:51 |
mithro | I just scored https://mith.ro/ ! | 23:52 |
mithro | shenki: Did you get the Atlys going in the end? | 23:52 |
jea | mithro: oh ok. not sure i realised that was a thing | 23:54 |
mithro | jea: You have a MimasV2 right? | 23:54 |
mithro | Well you or vys? | 23:54 |
jea | I don't think the atlys stuff has been tested yet. i need to turn mine on to test with. though maybe he did it with CarlFK's atlys? | 23:55 |
mithro | jea: I think he found his own Atlys | 23:55 |
jea | I don't yet. Was going to buy one, but just haven't done it yet | 23:55 |
mithro | jea: When is wordcamp? | 23:55 |
jea | ah, that would make it easier! | 23:55 |
jea | wordcamp is this friday | 23:55 |
jea | sorry, saturday | 23:55 |
jea | too much stuff in my head | 23:56 |
*** futarisIRCcloud has joined #timvideos | 23:56 | |
mithro | futarisIRCcloud: Wordcamp is on Saturday in Brisbane if I understand jea correctly | 23:57 |
mithro | futarisIRCcloud: jea will be using Opsis boards to record the event | 23:57 |
jea | yes, wordcamp is on at QUT on sat and sun | 23:57 |
mithro | jea any chance if futarisIRCcloud is available you could have him come along and meet you? | 23:58 |
mithro | jea, futarisIRCcloud is the guy who has been doing a lot of the Linux on LiteX stuff -- I send him a MimasV2 | 23:58 |
mithro | s/send/sent/ | 23:58 |
jea | yes, he is more than welcome to come along :) i'll probably be busy at the start of sat, but by lunchtime I should be fine | 23:59 |
jea | linux on litex would be awesome | 23:59 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!