summaryrefslogtreecommitdiffstats
path: root/util/msys2_install.sh
AgeCommit message (Collapse)AuthorFilesLines
2018-12-11adjust install_avr function to use unzip for broader compatibility (#4596)Peter K. Cawley1-2/+3
On a laptop with god knows what mandatory security software (Cylance?), running up-to-date Windows 10 with msys2 mingw-64, attempting to install the AVR toolkit results in the following error: ``` 1 [main] 7z (13316) C:\msys32\usr\lib\p7zip\7z.exe: *** fatal error - cygheap base mismatch detected - 0x612A5410/0x2375410. This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside in x:\cygwin\bin, where 'x' is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL. ``` This appears to be related in some way, based on my research, to ASLR functionality in security software. Since I'm unable to override whatever is enforcing ASLR on my system, after trying several other approaches (removing other copies of msys-2.0.dll, which is what this is apparently actually referencing, rebasing that file in Windows to address 0x61000000, a few other things) I simply edited the installation shell script to use `unzip` instead of 7zip; `unzip`'s binary does not provoke a mismatch error and the installation proceeds as it should. I'm not aware of the reason why some parts of the install script use `unzip` (e.g. `install_arm`) and others use 7zip, but it seems that for broader compatibility and sparing users on locked down machines the 120 minutes or so of futzing this took me to fix, it might be better to just use `unzip` in all cases. Note: There is another function that uses 7zip, `extract_flip`. The line is `7z -oflip x FlipInstaller.exe`. I'm not sure what this is doing, or whether it's possible to do it with `unzip`, but it produces the same error. I haven't attempted to fix that in this PR, but it might be good to fix it for the same reason.
2018-11-27Update MSYS to use the 5.4.0 toolchain (#4106)Drashna Jaelre1-3/+5
2018-11-02Set the executable bit for sh scripts under util.Fredric Silberberg1-0/+0
2018-05-09Added propper support for Lets split vitamins (#2559)Mikkel Jeppesen1-1/+1
* Added support for the upcomming Lets_split vitamins included * Updated readme * Corrected header of readme * Enabled RGB * Broke everything * broke some more shit * Revert "broke some more shit" This reverts commit 6ad68e6269cc0d04c16564ce9598dfd3db1e23c1. * Revert "Broke everything" This reverts commit feeee4e40db15a726f2292b6a9406ef45c1e54a7. * Fixed USB detection, and RGB on slave * started modifying readme, to use msys2 * Added support for the upcomming Lets_split vitamins included * Updated readme * Corrected header of readme * Enabled RGB * Broke everything * broke some more shit * Revert "broke some more shit" This reverts commit 6ad68e6269cc0d04c16564ce9598dfd3db1e23c1. * Revert "Broke everything" This reverts commit feeee4e40db15a726f2292b6a9406ef45c1e54a7. * Fixed USB detection, and RGB on slave * started modifying readme, to use msys2 * Updated readme to reflect use of msys2 Added avrdude to msys path * added avrdude option to msys installer * Removed extra installation of avrdude * Renamed to vitamins_included and implemented drashnas changes * Fixed include guard * Fixed some includes, and added avrdude target to docs. * Fixed default keyboard
2018-02-28Remap msys2 usb, fix USB port detection (#2301)Danny1-0/+1
* Add AVRDUDE to MSYS2 setup * Remap detected USB port in MSYS2 to COM port
2018-01-03Update the urls for atmel toolsskullY1-2/+2
2017-07-11Add more dependencies, everything can be compiled nowFred Sundvik1-1/+1
2017-07-11Add tools to the pathFred Sundvik1-1/+23
2017-07-11Extract flipFred Sundvik1-0/+12
2017-07-11Install arm toolchainFred Sundvik1-3/+32
2017-07-11Download and extract avr toolsFred Sundvik1-2/+40
2017-07-11Use home directory for download on msys2Fred Sundvik1-1/+3
2017-07-10Install unzipFred Sundvik1-0/+4
2017-07-10Add symlinks only on WSLFred Sundvik1-1/+7
2017-07-10Initial structure for shared msys2 and wsl installationFred Sundvik1-0/+4