Tuesday, 2019-08-13

*** tpb has joined #tomu00:00
mithroxobs: Just going to dinner, will be doing the jig setup when I get back01:42
xobsEnjoy!  I'll be here.01:43
mithroxobs: My jig has a couple of switches, LEDs and buttons01:44
mithrohttps://usercontent.irccloud-cdn.com/file/99BBONHB/irccloudcapture1517468583250008123.jpg01:44
mithrohttps://usercontent.irccloud-cdn.com/file/VtricImP/irccloudcapture8872157043094972594.jpg01:44
mithroSo need to figure out how to wire them up...01:45
xobsHow very nice.  They always seem to put extra features like that in just in case you need them.01:46
mithroI asked for the LEDs + buttons01:46
mithroGot the switches as a bonus I guess...01:47
xobsI suspect there's a namespace collision there in Chinese -- In the past I've gotten switches when I asked for lights.01:47
mithroxobs: Can I drive these LEDs from the RPi GPIO pins?02:13
xobsmithro: You can!  That's what we do in the factory.02:15
mithroDo I want a resistor?02:19
xobsIt might be a good idea -- I don't think those are current-limited.02:20
xobsNormally I use Chibitronics lights, since they're handy in the office.02:21
mithrohttps://usercontent.irccloud-cdn.com/file/pdepQcOA/image.png02:28
mithroI guess I want LED 5?02:30
mithroxobs: Touch 1 / Touch 2 / Touch 3 / Touch 4 don't seem to be on the diagram?02:32
xobsYes, that's probably best.02:32
xobsSo 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
tpbTitle: fomu-factory-test/exclave-sda.service at master · im-tomu/fomu-factory-test · GitHub (at github.com)02:32
xobsIf you want to run the test, touch1, touch3, and touch4 should be shorted together.02:33
xobshttps://github.com/im-tomu/fomu-factory-test/tree/master/jig#connecting-the-jig02:33
tpbTitle: fomu-factory-test/jig at master · im-tomu/fomu-factory-test · GitHub (at github.com)02:33
mithrohttps://usercontent.irccloud-cdn.com/file/spuo4kBx/image.png02:33
xobsDid you want to run the full test, or just program boards?02:34
mithroOh - the touch1 / touch3 / touch4 are on the Fomu board?02:35
xobsThe full test will require some slight modifications -- it checks the SPI flash ID and does a 4-wire programming test, for example.02:35
mithroxobs: I do have some pogo pins on top side02:36
xobsYes -- the purpose of that test is to ensure the FPGA is soldered correctly.02:37
mithroI just have the USB pads it seems02:40
mithroNo touch pads02:42
*** deltab has quit IRC02:45
xobsWe'll skip that test, then.02:47
*** deltab has joined #tomu02:49
*** andi- has quit IRC02:57
mithroxobs: Do I need a resistor for the switch?03:05
xobsmithro: no, the program sets a pullup for that pin03:07
*** andi- has joined #tomu03:07
*** xkapastel has quit IRC03:15
mithroxobs: Can you remember if I is MOSI or MISO?03:16
mithroHrm, I don't think I have a CDONE....03:17
xobsI think "I" is "MOSI" in this instance.03:25
xobsI don't think there's a CDONE either.  It's more of a "hail mary" type situation.03:25
xobsYou ought to be able to just log in and run "fomu-flash -i" to ensure it's configured correctly.03:26
mithrohttps://www.irccloud.com/pastebin/KevgphKp/03:39
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)03:39
mithroxobs: What are we doing re-serial number?03:40
mithroIs that programmed into the device?03:40
xobsLooks good!  It just has no serial number. I don't remember if those parts support serial numbers or not.03:42
xobsmithro: currently, nothing.03:42
mithroAlso, how do I figure out what version of the fomu-pi-gen this image was generated from03:42
xobsmithro: 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
mithroxobs: Why is this thing doing something on sda?03:58
xobsmithro: The actual factory test is designed to go on a USB drive so I can email updates to the factory.03:59
mithroSo you have a USB stick with the images on it?03:59
mithroxobs: Okay, I've copied those exclave files over and started the systemd services...04:01
xobsYou can check on its progress by running "journalctl -xef"04:02
mithroWhat am I looking for in that?04:03
mithrohttps://github.com/phlipped/paint_fpga/tree/new_start04:03
tpbTitle: GitHub - phlipped/paint_fpga at new_start (at github.com)04:03
xobsYou should see the exclave service running.04:04
mithroxobs: Well, I don't have a usb stick plugged in?04:09
mithroI need to create such a thing, right?04:09
xobsmithro: yes, copy the "jig" directory from the factory repo to a USB drive and plug it in.04:10
*** emeb has quit IRC04:12
mithroNeed to find a USB stick...04:15
mithro Defeated by needing a USB stick04:26
mithroWill have to bring one in tomorrow04:26
xobsIt's relative, so you could just copy "jig" to somewhere on the SD card and run "./exclave -c config"04:28
mithroxobs: as root?04:29
xobsYes04:30
mithro  ERROR leds.interface: unimplemented verb: hello (args: bash-ltc-jig 1.0)04:31
mithroahh, you need to make your shell scripts executable....04:32
mithrohttps://www.irccloud.com/pastebin/SxewXbnc/04:38
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)04:38
mithrohttps://www.irccloud.com/pastebin/hd7GIdCN/04:38
tpbTitle: Snippet | IRCCloud (at www.irccloud.com)04:38
mithroHow do I generate hacker-tester-bitstream.bin and hacker-top-multiboot.bin?04:39
mithroAhh, building the images is in the top level readme04:45
mithroxobs: Logged you some bugs :-P04:49
mithroGoing to walk home now04:49
xobsWoo, bugs.04:52
*** rohitksingh has joined #tomu06:17
*** rohitksingh has quit IRC06:55
*** deltab has quit IRC11:44
*** deltab has joined #tomu11:50
*** rohitksingh has joined #tomu11:51
xobsDoes anyone here have a Mac and can help me test out something?  I'm trying to build toolchains for Fomu.12:27
auscompgeekxobs: in about 12 hours I can have access to a Mac12:36
xobsauscompgeek: 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
tpbTitle: Releases · xobs/toolchain-icestorm · GitHub (at github.com)12:39
xobsI'm particularly interested in "yosys", "icepack", and "dfu-util", all of which should be "statically" compiled.12:40
MadHackerxobs: Uh, no mac binaries there?13:04
MadHackerI've got a mac here, happy to try it out.13:04
MadHackerRunning build.sh darwin from the top entry on the page, too, just to try.13:05
xobsMadHacker: certainly none for "nextpnr-ice40".  Homebrew has it, but my goal is a single distribution that works for everything.13:05
MadHackerSure.13:06
MadHackerThe 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
MadHackerI'll let it run and check out the resulting binaries.13:09
xobstravis-ci is building it right now: https://travis-ci.org/xobs/toolchain-icestorm/jobs/57129672613:10
tpbTitle: Travis CI - Test and Deploy Your Code with Confidence (at travis-ci.org)13:10
MadHackerCool. 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
MadHackerQuite curious what that's actually building on. It seems fairly snappy.13:13
*** rohitksingh has quit IRC13:18
xobsIt 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
xobsHmm... it didn't deploy.  I think I got the deployment stuff incorrect.  Time to rebuild!13:50
MadHackerI'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
MadHackerMy own build hiccuped, but it's running again.14:15
*** kyaputen is now known as slurdge14:20
*** xkapastel has joined #tomu14:43
*** emeb has joined #tomu14:47
MadHackerGrabbing those bins now.14:49
MadHackerOK. 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
MadHackerdfu-util is depending on libusb in /usr/local/14:52
MadHackerEverything is semi-static, in that they depend on the basic libc++ and libSystem but nothing else.14:53
MadHackerdfu-util apart.14:53
xobsMadHacker: that's good, mostly. What about dfu-util?14:53
xobsI'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
MadHackerUnfortunately you're ending up with a dynamic dependency still.14:55
MadHackerJamies-Retina-Air:bin jamie$ otool -L dfu-util14:55
MadHackerdfu-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 IRC19:12
mithroxobs: Why don't you use esden's summon fpga tools thingy?19:31
*** xkapastel has joined #tomu20:31

Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!