Tuesday, 2020-01-07

*** tpb has joined #tomu00:00
*** emeb has left #tomu00:21
*** ewen has joined #tomu04:16
*** adhoc has left #tomu05:09
*** Xark has quit IRC05:19
*** Xark has joined #tomu05:24
*** ewen has quit IRC06:16
*** cedric has quit IRC06:32
*** cedric has joined #tomu06:33
*** cedric has joined #tomu06:33
*** ewen has joined #tomu07:53
*** mario_h has joined #tomu08:06
mario_hHello 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 computer08:14
xobsmario_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
xobsAn 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
tntxobs: 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 IRC08:17
xobsIf 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_hthat's what i thought, thank you08:17
ssbas 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 immediately08:19
xobsActually, I take it back.08:20
*** cedric has quit IRC08:20
xobsIf 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-L16508:21
tpbTitle: foboot/main.c at master · im-tomu/foboot · GitHub (at github.com)08:21
xobsThat does have a "nerve pinch" to prevent entry: https://github.com/im-tomu/foboot/blob/master/sw/src/main.c#L87-L10408:22
tpbTitle: foboot/main.c at master · im-tomu/foboot · GitHub (at github.com)08:22
xobsThough those aren't very well tested.08:22
xobsThe 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 #tomu08:24
*** cedric has joined #tomu08:24
mario_hthat looks great. I will have to look through it, thank you08:25
*** gio has quit IRC12:16
*** gio has joined #tomu12:30
*** cedric has quit IRC12:41
*** cedric has joined #tomu12:42
*** cedric has quit IRC12:42
*** cedric has joined #tomu12:42
*** mneasi has joined #tomu13:18
-mneasi- hey all! I am trying to upgrade tootbot but I am hitting a dfu error and idk why....13:21
mneasiMatch vendor ID from file: 120913:22
mneasiMatch product ID from file: 70b113:22
mneasiOpening DFU capable USB device...13:22
mneasiID 1209:70b113:22
mneasiRun-time device DFU version 010113:22
mneasiClaiming USB DFU Interface...13:22
mneasiSetting Alternate Setting #0 ...13:22
mneasidfu-util: Cannot set alternate interface13:22
mneasiany idea what is going on here?13:22
xobsIs it running in a VM?13:23
mneasinope - its osx13:24
xobsI don't remember any reliability issues like that with Tomu.13:25
mneasiyeah idk why is this happening - I can list the device using dfu util but I can't upload anything13:26
xobsI'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
mneasiI have High Sierra I can try and see if it will make any difference but so far I am clueless :)13:29
mneasiLinux is slightly better but also fails (with a different error tho)13:33
mneasisudo dfu-util -D toboot-boosted.dfu13:33
mneasidfu-util 0.913:33
mneasiCopyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.13:33
mneasiCopyright 2010-2016 Tormod Volden and Stefan Schmidt13:33
mneasiThis program is Free Software and has ABSOLUTELY NO WARRANTY13:33
mneasiPlease report bugs to http://sourceforge.net/p/dfu-util/tickets/13:33
tpbTitle: dfu-util / Tickets (at sourceforge.net)13:33
mneasidfu-util: Invalid DFU suffix signature13:33
mneasidfu-util: A valid DFU suffix will be required in a future dfu-util release!!!13:33
mneasiOpening DFU capable USB device...13:33
mneasiID 1209:70b113:33
mneasiRun-time device DFU version 010113:33
mneasiClaiming USB DFU Interface...13:33
mneasiSetting Alternate Setting #0 ...13:33
mneasiDetermining device status: state = dfuIDLE, status = 013:34
mneasidfuIDLE, continuing13:34
mneasiDFU mode device DFU version 010113:34
mneasiDevice returned transfer size 102413:34
mneasiCopying data from PC to DFU device13:34
mneasiDownload[==================       ]  74%        48128 bytes failed!13:34
mneasistate(10) = dfuERROR, status(8) = Cannot program memory due to received address that is out of range13:34
xobsIs this a crowdsupply Tomu?13:36
mneasiyeah - I got it there back in 201813:39
xobsWhat version does it have now?13:41
mneasiFound 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
mneasioldschool :)13:44
xobsThere wasn't anything that increased reliability...13:50
mneasiso should I simply ignore it?14:02
xobsUm.  Could you do `cat toboot-boosted.dfu`?14:04
mneasiwhat part of the file are you interested in exactly?14:09
mneasioh wait!14:10
mneasilooks ok now14:13
mneasiFound 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
xobsYay.14:13
mneasiI have made a stupid mistake in what I told wget to pull for me....14:14
xobsYeah, 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
xobsI'm surprised github doesn't detect wget and do the right thing.14:14
mneasiyeah :( and I am dumb that I didn't check14:14
xobsNot your fault!  It happens to everyone.14:14
mneasiall I did was that I checked the file is not named .html14:14
mneasiand considered it ok14:15
xobsIt did say "dfu-util: Invalid DFU suffix signature", but I'm so used to that error that I ignored it too.14:15
mneasiso it works fine (but obviously not on osx 10.15 for whatever reason)14:15
mneasinot a big deal tho14:15
mneasithanks for help!14:17
*** rohitksingh has joined #tomu14:22
*** cdmatter has quit IRC15:00
*** rohitksingh has quit IRC15:01
*** cdmatter has joined #tomu15:01
*** mneasi has quit IRC15:11
*** cedric has quit IRC15:29
*** cedric has joined #tomu15:30
*** cedric has joined #tomu15:30
*** emeb has joined #tomu15:36
*** im-tomu has left #tomu21:47
*** im-tomu has joined #tomu21:47
*** dos1 has quit IRC21:49
*** dos11 has joined #tomu21:49
*** vesim has quit IRC21:49
*** vesim has joined #tomu21:50
*** mario_h has quit IRC21:53
*** dos11 is now known as dos121:55

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