*** tpb has joined #tomu | 00:00 | |
*** futarisIRCcloud has joined #tomu | 01:08 | |
*** emeb has quit IRC | 03:06 | |
xobs | Okay, I made a release of foboot: https://github.com/im-tomu/foboot | 03:37 |
---|---|---|
tpb | Title: GitHub - im-tomu/foboot: Bootloader for Fomu (at github.com) | 03:37 |
xobs | Most of what you want to do is in the "hw" directory. Run "python foboot-bitstream.py --revision hacker" (or whatever), and it'll generate some bitstreams for you. You ought to be able to flash "build/gateware/top-multiboot.bin". | 03:37 |
*** futarisIRCcloud has quit IRC | 03:47 | |
*** futarisIRCcloud has joined #tomu | 03:49 | |
*** AmosSam has left #tomu | 04:02 | |
*** AmosSam has joined #tomu | 04:02 | |
*** futarisIRCcloud has quit IRC | 07:37 | |
*** futarisIRCcloud has joined #tomu | 08:24 | |
mifune | trying to build the bitstream. First thing i encountered is that the directory build/gateware is not created, had to do that manually | 08:25 |
xobs | mifune: That's a good point. I'll fix that, thanks! | 08:26 |
xobs | I'll move it so that that file is created after the rest of the build. | 08:28 |
xobs | Fixed that issue. | 08:31 |
mifune | xobs: generated the bitstream and flashed it to a hacker board, but i'm getting no signs of life | 09:13 |
xobs | mifune: :( | 09:13 |
xobs | There are many things that could have gone wrong. No LED at all means the CPU isn't running. | 09:14 |
xobs | Oh, wrong pin for the crystal. | 09:16 |
xobs | Try that? | 09:16 |
mifune | i see no leds | 09:17 |
xobs | I had the oscillator listed as pin F4, not F5, so there would be no clock signal at all. | 09:17 |
mifune | yep, just compared it with the working rgb blink i have. Where can i find the pin definitions? | 09:19 |
xobs | They're in foboot-bitstream.py | 09:19 |
xobs | I just pushed a change that fixes that. | 09:20 |
xobs | (so if you pull, it'll give you a fixed version) | 09:20 |
mifune | and i have blink/enumeration | 09:24 |
xobs | Yay! | 09:27 |
*** AmosSam has left #tomu | 09:43 | |
*** AmosSam has joined #tomu | 09:47 | |
xobs | Note that it doesn't [yet] protect SPI flash, so it's still possible to nuke the flash. | 10:05 |
xobs | But still, it's nice that it works with the Hacker boards! Finally, we have a bootloader. | 10:05 |
mifune | first i have to figure out how to flash anything at all, but yeah, not tearing down my pogopin/raspberry pi programmer just yet. | 10:37 |
*** futarisIRCcloud has quit IRC | 10:47 | |
xobs | mifune: To flash something, use "dfu-util -D [bitstream].bin". You can flash the blinky test that way. | 10:48 |
xobs | To actually boot it, run "dfu-util -e". That will reboot and load anything that's at offset 262144. | 10:48 |
mifune | i get an error, sometimes immediately, sometimes after it uploaded a part. The furthest i got is 8k | 11:02 |
mifune | xobs: dfu-util spits out state(10) = dfuERROR, status(14) = Something went wrong, but the device does not know what it was | 11:03 |
xobs | That's interesting, because it never sets errUNKNOWN. Does the LED change to red color at all? | 11:06 |
mifune | it goes into a faster blink and it seems to go from magenta to red | 11:07 |
xobs | That means that it's setting its own error state then. Which means it's a Foboot error and not necessarily an error with the USB PHY/MAC. | 11:08 |
xobs | mifune: it set errUNKNOWN in an earlier version, but I took that out a few days ago. | 11:16 |
*** xkapastel has joined #tomu | 11:34 | |
*** futarisIRCcloud has joined #tomu | 11:36 | |
*** AmosSam has left #tomu | 12:20 | |
*** AmosSam has joined #tomu | 12:27 | |
*** AmosSam has left #tomu | 13:13 | |
*** AmosSam has joined #tomu | 13:17 | |
*** gio has quit IRC | 13:41 | |
*** gio has joined #tomu | 13:43 | |
*** xkapastel has quit IRC | 13:44 | |
*** emeb has joined #tomu | 14:52 | |
*** futarisIRCcloud has quit IRC | 14:57 | |
*** xkapastel has joined #tomu | 15:32 | |
*** W1lkins has quit IRC | 16:54 | |
*** W1lkins has joined #tomu | 16:55 | |
*** emeb has left #tomu | 17:04 | |
*** AmosSam has left #tomu | 18:00 | |
*** AmosSam has joined #tomu | 19:14 | |
*** earthnative has quit IRC | 19:23 | |
AmosSam | xobs: i'm trying to build foboot on rpi (image from tomu repo), and first step is to build bios, for which it needs riscv64 toolchain... from what repo should I install it? | 20:41 |
AmosSam | And on rpi I only have riscv32 toolchain | 20:42 |
*** xkapastel has quit IRC | 21:41 | |
*** xkapastel has joined #tomu | 21:54 | |
AmosSam | Ok, builded foboot on laptop, and wrote generated top-multiboot, and it enumerates and led flashes slowly... | 23:02 |
AmosSam | When I buld in sw folder, and try to load resulting foboot.bin, it returns same error as mifune wrote... and led blinks faster and in red color... | 23:04 |
AmosSam | And to build bootloader, I had to comment line 593 in foboot-bitstream.py, because it won't build with it... | 23:19 |
*** futarisIRCcloud has joined #tomu | 23:32 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!