Linux Desktop Configuration¶
Configuring a Linux development host consists of up to four procedures:
Yocto SDK Configuration¶
Note
This assumes that your Linux desktop system has a normal set of build tools installed and tested. These will be necessary if you want to develop as much of the application as practical on the host to improve productivity.
The following script is handy for using the same Makefile
to compile
code for the Linux host or for the target. We recommend that you name this
script /usr/local/bin/sdk_make
; be sure to make it executable. Once this
is completed, you use normal make
to build for the host and sdk_make
to build for the target.
1#! /bin/sh 2SDK_HOME="/opt/reach/sdk/imx6dl-g3-sd/2.7.4" 3( . ${SDK_HOME}/environment-setup-cortexa9t2hf-neon-reach-linux-gnueabi ; make "$@" )
You will need to adjust the value of SDK_HOME
and the name of the environment
setup script to match your particular installation.
Qt Creator Configuration¶
Important
This task is not required if you are not developing a Qt based end product application. Reach Technology does not recommend Qt Creator for development for general C/C++ code or projects using other GUI technologies. There are far better and less buggy IDEs available.
Note
This assumes that your Linux desktop system has the required set of Qt libraries (along with their dependencies) and Qt Creator installed. See the Qt web site for further information.
Warning
If you use a binary Qt build, either from your desktop Linux distro packages or from the official Qt download site, be sure that:
Todo
(Todd) This is the third mother of all PITAs - screenshots definitely required…
Setup
gdb
Setup
gcc
(C)Setup
gcc
(C++)Setup
cmake
Setup
qmake
Setup kit
device
environment
Serial Port Configuration¶
Todo
(Todd) write this
Network Configuration¶
Todo
(Todd) write this
Determine the G3 module IP address.
Add the G3 module IP address to
/etc/hosts
.Adjust network IP address(es) in
/etc/exports
.Adjust firewall config as needed.