README.md 1.14 KB
Newer Older
roangel's avatar
roangel committed
1
2
3
4
5
6
The repository this patch was done from is this one:
https://github.com/bitcraze/crazyflie-firmware

And the hash from the exact commit we pulled from:

f4d21213d7ce37d7ed7338fad0f9a94a96cec191
7
8
9
10
11
12
13

To apply the patch, just write the following commands:

`git clone https://github.com/bitcraze/crazyflie-firmware.git`<br>
`cd crazyflie-firmware`<br>
`git submodule init && git submodule update`<br>
`git checkout f4d21213d7ce37d7ed7338fad0f9a94a96cec191`<br>
roangel's avatar
roangel committed
14
`git apply <folder_to_D-FaLL-System_repository>/crazyflie_firmware/firmware_modifications.patch`<br>
15
16

Now the repository is ready to compile. To do it, first make sure that you have
roangel's avatar
roangel committed
17
installed the toolchain. To install it:<br>
18
19
20
21
22
23
24
25
26
`sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa`<br>
`sudo apt-get update`<br>
`sudo apt-get install libnewlib-arm-none-eabi`<br>

Then, in the `crazyflie-firmware` folder where you applied the patch, do:<br>
`make PLATFORM=CF2`

If everything is successful, you will see something like this:<br>

roangel's avatar
roangel committed
27
<img src="./../pps_wiki/pics/success_building.png" style="width: 400px;"/> <br><br>
28
29
30
31

Now the binary file cf2.bin has been created, and can be directly uploaded to
the crazyflie