*** tpb has joined #tomu | 00:00 | |
mithro | xobs: Just going to dinner, will be doing the jig setup when I get back | 01:42 |
---|---|---|
xobs | Enjoy! I'll be here. | 01:43 |
mithro | xobs: My jig has a couple of switches, LEDs and buttons | 01:44 |
mithro | https://usercontent.irccloud-cdn.com/file/99BBONHB/irccloudcapture1517468583250008123.jpg | 01:44 |
mithro | https://usercontent.irccloud-cdn.com/file/VtricImP/irccloudcapture8872157043094972594.jpg | 01:44 |
mithro | So need to figure out how to wire them up... | 01:45 |
xobs | How very nice. They always seem to put extra features like that in just in case you need them. | 01:46 |
mithro | I asked for the LEDs + buttons | 01:46 |
mithro | Got the switches as a bonus I guess... | 01:47 |
xobs | I suspect there's a namespace collision there in Chinese -- In the past I've gotten switches when I asked for lights. | 01:47 |
mithro | xobs: Can I drive these LEDs from the RPi GPIO pins? | 02:13 |
xobs | mithro: You can! That's what we do in the factory. | 02:15 |
mithro | Do I want a resistor? | 02:19 |
xobs | It might be a good idea -- I don't think those are current-limited. | 02:20 |
xobs | Normally I use Chibitronics lights, since they're handy in the office. | 02:21 |
mithro | https://usercontent.irccloud-cdn.com/file/pdepQcOA/image.png | 02:28 |
mithro | I guess I want LED 5? | 02:30 |
mithro | xobs: Touch 1 / Touch 2 / Touch 3 / Touch 4 don't seem to be on the diagram? | 02:32 |
xobs | Yes, that's probably best. | 02:32 |
xobs | So to actually set up Exclave, copy https://github.com/im-tomu/fomu-factory-test/blob/master/jig/exclave-sda.service and https://github.com/im-tomu/fomu-factory-test/blob/master/jig/exclave-sda1.service to /etc/systemd/system and run "sudo systemctl enable exclave-sda" and "sudo systemctl enable exclave-sda1". | 02:32 |
tpb | Title: fomu-factory-test/exclave-sda.service at master · im-tomu/fomu-factory-test · GitHub (at github.com) | 02:32 |
xobs | If you want to run the test, touch1, touch3, and touch4 should be shorted together. | 02:33 |
xobs | https://github.com/im-tomu/fomu-factory-test/tree/master/jig#connecting-the-jig | 02:33 |
tpb | Title: fomu-factory-test/jig at master · im-tomu/fomu-factory-test · GitHub (at github.com) | 02:33 |
mithro | https://usercontent.irccloud-cdn.com/file/spuo4kBx/image.png | 02:33 |
xobs | Did you want to run the full test, or just program boards? | 02:34 |
mithro | Oh - the touch1 / touch3 / touch4 are on the Fomu board? | 02:35 |
xobs | The full test will require some slight modifications -- it checks the SPI flash ID and does a 4-wire programming test, for example. | 02:35 |
mithro | xobs: I do have some pogo pins on top side | 02:36 |
xobs | Yes -- the purpose of that test is to ensure the FPGA is soldered correctly. | 02:37 |
mithro | I just have the USB pads it seems | 02:40 |
mithro | No touch pads | 02:42 |
*** deltab has quit IRC | 02:45 | |
xobs | We'll skip that test, then. | 02:47 |
*** deltab has joined #tomu | 02:49 | |
*** andi- has quit IRC | 02:57 | |
mithro | xobs: Do I need a resistor for the switch? | 03:05 |
xobs | mithro: no, the program sets a pullup for that pin | 03:07 |
*** andi- has joined #tomu | 03:07 | |
*** xkapastel has quit IRC | 03:15 | |
mithro | xobs: Can you remember if I is MOSI or MISO? | 03:16 |
mithro | Hrm, I don't think I have a CDONE.... | 03:17 |
xobs | I think "I" is "MOSI" in this instance. | 03:25 |
xobs | I don't think there's a CDONE either. It's more of a "hail mary" type situation. | 03:25 |
xobs | You ought to be able to just log in and run "fomu-flash -i" to ensure it's configured correctly. | 03:26 |
mithro | https://www.irccloud.com/pastebin/KevgphKp/ | 03:39 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 03:39 |
mithro | xobs: What are we doing re-serial number? | 03:40 |
mithro | Is that programmed into the device? | 03:40 |
xobs | Looks good! It just has no serial number. I don't remember if those parts support serial numbers or not. | 03:42 |
xobs | mithro: currently, nothing. | 03:42 |
mithro | Also, how do I figure out what version of the fomu-pi-gen this image was generated from | 03:42 |
xobs | mithro: it looks like that information isn't saved in the image. Hopefully you have a version that's new enough that you have the repository. | 03:46 |
mithro | xobs: Why is this thing doing something on sda? | 03:58 |
xobs | mithro: The actual factory test is designed to go on a USB drive so I can email updates to the factory. | 03:59 |
mithro | So you have a USB stick with the images on it? | 03:59 |
mithro | xobs: Okay, I've copied those exclave files over and started the systemd services... | 04:01 |
xobs | You can check on its progress by running "journalctl -xef" | 04:02 |
mithro | What am I looking for in that? | 04:03 |
mithro | https://github.com/phlipped/paint_fpga/tree/new_start | 04:03 |
tpb | Title: GitHub - phlipped/paint_fpga at new_start (at github.com) | 04:03 |
xobs | You should see the exclave service running. | 04:04 |
mithro | xobs: Well, I don't have a usb stick plugged in? | 04:09 |
mithro | I need to create such a thing, right? | 04:09 |
xobs | mithro: yes, copy the "jig" directory from the factory repo to a USB drive and plug it in. | 04:10 |
*** emeb has quit IRC | 04:12 | |
mithro | Need to find a USB stick... | 04:15 |
mithro | Defeated by needing a USB stick | 04:26 |
mithro | Will have to bring one in tomorrow | 04:26 |
xobs | It's relative, so you could just copy "jig" to somewhere on the SD card and run "./exclave -c config" | 04:28 |
mithro | xobs: as root? | 04:29 |
xobs | Yes | 04:30 |
mithro | ERROR leds.interface: unimplemented verb: hello (args: bash-ltc-jig 1.0) | 04:31 |
mithro | ahh, you need to make your shell scripts executable.... | 04:32 |
mithro | https://www.irccloud.com/pastebin/SxewXbnc/ | 04:38 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:38 |
mithro | https://www.irccloud.com/pastebin/hd7GIdCN/ | 04:38 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:38 |
mithro | How do I generate hacker-tester-bitstream.bin and hacker-top-multiboot.bin? | 04:39 |
mithro | Ahh, building the images is in the top level readme | 04:45 |
mithro | xobs: Logged you some bugs :-P | 04:49 |
mithro | Going to walk home now | 04:49 |
xobs | Woo, bugs. | 04:52 |
*** rohitksingh has joined #tomu | 06:17 | |
*** rohitksingh has quit IRC | 06:55 | |
*** deltab has quit IRC | 11:44 | |
*** deltab has joined #tomu | 11:50 | |
*** rohitksingh has joined #tomu | 11:51 | |
xobs | Does anyone here have a Mac and can help me test out something? I'm trying to build toolchains for Fomu. | 12:27 |
auscompgeek | xobs: in about 12 hours I can have access to a Mac | 12:36 |
xobs | auscompgeek: thanks -- I'm mostly trying to figure out if the binaries in https://github.com/xobs/toolchain-icestorm/releases work, but right now Travis looks like it's not publishing build artifacts. | 12:39 |
tpb | Title: Releases · xobs/toolchain-icestorm · GitHub (at github.com) | 12:39 |
xobs | I'm particularly interested in "yosys", "icepack", and "dfu-util", all of which should be "statically" compiled. | 12:40 |
MadHacker | xobs: Uh, no mac binaries there? | 13:04 |
MadHacker | I've got a mac here, happy to try it out. | 13:04 |
MadHacker | Running build.sh darwin from the top entry on the page, too, just to try. | 13:05 |
xobs | MadHacker: certainly none for "nextpnr-ice40". Homebrew has it, but my goal is a single distribution that works for everything. | 13:05 |
MadHacker | Sure. | 13:06 |
MadHacker | The build script gives quite a few brew errors about stuff that's already installed or not linked, but it seems to be running - it's certainly busy building the icebox bits just now. | 13:09 |
MadHacker | I'll let it run and check out the resulting binaries. | 13:09 |
xobs | travis-ci is building it right now: https://travis-ci.org/xobs/toolchain-icestorm/jobs/571296726 | 13:10 |
tpb | Title: Travis CI - Test and Deploy Your Code with Confidence (at travis-ci.org) | 13:10 |
MadHacker | Cool. It's likely to finish ahead of me; the handiest mac here was just a macbook air and it's a bit lethargic. | 13:11 |
MadHacker | Quite curious what that's actually building on. It seems fairly snappy. | 13:13 |
*** rohitksingh has quit IRC | 13:18 | |
xobs | It takes 10 minutes just to get started, though. I don't know why that is. It doesn't seem to save contexts between builds, either. | 13:46 |
xobs | Hmm... it didn't deploy. I think I got the deployment stuff incorrect. Time to rebuild! | 13:50 |
MadHacker | I'll be around for the next couple of hours, roughly. If you get a binary you'd like me to try in that time, I'm happy to give it a go. | 14:15 |
MadHacker | My own build hiccuped, but it's running again. | 14:15 |
*** kyaputen is now known as slurdge | 14:20 | |
*** xkapastel has joined #tomu | 14:43 | |
*** emeb has joined #tomu | 14:47 | |
MadHacker | Grabbing those bins now. | 14:49 |
MadHacker | OK. icepack and yosys in https://github.com/xobs/toolchain-icestorm/releases/download/v1.13-fomu/toolchain-icestorm-darwin-1.11.1.tar.gz are fine. | 14:52 |
MadHacker | dfu-util is depending on libusb in /usr/local/ | 14:52 |
MadHacker | Everything is semi-static, in that they depend on the basic libc++ and libSystem but nothing else. | 14:53 |
MadHacker | dfu-util apart. | 14:53 |
xobs | MadHacker: that's good, mostly. What about dfu-util? | 14:53 |
xobs | I'm building it with $(pkg-config --libs --static /usr/local/Cellar/libusb/*/lib/pkgconfig/libusb-1.0.pc) which I'd assume adds the flags for static libs. | 14:54 |
MadHacker | Unfortunately you're ending up with a dynamic dependency still. | 14:55 |
MadHacker | Jamies-Retina-Air:bin jamie$ otool -L dfu-util | 14:55 |
MadHacker | dfu-util: | 14:55 |
MadHacker | /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0) | 14:55 |
MadHacker | /usr/local/opt/libusb/lib/libusb-1.0.0.dylib (compatibility version 2.0.0, current version 2.0.0) | 14:55 |
MadHacker | /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0) | 14:55 |
MadHacker | /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0) | 14:55 |
MadHacker | /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1451.0.0) | 14:55 |
*** xkapastel has quit IRC | 19:12 | |
mithro | xobs: Why don't you use esden's summon fpga tools thingy? | 19:31 |
*** xkapastel has joined #tomu | 20:31 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!