*** tpb has joined #tomu | 00:00 | |
*** awe00 has quit IRC | 00:30 | |
*** xkapastel has quit IRC | 01:22 | |
*** futarisIRCcloud has joined #tomu | 02:06 | |
xobs | futarisIRCcloud: what's the contents of "/proc/cpuinfo" for you? Specifically, what's the "Revision" value of your Raspberry Pi? | 02:08 |
---|---|---|
xobs | I'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 |
futarisIRCcloud | xobs: Revision: 0002 | 02:15 |
xobs | futarisIRCcloud: 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 |
futarisIRCcloud | xobs: 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 |
tpb | Title: Simple Guide to the Raspberry Pi GPIO Header and Pins - Raspberry Pi Spy (at www.raspberrypi-spy.co.uk) | 02:23 |
xobs | Ah, 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 |
futarisIRCcloud | Yep | 02:27 |
xobs | I 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 |
xobs | The "pinout" program also seems to agree with 0002 and 0003 being the only revisions with it swapped. | 02:47 |
futarisIRCcloud | Yep. Raspbian is ARMv6 by default. https://elinux.org/RPi_Distributions#Raspbian | 02:48 |
tpb | Title: RPi Distributions - eLinux.org (at elinux.org) | 02:48 |
xobs | futarisIRCcloud: 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.deb | 03:05 |
tpb | Title: fomu-pi-gen/fomu-flash_1.1.deb at master · im-tomu/fomu-pi-gen · GitHub (at github.com) | 03:05 |
xobs | I'm still working on updating the other packages to have ARMv6 support. | 03:07 |
futarisIRCcloud | Thanks | 03:08 |
xobs | Yolocolo isn't running right now, so I'm building on a Raspberry Pi itself. It could be a little while :) | 03:09 |
xobs | mithro: I'm getting back into bootloader stuff starting today. | 03:11 |
mithro | xobs: Okay cool | 03:30 |
mithro | xobs: I would recommend concentrating on the software side... | 03:30 |
_anomaly_ | still waiting for my pogopins. any day now. | 03:42 |
xobs | mithro: 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/valentyusb | 03:43 |
mithro | xobs: Hrm? | 03:43 |
xobs | https://gist.github.com/xobs/0acc45ad2487b8fe11f298db7b07f018 | 03:44 |
tpb | Title: gist:0acc45ad2487b8fe11f298db7b07f018 · GitHub (at gist.github.com) | 03:44 |
mithro | On my computer | 03:44 |
mithro | litex == 815d2e8b026090dca1e3ba26b88c70e47416f313 | 03:44 |
mithro | https://www.irccloud.com/pastebin/fjUD8zJG/ | 03:45 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 03:45 |
mithro | Just pushed all stuff from my system -- but it seems like you haven't added my remotes? | 03:48 |
xobs | I cloned from https://github.com/mithro/litex-buildenv.git | 03:48 |
tpb | Title: 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 |
mithro | xobs: That doesn't set where the gitmodules clone from... | 03:49 |
xobs | Now 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 |
tpb | Title: litex-buildenv/third_party at tinyusb-work · mithro/litex-buildenv · GitHub (at github.com) | 03:50 |
xobs | Even though I have https://github.com/m-labs/migen.git set as my origin | 03:51 |
tpb | Title: GitHub - m-labs/migen: A Python toolbox for building complex digital hardware (at github.com) | 03:51 |
mithro | for i in litex migen valentyusb; do (cd third_party/$i; git remote add mithro https://github.com/mithro/$i; git fetch mithro); done | 03:51 |
mithro | xobs: I think that is github lieing to you? | 03:52 |
mithro | xobs: It doesn't seem to be in https://github.com/m-labs/migen/commits/master ? | 03:52 |
tpb | Title: Commits · m-labs/migen · GitHub (at github.com) | 03:52 |
xobs | Github liessssssss | 03:53 |
xobs | Okay, 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 |
mithro | xobs: I guess we could do something fancy with ./scripts/download-env.sh to add extra remotes... | 03:55 |
mithro | xobs: 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.sh | 03:56 |
tpb | Title: litex-buildenv/add-local-submodule.sh at master · timvideos/litex-buildenv · GitHub (at github.com) | 03:56 |
xobs | mithro: 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 valentyusb | 03:57 |
mithro | xobs: Check them out to a given revision yourself then | 03:57 |
xobs | Okay, and let me re-run download.sh again | 03:58 |
mithro | xobs: latest should be usb12 for valentyusb and enable-lto for litex | 03:59 |
xobs | I 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 |
futarisIRCcloud | Hmm. I couldn't checkout 55752cdc0c6ccfd8dab0c0ec5fabeb7b684071f1 or 48627f4128ab9d1df6c173a6a4be809209d6bf54 either at the beginning of the month, on 01 Feb... | 04:02 |
mithro | xobs: master not equal to either of the things I just said... | 04:03 |
xobs | Isn't master a "given revision"? I'll check them out to "enable-lto" for litex and "usb12" for "valentyusb". | 04:04 |
mithro | xobs: 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-L418 | 04:04 |
tpb | Title: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com) | 04:04 |
mithro | So if you want download-env.sh to work, you'll need to commit | 04:05 |
mithro | I'm also a little bit unsure why your back at this step? Didn't you have it all working at LCA? | 04:08 |
xobs | You'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.sh | 04:09 |
xobs | I did have it working at LCA, but I'm running it on my desktop system now, which involves starting from scratch. | 04:10 |
xobs | Okay, 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 |
xobs | Huh, that's a new one. "build_top.sh: line 4: yosys: command not found" | 04:22 |
xobs | And nextpnr-ice40 didn't get installed either. Spooky. | 04:24 |
mithro | xobs: Did you set the platform environment before running? | 04:45 |
mithro | xobs: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L253-L266 | 04:45 |
tpb | Title: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com) | 04:45 |
xobs | mithro: 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.sh | 04:46 |
tpb | Title: litex-buildenv/download-env.sh at fomu-evt-usb · xobs/litex-buildenv · GitHub (at github.com) | 04:46 |
mithro | xobs: What does the output say? | 04:47 |
mithro | xobs: https://github.com/timvideos/litex-buildenv/blob/master/scripts/download-env.sh#L165-L172 | 04:47 |
tpb | Title: litex-buildenv/download-env.sh at master · timvideos/litex-buildenv · GitHub (at github.com) | 04:47 |
xobs | mithro: https://gist.github.com/xobs/2197fab742efe0c23ac03253bc13f3f4 | 04:48 |
tpb | Title: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at gist.github.com) | 04:48 |
xobs | Oh, sorry. Copy-paste didn't work right. | 04:49 |
xobs | Lattice | 04:49 |
xobs | https://gist.github.com/xobs/2197fab742efe0c23ac03253bc13f3f4 | 04:49 |
tpb | Title: gist:2197fab742efe0c23ac03253bc13f3f4 · GitHub (at gist.github.com) | 04:49 |
futarisIRCcloud | xobs: 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 |
tpb | Title: litex-buildenv/download-env.sh at fomu-evt-usb · xobs/litex-buildenv · GitHub (at github.com) | 04:53 |
xobs | futarisIRCcloud: 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 |
mithro | Also. If you don't say my nick, I won't be necessarily respond | 05:53 |
*** futarisIRCcloud has quit IRC | 09:36 | |
MadHacker | https://aiyprojects.withgoogle.com/edge-tpu <-- interesting, google are selling their Edge TPUs as a for-integrators product now. | 10:00 |
MadHacker | Wonder how big an FPGA we'd need to get equivalent-ish results out of a fomu. :D | 10:01 |
xobs | Also interesting they're using an i.MX8 | 10:02 |
MadHacker | Yeah, I wonder what the little dev board they've got the TPU mezzanine plugged into is. | 10:02 |
*** futarisIRCcloud has joined #tomu | 10:21 | |
*** awe00 has joined #tomu | 10:51 | |
*** futarisIRCcloud has quit IRC | 12:26 | |
*** earthnative has quit IRC | 13:13 | |
*** AmosSam has left #tomu | 13:22 | |
*** AmosSam has joined #tomu | 13:24 | |
xobs | I 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 IRC | 15:15 | |
*** andi- has joined #tomu | 15:24 | |
*** xkapastel has joined #tomu | 15:43 | |
MadHacker | xobs: 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 |
xobs | MadHacker: 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 #tomu | 17: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 IRC | 18:27 | |
*** AmosSam_ has quit IRC | 19:20 | |
*** AmosSam_ has joined #tomu | 19:31 | |
*** xkapastel has quit IRC | 19:52 | |
*** xkapastel has joined #tomu | 20:01 | |
*** awe00 has joined #tomu | 20:36 | |
*** awe00 has quit IRC | 20:57 | |
*** awe00 has joined #tomu | 21:11 | |
*** AmosSam_ has quit IRC | 21:20 | |
*** AmosSam_ has joined #tomu | 22:07 | |
*** futarisIRCcloud has joined #tomu | 22:50 | |
*** AmosSam_ has quit IRC | 22:53 | |
*** Kamilion|ZNC has joined #tomu | 23:47 | |
*** andi- has quit IRC | 23:53 | |
*** imdeni has quit IRC | 23:53 | |
*** johnhmay has quit IRC | 23:53 | |
*** Kamilion has quit IRC | 23:53 | |
*** olasd has quit IRC | 23:53 | |
*** gmodena has quit IRC | 23:53 | |
*** Kamilion|ZNC is now known as Kamilion | 23:55 | |
*** im-tomu has quit IRC | 23:56 | |
*** im-tomu has joined #tomu | 23:56 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!