Skip to content

Commit 6b6511f

Browse files
bors[bot]Xandkeeper
andcommitted
Merge #38
38: added gcc installation instructions for Ubuntu 18.04; 16.04 direction… r=therealprof a=U007D …s do not seem to work for 18.04 Co-authored-by: Brad Gibson <[email protected]>
2 parents 8f4a227 + 5fbbae2 commit 6b6511f

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
Cargo.lock
55
book
66
target
7+
**/.idea/

src/preface.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,32 @@ $ # QEMU
9898
$ sudo apt-get install qemu-system-arm
9999
```
100100

101+
#### Ubuntu 18.04
102+
103+
``` console
104+
$ # gdb-multiarch -- use `gdb-multiarch` when you wish to invoke gdb
105+
$ sudo apt-get install gdb-multiarch
106+
107+
$ # QEMU
108+
$ sudo apt-get install qemu-system-arm
109+
```
110+
101111
#### Windows
102112

103113
- [arm-none-eabi-gdb](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads).
104114
The GNU Arm Embedded Toolchain includes GDB.
105115

106116
- [QEMU](https://www.qemu.org/download/#windows)
117+
118+
## Installing a toolchain bundle from ARM (optional step) (tested on Ubuntu 18.04)
119+
- With the late 2018 switch from
120+
[GCC's linker to LLD](https://rust-embedded.github.io/blog/2018-08-2x-psa-cortex-m-breakage/) for Cortex-M
121+
microcontrollers, [gcc-arm-none-eabi][1] is no longer
122+
required. But for those wishing to use the toolchain
123+
anyway, install from [here][1] and follow the steps outlined below:
124+
``` console
125+
$ tar xvjf gcc-arm-none-eabi-8-2018-q4-major-linux.tar.bz2
126+
$ mv gcc-arm-none-eabi-<version_downloaded> <your_desired_path> # optional
127+
$ export PATH=${PATH}:<path_to_arm_none_eabi_folder>/bin # add this line to .bashrc to make persistent
128+
```
129+
[1]: https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

0 commit comments

Comments
 (0)