Toolchain » History » Version 14
fixeria, 05/11/2019 12:44 AM
1 | 12 | fixeria | h1. Toolchain |
---|---|---|---|
2 | 1 | tsaitgaist | |
3 | 12 | fixeria | To compile the target firmware for [[OsmocomBB]] or [[SIMtrace:]], you need a GNU Toolchain for ARM. There are various pre-compiled toolchains available, but not all of them will produce working firmware. We're trying to support all these configurations, but it might take a while to identify the source of a problem. If you have persistent errors when compiling, try using a different package. |
4 | 5 | tsaitgaist | |
5 | 1 | tsaitgaist | *note:* -as of 2013-10-20, if you use a toolchain with gcc >=4.8, the firmware can be compiled, but will hang as soon as you want to sync to an ARFCN.- This issue has been "fixed":http://cgit.osmocom.org/osmocom-bb/commit/?id=a903b3c1ee27047c79728b18ff6340d23d1aad2e in master. |
6 | |||
7 | 12 | fixeria | h3. Binary distribution |
8 | 1 | tsaitgaist | |
9 | 12 | fixeria | You can use a pre-compiled toolchain provided by your GNU/Linux distribution. |
10 | 1 | tsaitgaist | |
11 | 12 | fixeria | For Debian based distributions (Ubuntu, Linux Mint, etc.), use the following command: |
12 | 1 | tsaitgaist | |
13 | 12 | fixeria | <pre> |
14 | $ sudo apt install gcc-arm-none-eabi |
||
15 | </pre> |
||
16 | 1 | tsaitgaist | |
17 | 12 | fixeria | For ArchLinux (https://www.archlinux.org/packages/community/x86_64/arm-none-eabi-gcc/): |
18 | 11 | tsaitgaist | |
19 | 12 | fixeria | <pre> |
20 | $ sudo pacman -S arm-none-eabi-gcc |
||
21 | </pre> |
||
22 | 11 | tsaitgaist | |
23 | 12 | fixeria | h3. Build one from source |
24 | 1 | tsaitgaist | |
25 | 12 | fixeria | If you want to build your own toolchain, known to be working with [[OsmocomBB]], see here: [[GnuArmToolchain]]. |
26 | 6 | tsaitgaist | |
27 | 12 | fixeria | This is the best option to get a fairly recent GCC, and this is the option used by several [[OsmocomBB]] developers. |
28 | |||
29 | 13 | fixeria | h3. Building old branches |
30 | |||
31 | 14 | fixeria | If you need to build the *firmware from old unmaintained branches* (sylvain/burst_ind, sylvain/testing, jolly/testing, etc.), an older version of toolchain is needed. |
32 | 13 | fixeria | |
33 | Please follow the build instructions at: https://github.com/axilirator/gnu-arm-installer/ |
||
34 | |||
35 | 12 | fixeria | h3. Mac OS X |
36 | 1 | tsaitgaist | |
37 | Apparently the arm-elf-gcc 4.3.2 from ports for mac os x can compile the sourcecode as well after symlinking /opt/local/bin/arm-elf-ranlib to /opt/local/bin/arm-elf-linux-ranlib and /opt/local/bin/arm-elf-strip to /opt/local/bin/arm-elf-linux-strip. |
||
38 | If you omit the links, there will be unresolvable references to symbols in the libraries. |