aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-03-04 10:19:00 -0500
committerJack Humbert <jack.humb@gmail.com>2016-03-04 10:19:00 -0500
commit3f7180a73ec3d4f75d39f7122078c9b892032885 (patch)
tree14c2cfd8157df1515993d4c018f4657d83805945
parentcc46f6984392b4b9c427970ca7299336cadb15c1 (diff)
parent140a311e652829cb8c774d3d3bb4acdb7c9f9954 (diff)
downloadqmk_firmware-3f7180a73ec3d4f75d39f7122078c9b892032885.tar.gz
qmk_firmware-3f7180a73ec3d4f75d39f7122078c9b892032885.zip
Merge pull request #170 from NoahAndrews/improve-windows-docs
Add scripts for easy Windows environment setup
-rw-r--r--1-setup-path-win.bat9
-rw-r--r--2-setup-environment-win.bat41
-rw-r--r--keyboard/planck/PCB_GUIDE.md9
3 files changed, 55 insertions, 4 deletions
diff --git a/1-setup-path-win.bat b/1-setup-path-win.bat
new file mode 100644
index 000000000..49fb00e14
--- /dev/null
+++ b/1-setup-path-win.bat
@@ -0,0 +1,9 @@
1@echo off
2setx /M path "%PATH%;C:\MinGW\bin;C:\MinGW\msys\1.0\bin" > nul 2>&1
3if NOT ["%errorlevel%"]==["0"] (
4 echo FAILED. Rerun with administrator privileges.
5 pause
6) else (
7 echo Success!
8 pause
9)
diff --git a/2-setup-environment-win.bat b/2-setup-environment-win.bat
new file mode 100644
index 000000000..91b6c91e3
--- /dev/null
+++ b/2-setup-environment-win.bat
@@ -0,0 +1,41 @@
1@echo off
2setx /M test test > nul 2>&1
3if NOT ["%errorlevel%"]==["0"] (
4 echo FAILED. Rerun with administrator privileges.
5 pause
6 exit
7)
8
9echo ------------------------------------------
10echo Installing wget and unzip
11echo ------------------------------------------
12mingw-get install msys-wget-bin msys-unzip-bin
13cd \MinGW\bin
14
15mkdir temp
16cd temp
17echo ------------------------------------------
18echo Installing dfu-programmer.
19echo ------------------------------------------
20wget http://iweb.dl.sourceforge.net/project/dfu-programmer/dfu-programmer/0.7.2/dfu-programmer-win-0.7.2.zip
21unzip dfu-programmer-win-0.7.2.zip
22copy dfu-programmer.exe ..
23
24echo ------------------------------------------
25echo Downloading driver
26echo ------------------------------------------
27wget http://iweb.dl.sourceforge.net/project/libusb-win32/libusb-win32-releases/1.2.6.0/libusb-win32-bin-1.2.6.0.zip
28unzip libusb-win32-bin-1.2.6.0.zip
29cp libusb-win32-bin-1.2.6.0\bin\x86\libusb0_x86.dll ../libusb0.dll
30
31echo ------------------------------------------
32echo Installing driver. Accept prompt.
33echo ------------------------------------------
34pnputil -i -a dfu-prog-usb-1.2.2\atmel_usb_dfu.inf
35
36cd ..
37rm -rf temp
38
39echo ------------------------------------------
40echo Finished!
41pause \ No newline at end of file
diff --git a/keyboard/planck/PCB_GUIDE.md b/keyboard/planck/PCB_GUIDE.md
index 28e8a4b08..b36d8fb64 100644
--- a/keyboard/planck/PCB_GUIDE.md
+++ b/keyboard/planck/PCB_GUIDE.md
@@ -3,10 +3,11 @@
3## Setting up the environment 3## Setting up the environment
4 4
5### Windows 5### Windows
6 61. Install [MHV AVR Tools](https://infernoembedded.com/sites/default/files/project/MHV_AVR_Tools_20131101.exe). Disable smatch, but **be sure to leave the option to add the tools to the PATH checked**.
71. Install [WinAVR Tools](http://sourceforge.net/projects/winavr/) for AVR GCC compiler. 72. Install [MinGW](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download). During installation, uncheck the option to install a graphical user interface. **DO NOT change the default installation folder.** The scripts depend on the default location.
82. Install [DFU-Programmer][dfu-prog] (the -win one). 83. Clone this repository. [This link will download it as a zip file, which you'll need to extract.](https://github.com/jackhumbert/qmk_firmware/archive/master.zip) Open the extracted folder in Windows Explorer.
93. Start DFU bootloader on the chip first time you will see 'Found New Hardware Wizard' to install driver. If you install device driver properly you can find chip name like 'ATmega32U4' under 'LibUSB-Win32 Devices' tree on 'Device Manager'. If not you will need to update its driver on 'Device Manager' to the `dfu-programmer` driver. 94. Right-click on the 1-setup-path-win batch script, select "Run as administrator", and accept the User Account Control prompt. Press the spacebar to dismiss the success message in the command prompt that pops up.
105. Right-click on the 2-setup-environment-win batch script, select "Run as administrator", and accept the User Account Control prompt. This part may take a couple of minutes, and you'll need to approve a driver installation, but once it finishes, your environment is complete!
10 11
11 12
12### Mac 13### Mac