Open a terminal and import the image:
docker load < anduril-builder_v*.tar.xz
Get the source code of Anduril, if you don’t have it yet. You can either download an archive or use Breezy:
brz branch lp:~toykeeper/flashlight-firmware/anduril2
Then compile Anduril, adjust the path as necessary:
docker run --rm -v /tmp/flashlight-firmware:/src anduril-builder
See the README in the repository for more information.
TODO: Test with more platforms, use a container registry.
C:\Users\Charles>docker run --rm -v /652/anduril2:/src anduril-builder
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed:
unable to start container process: exec: "./build-all.sh": stat ./build-all.sh: no such file or directory: unknown.
That sounds like a problem with Windows. Does your build-all.sh script in the anduril directory have executable permission (when inside the container)?
docker run --rm -v /652/anduril2:/src --entrypoint "" anduril-builder stat build-all.sh
Is /652/anduril2 the absolute path to the flashlight-firmware directory (which contains alexvh, bin, DrJones, dthoang, …)? I don’t know how files are accessed in Windows/WSL.
It’s not, it’s the relative path to C:\Users\Charles
Now that I put the absolute path it works, thanks for pointing it out.
OK so this is fairly simple way to build Anduril on non Linux systems, with the exception of downloading the source code because the download link on Launchpad still doesn’t work (probably won’t ever at this point), I haven’t tried to install breezy but it looks overly complicated.
Edit : 3 builds failed : noctigon-k9.3-219, noctigon-k9.3-nofet and noctigon-k9.3, but maybe that’s unrelated.
Edit2 : yes they fail on Linux too.
Thank you very very much for your tutorial SammysHP.
This is my first time compiling Anduril, I have zero experience in this field, I played with Arduino in the past, maybe that helps a little bit.
I’m using Windows 10.
I’d like to share my experience on this project, a total noobie in this kind of thing, ran into some difficulties, so hopefully this helps other noobies who want to taste the adventure of compiling their own Anduril hex files.
I ran into some trouble (noobie’s habbit ) , basically I didn’t know what I was really doing . Many many years ago I played with VMware and Linux for a little bit. But now honestly I don’t know anything about this WSL thingy.
Then somehow I was brought here :
Manual installation steps for older versions of WSL
Followed the Steps and then my Docker is good.
This one’s the easiest part of this project
Thanks so much for your anduril-builder_v1.0_x86_64.tar.xz
This code didn’t work for me : docker load < anduril-builder_v1.0_x86_64.tar.xz
I even tried
docker load > anduril-builder_v1.0_x86_64.tar.xz
, I was thinking : “maybe the “<” was accidentally inverted or some kind of typo”
Did a little bit of Google search and found something like this :
docker load -i anduril-builder_v1.0_x86_64.tar.xz
This one works on my Windows 10.
I used Powershell btw, not CMD Prompt.
I don’t know whether it’ll work with CMD Prompt or not.
I downloaded the latest version (Revision 657) @ 2023-05-08
It’s not difficult at all.
Thank you so much ToyKeeper for this amazing Anduril
My result :
===== 59 builds succeeded, 3 failed =====
Similar to the freeman’s result I guess
Now I have a bunch of hex files in the folder “spaghetti-monster\anduril”.
But there’s no hex file for Wurkkos TS10?
This is because there’s no cfg and hwdef for TS10, right?
What should I do to create ts10.hex ?
Should I download another “Revision” that contains cfg and hwdef files for TS10? Which Revision?
Or getting individual cfg and hwdef files from somewhere else?
I think I’ve read somewhere in a BLF thread about specifying hex file for a particular flashlight in the compile process. I don’t remember the thread (nor the code).
I mean if we want to create 1 hex file for TS10, instead of 59 files for so many flashlights, how do we do that?