To configure the Laird Connectivity Linux development environment, you'll need the following:
Laird Connectivity makes available various source libraries via Github at https://github.com/lairdcp. To download source files, you'll need to register an account with Github. Get started at https://github.com/join.
Ubuntu Linux 16.04 64-bit
Laird Connectivity recommends Ubuntu 16.04 64-bit as the base operating system for your development. All instructions in this reference guide assume a developer on an Ubuntu 16.04 64-bit system. If using other than Ubuntu 16.04 64-bit, please ensure you Linux distribution is a 64-bit variant as the cross-compiling toolchain requires a 64-bit Linux environment..
Github and SSH
Laird Connectivity makes extensive use of GitHub for development and storage of our board support packages.
To register a GitHub account, visit https://github.com/join.
Once you've registered an account at GitHub, you'll need to configure your SSH keys. Laird Connectivity utilizes SSH authentication for access to our GitHub repositories. If you haven't configured SSH on your development PC, follow the instructions below.
- Verify if your private and public keys exist:
- If they do not exist, generate them with the following command:
Accept default file path and enter no passphrase, and continue.
- View your public key with the following command:
$ cat ~/.ssh/id_rsa.pub
Laird Connectivity delivers our Linux board support package using Git repositories. If you haven't set up Git, you can use the shell commands below to enable Git for use with GitHub.
Laird Connectivityuses the Repo tool from the Android project to pull down and correctly lay out the Git repositories that comprise the Laird Connectivity Linux board support package. To install Repo, issue the following shell command:
$ sudo apt install repo
More information is available from the Android source documentation.