Because installing Arduino, all the Kaleidoscope libraries and whatnot can be a bit of a pain, so I created a Docker image that assists with that. You give it a sketch directory, and it will do the rest. It can also install third-party plugins, and even flash your newly built firmware!
The tool has seen significant improvements today, and it can even help you with flashing now. I’d be thrilled if some of you could take it for a spin, and see how well (or how bad) it works.
It is a bit short on documentation and error handling, both of those will eventually improve. There should be enough documentation in there to get started though.
I just tried this. First run was confusing, as it didn’t give any output about what was going on. I was expecting to see a manual page, as described under Usage. I realized after a while that it was running docker before showing the manual.
bin/flasher Model01
When ready, hold down PROG, and press ENTER. Keep holding PROG until flashing starts...
avrdude: can't open config file "/home/jenkins/workspace/avrdude/label/debian7-x86_64/objdir/etc/avrdude.conf": No such file or directory
avrdude: error reading system wide configuration file "/home/jenkins/workspace/avrdude/label/debian7-x86_64/objdir/etc/avrdude.conf"
So far, I know AVRDUDE_CONF is probably used for this config file somehow, but I didn’t get it to work yet.
Hm, it probably works for me, because I have avrdude installed outside the container anyway, so it finds a config file. I suppose if I copy the config out, like the binary, that’ll work. I’ll push a fix in a bit.
I have it installed too. It would probably best to not rely on it though. I am also using the Fedora Arduino package, so maybe the file is in a different place for me.
Yeah, the idea was to copy the avrdude out of the container, and use it for flashing. I didn’t realize I need to copy the config file out, too. Just pushed an update that does that, and now it should work, and not rely on the host having avrdude installed at all.
Thanks a lot for trying the tool, debugging the issues, and for finding the solutions too! <3