Saturday, 2018-09-08

*** tpb has joined #timvideos00:00
CarlFKmithro:  kwargs['integrated_rom_size'] = 0x3000000:01
CarlFK    assert len(bios_data) < make.BIOS_SIZE00:01
tpbTitle: Ubuntu Pastebin (at
mithroCarlFK: Looks like there is a hard coded value at too00:13
tpbTitle: litex-buildenv/ at master · timvideos/litex-buildenv · GitHub (at
CarlFKmithro: that 'fixed' it.00:15
CarlFKmithro: you don't want these 2 rom_size edits as part of my PR, right ?00:17
CarlFKmithro: do you want indented with tabs or spaces?00:20
mithroCarlFK: Whatever is consistent with the current file?00:21
CarlFKmithro: um.. I'm not sure.  I thought it was tabs, but when I changed all my 4x spaces to tabs it got a bunch of other lines00:22
CarlFKmithro: changing tabs to 4 spaces is showing even more in the diff00:23
shorneCarlFK: yeah, that issue #43 is the right one.00:23
shorneCarlFK: the verb for what we are doing is something like forward-porting patches, or rebasing on latest master00:24
CarlFK forward-porting patches - yeah, that.00:24
shornefyi, I just learned I have a lot more freetime than I thought00:26
mithroshorne: Oh?00:26
CarlFKsend me some please :)00:26
mithroshorne: So, what is the status of or1k in upstream GCC?00:26
CarlFKmithro: im un breaking this line: git pull  $CURRENT_QEMU_REMOTE_NAME $QEMU_BRANCH00:27
mithroCarlFK: Yes, that was the only thing I was expecting you to change00:27
CarlFKmithro: I don't think I submitted the  -I$TOP_DIR/third_party/litex/litex/soc/software/include" \00:28
shorneI am off for about a month on garden leave, and the test I thought I had to take before work starts is not needed until after I work starts.00:28
tpbTitle: tools: Read the BIOS maxsize from the SoC. by mithro · Pull Request #51 · timvideos/litex-buildenv · GitHub (at
mithroCarlFK: Give that a go00:30
CarlFKmithro: um.. merging that with my fork is going to be cumbersome00:30
shornemithro: its almost ready, I have a few things on todo list, I finished the documentation todo item.  But just got this mail:00:30
mithroCarlFK: fix the pull and I'll merge and rebase00:31
CarlFKmithro:  I need to walk out the door in 5-10 min to meet a friend - I was just about to push what I have so my PR is ready, .. ok,00:31
tpbTitle: [OpenRISC] OpenRISC GCC requirements (at
CarlFKmithro: should it be just "git fetch" or "git fetch $CURRENT_QEMU_REMOTE_NAME $QEMU_BRANCH"  ?00:32
shornethe whole thread:
tpbTitle: The OpenRISC September 2018 Archive by thread (at
mithroCarlFK: second one I think?00:32
mithroshorne: What upstream revision of git do I need to be after to get a working gcc for or1k?00:33
CarlFKwoot - nbpy bid sent00:38
CarlFK"All good, we assumed you were good when you said you were coming again at every conference I saw you at :)"00:41
CarlFKarg...    git pull   error: You have not concluded your merge (MERGE_HEAD exists).00:44
CarlFKgit commit ... fatal: cannot do a partial commit during a merge.00:44
CarlFKmithro: any clue how to get me out of this in about 2 min, else it will be a few hours, but Im sure I can get bck to it tonight00:45
mithrogit rebase --abort00:45
mithrogit merge --abort00:45
CarlFKyay - not erroring00:46
CarlFKarg.  push errored - g2g bye!00:48
CarlFKback - I have 5 more min00:49
CarlFKnext train in 3 min.. I better go - bb later00:54
cr1901_modernmithro: It's going okay. Gonna have to keep the clock freq down at 16 MHz until this bug is fixed:
tpbTitle: `nextpnr-ice40` is failing to route PLL clock · Issue #71 · YosysHQ/nextpnr · GitHub (at
cr1901_modernarachne-pnr doesn't come even close to my target of 32 MHz, but sometimes the generated bitstream actually works anyway.01:03
cr1901_modernI'd rather not rely on it01:03
mithrocr1901_modern: This is executing the BIOS from SPI flash?01:03
mithrocr1901_modern: Can you send a pull request then?01:04
cr1901_modernmithro: Oh I've been working on a fork of _florent_'s tinyfpga-soc. litex-buildenv isn't ready yet :).01:05
mithrocr1901_modern: I'd like to play with it myself01:05
cr1901_modernmithro: Do you want to see my copy of tinyfpga-soc for now?01:05
cr1901_modern(has a command line interface)01:05
mithroWell, I'd prefer you send a pull request for litex-buildenv ASAP...01:06
cr1901_modernack I'll get on that01:07
cr1901_modernmithro: Heads up for 2 PRs on LiteX01:10
tpbTitle: Add COPY_TO_MAIN_RAM generated Makefile variable to distinguish syste… by cr1901 · Pull Request #99 · enjoy-digital/litex · GitHub (at
tpbTitle: lattice/programmer: Use --program-image option with tinyprog if addre… by cr1901 · Pull Request #100 · enjoy-digital/litex · GitHub (at
mithrocr1901_modern: Why do you end up with between your title and description on your pull requests?01:18
cr1901_modernB/c that's the default behavior of Github when you click the green "Compare and pull request" button01:18
*** tac-tics has quit IRC01:42
mithrocr1901_modern: but it never seems to happen to my pull requests?01:46
cr1901_modernWhen you push a branch to Github and you go to the repo page for your fork, GH will show you a "you recently pushed branches" dialog on the webpage. If you click the green "Compare and pull request button" >>01:48
cr1901_modernGH will send you to the "create pull request" page with the title filled in as the commit message if it's a single commit (idk if it works for multiple commits)01:49
cr1901_modernIf the title gets too long, GH will truncate your commit message and put it in the description01:49
cr1901_modernI did it just to save time b/c I felt the commit message was self-explanatory01:50
cr1901_modernshould I change it?01:50
mithrocr1901_modern: can you remove the ... bit then I will merge..01:52
mithroAlso, see _florent_'s commnet01:53
cr1901_modernyea I see... none of that stuff is supposed to be there lol01:53
mithroJust walking home now01:53
mithroBe back in 30-1 hour01:53
cr1901_modern_florent_: Fixed01:55
*** CarlFK has quit IRC02:30
*** hyadez has joined #timvideos02:55
*** CarlFK has joined #timvideos04:21
*** ChanServ sets mode: +v CarlFK04:21
CarlFKmithro: are you around to help me un break my git repo?04:41
mithroNot really04:42
mithroWhat error?04:42
tpbTitle: Ubuntu Pastebin (at
mithrogit push origin master --force04:55
CarlFKmithro: k - that seemed to go ok04:57
mithro[email protected]:~/mnt/cnt6/litex-buildenv$ git commit ./scripts/ -m "CFLAGS=-I... and unbreak git fetch."05:00
mithroerror: bad index file sha1 signature05:00
mithrofatal: index file corrupt05:00
mithroThat seems bad...05:00
CarlFKmithro: I only have one file, and I almost have the changes memorized05:00
mithrogit add xxx && git commit05:01
CarlFKworking... (the repo is on the other side of an sshfs mount.. things go very slow....05:05
CarlFKmithro: git add/commit, but "nothing to commit"  and  a few things I hope are unrelated
tpbTitle: Ubuntu Pastebin (at
CarlFKmithro: looks like my changes got committed 5 hours ago - everything is here:
tpbTitle: implement QEMU_REMOTE and QEMU_BRANCH. and CPU=or1k by CarlFK · Pull Request #47 · timvideos/litex-buildenv · GitHub (at
CarlFKincluding the "Joe User     committed   3 days ago" which I was trying to show up as me05:16
*** rohitksingh has joined #timvideos06:10
cr1901_modernmithro: Close to getting tinyfpga to boot the litex-buildenv firmware, but the sram section runs out of space. 10kB sram does not appear to be enough to boot the stock firmware- needs about 14kB, and that's not including the stack pointer06:15
cr1901_modernnot including stack space*06:15
cr1901_modernmithro: If you want to play with what I've done so far, here:
tpbTitle: GitHub - cr1901/litex-buildenv at tinyfpga (at
cr1901_modernI use the following command-line invocation: "HDMI2USB_ENV=1 PLATFORM=tinyfpga_bx TARGET=base CPU=lm32 CPU_VARIANT=lite PYTHON=python3 make firmware"06:18
cr1901_modernwe get as far as the link step for the litex-buildenv firmware before running out of SRAM. Probably can figure something out for this, but still interesting06:19
*** rohitksingh has quit IRC06:34
*** rohitksingh has joined #timvideos06:52
*** rohitksingh has quit IRC07:15
*** rohitksingh has joined #timvideos07:37
*** futarisIRCcloud has joined #timvideos09:21
*** rohitksingh has quit IRC09:24
*** CarlFK has quit IRC09:33
*** rohitksingh has joined #timvideos09:52
*** rohitksingh has joined #timvideos09:52
*** CarlFK has joined #timvideos11:25
*** ChanServ sets mode: +v CarlFK11:25
*** futarisIRCcloud has quit IRC11:31
*** rohitksingh has quit IRC12:06
*** fitzsim has joined #timvideos14:30
*** fitzsim has quit IRC14:43
*** fitzsim has joined #timvideos15:25
*** fitzsim has quit IRC15:31
*** rohitksingh has joined #timvideos15:54
*** fitzsim has joined #timvideos16:14
*** mauz555 has joined #timvideos17:10
CarlFKmauz555: hey17:10
CarlFKarty fpga - I can help a little, and if I can't there are others here that might17:11
mauz555thank you guys ->
tpbTitle: Hello, im trying to connect my brand new "Digilent Arty Artix-7 35T FPGA" to my - (at
CarlFKmauz555: look this over, it may have what you need:
tpbTitle: HowTo LCA2018 FPGA Miniconf · timvideos/litex-buildenv Wiki · GitHub (at
CarlFKmauz555: this was a tutorial about installing linux on the Arty17:13
CarlFKthis is probably what you need:
tpbTitle: HowTo LCA2018 FPGA Miniconf · timvideos/litex-buildenv Wiki · GitHub (at
CarlFKmauz555: crazy long shot - do you live in Chicago?  I am about to meet with a friend to hack on FPGA things17:17
CarlFK2 or so more may show up, there is room for about 8 of us17:18
mauz555I tried reloading udev, doesnt do the job17:21
CarlFKdid you install those rules?17:21
mauz555`sudo udevadm control --reload-rules`17:21
mauz555yes the driver installer put everything into `/etc/udev/rules.d`17:22
CarlFKdid you install these rules:
tpbTitle: GitHub - timvideos/HDMI2USB-mode-switch: Tool for switching boards supported by HDMI2USB firmware between multiple different modes (programming, webcam, etc). (at
*** rohitksingh has quit IRC17:34
mauz555I installed the HDMI2USB/dev rules and reloaded udev rules `sudo udevadm control --reload-rules`17:36
mauz555It doesnt fix the problem17:37
mauz555the FPGA is well connected the PWR led is RED and the DONE led is GREEN. It seems to be well powered.17:37
mauz555I ran the tests programs, they work well. It's just my machine that is not able to communicate through the serialusb/uart17:38
CarlFKunplug usb, udevadm monitor, plug in usb17:40
CarlFKpaste what it logs to the screen17:40
CarlFKah and run groups, paste that too17:40
mauz555`sudo udevadm monitor` prints nothing while plugin/unplugin the FPGA usb cable17:47
mauz555$ groups  --> jimmy adm cdrom sudo dip plugdev lpadmin sambashare17:48
CarlFKGet the right permissions video dialout17:51
mauz555$ groups  --> jimmy adm dialout cdrom sudo dip video plugdev lpadmin sambashare17:57
mauz555same behaviour for udevadm monitor and dmesg17:58
CarlFKudevadm monitor doesn't show anything?18:03
mauz555I fixed the problem18:06
mauz555I found another cable18:07
mauz555udevadn showed nothing when pluging in18:07
mauz555with the new cable it shows a lot of events -- all good !18:08
CarlFKusb cable was the problem?18:08
mauz555yeah definitely -- i did no other changes18:10
CarlFKcrazy.  and yay.  and have a video that gives an idea what sorts of things we do here18:10
mauz555thanks btw -- Im glad to have found an FPGA community, I worked on some video processing at my old job. I'll check this out18:12
CarlFKlet me know if you want to do the rest of   - it is currently broken on current ubuntu waiting on some PRs to land:
tpbTitle: HowTo LCA2018 FPGA Miniconf · timvideos/litex-buildenv Wiki · GitHub (at
*** rohitksingh has joined #timvideos18:18
mithroCarlFK: I think your pull request is broken? $CURRENT_QEMU_REMOTE_NAME shouldn't be defined on line #70 -- will try locally in a minute18:35
*** rohitksingh has quit IRC18:45
*** rohitksingh1 has joined #timvideos18:45
CarlFKmithro: hmm, I may not have tested that on a 2nd run18:46
CarlFK"that" being the final git pull/fetch line after I changed it back to fetch18:46
mauz555CarlFK: I'm a newcomer in FPGA land but I know software. LiteX sounds perfect for a software engineer background. I'll do the LCA2018-FPGA-Miniconf on my Ubuntu. Hope I can fix it18:58
CarlFKmauz555: well.. we may have made all the changes to fix it, just need to get them in place18:59
CarlFKso as soon as you hit an error or any sort of blocker, post here - no point in spending time on bugs that have already been fixed19:00
CarlFKmauz555: ... "Getting Started          Aug 2018 - HowTo FμPy on Digilent Arty A7   "19:09
tpbTitle: Welcome to FPGA MicroPython (FμPy) | (at
*** rohitksingh1 has quit IRC19:23
mithro - cool19:40
tpbTitle: GitHub - NVIDIA/vid2vid: Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photorealistic video-to-video translation. (at
*** CarlFK has quit IRC19:59
*** tdonahue has joined #timvideos20:09
fitzsimmithro: I already have one of these:
tpbTitle: iCE40-HX8K Breakout Board - Lattice Semiconductor (at
mithrofitzsim: I also have one of these on my desk right now20:21
fitzsimmithro: I'd be interested in trying a LiteX workflow with it20:21
mithrofitzsim: cr1901_modern is currently working on the tinyfpga stuff20:34
*** mauz555 has quit IRC20:52
shornemithro: for gcc: 3b585b58dae2211fd16f62f0939730cf10ce5fb921:34
shornemithro: for binutils: b80b84421d380e34c2a7c0643e169c7bb65e946621:34
shornemithro: you should be able to see my releases here (last that I ran build and tests on)21:35
shorne,  for both binutils and gcc I have a tag or1k-2.30.51 and or1k-9.0.0 respectively that I run the build off of21:37
*** CarlFK has joined #timvideos21:46
*** ChanServ sets mode: +v CarlFK21:46
* CarlFK arrived at ps121:47
mithroshorne: Is this a bare metal and linux gcc?23:00
mithroshorne: Do you have any experience with yocto / bitbake or are you mainly a buildroot person?23:17
mithroCarlFK: Before I go to do some other stuff, what do you want me to do with your pull request?23:25
CarlFKmithro: I was just about to re-run it to see what happens with a 2nd run that will hit the git fetch23:26
CarlFKmithro: ok, I think I see your concern, but I don't think that code path will ever happen...  but the #comment may be misleading, so please explain these 2 lines:23:35
CarlFK 67     # Checkout master branch if not already on it23:35
CarlFK 68     if [ "$(git rev-parse --abbrev-ref HEAD)" != "$QEMU_BRANCH" ]; then23:35
mithroCarlFK: values define inside a subshell don't escape the subshell23:35
CarlFKah, right.  hmm..23:36
CarlFKmithro: "# Checkout master branch..." should be "#Checkout desired branch..."  right ?23:36
CarlFKthe comment on line 67 isn't right if QEMU_BRANCH has been set to something other than "master"23:38
CarlFKmithro: I think the fix is to put these lines back into the subshell, ad then take the subshell out of the line 48 else and just run it every time, even on a fresh checkout23:40

Generated by 2.13.1 by Marius Gedminas - find it at!