*** tpb has joined #tomu | 00:00 | |
*** xkapastel has quit IRC | 01:09 | |
*** rohitksingh has quit IRC | 02:16 | |
*** rohitksingh has joined #tomu | 02:17 | |
xobs | Okay, good morning all. Time to fix this. | 02:51 |
---|---|---|
xobs | Though I've very quickly come to the decision that I've broken this Raspberry Pi somehow. I think I fried a GPIO block or two. | 02:54 |
xobs | Hmm... no, I just hit a bug in fomu-flash. | 03:43 |
*** rohitksingh_work has joined #tomu | 04:40 | |
xobs | Okay, /that's/ weird. Foboot is failing because the subsequent packet is getting stuck on the end of the previous packet. | 05:02 |
futarisIRCcloud | xobs: getting stuck on the end of the previous packet? | 05:39 |
xobs | I just managed to figure it out. | 05:39 |
xobs | I was pre-queueing an "ACK" so that when the final "IN" token came in, I'd acknowledge it right away. | 05:39 |
xobs | Well, because you can't NAK a SETUP packet, it would automatically queue the "ACK" to the "IN", then load the subsequent "SETUP" packet into the buffer. | 05:40 |
tnt | Yeah, that whole thing "you can't NAK" setup was definitely a bit annoying to me too. | 06:25 |
xobs | Fortunately, it looks like a software problem, which means I can hook up the debugger. | 06:38 |
*** jas4711 has joined #tomu | 06:44 | |
*** rohitksingh_work has quit IRC | 07:44 | |
*** cdmatter has quit IRC | 07:44 | |
*** rohitksingh_work has joined #tomu | 08:16 | |
*** rohitksingh_work has quit IRC | 08:24 | |
*** awe00 has joined #tomu | 09:19 | |
*** AmosSam has left #tomu | 09:21 | |
*** AmosSam has joined #tomu | 09:22 | |
xobs | Okay, I just pushed a version with a new USB state machine. | 09:38 |
xobs | This one seems more reliable, in that it does the right thing most of the time. | 09:39 |
xobs | I did get two bits of corruption on SPI when uploading data, and that's a little concerning. My guess there is that my SPI state machine isn't behaving right. | 09:39 |
xobs | Rather, when I did a "fomu-flash -a 262144 -v blink.bin", it said that one bit had been transposed in the resulting file. | 09:41 |
AmosSam | What is "-a 262144" flag? | 09:44 |
xobs | That specifies the address to read from. | 09:45 |
xobs | Since the bitstream goes at address 262144, I'm verifying the contents of "blink.bin" beginning at that address. | 09:45 |
AmosSam | Ahhh, so when I verified foboot it worked because foboot is at beggining? | 09:45 |
xobs | Most likely! The "verify" command is used to check that a given binary exists on the SPI flash at a given offset. To check that it was written properly. | 09:46 |
xobs | Useful for verifying that the initial Foboot is written, and also for checking that Foboot is doing the right thing with the images that it writes. | 09:47 |
AmosSam | One thing that crossed my mind last night, can rpi be connected to test points and at same time usb pins ? Or that won't work? | 09:48 |
xobs | That's how I'm testing things now. | 09:52 |
xobs | It's probably doing slightly bad things with two 5V sources fighting. | 09:53 |
AmosSam | Well, if rpi is powered by laptop, and fomu usb is connected to same laptop, it shouldn't matter since grounds are on same potential? | 09:55 |
xobs | Right! | 09:55 |
AmosSam | But, on test pads it should be 3.3V? Would 5V from usb leak to that point? | 09:55 |
xobs | That's not my setup right now, though. | 09:55 |
xobs | You could probably skip the 5V line. You might even be able to skip ground, but that's not recommended in case it's isolated somehow. | 09:56 |
AmosSam | I'll try in next few days, when I move my printer to new address... | 09:58 |
xobs | Alright, thanks for the help. It would have been really bad to ship with that iteration of foboot. | 10:00 |
*** awe00 has quit IRC | 10:04 | |
AmosSam | No problem! Did you pushed changes? I'll test this evening and report back | 10:06 |
xobs | I pushed my changes. | 10:13 |
*** futarisIRCcloud has quit IRC | 10:19 | |
*** awe00 has joined #tomu | 10:47 | |
*** awe00 has quit IRC | 11:56 | |
*** awe00 has joined #tomu | 12:09 | |
*** awe00 has quit IRC | 12:19 | |
*** AmosSam has left #tomu | 12:20 | |
*** AmosSam has joined #tomu | 12:27 | |
*** awe00 has joined #tomu | 12:37 | |
*** awe00 has quit IRC | 12:46 | |
*** AmosSam has left #tomu | 12:59 | |
*** awe00 has joined #tomu | 12:59 | |
*** awe00 has quit IRC | 13:09 | |
*** rohitksingh has quit IRC | 13:24 | |
*** awe00 has joined #tomu | 13:32 | |
*** awe00 has quit IRC | 13:38 | |
*** AmosSam has joined #tomu | 13:42 | |
*** rohitksingh has joined #tomu | 13:48 | |
*** awe00 has joined #tomu | 13:51 | |
*** rohitksingh has quit IRC | 13:57 | |
*** rohitksingh_ has joined #tomu | 13:57 | |
*** awe00 has quit IRC | 14:04 | |
*** awe00 has joined #tomu | 14:27 | |
*** AmosSam has left #tomu | 14:39 | |
*** xkapastel has joined #tomu | 14:43 | |
*** AmosSam has joined #tomu | 14:47 | |
*** AmosSam has left #tomu | 15:00 | |
*** AmosSam has joined #tomu | 15:16 | |
*** awe00 has quit IRC | 15:16 | |
*** emeb has joined #tomu | 15:37 | |
mithro | xobs: Could we rename the fomu-repo repository to something like fomu-rpi-packages or fomu-rpi-dpkg ? | 15:46 |
xobs | mithro: sure | 15:47 |
mithro | xobs: fomu-raspbian-packages? | 15:48 |
xobs | Done | 15:48 |
xobs | mithro: do you have the ability to test the latest Foboot? | 15:51 |
mithro | xobs: On the hacker fomu, or otherwise? | 15:56 |
*** awe00 has joined #tomu | 15:56 | |
xobs | mithro: any will do | 15:57 |
mithro | xobs: I can probably do that | 15:59 |
xobs | mithro: Would you like to try building it yourself, or would you like a bitstream? | 16:09 |
mithro | xobs: Both? | 16:09 |
xobs | I wonder if matrix.org will let me do this... | 16:13 |
* xobs posted a file: top-multiboot-hacker.bin (102KB) < https://matrix.org/_matrix/media/v1/download/matrix.org/eBTIrjnerTxhgsROsxPZEoCS > | 16:13 | |
xobs | mithro: ^ does that show up? | 16:13 |
mithro | xobs: Yes | 16:14 |
*** awe00 has quit IRC | 16:16 | |
xobs | Foboot [currently] only loads bitstreams. With something like the picorv32 spi block I could have it do RISC-V code, too. | 16:17 |
AmosSam | xobs: does foboot builds for you with --with-pll switch? | 16:20 |
xobs | AmosSam: looks like it doesn't meet timing, no :( | 16:24 |
xobs | What version of nextpnr are you using? | 16:25 |
xobs | It works for me if I add "--placer heap". The "heap" placer was added to nextpnr 15 days ago. | 16:27 |
*** rohitksingh_ has quit IRC | 16:28 | |
*** rohitksingh has joined #tomu | 16:29 | |
AmosSam | I installed nextpnr yesterday, and version from git (aur package) | 16:29 |
AmosSam | Ok, builded new foboot, and it works on all three usb ports on my laptop | 16:30 |
xobs | Give "--placer heap" a try then! | 16:30 |
xobs | \o/ Hooray! | 16:30 |
AmosSam | But, in one port after dfu-util -e it deatached device but didn't run bitstream... after reflashing in same port it worked, and didn't succeded to repeat that error again... | 16:31 |
xobs | That sounds similar to the problems I experienced where one bit got transposed. | 16:32 |
AmosSam | I tested with blink example and rgbblink from mifune | 16:32 |
xobs | Okay. It sounds like the bare minimum is there, and it works a good chunk of the time. If it doesn't work, you can try it again. | 16:34 |
xobs | I'd like to try more USB ports, and I'll test every device I can get my hands on, but I'm reasonably happy with the USB stack as-is. | 16:34 |
AmosSam | > Give "--placer heap" a try then! | 16:34 |
AmosSam | With --with-pll argument for foboot-bitstream.py? Because it doesn't meet timings for 48MHz i think | 16:34 |
xobs | It's getting late here. I think I'll head to bed. | 16:35 |
xobs | AmosSam: yes, if you add "--with-pll --placer heap" it meets timing, at least on my system. | 16:35 |
xobs | Info: Max frequency for clock 'clk48_1': 49.95 MHz (PASS at 48.00 MHz) | 16:35 |
AmosSam | I'll play with it this evening, and if I have any problems I'll write them here :-D | 16:36 |
AmosSam | And --with-dsp ? | 16:36 |
xobs | I haven't tried that, but I think that right now there's nothing to infer. | 16:36 |
AmosSam | Ahaa, because I didn't removed dsp switch... and, which one is better? (Last question, I promise!) | 16:38 |
xobs | I haven't seen the pll make a difference. | 16:40 |
xobs | The dsp will become more important once it can infer the multiplier I have vexriscv. For now they don't really matter. | 16:41 |
*** xkapastel has quit IRC | 17:02 | |
mithro | xobs: I won't get a chance to test it until this afternoon at the earliest | 17:23 |
mifune | xobs: with me it has a 75% success rate, the other cases i get: dfu-util: Error during download get_status | 17:50 |
mifune | dfu-util: Error during download get_status | 17:50 |
mifune | it doesnt do that with the bitstream from xobs | 18:11 |
*** tannewt has quit IRC | 18:28 | |
*** esden has quit IRC | 18:28 | |
*** tannewt has joined #tomu | 18:28 | |
*** esden has joined #tomu | 18:29 | |
mifune | ok, bit too soon, same issues with that bitstream | 18:41 |
*** hl has quit IRC | 19:55 | |
*** hl has joined #tomu | 20:09 | |
*** xkapastel has joined #tomu | 21:29 | |
mifune | it doesn't work consistantly, but compared to the pogo pin programming method it is so fun to play with. | 21:42 |
mifune | https://twitter.com/mifune/status/1115365160758251521 | 21:42 |
mifune | and an updated rgb blink: https://github.com/pimdegroot/Fomu-rgbblink | 21:53 |
tpb | Title: GitHub - pimdegroot/Fomu-rgbblink: RGB blink code for the Fomu hacker board (at github.com) | 21:53 |
tnt | mifune: you don't happen to have a bunch of fomy you're not using btw ? :p | 21:58 |
*** TheJJ has quit IRC | 22:26 | |
*** TheJJ has joined #tomu | 22:30 | |
mithro | tnt: I have Fomu Hacker boards... | 22:30 |
tnt | mithro: but you're half a world away | 22:33 |
mithro | tnt: Were in the world are you? | 22:33 |
tnt | Belgium | 22:33 |
mithro | tnt: Easy for me to ship anywhere in the world however | 22:33 |
tnt | what I'm more worried about is customs/import ... lately they've pretty much got every package I got from outside. | 22:37 |
*** jayvee has quit IRC | 22:38 | |
*** jayvee has joined #tomu | 22:40 | |
emeb | tape it inside a birthday card? :P | 23:09 |
tnt | Yeah I guess an unmarked enveloppe would be a good bet | 23:12 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!