Sie sind auf Seite 1von 6

This document aims to provide a documentation of all actions performed from the point where the

station computer (SC) is in the box until the point where the development environment is setup.

Nomenclature:
SC: station computer, this is the embedded system which will be integrated into the asset
tracking boxes. This is the computer which will be relaying the RSSI data to the asset tracking
cloud server.
DC: development computer, this is the PC which will be used for the installation of software on
the SC and the development and monitoring of the software.

Items available:
Embest DevKit8600 computer (the SC) kit.
Outlet converter from European (Dutch) to USA format. The provided power supply only has a
connection to a USA format outlet. WhereAt is located in NL.
A serial-to-USB cable. The SC communicates via serial cable, but modern PCs dont have serial
connections.
Development computer: Windows 7 64-bit PC laptop

1. Inserted the DevKit8600 software CD-ROM and extracted and opened the user manual.
2. Install USB serial port driver
a. Provided mini-disc
b. USB-to-rs232
c. XCS-232-2303
d. Pl2303 driver for vista
3. 1 red and 2 green lights go on. Red light stays on and on green light (the one not next to the red
light) starts to pulse.
4. Connect serial cable. Serial-to-USB cable is male on the serial side. The serial cable included in
the DevKit8600 package is female-female. The SC is male. So the serial-to-USB cable is
connected to the serial cable, which is then connected to the SC.
5. Windows installs drivers
6. Remember COM port number (COM4)
7. Manual section 1.4.2 (page 16)
8. Use putty as HyperTerminal alternative
9. ConnectionSerial
a. Speed: 115200
b. Data bits: 8
c. Stop bits: 1
d. Parity: none
e. Flow control: none
10. Connect to COM port
11. It should now be connected
12. Connect power to SC
13. Putty should start outputting Cs (CCCCCC) before booting
14. After boot, login with: root
15. For LAN:
a. ifconfig eth0 up
b. udhcpc
c. ping c 3 www.google.com
16. For internet via USB:
a. Connect cable to mini USB port at SC side and normal USB at DC side
b. Putty:
i. ifconfig usb0 up
ii. ifconfig usb0 192.168.1.115
c. Installing driver:
i. In device manager, right click device, properties, Drivers tab, Update drivers
ii. Search for list of driver on PC
iii. Network adapters, Microsoft Corporation, Remote NDIS Compatible Device
d. Setting IP configuration for the device:
i. Go to Network & Sharing center
ii. Click on the Local Area Connection X link corresponding to the connection of the
RNDIS device
iii. Click Properties
iv. In the list of items, click the IPv4 item and then Properties
v. Set:
1. IP address: 192.168.1.15
2. Subnet mask: 255.255.255.0
3. Default gateway: 192.168.1.1
e. In putty:
i. ping c 3 192.168.1.15
f. In Windows command promt:
i. ping 192.168.1.115
g. It should start pinging and returning data (press Ctrl+C to stop pinging in Putty)
17. For Wifi (WLAN):
a. iwconfig does not support WPA/WPA2 encryption So wpa_supplicant must be
installed.
b. Download from: http://hostap.epitest.fi/wpa_supplicant/#download
c. In Windows cmd:
i. cd <path where pscp.exe is located>
ii. pscp source filename Embest:/home/root/wpa_supplicant.tar.gz
d. Put file on SD card (FAT32 formatted)
e. Insert SD card in SC and start SC
f. In Putty:
i. cd /media/mmcblk0p1
ii. mkdir /var/wpa_supplicant
iii. cp wpa_supplicant.tar.gz /var/wpa_supplicant/wpa_supplicant.tar.gz
iv. cd /var/wpa_supplicant
v. tar zxvf wpa_supplicant.tar.gz
vi. cd wpa_supplicant-2.1/wpa_supplicant (or appropriate version)
vii. cp defconfig .config
viii. cp r wpa_supplicant /usr/bin
g. Get config file:
i. Making the config file:
1. cd /etc
2. touch wpa_supplicant.conf
3. vi wpa_supplicant.conf
4. Commands for the text editor:
http://forum.synology.com/wiki/index.php/Basic_commands_for_the_L
inux_vi_Editor
5. Content, see:
http://hostap.epitest.fi/cgit/hostap/plain/wpa_supplicant/README
(Configuration section)
ii. Copying config file from SD card:
1. Copy file wpa_supplicant.conf from SD card to /etc
h. Copy file containing wpa_supplicant (.tar.gz file) to the computer
i. ifconfig wlan0 up
j. iwconfig wlan0 essid whereAt Cloud Access-1 key s:whereAtCloud2014
18. mkdir /usr/bin/teamviewer
19. cd /usr/bin/teamviewer
20. wget http://download.teamviewer.com/download/teamviewer_linux.tar.gz
21. tar zxvf teamviewer_linux.tar.gz
22. Installing Java
a. Download Java SE embedded to the DC from
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
b. Get JREv7 with the following options:
i. Linux ARMv7 (use uname a to be sure)
ii. headless (means no display devices/mouse/keyboard)
iii. HardFP (hardware floating point operations)
iv. client compiler
c. Unzip .gz file
d. Rename output .tar file to ejre7.tar
e. Put .tar file on SD card, together with installer sh file (installjava.sh) and init sh file
(initjre.sh)
f. Make sure init sh file links to correct JRE version (line 4)
g. Put SD card in SC
h. SD card: /media/mmcblk0p1
i. Run installjava.sh (note: SC will reboot)
23. Compiling and installing wpa_supplicant
a. Create wpa_supplicant work folder
b. Download source from http://hostap.epitest.fi/wpa_supplicant/#download and place in
work folder
c. Download latest libnl from http://www.infradead.org/~tgr/libnl/files/ and place in work
folder
d. Download latest openssl from http://www.openssl.org/source/ and place in work folder
e. Download VMWare Player
f. Download Ubuntu from http://www.trendsigma.net/vmware/ubuntu1404t.html
g. Unzip Ubuntu and add to VMWare Player
h. Share folder of wpa_supplicant source with VMWare Ubuntu
i. Install VMWare Tools on Ubuntu (can be already installed, check with df h)
1. https://help.ubuntu.com/community/VMware/Tools
2. Scroll down to VMWare-tools for Windows
3. Follow instructions
ii. Power down Ubuntu
iii. Add shared folder to Ubuntu: right click, settings Options Shared folders
iv. In Ubuntu shared folders are accessible from /mnt/hgfs (or use df h to check)
i. In Windows, copy files from DVD path /linux/tools to folder on HDD
j. Share folder with Ubuntu
k. Add DVD drive to VMWare Ubuntu
i. Make sure Ubuntu is powered down
ii. Right click Settings Add CD/DVD DriveUse physical drive, disable
connect at power on
l. Start Ubuntu
m. Follow instructions in user manual section 3.4.1 establishing operating system
development environment (this allows Ubuntu to compile wpa_supplicant for Linux
ARM), except 3.4.1.3
i. Use shared folder to access files in /linux/tools
n. Restart Ubuntu and check $PATH variable to make sure it worked
o. In Windows, copy .config file and makefile from whereAt dropbox wpa_supplicant folder
to shared wpa_supplicant folder
p. In Ubuntu, install arm gcc
i. sudo apt-get install binutils-arm-linux-gnueabi
ii. sudo apt-get install gcc-arm-linux-gnueabi
q. Copy shared wpa_supplicant folder to $HOME
i. cp vfr wpa_supplicant $HOME
ii. cd $HOME/wpa_supplicant
r. Extract the wpa_supplicant-*.tar.gz, libnl-*.tar.gz and openssl-*.tar.gz files
i. tar vfr wpa_supplicant-2.1.tar.gz
ii. tar vfr openssl-1.0.1g.tar.gz
s. cd to extracted openssl folder and install openssl
i. export ARCH=arm
ii. export CROSS_COMPILE=arm-linux-gnueabi-
iii. ./Configure --prefix=$(pwd)/../openssl linux-armv4 shared
iv. make & make install_sw
t. Copy .config file and makefile to wpa_supplicant folder inside extracted
wpa_supplicant-2.1 folder
u. cd to $HOME/wpa_supplicant/wpa_supplicant-2.1/wpa_supplicant folder
v. sudo apt-get install libssl-dev
w. make
i. strace f e file o strace.log make
x. cp wpa_supplicant /mnt/hgfs/Shared/wpa_supplicant
y. To install libnl: sudo apt-get install libnl-dev
i. Sudo password: password
ii. To install openssl: sudo apt-get install libssl-dev
z. Compile wpa_supplicant: make CC=arm-none-linux-gnueabi-gcc
aa. Download and install crosstool-ng (detailed instructions: http://crosstool-
ng.org/#using_a_released_version)
i. Download file (in Ubuntu): http://crosstool-ng.org/download/crosstool-
ng/crosstool-ng-1.19.0.tar.bz2
1. mkdir ct
2. cd ct
3. wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-
1.19.0.tar.bz2
4. tar xvf crosstool-ng-1.19.0.tar.bz2
5. cd crosstool-ng-1.19.0
ii. Run: ./configure prefix=/usr/bin/ct
1. To install missing package: sudo apt-get install <package name>
a. makeinfo: texinfo
b. GNU awk: gawk
c. GNU libtool: libtool
d. GNU automake: automake
2. For curses header error:
a. sudo apt-get install ncurses-dev
iii. Sudo to root (sudo i)
iv. cd /home/user/ct/crosstool-ng-1.19.0
v. make & make install
vi. Add installation path bin folder to PATH file, optionally edit .bashrc:
1. export PATH=$PATH:/usr/bin/ct/bin
bb. Make Linux ARM compiler using crosstool-ng:
i. Make sure you are not root anymore in the console
ii. mkdir src
iii. mkdir tools
iv. cd tools
v. ct-ng show-arm-unknown-linux-gnueabi
vi. ct-ng arm-unknown-linux-gnueabi
vii. sudo apt-get install libexpat1-dev
viii. sudo apt-get install gcj-jdk
ix. sudo apt-get install g++
x. ct-ng menuconfig
1. Operating system
a. Set Linux kernel to 3.1
2. Companion libraries
a. Set all libraries to latest versions
3. C compiler
a. Disable C++, Fortran and Java
4. Exit & save
xi. ct-ng build.6 (takes a long time 90 minutes!)
xii.
24. Installing JRE8
a. Install JRE8 on Ubuntu
i. Based on: http://www.wikihow.com/Install-Oracle-Java-JRE-on-Ubuntu-Linux
b. Download from http://www.oracle.com/technetwork/java/javase/downloads/jre8-
downloads-2133155.html and put in shared folder
i. Linux x86
c. Follow installation guide
d. Download JRE8 SE embdedded from
http://www.oracle.com/technetwork/java/embedded/downloads/javase/index.html
i. ARM
ii. Headless
iii. http://docs.oracle.com/javase/8/embedded/develop-platforms/quick-start.htm
e. Put in shared folder with Ubuntu
f. Decompress .gz file (make sure output file has .tar extension)
g. In Ubuntu: navigate to shared folder with .gz and .tar file
h. Decompress .tar file: tar xvf *.tar
i. Set EJDK path to EJDK_HOME variable: export
EJDK_HOME=/mnt/hgfs/Shared/ejre8/ejdk1.8.0 (or appropriate path)
j. cd $EJDK_HOME
k. bin/jrecreate.sh --help
l. On error JAVA_HOME not set:
i. export JAVA_HOME=/usr
ii. Check path with command: which java (remove /bin/java from path to set in
JAVA_HOME)
iii. If which java returns not data, java is not installed
m. bin/jrecreate.sh --dest /tmp/jre8 v
n. Install contents of folder /tmp/jre8 onto SC
25. Installing bluecove_arm
a. Download from
26. Android
a. cd /system/app
b. Remove unwanted apps
c. Enable wifi debug
i. su
ii. setprop service.adb.tcp.port 5555
iii. stop adbd
iv. start adbd

Das könnte Ihnen auch gefallen