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. https://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/02:23
tpbTitle: Simple Guide to the Raspberry Pi GPIO Header and Pins - Raspberry Pi Spy (at www.raspberrypi-spy.co.uk)02:23
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
futarisIRCcloudYep02: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. https://elinux.org/RPi_Distributions#Raspbian02:48
tpbTitle: RPi Distributions - eLinux.org (at elinux.org)02:48
xobsfutarisIRCcloud: I've rebuilt fomu-flash as version 1.1, which should make it just work on the original Pi: https://github.com/im-tomu/fomu-pi-gen/blob/master/stage2-fomu/04-fomu/files/fomu-flash_1.1.deb03:05
tpbTitle: fomu-pi-gen/fomu-flash_1.1.deb at master · im-tomu/fomu-pi-gen · GitHub (at github.com)03:05
xobsI'm still working on updating the other packages to have ARMv6 support.03:07
futarisIRCcloudThanks03:08
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
xobshttps://gist.github.com/xobs/0acc45ad2487b8fe11f298db7b07f01803:44
tpbTitle: gist:0acc45ad2487b8fe11f298db7b07f018 · GitHub (at gist.github.com)03:44
mithroOn my computer03:44
mithrolitex == 815d2e8b026090dca1e3ba26b88c70e47416f31303:44
mithrohttps://www.irccloud.com/pastebin/fjUD8zJG/03:45
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)03:45
mithroJust pushed all stuff from my system -- but it seems like you haven't added my remotes?03:48
xobsI cloned from https://github.com/mithro/litex-buildenv.git03:48
tpbTitle: GitHub - mithro/litex-buildenv: An environment for building LiteX based FPGA designs. Makes it easy to get everything you need! (at github.com)03:48
mithroxobs: That doesn't set where the gitmodules clone from...03:49
xobsNow I'm super confused.  If I look at https://github.com/mithro/litex-buildenv/tree/tinyusb-work/third_party it says that migen is set to 489d69f, and I can click on https://github.com/m-labs/migen/tree/489d69fabbe391cecb3ab38b60ed859d54b9ebfe 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 github.com)03:50
xobsEven though I have  https://github.com/m-labs/migen.git set as my origin03:51
tpbTitle: GitHub - m-labs/migen: A Python toolbox for building complex digital hardware (at github.com)03:51
mithrofor i in litex migen valentyusb; do (cd third_party/$i; git remote add mithro https://github.com/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 https://github.com/m-labs/migen/commits/master ?03:52
tpbTitle: Commits · m-labs/migen · GitHub (at github.com)03:52
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/download-env.sh to add extra remotes...03:55
mithroxobs: We already do that on travis so that you can test changes in your own environment -> https://github.com/timvideos/litex-buildenv/blob/master/.travis/add-local-submodule.sh03:56
tpbTitle: litex-buildenv/add-local-submodule.sh at master · timvideos/litex-buildenv · GitHub (at github.com)03:56
xobsmithro: I did that, and I have your remotes for third_party/valentyusb and third_party/litex, but download_env.sh 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 download.sh 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 download.sh 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 download-env.sh tried to checkout submodules at the committed revisions -> https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L409-L41804:04
tpbTitle: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com)04:04
mithroSo if you want download-env.sh 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 download-env.sh, 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 download-env.sh, 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.  "build_top.sh: 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
mithroxobs: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L253-L26604:45
tpbTitle: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com)04:45
xobsmithro: I did.  This is the script that I'm using to wrap download-env.sh to ensure variables are set: https://github.com/xobs/litex-buildenv/blob/fomu-evt-usb/download-env.sh04:46
tpbTitle: litex-buildenv/download-env.sh at fomu-evt-usb · xobs/litex-buildenv · GitHub (at github.com)04:46
mithroxobs: What does the output say?04:47
mithroxobs: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L165-L17204:47
tpbTitle: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com)04:47
xobsmithro: https://gist.github.com/xobs/2197fab742efe0c23ac03253bc13f3f404:48
tpbTitle: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at gist.github.com)04:48
xobsOh, sorry.  Copy-paste didn't work right.04:49
xobsLattice04:49
xobshttps://gist.github.com/xobs/2197fab742efe0c23ac03253bc13f3f404:49
tpbTitle: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at gist.github.com)04:49
futarisIRCcloudxobs: Shouldn't https://github.com/xobs/litex-buildenv/blob/fomu-evt-usb/download-env.sh#L7 and https://github.com/xobs/litex-buildenv/blob/fomu-evt-usb/download-env.sh#L12 be swapped ???04:53
tpbTitle: litex-buildenv/download-env.sh at fomu-evt-usb · xobs/litex-buildenv · GitHub (at github.com)04:53
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
MadHackerhttps://aiyprojects.withgoogle.com/edge-tpu <-- 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 irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!