forked from SonicPotions/LXR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
linux_build_guide.txt
52 lines (27 loc) · 1.59 KB
/
linux_build_guide.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
This file gives a short overview of the required compiler packages to build the LXR sourcecode on linux with the included makefiles. You will need the ARM GCC compiler and the AVR GCC compiler as well as the AVR libc.
GNU Tools for ARM Embedded Processors
-------------------------------------
https://launchpad.net/gcc-arm-embedded
For Ubuntu 10.04/12.04/13.04 32/64-bit user, PPA is available at https://launchpad.net/~terry.guo/+archive/gcc-arm-embedded.
otherwise you can download the 32bit binaries here
https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update/+download/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2
--- Installing the ARM GCC binaries ----
download the binary package:
wget https://launchpad.net/gcc-arm-embedded/4.8/4.8-2014-q1-update/+download/gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2
extract it:
tar xvjf gcc-arm-none-eabi-4_8-2014q1-20140314-linux.tar.bz2
move it to /opt/ARM:
sudo mv gcc-arm-none-eabi-4_8-2014q1 /opt/ARM
include it permanently in your PATH variable
echo "PATH=$PATH:/opt/ARM/bin" >> ~/.bashrc
IMPORTANT!
for x64 systems you have to install the 32-bit version of libc6 or you will get an 'arm-none-eabi-gcc: not found' error:
sudo apt-get install libc6-dev-i386
AVR GCC
--------------------------------------
sudo apt-get install gcc-avr avr-libc
Now you should be ready to go.
to build the firmware, go to the LXR folder containing this file and type:
make firmware
you should now find a new FIRMWARE.BIN file in the 'firmware image' subfolder
Thanks a lot to Patrick Dowling and Andrew Shakinovsky for their code contributions!