*** tpb has joined #tomu | 00:00 | |
*** awe00 has quit IRC | 01:43 | |
*** whatnick has joined #tomu | 03:15 | |
*** whatnick has quit IRC | 04:10 | |
*** whatnick has joined #tomu | 04:11 | |
*** rohitksingh has quit IRC | 04:20 | |
*** rohitksingh has joined #tomu | 04:29 | |
*** whatnick_ has joined #tomu | 04:47 | |
*** whatnick has quit IRC | 04:49 | |
*** whatnick_ has quit IRC | 04:56 | |
*** whatnick has joined #tomu | 04:57 | |
xobs | Woo, managed to build the workshop.py on the in-office Mac! | 05:03 |
---|---|---|
xobs | I had to add libffi from conda, so naturally that means doing another release. But it's in a good position now, much better than it was last week. | 05:04 |
*** rohitksingh has quit IRC | 05:10 | |
mithro | https://usercontent.irccloud-cdn.com/file/rd9vG7Vi/image.png | 06:06 |
mithro | xobs: I feel like you'd have been more productive to get our conda stuff working on Mac / Win | 06:41 |
xobs | mithro: probably! I'll have to investigate how conda works at some point I'm sure. | 07:15 |
mithro | xobs: You can even build a single conda installer | 07:15 |
mithro | with everything in the same binary | 07:15 |
xobs | mithro: that sounds complicated and lovely. I still need to figure out how to bundle something like that for nextpnr! | 07:18 |
MadHacker | xobs: re: git dependency; sorry for being properly grouchy about it. I tend to work from a "download a zip" not a git clone for stuff from github. As a result I had both a dependency I didn't expect on git, *and* it wasn't salvagable because I wasn't working from a git checkout, and therefore the submodules wouldn't work either. | 08:23 |
*** futarisIRCcloud has quit IRC | 08:23 | |
MadHacker | I could deal with the git dependency but I'd have preferred the lxbuildenv stuff just explicitly did its own git clone, rather than trying to just use the recursive submodules thing when it isn't necessarily starting out from a git-y environment. | 08:24 |
MadHacker | Anyway, sorry, I was probably needlessly grumpy about it. | 08:24 |
MadHacker | s/probably// | 08:25 |
xobs | MadHacker: it's a good datapoint. I appreciate it. | 08:36 |
xobs | I know a lot about being grouchy at unexpected software behavior. | 08:36 |
*** awe00 has joined #tomu | 09:59 | |
*** awe00 has quit IRC | 10:10 | |
*** awe00 has joined #tomu | 10:29 | |
MadHacker | xobs: So, working from a clean checkout of foboot, on OS X, I get: ERROR: Top-level input 'I0' also driven by I0.O. | 10:31 |
MadHacker | when I try to build for --revision pvt | 10:31 |
MadHacker | Is this likely to be an odd versioning things on yosys or something on my machine? | 10:32 |
MadHacker | Actually, yes, it will be, since I see it's just doing SB_LUT4 at this point. | 10:32 |
xobs | MadHacker: I'm not really sure. It's a distinct possibility. | 10:33 |
MadHacker | Yep, think it's my own fault on this one. Yosys versioning. | 10:36 |
*** cangaroo_ has joined #tomu | 11:17 | |
*** awe00 has quit IRC | 11:49 | |
*** mifune has joined #tomu | 11:57 | |
*** awe00 has joined #tomu | 12:05 | |
*** whatnick1 has joined #tomu | 12:31 | |
*** jas4711 has quit IRC | 12:45 | |
mithro | xobs: FYI - https://docs.google.com/spreadsheets/d/1XTHfdYXuvwoYdPXm4M6qDA0D2fZCPy220-9q6qZpTw4/edit?ts=5d5a71fd#gid=1131619550 | 12:48 |
tpb | Title: LiteX BuildEnv Support - Google Sheets (at docs.google.com) | 12:48 |
mithro | xobs: Where are you working on the workshop stuff? | 12:50 |
xobs | mithro: It's at https://github.com/im-tomu/fomu-workshop specifically `Workshop.md` | 12:51 |
tpb | Title: GitHub - im-tomu/fomu-workshop: Support files for participating in a Fomu workshop (at github.com) | 12:51 |
mithro | okay | 12:51 |
mithro | xobs: For all commands you should show example output when successful | 12:52 |
mithro | Shall I log some github issues? | 12:52 |
xobs | mithro: I generally do. What's missing? | 12:52 |
xobs | Sure, that's a good idea. | 12:53 |
mithro | https://github.com/im-tomu/fomu-workshop#usage | 12:53 |
tpb | Title: GitHub - im-tomu/fomu-workshop: Support files for participating in a Fomu workshop (at github.com) | 12:53 |
xobs | Ah, that README. Okay. | 12:53 |
mithro | Just getting to the airport now | 13:06 |
mithro | will be back in a bit | 13:06 |
*** awe00 has quit IRC | 13:09 | |
whatnick1 | Hey xobs do you a tutorial for VexRiscv on Fomu ? | 13:21 |
xobs | whatnick1: what are you looking to do? | 13:21 |
whatnick1 | Just VexRiscv + Micropython ... | 13:22 |
whatnick1 | Or help out some more on Fomu .. | 13:22 |
whatnick1 | I tried it on the TinyFPGA BX , did not take, trying to see how the Fomu is different | 13:23 |
xobs | I don't, unfortunately. It's early days yet. | 13:26 |
xobs | But I'm more than happy to help people get set up! | 13:27 |
xobs | I haven't even moved micropython into the im-fomu repository yet. It's currently at https://github.com/xobs/micropython/tree/fomu | 13:27 |
tpb | Title: GitHub - xobs/micropython at fomu (at github.com) | 13:27 |
*** whatnick1 has left #tomu | 13:28 | |
xobs | :( | 13:28 |
whatnick | hey just closed a client | 13:29 |
whatnick | :) | 13:29 |
xobs | Ah, okay! | 13:29 |
xobs | The basic build process is to go into https://github.com/xobs/micropython/tree/fomu/ports/fomu and run "make". Then load `bin/micropython.bin` onto Fomu. NOT `bin/micropython.dfu`. | 13:29 |
tpb | Title: micropython/ports/fomu at fomu · xobs/micropython · GitHub (at github.com) | 13:29 |
whatnick | let me do some work then will have fun with the fomu at home. | 13:30 |
whatnick | make will grab the toolchain ? | 13:30 |
xobs | You can also run `wishbone-tool -s gdb`, then in another window run `riscv64-unknown-elf-gdb -ex "target remote localhost:1234" build/firmware.elf` and debug it over gdb. | 13:31 |
whatnick | xobs we have met in a pub in Sydney ... and ICC... | 13:31 |
whatnick | okay .. will keep that in the logs.. looking forward to tutorial material. | 13:31 |
xobs | whatnick: oh. Hello! | 13:31 |
whatnick | in Kenya now :) | 13:32 |
whatnick | spreading fomus around like viruses | 13:32 |
xobs | Welcome home | 13:32 |
whatnick | ttyl | 13:33 |
*** cangaroo_ has quit IRC | 13:38 | |
*** awe00 has joined #tomu | 13:45 | |
MadHacker | Goodness but nextpnr is slow on my macbook on the normal foboot hw. | 14:03 |
MadHacker | I'll have to remember to run that on something beefier in future. | 14:03 |
xobs | It does take a while. It /is/ about 99% full. | 14:04 |
xobs | Did you run it with `--placer heap`? | 14:04 |
MadHacker | I'm just running your build script at this point (foboot-bitstream.py). | 14:05 |
MadHacker | Seems to have completed at least. | 14:05 |
xobs | Try adding `--placer heap`. I don't have that set as default, since the HeAP placer is relatively new. But now that we ship nextpnr, it's pretty likely to be enabled. | 14:06 |
*** awe00 has quit IRC | 14:06 | |
MadHacker | Will do. | 14:06 |
*** emeb has joined #tomu | 14:27 | |
*** whatnick has quit IRC | 14:47 | |
mithro | xobs: We should get zephyr working into the workshop somehow... | 14:49 |
xobs | mithro: good suggestion. | 14:54 |
xobs | Though I did just try printing the workshop document, and it's 27 pages. | 14:54 |
mithro | xobs: Poke the antmicro people about it? | 14:54 |
mithro | xobs: I suggest you just print a bunch of business cards with links to the webpage? | 14:54 |
*** whatnick has joined #tomu | 14:54 | |
ovf | there's probably not enough space for usb mass storage in foboot? it'd be nice for fomu to be self-documenting | 15:03 |
xobs | ovf: not in foboot, but there's a provision for transitioning to a secondary bootloader. | 15:04 |
xobs | The problem right now is I've been needing to get this toolchain stuff done, and I need to chase the factory to figure out why they're behind. | 15:04 |
xobs | And I'm in the middle of a refactor of the USB stack to enable more than just the three endpoints, which will be crucial to getting circuitpython support. | 15:05 |
xobs | But there's a plan for it! | 15:06 |
*** tmbinc has joined #tomu | 15:08 | |
ovf | cool. :-) the nice thing is that with fomu you can always ask people later to update their hardware. | 15:08 |
tmbinc | Just received my crowdsupply fomus. It fails to enumerate on windows, is that a known bug? Works in Linux and I have OpenVizsla logs. Happy to dive into it, but if it's a known fixed issue, I can save the time :) | 15:09 |
tmbinc | I think it fails in 80 06 00 01 00 00 40 00 (i.e. bmRequestType=D2H|Standard|Device, bRequest=06 READ DESCRIPTOR, wValue=0001, wIndex=0000) | 15:12 |
xobs | tmbinc: there's a known issue where it doesn't properly respect the USB address value. Can you try it with a hub to make sure it's behind a transaction translator? | 15:14 |
*** whatnick has quit IRC | 15:15 | |
tmbinc | it's on a USB3 hub | 15:15 |
*** whatnick has joined #tomu | 15:15 | |
tmbinc | I think it's still on address 0? | 15:16 |
tmbinc | ah, hm | 15:17 |
tmbinc | meh if openvizsla would have a proper decoder this would be more easy | 15:17 |
tnt | tmbinc: ViewSB | 15:17 |
tnt | https://github.com/usb-tools/ViewSB | 15:17 |
tpb | Title: GitHub - usb-tools/ViewSB: open-source USB analyzer toolkit with support for a variety of capture hardware (at github.com) | 15:17 |
mithro | xobs: https://twitter.com/drayde/status/1163377363482271744 | 15:18 |
*** xkapastel has joined #tomu | 15:27 | |
xobs | mithro: Hmm... You're much better at Twitter than I am. Twitter doesn't seem very reliable about sending me communication. | 15:29 |
xobs | "If you enable notifications for Retweets, replies or mentions, likes, or follows, you may not receive a notification for every Retweet, reply or mention, like, or follow. " | 15:29 |
xobs | tmbinc: it's not a known issue, but based on what you're seeing it's trying to query the configuration descriptor but not getting a response. | 15:30 |
mithro | xobs: I'm using tweetdeck and have columns for important keywords | 15:30 |
tmbinc | tnt: oh, that's nicer than expected. Triggers a table_name=None bug somehow but i can see the request, trying to figure out if my pcap is wrong or what ViewSB displays is wrong though | 15:30 |
xobs | The only known issue is that it ignores the "SET_ADDRESS" command, and therefore will respond when other devices on the bus respond. | 15:30 |
xobs | mithro: but do you have to constantly check it, or does it send you email notifications? | 15:31 |
*** awe00 has joined #tomu | 15:31 | |
mithro | xobs: I check it when procrastinating doing more important things :-P | 15:31 |
tmbinc | xobs:it may be related actually | 15:31 |
tmbinc | i think ViewSB incorrectly shows the checksum as the device address? | 15:33 |
tmbinc | oh i think what _actually_ happens is that there's a port reset (for whatever reason) but the FOMU doesn't reset to address 0 | 15:34 |
tmbinc | so it's actually trying to obtain the device descriptor with a "2D 00 10" (=SETUP address=0, endpoint=0), but there's no response | 15:35 |
xobs | Fomu currently ignores the "ADDR" field of the token. | 15:35 |
tmbinc | ok, fair point, as i do see a NAK | 15:36 |
xobs | So for whatever reason, Fomu isn't able to understand the packet. | 15:36 |
tmbinc | but why would it NAK the device descriptor request? | 15:36 |
xobs | You see a NAK? That's interesting. | 15:36 |
xobs | Is the LED fading in and out? | 15:36 |
tmbinc | anyway there seem to be two issues: a.) the thing that causes a reset, and b.) that the re-enumeration doesn't work | 15:37 |
tmbinc | xobs: fyi http://tmb.elitedvb.net/tmp/M5N7G6xXmH/fomu2.pcap with a nightly wireshark. Lots of crap before the actual USB traffic, please ignore. | 15:37 |
tmbinc | (did I mention OpenVizlsa needs work? ;) | 15:37 |
tmbinc | so around packet 2200 there's the first SETUP asking for the device descriptor, which is NAK'ed a few times but then works | 15:38 |
xobs | tmbinc: If the RGB LED is fading in and out, that means the crystal is working and the CPU is functioning, which is a good sign. | 15:38 |
tmbinc | it is blinking | 15:38 |
tmbinc | and i can see the initial descriptors going by | 15:39 |
*** awe00 has quit IRC | 15:40 | |
xobs | My copy of wireshark refuses to open that file :( | 15:40 |
tmbinc | 3.1.1rc0 works here | 15:41 |
xobs | But can you actually see responses coming back from the device? | 15:41 |
tmbinc | yes | 15:41 |
tmbinc | I can see the string descriptor, "Fomu DFU Bootlaoder v1.8.7" etc. | 15:41 |
tmbinc | there's something weird with the addressig though | 15:41 |
tmbinc | it sends the initial device descriptor request to address 0 | 15:42 |
tmbinc | then sends the next request already to a non-zero address | 15:42 |
tmbinc | shouldn't the PC first need to set the address and move it away from 0? | 15:42 |
xobs | Hmm... Sounds like I really, really need to get that working. | 15:42 |
tmbinc | hm i think ViewSB just fails decoding this correctly unfortunately | 15:43 |
xobs | I'm sorry it's not working, tmbinc . I'm going to cccamp tomorrow, so I need to prepare for that. | 15:44 |
tmbinc | yeah the second SETUP is a set_address | 15:44 |
tmbinc | xobs:oh, no worry. | 15:44 |
tmbinc | xobs: I'll be there as well so worst case we can debug it there | 15:44 |
xobs | Oh yay. I'll bring the beagle (busted though it may be). And if I have time on the plane maybe I'll work on it. | 15:45 |
xobs | I need to head to bed now. Goodnight! | 15:45 |
*** awe00 has joined #tomu | 16:41 | |
*** awe00 has quit IRC | 16:52 | |
*** whatnick_ has joined #tomu | 16:52 | |
*** whatnick has quit IRC | 16:54 | |
*** whatnick_ has quit IRC | 16:57 | |
*** whatnick has joined #tomu | 16:58 | |
*** NoGodDamnIdea has joined #tomu | 17:06 | |
*** awe00 has joined #tomu | 17:15 | |
*** awe00 has quit IRC | 17:55 | |
*** awe00 has joined #tomu | 19:02 | |
shapr | random feedback: the fomu case lets the USB pins side of the PCB easily flip up, sometimes it gets stuck when I try to insert it into a USB port. I haven't had that problem with any of ~25 tomu | 19:29 |
shapr | is that a known problem? maybe I just got a weird one? | 19:29 |
shapr | I just assembled the second one I ordered, it's perfectly fine, as good as the tomus I've gotten. I think I just have a weird one. | 19:31 |
shapr | The tomu getting started repo is wonderful, I gave a class and everybody loved it. Is there any of that for the fomu? | 19:32 |
shapr | should I start with the foboot or fomu-toolchain? | 19:33 |
*** rohitksingh has joined #tomu | 19:59 | |
*** NoGodDamnIdea has quit IRC | 20:09 | |
*** rohitksingh has quit IRC | 20:20 | |
*** rohitksingh has joined #tomu | 20:22 | |
*** rohitksingh has quit IRC | 20:33 | |
mithro | shapr: the getting started with the Fomu is still a lot less mature than Tomu | 21:05 |
shapr | I'm starting by refreshing my yosys/icestorm/nextpnr installs | 21:06 |
shapr | mithro: I'm writing a blog post, in hopes of helping | 21:06 |
mithro | shapr: https://github.com/im-tomu/fomu-workshop maybe | 21:06 |
tpb | Title: GitHub - im-tomu/fomu-workshop: Support files for participating in a Fomu workshop (at github.com) | 21:06 |
shapr | do you know where I would find the default bitstream that comes already installed? | 21:06 |
shapr | that's always step zero for me ... how do I get back to zero when I broke something? | 21:06 |
mithro | I still need to get Fomu into LiteX-BuildEnv properly... | 21:07 |
mithro | shapr: foboot releases ditectory | 21:07 |
shapr | ok thanks | 21:08 |
mithro | I'm just waiting to get on a plane, so might disappear any time | 21:08 |
shapr | heh, fair enough :-) | 21:08 |
shapr | ok, I'll read the fomu workshop | 21:08 |
shapr | I suspect the RGB LED on the board is using the up5k specific hardware? | 21:09 |
shapr | and that's also why there's so much RAM on the board, also the up5k? | 21:09 |
shapr | mithro: is there a place to download the usb stick collection of software? | 21:10 |
shapr | I have the risc-v toolchain installed for hifive unleashed purposes | 21:10 |
shapr | if I get far enough I'll give a lightning talk here at recurse center, will likely get more people interested :-) | 21:10 |
mithro | USB stick? | 21:10 |
shapr | from the fomu-workshop readme: "This software is provided on a USB drive for Linux x86/64" | 21:11 |
shapr | mithro: mostly I want to know 1. how to load micropython and 2. how to load my own bitstream | 21:11 |
shapr | from tomu experienc, I expect dfu-util is used to load micropython? | 21:11 |
mithro | shapr: oh, that is this directory I think? | 21:11 |
shapr | doh, that makes sense :-) the entire fomu-workshop checkout | 21:12 |
shapr | mithro: where would I look for how to load micropython and how to load a bitstream? | 21:12 |
mithro | Try https://github.com/im-tomu/fomu-toolchain maybe to? | 21:13 |
tpb | Title: GitHub - im-tomu/fomu-toolchain: A collection of tools for developing for Fomu (at github.com) | 21:13 |
shapr | ok, sounds good | 21:13 |
shapr | mithro: any other useful advice I haven't thought to request? :-) | 21:14 |
*** rohitksingh has joined #tomu | 21:15 | |
mithro | shapr: use Linux? :-P | 21:17 |
shapr | haha, I can do that... my only OS for 20 years | 21:18 |
mithro | Since 2001 for me IIRC | 21:23 |
mithro | xobs: uses windows... | 21:23 |
*** rohitksingh has quit IRC | 21:25 | |
*** whatnick_ has joined #tomu | 21:42 | |
tnt | mithro: xobs: where will you guys be hanging out at camp btw ? | 21:44 |
*** whatnick has quit IRC | 21:45 | |
mithro | tnt: got a suggestion? | 21:45 |
tnt | not really no :) I just had looked for a openfpga village or something but didn't really find anything. | 21:45 |
mithro | I was guessing the hardware hacking place most of the time... | 21:46 |
mithro | tnt: was to busy to organise such a thing | 21:46 |
tnt | heh sure. I'm staying at the osmocom village anyway, just wanted to know where to pop by to say hello :) | 21:47 |
*** whatnick_ has quit IRC | 22:16 | |
mithro | https://www.crowdsupply.com/solokeys/somu/updates/behind-the-scenes-of-making-somu | 22:19 |
tpb | Title: Somu - Behind the Scenes of Making Somu | Crowd Supply (at www.crowdsupply.com) | 22:19 |
*** whatnick has joined #tomu | 22:20 | |
shapr | Does three mean someone will define the tomu form factor? | 22:21 |
ovf | mithro: i think the only place they mention tomu is in the comparison spreadsheet? :-) | 22:22 |
*** whatnick has quit IRC | 22:34 | |
*** whatnick has joined #tomu | 22:42 | |
*** rohitksingh has joined #tomu | 22:54 | |
*** whatnick has quit IRC | 23:02 | |
*** lathiat has quit IRC | 23:06 | |
*** lathiat has joined #tomu | 23:07 | |
*** emeb has quit IRC | 23:07 | |
*** emeb has joined #tomu | 23:09 | |
*** whatnick has joined #tomu | 23:15 | |
*** whatnick has quit IRC | 23:21 | |
*** xkapastel has quit IRC | 23:26 | |
*** rohitksingh has quit IRC | 23:34 | |
*** rohitksingh has joined #tomu | 23:37 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!