Skip to content

Commit d0e3e9d

Browse files
committed
Build firmware under Windows 10 64-bit ...
using Linux subsystem Ubuntu or git-bash
1 parent 6bb892c commit d0e3e9d

File tree

3 files changed

+532
-17
lines changed

3 files changed

+532
-17
lines changed

README.md

+49
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,55 @@ If you wish to flash from Arduino, follow step [2.c](#2c) from Windows build fir
1616

1717
The script downloads Arduino with our modifications and Rambo board support installed, unpacks it into folder PF-build-env-\<version\> on the same level, as your Prusa-Firmware folder is located, builds firmware for MK3 using that Arduino in Prusa-Firmware-build folder on the same level as Prusa-Firmware, runs secondary language support scripts. Firmware with secondary language support is generated in lang subfolder. Use firmware.hex for MK3 variant. Use firmware_\<lang\>.hex for other printers. Don't forget to follow step [2.b](#2b) first for non-MK3 printers.
1818
## Windows
19+
### If you want to use the automated `build.sh` you gonna need to install on you Windows a Linux subsystem or Git-bash
20+
21+
###Steps for Linux subsystem und Windows 10 64-bit:
22+
- follow the Microsoft guide https://docs.microsoft.com/en-us/windows/wsl/install-win10
23+
You can also use the 'prepare_winbuild.ps1' powershell script with Administrator rights
24+
- Tested versions are at this moment
25+
- Ubuntu other may different
26+
- After the installation and reboot please open your Ubuntu bash and do following steps
27+
- run command `apt-get update`
28+
- to install zip run `apt-get install zip`
29+
- add few lines at the top of `~/.bashrc` by running `sudo nano ~/.bashrc`
30+
31+
export OS="Linux"
32+
export JAVA_TOOL_OPTIONS="-Djava.net.preferIPv4Stack=true"
33+
export GPG_TTY=$(tty)
34+
35+
use `CRTL-X` to close nano and confirm to write the new entries
36+
- restart Ubuntu bash
37+
Now your Ubuntu subsystem is ready to use the automatic `build.sh` script and compile your firmware correctly
38+
39+
####Some Tips for Ubuntu
40+
- Linux is case sensetive so please don't forget to use capital letters where needed, like changing to a directory
41+
- To change the path to your Prusa-Firmware location you downloaded and unzipped
42+
- Example: You files are under `C:\Users\<your-username>\Downloads\Prusa-Firmware-MK3`
43+
- use under Ubuntu the following command `cd /mnt/c/Users/<your-username>/Downloads/Prusa-Firmware-MK3`
44+
to change to the right folder
45+
46+
####Compile Prusa-firmware with Ubuntu Linux subsystem installed
47+
- open Ubuntu bash
48+
- change to your source code folder (case sensitive)
49+
- run `./build.sh`
50+
- follow the instructions
51+
52+
###Steps for Git-bash under Windows 10 64-bit:
53+
- Download and install the 64bit Git version https://git-scm.com/download/win
54+
- Also follow these instructions https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058
55+
- Download and install 7z-zip from its official website https://www.7-zip.org/
56+
By default, it is installed under the directory /c/Program Files/7-Zip in Windows 10
57+
- Run `Git-Bash` under Administrator privilege
58+
- navigate to the directory /c/Program Files/Git/mingw64/bin
59+
- run `ln -s /c/Program Files/7-Zip/7z.exe zip.exe`
60+
61+
####Compile Prusa-firmware with Git-bash installed
62+
- open Git-bash
63+
- change to your source code folder
64+
- run `bash build.sh`
65+
- follow the instructions
66+
67+
1968
### 1. Development environment preparation
2069

2170
a. install `"Arduino Software IDE"` for your preferred operating system

0 commit comments

Comments
 (0)