| *** tpb has joined #tomu | 00:00 | |
| *** emeb has left #tomu | 00:21 | |
| *** ewen has joined #tomu | 04:16 | |
| *** adhoc has left #tomu | 05:09 | |
| *** Xark has quit IRC | 05:19 | |
| *** Xark has joined #tomu | 05:24 | |
| *** ewen has quit IRC | 06:16 | |
| *** cedric has quit IRC | 06:32 | |
| *** cedric has joined #tomu | 06:33 | |
| *** cedric has joined #tomu | 06:33 | |
| *** ewen has joined #tomu | 07:53 | |
| *** mario_h has joined #tomu | 08:06 | |
| mario_h | Hello folks, I was wondering if there is any possibility to flash my fomu persistently with the dfu-util or any other utility that does not require additional hardware? Was thinking if I could use the fomu as a co-processor for any other microcontroller, but this would require me to be able to programm it first on my computer | 08:14 |
|---|---|---|
| xobs | mario_h: We don't yet have a way to permanently load firmware, because that's essentially asking to brick the device. You'd need a way to get back into the bootloader. | 08:16 |
| xobs | An easy way to do it might be to create a udev rule that runs `dfu-util -e` to automatically run the current program on there. | 08:17 |
| tnt | xobs: well there is a way to update the bootloader, so there has to be a way to load a firmware permanently. | 08:17 |
| *** ewen has quit IRC | 08:17 | |
| xobs | If you're feeling adventurous, you could always copy the "booster" program from the foboot repository, which is used to update the bootloader. | 08:17 |
| mario_h | that's what i thought, thank you | 08:17 |
| ssb | as a middle ground one could patch the bootloader to check one of the pads on startup, and if it, say, pulled to the ground, then load user bitstream immediately | 08:19 |
| xobs | Actually, I take it back. | 08:20 |
| *** cedric has quit IRC | 08:20 | |
| xobs | If you put something on SPI flash at 0x1a000 with the magic number `0x032bd37d` it'll jump to that RISC-V program: https://github.com/im-tomu/foboot/blob/master/sw/src/main.c#L154-L165 | 08:21 |
| tpb | Title: foboot/main.c at master · im-tomu/foboot · GitHub (at github.com) | 08:21 |
| xobs | That does have a "nerve pinch" to prevent entry: https://github.com/im-tomu/foboot/blob/master/sw/src/main.c#L87-L104 | 08:22 |
| tpb | Title: foboot/main.c at master · im-tomu/foboot · GitHub (at github.com) | 08:22 |
| xobs | Though those aren't very well tested. | 08:22 |
| xobs | The idea being we'd create a "main" bootloader that would support auto-booting and MSC config, and have the program live at 0x1a000. | 08:23 |
| *** cedric has joined #tomu | 08:24 | |
| *** cedric has joined #tomu | 08:24 | |
| mario_h | that looks great. I will have to look through it, thank you | 08:25 |
| *** gio has quit IRC | 12:16 | |
| *** gio has joined #tomu | 12:30 | |
| *** cedric has quit IRC | 12:41 | |
| *** cedric has joined #tomu | 12:42 | |
| *** cedric has quit IRC | 12:42 | |
| *** cedric has joined #tomu | 12:42 | |
| *** mneasi has joined #tomu | 13:18 | |
| -mneasi- hey all! I am trying to upgrade tootbot but I am hitting a dfu error and idk why.... | 13:21 | |
| mneasi | Match vendor ID from file: 1209 | 13:22 |
| mneasi | Match product ID from file: 70b1 | 13:22 |
| mneasi | Opening DFU capable USB device... | 13:22 |
| mneasi | ID 1209:70b1 | 13:22 |
| mneasi | Run-time device DFU version 0101 | 13:22 |
| mneasi | Claiming USB DFU Interface... | 13:22 |
| mneasi | Setting Alternate Setting #0 ... | 13:22 |
| mneasi | dfu-util: Cannot set alternate interface | 13:22 |
| mneasi | any idea what is going on here? | 13:22 |
| xobs | Is it running in a VM? | 13:23 |
| mneasi | nope - its osx | 13:24 |
| xobs | I don't remember any reliability issues like that with Tomu. | 13:25 |
| mneasi | yeah idk why is this happening - I can list the device using dfu util but I can't upload anything | 13:26 |
| xobs | I'm inclined to think it's a Catalina issue, maybe something having to do with the file being quarrantined? But I don't know. | 13:27 |
| mneasi | I have High Sierra I can try and see if it will make any difference but so far I am clueless :) | 13:29 |
| mneasi | Linux is slightly better but also fails (with a different error tho) | 13:33 |
| mneasi | sudo dfu-util -D toboot-boosted.dfu | 13:33 |
| mneasi | dfu-util 0.9 | 13:33 |
| mneasi | Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc. | 13:33 |
| mneasi | Copyright 2010-2016 Tormod Volden and Stefan Schmidt | 13:33 |
| mneasi | This program is Free Software and has ABSOLUTELY NO WARRANTY | 13:33 |
| mneasi | Please report bugs to http://sourceforge.net/p/dfu-util/tickets/ | 13:33 |
| tpb | Title: dfu-util / Tickets (at sourceforge.net) | 13:33 |
| mneasi | dfu-util: Invalid DFU suffix signature | 13:33 |
| mneasi | dfu-util: A valid DFU suffix will be required in a future dfu-util release!!! | 13:33 |
| mneasi | Opening DFU capable USB device... | 13:33 |
| mneasi | ID 1209:70b1 | 13:33 |
| mneasi | Run-time device DFU version 0101 | 13:33 |
| mneasi | Claiming USB DFU Interface... | 13:33 |
| mneasi | Setting Alternate Setting #0 ... | 13:33 |
| mneasi | Determining device status: state = dfuIDLE, status = 0 | 13:34 |
| mneasi | dfuIDLE, continuing | 13:34 |
| mneasi | DFU mode device DFU version 0101 | 13:34 |
| mneasi | Device returned transfer size 1024 | 13:34 |
| mneasi | Copying data from PC to DFU device | 13:34 |
| mneasi | Download[================== ] 74% 48128 bytes failed! | 13:34 |
| mneasi | state(10) = dfuERROR, status(8) = Cannot program memory due to received address that is out of range | 13:34 |
| xobs | Is this a crowdsupply Tomu? | 13:36 |
| mneasi | yeah - I got it there back in 2018 | 13:39 |
| xobs | What version does it have now? | 13:41 |
| mneasi | Found DFU: [1209:70b1] ver=0101, devnum=5, cfg=1, intf=0, path="2-2.2", alt=0, name="Tomu Bootloader v2.0-rc4", serial="UNKNOWN" | 13:42 |
| mneasi | oldschool :) | 13:44 |
| xobs | There wasn't anything that increased reliability... | 13:50 |
| mneasi | so should I simply ignore it? | 14:02 |
| xobs | Um. Could you do `cat toboot-boosted.dfu`? | 14:04 |
| mneasi | what part of the file are you interested in exactly? | 14:09 |
| mneasi | oh wait! | 14:10 |
| mneasi | looks ok now | 14:13 |
| mneasi | Found DFU: [1209:70b1] ver=0101, devnum=16, cfg=1, intf=0, path="2-2.2", alt=0, name="Tomu Bootloader (1) v2.0-rc7", serial="UNKNOWN" | 14:13 |
| xobs | Yay. | 14:13 |
| mneasi | I have made a stupid mistake in what I told wget to pull for me.... | 14:14 |
| xobs | Yeah, that happens a surprising amount of time. I know mithro added a check for HTML in his litex uploader for that very reason. | 14:14 |
| xobs | I'm surprised github doesn't detect wget and do the right thing. | 14:14 |
| mneasi | yeah :( and I am dumb that I didn't check | 14:14 |
| xobs | Not your fault! It happens to everyone. | 14:14 |
| mneasi | all I did was that I checked the file is not named .html | 14:14 |
| mneasi | and considered it ok | 14:15 |
| xobs | It did say "dfu-util: Invalid DFU suffix signature", but I'm so used to that error that I ignored it too. | 14:15 |
| mneasi | so it works fine (but obviously not on osx 10.15 for whatever reason) | 14:15 |
| mneasi | not a big deal tho | 14:15 |
| mneasi | thanks for help! | 14:17 |
| *** rohitksingh has joined #tomu | 14:22 | |
| *** cdmatter has quit IRC | 15:00 | |
| *** rohitksingh has quit IRC | 15:01 | |
| *** cdmatter has joined #tomu | 15:01 | |
| *** mneasi has quit IRC | 15:11 | |
| *** cedric has quit IRC | 15:29 | |
| *** cedric has joined #tomu | 15:30 | |
| *** cedric has joined #tomu | 15:30 | |
| *** emeb has joined #tomu | 15:36 | |
| *** im-tomu has left #tomu | 21:47 | |
| *** im-tomu has joined #tomu | 21:47 | |
| *** dos1 has quit IRC | 21:49 | |
| *** dos11 has joined #tomu | 21:49 | |
| *** vesim has quit IRC | 21:49 | |
| *** vesim has joined #tomu | 21:50 | |
| *** mario_h has quit IRC | 21:53 | |
| *** dos11 is now known as dos1 | 21:55 | |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!