Monday, 2019-02-11

*** tpb has joined #tomu00:00
*** awe00 has quit IRC00:30
*** xkapastel has quit IRC01:22
*** futarisIRCcloud has joined #tomu02:06
xobsfutarisIRCcloud: what's the contents of "/proc/cpuinfo" for you?  Specifically, what's the "Revision" value of your Raspberry Pi?02:08
xobsI'd like to add a check to fomu-flash to have it automatically swap pins 27 and 21 if the board is wired that way.02:08
futarisIRCcloudxobs: Revision: 000202:15
xobsfutarisIRCcloud: thanks!  I'm trying to figure out which boards have it swapped.  That looks like the earliest possible revision.  I'm wondering if boards <= 0x000f have it swapped.02:17
futarisIRCcloudxobs: No, I think it's only on the Pi 1 Model B, Rev 1.0 with the old 26-pin connector. Rev 2 Model B has GPIO 27.
tpbTitle: Simple Guide to the Raspberry Pi GPIO Header and Pins - Raspberry Pi Spy (at
xobsAh, so then it's just "Model B Rev 1" and "Model B Rev 1 ECN0001", which has hw revision code 0002 and 0003.02:27
xobsI wonder.  If I build things on my Raspberry Pi running Raspbian, will they work on your board?  Does Raspbian target ARMv6 by default?02:38
xobsThe "pinout" program also seems to agree with 0002 and 0003 being the only revisions with it swapped.02:47
futarisIRCcloudYep. Raspbian is ARMv6 by default.
tpbTitle: RPi Distributions - (at
xobsfutarisIRCcloud: I've rebuilt fomu-flash as version 1.1, which should make it just work on the original Pi:
tpbTitle: fomu-pi-gen/fomu-flash_1.1.deb at master · im-tomu/fomu-pi-gen · GitHub (at
xobsI'm still working on updating the other packages to have ARMv6 support.03:07
xobsYolocolo isn't running right now, so I'm building on a Raspberry Pi itself.  It could be a little while :)03:09
xobsmithro: I'm getting back into bootloader stuff starting today.03:11
mithroxobs: Okay cool03:30
mithroxobs: I would recommend concentrating on the software side...03:30
_anomaly_still waiting for my pogopins.  any day now.03:42
xobsmithro: I'm still trying to get litex-buildenv working again.  It's telling me "unable to checkout XXXXXX" for third_party/litex, third_party/migen, and third_party/valentyusb03:43
mithroxobs: Hrm?03:43
tpbTitle: gist:0acc45ad2487b8fe11f298db7b07f018 · GitHub (at
mithroOn my computer03:44
mithrolitex == 815d2e8b026090dca1e3ba26b88c70e47416f31303:44
tpbTitle: Snippet | IRCCloud (at
mithroJust pushed all stuff from my system -- but it seems like you haven't added my remotes?03:48
xobsI cloned from
tpbTitle: GitHub - mithro/litex-buildenv: An environment for building LiteX based FPGA designs. Makes it easy to get everything you need! (at
mithroxobs: That doesn't set where the gitmodules clone from...03:49
xobsNow I'm super confused.  If I look at it says that migen is set to 489d69f, and I can click on and it works, but when I fetch I don't get that revision.03:50
tpbTitle: litex-buildenv/third_party at tinyusb-work · mithro/litex-buildenv · GitHub (at
xobsEven though I have set as my origin03:51
tpbTitle: GitHub - m-labs/migen: A Python toolbox for building complex digital hardware (at
mithrofor i in litex migen valentyusb; do (cd third_party/$i; git remote add mithro$i; git fetch mithro); done03:51
mithroxobs: I think that is github lieing to you?03:52
mithroxobs: It doesn't seem to be in ?03:52
tpbTitle: Commits · m-labs/migen · GitHub (at
xobsGithub liessssssss03:53
xobsOkay, I didn't realize you had your own commits, and that github would lie about that sort of thing, and that .gitmodules wasn't updated.  Let me try again.03:53
mithroxobs: I guess we could do something fancy with ./scripts/ to add extra remotes...03:55
mithroxobs: We already do that on travis so that you can test changes in your own environment ->
tpbTitle: litex-buildenv/ at master · timvideos/litex-buildenv · GitHub (at
xobsmithro: I did that, and I have your remotes for third_party/valentyusb and third_party/litex, but still fails saying it can't checkout '55752cdc0c6ccfd8dab0c0ec5fabeb7b684071f1' for litex and '48627f4128ab9d1df6c173a6a4be809209d6bf54' for valentyusb03:57
mithroxobs: Check them out to a given revision yourself then03:57
xobsOkay, and let me re-run again03:58
mithroxobs: latest should be usb12 for valentyusb and enable-lto for litex03:59
xobsI checked out both of those to "master", then re-ran and it still says "Unable to checkout '55752cdc0c6ccfd8dab0c0ec5fabeb7b684071f1' in submodule path 'third_party/litex'" (and similar to third_party/valentyusb)04:02
futarisIRCcloudHmm. I couldn't checkout 55752cdc0c6ccfd8dab0c0ec5fabeb7b684071f1 or 48627f4128ab9d1df6c173a6a4be809209d6bf54 either at the beginning of the month, on 01 Feb...04:02
mithroxobs: master not equal to either of the things I just said...04:03
xobsIsn't master a "given revision"?  I'll check them out to "enable-lto" for litex and "usb12" for "valentyusb".04:04
mithroxobs: Plus tried to checkout submodules at the committed revisions ->
tpbTitle: litex-buildenv/ at master · timvideos/litex-buildenv · GitHub (at
mithroSo if you want to work, you'll need to commit04:05
mithroI'm also a little bit unsure why your back at this step? Didn't you have it all working at LCA?04:08
xobsYou're right, I checked out "usb12" and "enable-lto" and re-ran, and it still gave those errors.  I've just committed valentyusb and litex, and now I'm re-running download-env.sh04:09
xobsI did have it working at LCA, but I'm running it on my desktop system now, which involves starting from scratch.04:10
xobsOkay, committing those fixes, but then I get the "cannot find -lgcc" error.  I think that's fixed with "conda install gcc-riscv32-elf-newlib"04:21
xobsHuh, that's a new one.  " line 4: yosys: command not found"04:22
xobsAnd nextpnr-ice40 didn't get installed either.  Spooky.04:24
mithroxobs: Did you set the platform environment before running?04:45
tpbTitle: litex-buildenv/ at master · timvideos/litex-buildenv · GitHub (at
xobsmithro: I did.  This is the script that I'm using to wrap to ensure variables are set:
tpbTitle: litex-buildenv/ at fomu-evt-usb · xobs/litex-buildenv · GitHub (at
mithroxobs: What does the output say?04:47
tpbTitle: litex-buildenv/ at master · timvideos/litex-buildenv · GitHub (at
tpbTitle: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at
xobsOh, sorry.  Copy-paste didn't work right.04:49
tpbTitle: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at
futarisIRCcloudxobs: Shouldn't and be swapped ???04:53
tpbTitle: litex-buildenv/ at fomu-evt-usb · xobs/litex-buildenv · GitHub (at
xobsfutarisIRCcloud: Nice catch.  They should be!  It's fixed on my local system, but I'm not actually operating on that branch currently so I haven't pushed the change.04:54
xobs(Though I did just make a quick Github edit to fix it.)04:56
mithroAlso. If you don't say my nick, I won't be necessarily respond05:53
*** futarisIRCcloud has quit IRC09:36
MadHacker <-- interesting, google are selling their Edge TPUs as a for-integrators product now.10:00
MadHackerWonder how big an FPGA we'd need to get equivalent-ish results out of a fomu. :D10:01
xobsAlso interesting they're using an i.MX810:02
MadHackerYeah, I wonder what the little dev board they've got the TPU mezzanine plugged into is.10:02
*** futarisIRCcloud has joined #tomu10:21
*** awe00 has joined #tomu10:51
*** futarisIRCcloud has quit IRC12:26
*** earthnative has quit IRC13:13
*** AmosSam has left #tomu13:22
*** AmosSam has joined #tomu13:24
xobsI never really appreciated just how easy it is to get Fedora to mount its root filesystem readonly.  Raspbian (Debian?) really doesn't like to do that.14:36
*** andi- has quit IRC15:15
*** andi- has joined #tomu15:24
*** xkapastel has joined #tomu15:43
MadHackerxobs: init=/bin/sh on the kernel CLI is my preferred stunt in that regard. With the system fully up, yeah, it's a drag.16:00
xobsMadHacker: It's full of so many little things that don't work right.  Like /etc/resolv.conf not getting updated.  Or systemd's time service not starting.16:09
*** AmosSam_ has joined #tomu17:28
AmosSam_hello. i'm trying to create simple app using timers, and in 'chopstx/example-tomu' there is sample of setting timer...17:54
AmosSam_but I can't find explanation of values (3 bytes?) for setting them up. i'm currently cloning gecko sdk, but is there some doc or similar?17:56
*** awe00 has quit IRC18:27
*** AmosSam_ has quit IRC19:20
*** AmosSam_ has joined #tomu19:31
*** xkapastel has quit IRC19:52
*** xkapastel has joined #tomu20:01
*** awe00 has joined #tomu20:36
*** awe00 has quit IRC20:57
*** awe00 has joined #tomu21:11
*** AmosSam_ has quit IRC21:20
*** AmosSam_ has joined #tomu22:07
*** futarisIRCcloud has joined #tomu22:50
*** AmosSam_ has quit IRC22:53
*** Kamilion|ZNC has joined #tomu23:47
*** andi- has quit IRC23:53
*** imdeni has quit IRC23:53
*** johnhmay has quit IRC23:53
*** Kamilion has quit IRC23:53
*** olasd has quit IRC23:53
*** gmodena has quit IRC23:53
*** Kamilion|ZNC is now known as Kamilion23:55
*** im-tomu has quit IRC23:56
*** im-tomu has joined #tomu23:56

Generated by 2.13.1 by Marius Gedminas - find it at!