Thursday, 2019-01-17

*** tpb has joined #timvideos00:00
*** TheAssassin has quit IRC00:25
*** TheAssassin has joined #timvideos00:30
*** ewen has joined #timvideos01:17
*** ewen has quit IRC01:50
*** tvCommitBot has joined #timvideos02:12
*** tvCommitBot has left #timvideos02:12
*** tvCommitBot has joined #timvideos02:15
*** tvCommitBot has left #timvideos02:15
*** tvCommitBot has joined #timvideos02:24
*** tvCommitBot has left #timvideos02:24
*** tvCommitBot has joined #timvideos02:28
*** tvCommitBot has left #timvideos02:28
*** tvCommitBot has joined #timvideos02:35
*** tvCommitBot has left #timvideos02:35
*** cr1901_modern1 has joined #timvideos02:41
*** cr1901_modern has quit IRC02:43
*** cr1901_modern1 has quit IRC02:43
*** cr1901_modern has joined #timvideos02:44
*** kiboneu has joined #timvideos02:46
*** TimGremalm1 has joined #timvideos02:47
*** TimGremalm has quit IRC02:53
*** cnomad has quit IRC02:53
*** tvCommitBot has joined #timvideos03:35
*** tvCommitBot has left #timvideos03:35
*** tvCommitBot has joined #timvideos03:46
*** tvCommitBot has left #timvideos03:46
*** tvCommitBot has joined #timvideos04:07
*** tvCommitBot has left #timvideos04:07
*** CarlFK has quit IRC04:17
*** rohitksingh_work has joined #timvideos04:18
*** CarlFK has joined #timvideos04:46
*** ChanServ sets mode: +v CarlFK04:46
*** tvCommitBot has joined #timvideos05:03
*** tvCommitBot has left #timvideos05:03
*** tvCommitBot has joined #timvideos05:10
*** tvCommitBot has left #timvideos05:10
*** hozer has joined #timvideos05:13
*** mauz555 has quit IRC05:54
*** tvCommitBot has joined #timvideos06:09
*** tvCommitBot has left #timvideos06:09
*** ewen has joined #timvideos06:19
ewenmithro: You mentioned you had something you wanted me to look at.  URL?06:28
mithroewen: When you get a moment, I could use a review for the tinyprog improvements - https://github.com/tinyfpga/TinyFPGA-Bootloader/pull/3606:29
tpbTitle: Clean up tinyprog for releasing by mithro · Pull Request #36 · tinyfpga/TinyFPGA-Bootloader · GitHub (at github.com)06:29
xobsmithro: by the way, I'm working on generating a Raspberry Pi image that can be used to develop for Fomu [EVT]: https://github.com/im-tomu/fomu-pi-gen06:31
tpbTitle: GitHub - im-tomu/fomu-pi-gen: A fork of pi-gen for creating Fomu images (at github.com)06:31
mithroxobs: Develop or flash? You mention "The starting filesystem size is limited to 768 MB, to let users use smaller SD cards." ?06:36
xobsmithro: ideally either. I'm looking into what it would take to put nextpnr, icestorm, yosys, and a riscv compiler on there.06:40
xobsThe 768 MB change was because I have some 1GB cards here, and it doesn't make sense to require a 4 GB card when most of the space is empty anyway.06:40
mithroxobs: https://stackoverflow.com/questions/39371772/how-to-install-anaconda-on-raspberry-pi-3-model-b <- It kind of looks like conda has RPi support...06:40
tpbTitle: python 3.x - How to install Anaconda on RaspBerry Pi 3 Model B - Stack Overflow (at stackoverflow.com)06:40
xobsThat could work.  Just need the packages for it.06:43
mithroxobs: I wonder if it is just as simple as adding something to -> https://github.com/timvideos/conda-hdmi2usb-packages/blob/master/.travis/script.sh#L2106:52
tpbTitle: conda-hdmi2usb-packages/script.sh at master · timvideos/conda-hdmi2usb-packages · GitHub (at github.com)06:52
*** tvCommitBot has joined #timvideos06:52
*** tvCommitBot has left #timvideos06:52
xobsmithro: quite possibly. with binfmt_misc you can "natively" cross-compile, so many CI platforms work easily.06:53
mithrohttps://github.com/jjhelmus/berryconda06:55
tpbTitle: GitHub - jjhelmus/berryconda: Conda based Python distribution for the Raspberry Pi (at github.com)06:55
*** tvCommitBot has joined #timvideos07:11
*** tvCommitBot has left #timvideos07:11
mithroewen: Did you get to micropython booting on the tinyfpga-bx in the end?07:15
mithroxobs: I was also pondering the stuff nrossi did to recreate the litex-buildenv using yocto stuff...07:16
*** TheAssassin has quit IRC07:16
mithroxobs: That lets you produce "sdk"s07:16
xobsmithro: it's been forever since I've used yocto [openembedded]. The hardest bit is getting a RISC-V cross compiler. The second hardest thing is integrating nextpnr which requires qt5.07:18
mithroxobs: Just don't build with the gui07:18
mithroThat is my solution :-P07:18
xobsAh, okay. I thought python support required the gui. But I guess it's the other way around!07:19
mithroxobs: https://github.com/timvideos/conda-hdmi2usb-packages/blob/master/nextpnr/build.sh#L1007:20
tpbTitle: conda-hdmi2usb-packages/build.sh at master · timvideos/conda-hdmi2usb-packages · GitHub (at github.com)07:20
mithroewen: https://pypi.org/project/tinyprog/1.0.24.dev13/07:24
tpbTitle: tinyprog · PyPI (at pypi.org)07:24
mithroewen: I'm not sure why that isn't being rendered properly...07:25
ewenmithro: Review done.  There was one fatal error (at least on Python 3.6 it seems to be throwing a different exception than you expected on the common path), and three instances of formatting string confusion, plus a possible wrong exception catch (I'm a bit unclear on the exception heirachy at that point; see GitHub pull request comments).07:45
ewenmithro: (... catching up) Yes, I did get MicroPython booting on TinyFGPA BX.  I can program the TinyFPGA BX with the MicroPython included image, and get serial console.  But I still can't program with the non-MicroPython image (H2U?).  (As best I can tell it's failing due to a short read at a consistent point while verifying, but I'm unclear why it's a short read and whether it's just accidentally working07:49
ewenin practice and needs a loop to retry the read.)07:50
ewenmithro: Re pypi.org rendering, it looks like it's assuming that it's text, not Markdown, and showing it raw.  I'm unclear why.  https://packaging.python.org/guides/making-a-pypi-friendly-readme/ suggests that PyPI should support GitHub flavoured Markdown...07:52
tpbTitle: Making a PyPI-friendly README Python Packaging User Guide (at packaging.python.org)07:52
mithroewen: https://pypi.org/project/tinyprog/1.0.24.dev14/08:35
tpbTitle: tinyprog · PyPI (at pypi.org)08:35
ewenmithro: AFAICT the commits are still merged into tinyfpga master (eg, I can pull them from there).  So I'll just test against that.  (I don't seem to be able to fetch from the pull request any more now it's closed.)08:41
mithroewen: https://github.com/tinyfpga/TinyFPGA-Bootloader/issues/1808:42
tpbTitle: Error while updating bootloader: invalid literal for int() with base 10 · Issue #18 · tinyfpga/TinyFPGA-Bootloader · GitHub (at github.com)08:42
mithroewen: Looks like ValueError appears sometimes too...08:42
mithroewen: Yes, I push is with a merge commit however08:44
*** puck_ has quit IRC08:46
ewenmithro: re issues/18, looks like that ValueError would be *after* it'd been through the try:/except:, as it's a ValueError on int() getting an empty string.  Rather than the bit you changed which was exception handling of ord()....08:50
mithroewen: Yeah08:50
*** puck_ has joined #timvideos08:51
mithroewen: I'm going to give up for the night I think08:54
* ewen too09:07
*** ewen has quit IRC09:07
*** rohitksingh_work has quit IRC10:05
*** CarlFK has quit IRC10:17
*** TheAssassin has joined #timvideos10:49
*** CarlFK has joined #timvideos11:56
*** ChanServ sets mode: +v CarlFK11:56
*** rohitksingh_work has joined #timvideos12:43
*** rohitksingh_work has quit IRC13:22
*** rohitksingh has joined #timvideos14:08
*** m4ssi has joined #timvideos14:30
*** xobs has quit IRC15:39
*** nrossi has quit IRC15:39
*** CarlFK[m] has quit IRC15:39
*** master1588[m] has quit IRC15:39
*** futaris[m] has quit IRC15:40
*** felix[m]1 has quit IRC15:40
*** jfng has quit IRC15:40
*** ducky[m] has quit IRC15:40
*** pzieba[m] has quit IRC15:40
*** shivm28[m] has quit IRC15:40
*** pzieba[m] has joined #timvideos15:40
*** nrossi has joined #timvideos15:41
*** master1588[m] has joined #timvideos15:41
*** xobs has joined #timvideos15:41
*** CarlFK[m] has joined #timvideos15:41
*** ChanServ sets mode: +v CarlFK[m]15:41
*** shivm28[m] has joined #timvideos15:44
*** ducky[m] has joined #timvideos15:46
*** futaris[m] has joined #timvideos15:47
*** jfng has joined #timvideos15:48
*** felix[m]1 has joined #timvideos15:49
*** ducky[m] has quit IRC15:56
*** ducky[m] has joined #timvideos15:56
*** kiboneu is now known as cnomad17:05
*** m4ssi has quit IRC17:58
*** rohitksingh has quit IRC18:31
*** xfxf has joined #timvideos21:39
*** ewen has joined #timvideos22:03
ewenmithro: I think the PyPI formatting confusion is being caused by trying to use a multi-line Summary: (description=... in setup.py), which is resulting in a stray blank line in PKG-INFO, which is causing everything after that to be treated as description not headers.22:04
ewenmithro: In which case adding .strip() to the end of the multi-line string setting description= should fix it.22:05
ewenHmm, there's also an embedded newline that'll need to be removed.  I'll figure out a more detailed approach and make a pull request.22:19
ewenmithro: https://github.com/tinyfpga/TinyFPGA-Bootloader/pull/3722:29
tpbTitle: setup.py: generate single line description= by ewenmcneill · Pull Request #37 · tinyfpga/TinyFPGA-Bootloader · GitHub (at github.com)22:29
*** TimGremalm1 has quit IRC23:00
*** TimGremalm has joined #timvideos23:01
*** mauz555 has joined #timvideos23:17
mithroewen: You might find https://gist.github.com/mithro/7fee3383bf08eb0deaa1be2dab28c5af interesting23:21
tpbTitle: litex-mm.md · GitHub (at gist.github.com)23:21
*** micolous[m] has joined #timvideos23:21
*** ChanServ sets mode: +v micolous[m]23:21
mithrotinyfpga: When you get a moment, can I walk you through enabling travis on your tinyfpga/TinyFPGA-Bootloader repository? Sadly only the owner can do it23:26
mithroxobs: When you arrive in Christchurch?23:33
mithroewen: It's starting to look better -> https://pypi.org/project/tinyprog/1.0.24.dev17/23:35
tpbTitle: tinyprog · PyPI (at pypi.org)23:35
mithroewen: But it's still not being rendered?23:35
ewenmithro: Curious.  We're defintely *closer* (no extraneous PKG-INFO dict stuff), but it looks like it's not recognising that it's Markdown yet.23:37
tumbleweedlong_description_content_type='text/markdown' ?23:37
mithroewen: Your missing my setuptools upgrade patch23:37
mithroewen: Just added that to your pull request23:37
ewenmithro: Cool, I'll re-pull.23:38
mithroewen: https://travis-ci.com/mithro/TinyFPGA-Bootloader/builds/9776754323:38
tpbTitle: Travis CI - Test and Deploy with Confidence (at travis-ci.com)23:38
ewenmithro: How are you uploading?  https://dustingram.com/articles/2018/03/16/markdown-descriptions-on-pypi/ points out that a newer version of twine is needed to send the right header...23:38
tpbTitle: Markdown Descriptions on PyPI - Dustin Ingram (at dustingram.com)23:38
mithroewen: YAY! -> https://pypi.org/project/tinyprog/1.0.24.dev18/23:40
tpbTitle: tinyprog · PyPI (at pypi.org)23:40
mithroewen: Need to get people to test with the dev version and then we can do a release...23:42
mithroewen: Can you communicate to discord and stuff?23:42
ewenmithro: Yay!23:43
ewenmithro: Yes, I'll add note on discourse thread, etc, suggesting people test newer version.23:44
mithroewen: Okay, I'll leave you to tell me when to tag a new release23:44
mithroewen: You interested in going for a walk and getting some lunch?23:46

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