Embest SBC8118 Owner's manual

SBC8118
Integrated with SATA、SD、USB、RS485、Ethernet、LCD、CCD/COMS、PRU SUART、JTAG
interface based on 32-bit microcontroller AM1808 industrial-grade single board computer
Quick User Manual

2 / 38
Copyright
SBC8118, CAM8000-A, CAM8000-D, GPRS8000-S, GPS8000-S, WCDMA8000-U,
CDMA8000-U, WF8000-U, CAM8100-U, VGA8000 are authorized by Embest
Technology Co., Ltd.
AM1808 are authorized by TI.
Sourcery G++ Lite for ARM GNU/Linux is authorized by Codesourcery.
Microsoft, MS-DOS, Windows, Windows95, Windows98, Windows2000 and Windows
embedded CE 6.0 are authorized by Microsoft.
Important statements
Embest has ownership and rights to the use of this Document.
Information in the Document is within the protection of copyright. Unless specifically
allowed, any part of this Document should not be modified, issued or copied in any manner
or form without prior written approval of Embest

3 / 38
Version update records:
Version
Date
Description
1.0
2012.9.1
Original version

4 / 38
Contact:
If you want to order products from Embest, please contact Marketing Department:
Tel: +86-755-25635626-863/865/866/867/868
Fax: +86-755-25635626-666
E-mail: market@embedinfo.com
If you want to get technical assistance from Embest, please contact Technical Assistance
Department:
Tel: +86-755-25635626-872/875/897
E-mail: support@embedinfo.com
URL: http://www.armkits.com or http://www.embest-tech.com
Address: Tower B 4/F, Shanshui Building, Nanshan Yungu Innovation Industry Park, Liuxian Ave.
No. 1183, Taoyuan St., Nanshan District, Shenzhen, China (518055)

5 / 38
Contents
Chapter 1 Overview.......................................................................................................................... 6
1.1 Getting Started Quickly....................................................................................................... 7
1.2 Development Kit Content.................................................................................................... 8
Chapter 2 Quick Setup of Development Environment..................................................................... 9
2.1 Hardware Setup.................................................................................................................. 9
2.2 Software Setup.................................................................................................................. 10
2.2.1 Windows XP Setup................................................................................................. 10
Chapter 3 Hands-on and Quick use of Operating System ............................................................ 13
3.1 Quick Start up with Linux system...................................................................................... 13
3.1.1 Boot-up from Serial port ......................................................................................... 13
3.1.2 Update images from Ethernet................................................................................. 15
3.2 Quick Start up with WinCE system................................................................................... 19
3.2.1 Flashing EBOOT to SPI Flash................................................................................ 19
3.2.2 Flashing EBOOT to NAND Flash ........................................................................... 21
3.2.3 Update TF Card NK runtime images...................................................................... 22
3.2.4 Flashing NK.bin to NAND flash.............................................................................. 30
Technical support & Warranty Service........................................................................................... 35
Technical support service........................................................................................................ 35
Maintenance service clause.................................................................................................... 36
Basic notice to protect and maintenance LCD ....................................................................... 37
Value Added Services............................................................................................................. 37

6 / 38
Chapter 1 Overview
The primary purpose of this Document is to quickly understand the hardware and software
development environment for SBC8118 single board computer, and help the user to get into the
product development faster.
1) This Document mainly has the following sections:
a) How to use documents and CD data quickly
b) Single board computer hardware components and suite configuration
c) Single board computer hardware and software default configurations
d) Quick setup of the development environment
e) Hands-on and quick use of Linux/wince operating systems
2) Factory default configuration of SBC8118 single board computer
a) Hardware Configuration: no RTC cell (Cell: ML2032)
b) Software factory default parameters
SBC8118 single board computer preferably boots from serial port, NAND Flash and
SPI Flash, and support update image via TF card, net port
NAND Flash is installed by default with linux2.6.33 operating system and 4.3-inch
screen driver
3) List of option add-on modules for SBC8118 single board computer:
Modules
Linux
WinCE
Notes
WF8000-U
NO
YES#
Provided with CD-ROM
Separately
CAM8000-A
YES*
YES*
Provided with CD-ROM on
Development board
CDMA8000-U
NO
YES#
Download here
WCDMA8000-U
NO
YES#
Download here
Table 1-1
* = Provided with Source Code # = Not Provided with Source Code

7 / 38
1.1 Getting Started Quickly
In this section user will learn how to understand and use SBC8118 single board computer
efficiently and faster using SBC8118 single board computer Quick User Manual. For more
information please refer to the document and location listed below:
For hardware development:
Hardware
system
Introduce CPU, expanded chip
and hardware interface
User Manual->Chapter 2 Hardware
System
CPU
Datasheet
Know principle and
configuration
CD->\HW design\datasheet\CPU\
Schematic
diagram
Know hardware principle
CD->\HW design\schematic
Dimensional
drawing
Refer to the actual dimension to
bring convenience for opening
die
User Manual->Appendix->
Appendix I Hardware Dimensions
Table 1-2
For software development:
Establish
testing
environment
To connect with external
hardware devices, set serial
port terminals and boots the
system
Quick Operation Manual->2 Quick
establishment of development
environment 3
Handover and quick use of
operating system
Test
functionality of
interface
Test the interface of the board
carrier through the operating
system
User Manual ->3.8.2 Various Tests
scenario
Establish
developing and
compilation
environment
Linux developing and
compilation environment
User Manual -> 3.4.1 Establishing
operating system development
environment
WinCE developing and
compilation environment
User Manual->4.4.1 Installation of
IDE
4.4.2 Extract BSP and
project files to IDE
Recompile
system image
Recompile Linux system image
User Manual->3.4.2 System
Compilation
Recompile WinCE system
image
User Manual->4.4.3 Sysgen & Build
BSP
Software
development
Refer to introduction of Linux
application development
process
User Manual->3.7 The Development
Of Application

8 / 38
Refer to introduction of WinCE
driver and related driver
development process
User Manual -> 4.4.4 Source code
path of all drivers in BSP:
Table 1-3
For Marketing:
Hardware
system
CPU feature, board carrier
interface data
User Manual->Chapter 2 Hardware
System
About Linux /
WinCE
software
Know basic Linux software
components and features, and
purpose of compilation tool
User Manual->3.2 Software
Resources
3.3 Software Features
Know basic WinCE software
components and features, and
purpose of compilation tool
User Manual->4.2 Software
Resources 4.3 Software Features
Dimensional
drawing
Refer to the actual dimension
to bring convenience for
opening die
User Manual->Appendix-> Appendix
I Hardware Dimensions
Table 1-4
For learning personnel:
It is suggested to browse all the sections in each chapter of this Manual..
1.2 Development Kit Content
SBC8118 single board computer is available in two bundles; Standard and Full bundle, the kit
contents for each bundle is given below:
Standard Bundle
SBC8118 single board computer
Serial port line (DB9-DB9)
5V@2A power adapter
Full Bundle
Standard bundle of SBC8118 single board computer
4.3-inch LCD display screen or 7-inch display screen (with touch screen)
DVD/CD Contains:
SBC8118 Quick Operation Manual
SBC8118 User Manual
Schematic Diagram, Board Carrier Chip Datasheet
Development Kit Software (Linux/WinCE)

9 / 38
Chapter 2 Quick Setup of Development
Environment
2.1 Hardware Setup
Figure 2-1
Please follow the below steps for hardware setup:
1) Connect serial port for communication
Use serial cable to connect the debugger serial port, PC serial port and SBC8118 serial port.
2) Connect TFT-LCD
Connect your 4.3-inch/7-inch TFT-LCD to the TFT-LCD interface.
Notice:When connect 50-pin FPC cable of LCD to the board, please pay attention to the blue side
up, do not plug partial, and not hot-pluggable, so as not to damage the board.
3) Connect Ethernet cable
Connect the Ethernet cable to the position 3 as shown in above Figure 2-1.
4) Connect the 12V power adapter to the single board computer
1
2
3
4

10 / 38
2.2 Software Setup
2.2.1 Windows XP Setup
1) Setup Linux boot tool
Install Linux boot tool [AISgen_d800k006_Install_v1.7.exe], location on CD:
CDROM\Linux\tools\, select the default configuration to install.
2) Setup WinCE component
Install WinCE boot tool [dotNetFx40_Full_x86_x64.exe], location on CD:
CDROM\WINCE600\tools\, select the default configuration to install.
3) Setup a HyperTerminal on PC
Before SBC8118 board boot-up, you need to setup a HyperTerminal connection on PC; follow the
below steps in order to setup a Hyper Terminal connection:
a) Windows XP -> Start -> All Programs -> Accessories -> Communication -> Hyper
Terminal:
Figure 2-2

11 / 38
b) Establish HyperTerminal connection and give commands:
Figure 2-3
c) Select the specific serial port from the list as per your computer COM port configuration:
Figure 2-4

12 / 38
d) Set parameters for serial port connection as below:
Figure 2-5
e) So we have successfully established a Hyper Terminal connection with PC serial port:
Figure 2-6

13 / 38
Chapter 3 Hands-on and Quick use of
Operating System
SBC8118 single board computer supports two operating systems, Linux 2.6.33 and WinCE6.0.
This chapter will introduces the method of switching between Linux and WinCE operating system.
3.1 Quick Start up with Linux system
SBC8118 single board computer by default comes with Linux + 4.3-inch screen display installed in
NAND Flash. It will boot directly once it’s powered on or reset, and to enter into the Linux system
you just need to enter “root”.
Please make sure the switch [S3] settings are selected as below:
Switch S3-1 to ON position, the other bits code of S3 switch to OFF position.
Figure 3-1 Boot-up from NAND Flash
At the factory, the UBOOT is programmed into the SPI Flash too, if you want to boot from SPI
Flash, simply set the switch S3 state as follows:
Figure 3-2 Boot-up from SPI Flash
Notice: If you purchased a 7-inch screen, you need to modify the UBOOT parameters, specific
methods please refer to the SBC8118 user manual section 3.8.1
3.1.1 Boot-up from Serial port
1) After the setup of hardware, make sure the switch [S3] settings are selected as below:
Switch S3-3 and S3-4 to ON position, rest switches are on OFF position.

14 / 38
Figure 3-3 Boot-up from Serial port
2) Open the AISgen_d800k006_Install_v1.7.exe:
Windows XP -> Start -> All Programs -> Texas Instruments -> AISgen for D800K006 ->
UART Boot Host
Add u-boot-uart-ais.bin [Directory: CD\linux\image\] to the “AIS-File”, and change COM
port if required, as shown in the following figure:
Figure 3-4
3) Click the “Start” and power on the single board computer to boot-up from serial port.
4) Wait for moment, the target window will display “(Serial Port): Closing COM1.”, close the tool
and open the Hyperterminal to catch the serial port information.
User should open Hyperterminal and Input any key to enter U-BOOT
prompts in three seconds, or else U-BOOT will load default parameter.
B

15 / 38
3.1.2 Update images from Ethernet
SBC8118 board can update images through Ethernet, insert TF card to update images with u-boot
prompts, this section show to update image using Ethernet.
Let’s assign the below IP’s for the PC and the single board computer:
PC: 192.192.192.154
Single board computer: 192.192.192.215
1) PC TFTP service
a) As shown in the following Figure, launch the tftpd32.exe from the CD under the folder
CD\linux\tools, and click “Browse” to set the sharing space:
Figure 3-5 tftpd32 tool
b) Copy u-boot-nand-ais.bin, u-boot-spi-ais.bin, uImage, rootfs.img from the CD under the
folder CD\linux\image\ to the folder d:\SBC8118.
2) On U-BOOT prompts input the commands as below:
a) Set the environment with “ipaddr”and “serverip”:
U-Boot > setenv ipaddr 192.192.192.215
U-Boot > setenv serverip 192.192.192.154
b) Erase the NAND Flash
U-Boot > nand erase

16 / 38
NAND erase: device 0 whole chip
Skipping bad block at 0x0ff80000
Skipping bad block at 0x0ffa0000
Skipping bad block at 0x0ffc0000
Skipping bad block at 0x0ffe0000
OK
c) Write U-BOOT to NAND Flash
U-Boot > nand erase 0x20000 0xa0000
NAND erase: device 0 offset 0x20000, size 0xc0000
Erasing at 0xc0000 -- 100% complete.
OK
U-Boot > nandecc hw
HW ECC selected
U-Boot > tftp 0xc0700000 u-boot-nand-ais.bin;nand write.i 0xc0700000 0x20000
${filesize}
Using device
TFTP from server 192.192.192.154; our IP address is 192.192.192.215
Filename 'u-boot-nand-ais.bin'.
Load address: 0xc0700000
Loading: ###############
done
Bytes transferred = 210860 (337ac hex)
NAND write: device 0 offset 0x20000, size 0x337ac
210944 bytes written: OK
U-Boot > nandecc sw
SW ECC selected
d) Write U-BOOT to SPI Flash
U-Boot > sf probe 0
1024 KiB SST25VF080B at 0:0 is now current device

17 / 38
U-Boot > sf erase 0 100000
U-Boot > tftp 0xc0700000 u-boot-spi-ais.bin; sf write c0700000 0 40000
Using device
TFTP from server 192.192.192.154; our IP address is 192.192.192.215
Filename 'u-boot-spi-ais.bin'.
Load address: 0xc0700000
Loading: ###############
done
Bytes transferred = 210860 (337ac hex)
e) Write kernel
U-Boot > nand erase 0x200000 0x280000
NAND erase: device 0 offset 0x200000, size 0x280000
Erasing at 0x460000 -- 100% complete.
OK
U-Boot > nandecc sw
SW ECC selected
U-Boot > tftp 0xc0700000 uImage;nand write.i 0xc0700000 0x200000 ${filesize}
Using device
TFTP from server 192.192.192.154; our IP address is 192.192.192.215
Filename 'uImage'.
Load address: 0xc0700000
Loading: #################################################################
#################################################################
###########################
done
Bytes transferred = 2299460 (231644 hex)
NAND write: device 0 offset 0x200000, size 0x231644
2299904 bytes written: OK
f) Write file system
U-Boot > nand erase 0x600000 0x79c0000
U-Boot > nandecc sw

18 / 38
SW ECC selected
U-Boot > tftp 0xc2000000 rootfs.img;nand write.i 0xc2000000 0x600000 ${filesize}
Using device
TFTP from server 192.192.192.154; our IP address is 192.192.192.215
Filename 'rootfs.img'.
Load address: 0xc2000000
Loading: #################################################################
######T
###########################################################
#################################################################
#######################################################T #T
#########
#####
done
Bytes transferred = 3889116 (3b57dc hex)
NAND write: device 0 offset 0x600000, size 0x3b57dc
3889152 bytes written: OK
You can use one command to complete all operation which contains TFTP
download and image flashing
U-Boot > run updatesys
At this time, flickering of LED lamp on the board indicates that update has
been finished; you just need to reboot it.
3) B oot-up
a) NAND Flash boot-up
Please make sure the switch [S3] settings are selected as below:
Switch S3-1 to ON position, the rest switches should be in OFF position.

19 / 38
Figure 3-6 Boot-up from NAND Flash
b) SPI Flash boot-up
Make sure the toggle switch [S3] as below:
Figure 3-7 Boot-up from SPI Flash
3.2 Quick Start up with WinCE system
SBC8118 support NK.bin or NK.nb0 boot from TF Card and NAND flash, this chapter would
introduce both of this system boot methods.
3.2.1 Flashing EBOOT to SPI Flash
EBOOT can update to SPI Flash with sfh_OMAP-L138.exe (.net framework require, install
dotNetFx40_Full_x86_x64.exe from Microsoft).
1) Make sure serial cable had established single board computer and PC.
2) Switch S3-3 and S3-4 to ON position, the other switch to OFF position.
Figure 3-8
3) Copy the folder “bin” from the CD folder CD\wince6\tools to the folder D:\SBC8118.
4) According to your LCD size, copy the EBOOTSPIFLASH.nb0 from the CD folder
WINCE600\Image\4_3INCH or WINCE600\image\7INCH to the folder D:\SBC8118\bin.
5) Click Start -> All Programs -> run, and input “CMD” on the pop-up dialog to enter Windows
Command Prompt(cmd.exe), input the following commands as below:
d:

20 / 38
cd \SBC8118\bin
6) Run the flash tool to erase the SPI Flash: (change COM port if required)
sfh_OMAP-L138.exe -erase -targetType AM1808 -flashType SPI_MEM -p COM1
7) Power on the Kit. You should see progress being reported, wait until it completes, and then
power off the kit.
Note: If the erase sequence does not complete after 30 seconds press a key to terminate the
sfh_OMAP-L138.exe program and continue with the flashing procedure.
8) Run the flash tool to write an appropriate UBL(First Bootloader) and EBOOT to flash (change
COM port if required).
sfh_OMAP-L138.exe -flash -targetType AM1808 -flashType SPI_MEM -v -p COM1
-appStartAddr 0xc7f60000 -appLoadAddr 0xc7f60000 ubl-spi-ais.bin
EBOOTSPIFLASH.nb0
9) Power on the Kit. You should see progress being reported, wait until it completes.
Figure 3-9
10) Power off the Kit and set DIP switches S3-1~S3-4 to OFF to select boot from SPI.
Table of contents
Other Embest Single Board Computer manuals