-
Notifications
You must be signed in to change notification settings - Fork 0
Setup Instructions for Windows
-
Download the latest version of Python from Python.org.
-
Run the installer, and check
Add Python 3.6 to PATH
before you proceed.
Download Standard Driver
from Prolific, and install it.
-
Download the toolchain from Arm (the first link should be fine).
-
Run the installer.
-
Check
Add path to environment variable
on the last screen.
-
Download and install from http://gnuwin32.sourceforge.net
-
Add
make
to yourPath
- Open
Control Panel
>System
>Advanced system settings
>Environment Variables
(Or Search forEnvironment variables
) - Click on
Path
, then clickEdit...
- Browse for GnuWin32 folder. It should be
C:\Program Files (x86)\GnuWin32\bin
. - Click
OK
https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
-
Restart your computer one time after finished installing tools.
-
Open
Command Prompt
-
Type
python --version
. You should seePython 3.6.x
. Then runpip install pyserial xmodem
-
Type
arm-none-eabi-gcc --version
. You should see
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 7-2017-q4-major) 7.2.1 20170904 (release) [ARM/embedded-7-branch revision 255204]
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
Type
make --version
. You should seeGNU Make 3.81 ...
. -
You should be able to compile kernel and send it to your RPi using
rpi-install.py
by now.
You need to know the correct path for your USB serial cable. Just open Device Manager
and look under Ports
. It will be COMx where x is a number.
Now go to rpi-xboot
directory using Git Bash
or something similar due to GNU Make
doesn't work well with Command Prompt
.
-
Run
make
to buildbootloader.img
anduart.img
. -
Run
python rpi-install.py \\\\.\\COMx uart.img && putty -serial COMx -sercfg 115200,8,n,1,N
Note: If you are using
Command Prompt
instead ofGit Bash
, you need to remove extra backslashes, so it will be\\.\COMx
If this command doesn't work, you can run python rpi-install.py \\\\.\\COMx uart.img
. After that, just open PuTTY and follow the instructions here.
You need an extra step to modify the Makefile to be compatible with Windows.
Modify $(BUILD):
section at line 112:
// before
mkdir $@
// after
cmd /E:ON /C if not exist $@ mkdir $(subst /,\,$@)
After this, you can run make loader
and get the kernel7.img
to send to your RPi. 🎉
-
Follow the instruction here https://yichaoou.github.io/tutorials/software/2016/06/28/git-bash-install-gcc , and also install
msys-gcc (bin)
-
Add
C:\MinGW\bin
andC:\MinGW\msys\1.0\bin
to Environment Variables -
Get new
Makefile
andusys.S
from https://gist.github.com/idewz/2c6020d6e936cc01769958888bf9d958