To develop, test and invoke Linux drivers, the HAL Library requires the tools:
JDK6 or above version;
Eclipse3.4 or above version;
ADT (for developing Android apps);
CDT (for developing ANDROIDNDK programs);
Android SDK;
Android NDK;
Cross-compiling environment;
Linux kernel source code;
Android source code;
Serial tool for debugging the Development Board: minicom;
A Installing the JDK
Download the JDK tarball and unzip it to any directory, enter "Getdit/etc/profile" on the Linux terminal to open the profile file, set the PATH environment variable "Export path=.:/ Developer/jdk6/bin: $PATH ", Reload after save". /etc/profile ".
or network online automatic installation:
"Add-apt-repository" Deb Http://archive.canonical.com/incid partner "
Apt-get Update
Apt-get Install SUN-JAVA6-JDK "
You do not need to manually configure the PATH environment variable after installation.
Two Build an Android application development environment
Download the unzip Android SDK and execute the Tools directory Android script file for online installation.
and add the Platform-tools and tools directories to the PATH environment variable.
Install and unzip Eclipse, launch Eclipse, install ADT online or offline, and create an AVD corresponding to the Android version.
Three Installing the Android NDK development environment
Download and unzip the Android NDK, run the script file Ndk-build compile the NDK program, and add the Android NDK installation directory to the PATH environment variable.
CDT is a plug-in that enables the development of both the Android application and the Android NDK program in Eclipse for developing A/C + + program. Installation is the same as ADT.
Four Installing the cross-compilation environment
The X86 architecture and ARM architecture CPUs use different instruction sets, and a cross-compiler is required to develop a program on the X86 architecture that can run on an arm architecture.
Cross compilers and related tools include many executables and resources such as a large number of shared libraries and header files, which are called cross-compilation environments.
Download online using the Codesourcery cross-compilation environment (integrated cross-compilation environment). Use the command "SH codesourcery to install file name. bin" into the visual interface for installation.
"Android Deep Exploration Volume One" reading notes two