Contents CHAPTER 1 OVERVIEW ......................... 6 1.1 P ......................6 RODUCT NTRODUCTION 1.2 F ..........................7 EATURES CHAPTER 2 HARDWARE SYSTEM ....................9 2.1 CPU ............................9 2.1.1 CPU Introduction ......................9 2.1.2 CPU Features ........................9 2.2 I : .................. 11 NTRODUCTION TO THE XPANDED 2.2.1 TPS65070 ........................
Page 4
2.3.14 JTAG Interface ......................22 2.3.15 Expansion Interface ..................... 22 2.3.16 DIP Switch ........................25 2.3.17 KEY Switch ........................26 2.3.18 LEDs..........................26 CHAPTER 3 LINUX OPERATING SYSTEM ................. 27 3.1 I ........................27 NTRODUCTION 3.2 S ......................27 OFTWARE ESOURCES 3.3 B (BSP) F...
Page 5
4.5.3 Downloading NK.bin to NAND flash ................71 4.6 U ......................75 NSTRUCTIONS 4.6.1 How to use Power Management ..................75 4.6.2 How to use CAM8000-A module ..................76 4.7 SBC8018 W CE 6.0 32 API ......77 INDOWS APPLICATION DEVELOPMENT APPENDIX .............................
Chapter 1 Overview 1.1 Product Introduction The SBC8018 evaluation board is a compact, low-cost with high-performance evaluation board based on Texas instruments (TI) AM1808 microprocessor. AM1808 is an integration of 375 MHz ARM9 low-power application processor with 128K-Byte On-the chip memory, and provided lots of peripheral interface.
SBC8018 Evaluation Board Functional Block Diagram Figure 1-1 1.2 Features SBC8018 evaluation board is based on AM1808 processor and is one compact board which integrates all functions and features of TI’s AM1808 ARM9 processor. Some of the board features are mentioned below: Mechanical Parameters ...
Page 8
128MB Mobile DDR Audio/Video Interfaces An audio Microphone input interface (3.5mm audio jack, red) A two-channel audio line output interface (3.5mm audio jack, green) A TFT-LCD interface (24 bit color, 1.8 V logic, with touch screen) Data Transfer Interface ...
Chapter 2 Hardware System 2.1 CPU 2.1.1 CPU Introduction The AM1808 microprocessor contains an ARM RISC CPU for general-purpose processing and systems control. The AM1808 ARM microprocessor consists of the following primary components: ARM926EJ-S RISC processor core and associated memories ...
Page 10
ARM926EJ-S RISC CPU The ARM Subsystem integrates the ARM926EJ-S processor. The ARM926EJ-S processor is a member of ARM9 family of general-purpose microprocessors. This processor is targeted at multi-tasking applications where full memory management, high performance, low die size, and low power are all important. The ARM926EJ-S processor supports the 32-bit ARM and 16 bit THUMB instruction sets, enabling the user to trade off between high performance and high code density.
2.2.2 K9F1G08U0B The K9F1G08U0B is the 128MB NAND flash memory chips used in SBC8018 evaluation board. This NAND Flash chip is directly interfaced to the CPU for faster memory access and read/write cycles.
2.3 Hardware Interface The following section provides you the detailed information on the peripherals, with the pin description, and its functionality available on SBC8018 evaluation board. Figure 2-2 Hardware Interface chart 2.3.1 Power Input Jack Table 2-1 power input interface...
2.3.2 Power Output Interface Table 2-2 power output interface Signal Function 5V output 2.3.3 Power Switch Table 2-3 power switch Signal Function DC IN VDD Input +5VDC_IN 2.3.4 TFT_LCD Interface Table 2-4 TFT_LCD interface Signal Function B_NU0 Test Point B_NU1 Test Point B_NU2 Test Point...
Page 15
G_NU0 Test Point G_NU1 Test Point LCD_D5 LCD data bit5 LCD_D6 LCD data bit6 LCD_D7 LCD data bit7 LCD_D8 LCD data bit8 LCD_D9 LCD data bit9 LCD_D10 LCD data bit10 R_NU0 Test Point R_NU1 Test Point R_NU2 Test Point LCD_D11 LCD data bit11 LCD_D12 LCD data bit12...
R_LCD_MISO Slave data out, master data in R_LCD_SPICS SPI enable IIC_CLK IIC master serial clock, NC IIC_DAT IIC serial bidirectional data, NC +1P8V_LDO +1.8V +3P3V +3.3V +5VDC_IN +5VDC_IN RESET +1.8V R_LCD_PWREN Power on enable 2.3.5 AUDIO OUTPUT Jack Table 2-5 Audio out interface Signal Function LINE_OUT_LP...
2.3.6 Camera Interface Table 2-6 camera interface J35,J43 Signal Function Test Point Test Point R_CAM_D0 VPIF capture data bit 0 R_CAM_D1 VPIF capture data bit 1 R_CAM_D2 VPIF capture data bit 2 R_CAM_D3 VPIF capture data bit 3 R_CAM_D4 VPIF capture data bit 4 R_CAM_D5 VPIF capture data bit 5 R_CAM_D6...
CAM_SDA I2C0 serial data CAM_SCL I2C0 serial clock +1P8V_LDO 1.8V 2.3.7 MIC IN Jack Table 2-7 MIC IN interface Signal Function LINE_IN_LP Left input LINE_IN_RP Right input LINE_IN_RP Right input LINE_IN_LP Left input 2.3.8 Serial Ports Table 2-8 serial port Signal Function RSA_RXD...
2.3.9 LAN Interface Table 2-9 LAN interface Signal Function LAN_TX+ TX+ output LAN_TX- TX- output Link to analog transmit power input with 0R resistance 4&5 Transformer 7&8 Transformer Link to analog transmit power input with 0R resistance LAN_RX+ RX+ input LAN_RX- RX- input Link LED...
2.3.12 USB HOST Interface Table 2-12 USB HOST interface Signal Function USB1_VBUS USB1_D- USB Data- USB1_D+ USB Data+ CHGND CHGND 2.3.13 TF Card Interface Table 2-13 TF interface Signal Function DAT2 Card data 2 DAT3 Card data 3 Command Signal Clock DAT0 Card data 0...
2.3.14 JTAG Interface Table 2-14 JTAG interface Signal Function Test mode select NTRST Test system reset Test data input 1.8V Test data output RTCK Receive test clock Test clock EMU0 Test emulation 0 EMU1 Test emulation 1 2.3.15 Expansion Interface Table 2-15 expansion interface Signal Function...
I2C0_SCL I2C0 serial clock I2C0_SDA I2C0 serial data uP_SPI0_CLK SPI0 clock uP_SPI0_SOMI SPI0 data slave-out-master-in uP_SPI0_SIMO SPI0 data slave-in-master-out uP_SPI0_SCSn0 SPI0 chip selects +5VDC_IN uP_SPI0_ENAN 1.8V +3P3V +3.3V +1P8V_LDO +1.8V 2.3.16 DIP Switch Table 2-17 DIP Switch Function PWR_BOOT Link to PWR_BOOT with 1K resistor Link to GND with 1K resistor Link to GND with 1K resistor PWR_BOOT...
2) Master relative embedded Linux development technology. 3.2 Software Resources This chapter provides an overview of software system components of SBC8018. A basic software system consists of four parts: u-boot, kernel and rootfs. The Figure 3-2 shows the structure of the...
The SBC8018 Board Support Package (BSP) is used for customizing and generating the Linux operating system applicable to SBC8018 hardware platform. Users can conduct a secondary development on the basis of this BSP. The BSP in the CD provided with the SBC8018 evaluation kit contains as bellows:...
3.4 System Development 3.4.1 How to Setup Operating System Development Environment Before executing software development on SBC8018, the user has to install Linux cross development environment on its computer. How to install a cross development environment will be explained below by taking Ubuntu operating system as an example.
Page 31
Launches the ASIgen, click “File”-> “Load Configuration” to open AM1808-UART.cfg from the CD under the folder CD\linux\tools\. b) Added the u-boot file under the folder [d:\sbc8018\] to the [ARM Application File:] c) Sets the output file path [AIS Output File] as [d:\sbc8018\u-boot-uart-ais.bin].
Page 32
Launches the ASIgen, click “File”-> “Load Configuration” to open AM1808-NAND.cfg under the folder CD\linux\tools\. Added the u-boot file under the folder [d:\sbc8018\] to the [ARM Application File:] Sets the output file path [AIS Output File] as [d:\sbc8018\u-boot-nand-ais.bin]. Click [Generate AIS], “u-boot-nand-ais.bin” will be generated under the folder [d:\sbc8018].
#define LCD_7INCH 2) Kernel compilation cd linux-03.20.00.14 make distclean make sbc8018_defconfig make uImage After completing the above steps, the required uImage file will be generated under the directory arch/arm/boot. 3.4.2.4 Generation of File System cd $HOME/work sudo $HOME/tools/mkfs.jffs2 –r rootfs –o jffs2.img After completing the above steps, the current directory will generate the the required “jffs2.img”...
Page 34
If an error occurs in the system when make menuconfig is input, it is necessary to install ncurse in the Ubuntu system; ncurse library is a character graphic library, used for make menuconfig of kernel; the specific installation instruction is: sudo apt-get install ncurses-dev How do perform the system customization is described below using USB gadget and USB mass storage device as an example:...
Page 36
TF card and reboot the system. Now execute the following commands to stimulate the TF card into USB mass storage device to use with PC: root@sbc8018:~# cd /media/mmcblk0p1/ root@sbc8018:/media/mmcblk0p1# insmod g_file_storage.ko file=/dev/mmcblk0p1 stal l=0 removable=1 g_file_storage gadget: File-backed Storage Gadget, version: 20 November 2008...
3.5 How to Update the System Image The SBC8018 evaluation board NAND Flash by default comes with the installed Linux + 4.3-inch screen display. It can be booted without connecting TF card once it’s powered ON or RESET and input “root”...
U-BOOT will load default parameter. 3.5.2 How Update Images From Ethernet The SBC8018 evaluation board image can be updated through Ethernet port as well, in thi section we will explain how to update the image using Ethernet port.
Page 39
Launch the “tftpd32.exe” from the CD under the folder CD\linux\tools, and click “Browse” to set the sharing space, the directory will be giving an example as “d:\sbc8018”. Figure 3-10 tftpd32 tool Copy “u-boot-nand-ais.bin”, “uImage_4.3”, “uImage_7”, “jffs2.img” from the CD under the folder [CD\linux\image\] to the folder [d:\sbc8018] According to your LCD size (4.3"...
Page 40
Skipping bad block at 0x0ffe0000 Write U-BOOT 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 >...
Page 41
2299904 bytes written: OK Write file system U-Boot > tftp 0xc2000000 jffs2.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 'jffs2.img'. Load address: 0xc2000000 Loading: ################################################################# ######T ########################################################### ################################################################# #######################################################T ######### ##### done Bytes transferred = 3889116 (3b57dc hex) NAND write: device 0 offset 0x600000, size 0x3b57dc...
1 > /sys/class/leds/led3/brightness 3.6.1.2 Key Switch Testing The SBC8018 evaluation board is having three users key switches S8, S9 and S10; users can perform the following testing: First, enter the following command, and then press the S9, S8, S10 keys...
Page 43
The development board contains the hardware clock for save and to synchronize the system time. User can perform the RTC test by following steps below: Set the system time as Mon Dec 05 20:00:00 2011 root@sbc8018: # date 120520002011 Mon Dec 08 20:00:00 UTC 2011 Write the system clock into RTC...
Page 44
# date Mon Dec 08 20:00:00 UTC 2011 Now the system time has been set as hardware time. The SBC8018 Development board RTC battery can use model CR1220, user needs to prepare themselves. 3.6.1.5 TF Card Testing First insert the TF card in the board, the system will automatically mount the file system of the...
Page 45
After booting the system, please configure the system using the below commands through HyperTerminal: root@Sbc8018:~# ifconfig usb0 192.168.1.115 root@Sbc8018:~# ifconfig Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2316 (2.2 KiB) TX bytes:2316 (2.2 KiB)
Page 46
Figure 3-12 Now use the ping command from the HyperTerminal to test whether the development board IP address has been configured successfully. root@Sbc8018:~# ping 192.168.1.15 PING 192.168.1.15 (192.168.1.15): 56 data bytes 64 bytes from 192.168.1.15: seq=0 ttl=128 time=0.885 ms 64 bytes from 192.168.1.15: seq=1 ttl=128 time=0.550 ms If you receive ping response like above, indicates the successful communication between the board and the PC.
Page 47
To test the recording functionality, first plug-in the microphone and use the below command to start the recording: root@Sbc8018:~# arecord -t wav -c 1 -r 44100 -f S16_LE -v k Recording WAVE 'k' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo...
Page 48
To playback, plug-in the headphones and enter the below command to hear what you have just recorded; root@Sbc8018:~# aplay -t wav -c 2 -r 44100 -f S16_LE -v k Playing WAVE 'k' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo...
Page 49
3.6.1.9 Network Testing The board is having a 10/100M self-adapting DM9000 network card, users can directly connect the board to the LAN network and enter the following commands for network testing: root@sbc8018:~# ifconfig eth0 192.192.192.203 root@sbc8018:~# # ifconfig eth0 Link encap:Ethernet HWaddr 00:11:22:33:44:55 inet addr:192.192.192.203 Bcast:192.192.192.255 Mask:255.255.255.0...
Page 50
CONTROL+C to quit the test. 3.6.1.10 Camera Testing If you have bought the specific camera module for SBC8018 evaluation board, first connect the CAMERA module and LCD screen to the board. To install the camera please use the camera drivers from [drivers/media/video/tvp514x.c]. After installation of camera module enter the...
Chapter 4 WinCE Operating System 4.1 Introduction This section will introduces you to the SBC8018 evaluation board application development using Windows Embedded CE 6.0 R3, software resources on the disc, software features, installation of development environment, and how to “sysgen” and build BSP (board support package).
4.4 System Development 4.4.1 Installation of IDE(Integrated Development Environment) Please install items below to windows XP/Vista: Visual Studio 2005 Visual Studio 2005 SP1 Visual Studio 2005 SP1 Update for Vista (vista system require) Windows Embedded CE 6.0 Platform Builder Windows Embedded CE 6.0 SP1 Windows Embedded CE 6.0 R2 Windows Embedded CE 6.0 Product Update Rollup 12/31/2008 Windows Embedded CE 6.0 R3...
“NK.nb0” will be created at the directory location [C:\WINCE600\OSDesigns\OMAPL138_AM18X_SAMPLE\OMAPL138_AM18X_SAMPL E\RelDir\OMAPL138_AM18X_ARMV4I_Release]. Now copy “EBOOTNANDFLASH.nb0” to the directory [D:\sbc8018\bin] and copy “NK.bin”, “NK.nb0” to the TF card (FAT/FAT32 format). Now to update the system image please refer to the section 4.5 below “How to Update the System Image”...
Figure 4-1 4.5 How to Update System Image The SBC8018 evaluation board supports “NK.bin” or “NK.nb0” boot from TF Card and NAND flash, this chapter will introduce you to the both of these system boot methods. 4.5.1 Downloading EBOOT to NAND Flash EBOOT can be downloaded to NAND Flash by using “sfh_OMAP-L138.exe”...
Page 61
\sbc8018 Run the flash tool to erase the NAND Flash: (change COM port if required) sfh_OMAP-L138.exe -erase -targetType AM1808 -flashType NAND -p COM1 Power ON the Kit. You should see the erase cycle in progress, wait until it completes, and then power OFF the kit.
Page 62
Figure 4-3 10) Power OFF the Kit and set DIP switches as; S7-1 to ON, all others to OFF. Figure 4-4 11) Start your serial terminal application, Hyper Terminal (115200 baud, 8N1) 12) Now power ON the evaluation board and you will see the system boot up with the new EBOOT image.
4.5.2 Update TF Card NK runtime images Format TF card Format the TF Card in FAT/FAT32 file system. Copy NK runtime image Navigate to the directory [WINCE600/image/lcd7inch] or [WINCE600/image/lcd4.3inch], according to the LCD size. Copy “NK.nb0/NK.bin” to TF card. Change the EBOOT settings to boot NK from TF Card Insert the TF card into the evaluation board, turn the power ON and press space key to enter into the EBOOT menu.
Page 64
INFO: MAC address: 00:08:ee:00:00:00 WARN: Invalid BSP_ARGS data found (using defaults) WARN: Unable to get hardware entropy Hit space to enter configuration menu 2 -------------------------------------------------------------------------------- Main Menu -------------------------------------------------------------------------------- [1] Show Current Settings [2] Boot Settings [3] Network Settings [5] Video Settings [6] Save Settings [7] Peripheral Tests [R] Reset Settings To Default Values...
Page 65
[8] Allow DSP to Boot [0] Exit and Continue Selection: 2 -------------------------------------------------------------------------------- Select Boot Device -------------------------------------------------------------------------------- [1] EMAC [2] NK from SD [3] NK from NAND flash [0] Exit and Continue Selection (actual NK from SD): 2 Boot device set to NK from SD Press the key [0] ->...
Page 66
Selection: 0 -------------------------------------------------------------------------------- Main Menu -------------------------------------------------------------------------------- [1] Show Current Settings [2] Boot Settings [3] Network Settings [5] Video Settings [6] Save Settings [7] Peripheral Tests [R] Reset Settings To Default Values [0] Exit and Continue Selection: 0 Device ID set to AM1808-0 BLFlashDownload: LogicalLoc - 0x01C40000 Loading from SD card +ReadNKFromSDMMC...
Page 68
MiscFlags 0x0002 Extensions : 0x80001070 Tracking Mem Start : 0x00000000 Tracking Mem Length : 0x00000000 ------------------------------------------------ Image Start ..: 0x00000000 Image Size ..: 0x00000000 Image Launch Addr .: 0x00000000 Image ROMHDR ..: 0x00000000 Boot Device/Type ..: 3 / 6 ADEhellounch Windows Embedded CE by jumping to 0xc0000000... Windows CE Kernel for ARM (Thumb Enabled) Built on Oct 20 2009 at 18:39:19 OEMInit: init.c built on Sep 28 2011 at 15:51:27.
VS2005 utility: Confirm you have performed the release build in C:\WINCE600\OSDesigns\OMAPL138_AM18X_SAMPLE\ OMAPL138_AM18X_SAMPLE.sln. Connect PC and SBC8018 evaluation board using with RJ45 Cable. DIP switch position: S7-1 to ON position, other switches to OFF position: Figure 4-5 Boot up from NAND Flash Select EMAC as boot media in EBOOT menu, press key [2]->[2]->[1] , steps by step as below:...
Page 72
[2] Select Boot Device [3] Select Boot Delay [4] Select Debug Device [5] Force Clean Boot [6] Write Download RAM NK to Flash [7] Set Device ID String [8] Allow DSP to Boot [0] Exit and Continue Selection: 6 Enable Write Download RAM NK to Flash (actually disabled) [y/-]: y Write Download RAM NK to Flash enabled Press key [0] to return to EBOOT main menu, now press key [3] to set the network property.
Page 73
Click [Target->Connectivity Options] in VS2005 Menu, you will see a Connectivity Options pop up window like below, select Ethernet from Download drop down menu: Figure 4-6 Now click on Settings button (located in the right of Download drop down menu), this will pop up another window as shown below.
Page 74
Figure 4-7 10) Now go to [Target] -> [Attach Device] in VS2005 menu and click on Start to download “NK.bin”. A dialog will pop up to indicate the download progress, once the download process completed the serial terminal would display the below message: OEMWriteFlash: NK written ROMHDR at Address 80000044h Image Start ..: 0x80000000...
11) Now power OFF the board and power ON and press the space key to enter into the EBOOT menu. Form EBOOT menu press key [2]->[2]->[3] step by step to select NK from NAND flash, and press [0] -> [0] to start the system from NAND flash. 4.6 User Instructions 4.6.1 How to use Power Management This BSP release implements support for some basic power management states and system...
Power Management Tools When power management is enabled a number of tools are available: pmtimeout – Sets the idle timeouts used for transition between PM states pmsuspend – Sets an RTC alarm and puts the platform into suspend ...
Click [Build-> Rebuild Solution] in VS2005 to perform “sysgen” and build BSP. Update “NK.bin” and “NK.nb0” after sysgen and build BSP completed. Confirm CAM8000-A module is connect to SBC8018 correctly, boot system with updated NK, copy [C:\WINCE600\PLATFORM\SBC8018\files\CameraDshowApp_analog.exe] to run Windows CE OS on the kit and click “CameraDshowApp_analog.exe” to view camera preview.
Appendix II: The Installation Of Ubuntu How to install Ubuntu in Windows environment using VirtualBox. The screenshots in this tutorial use Ubuntu 11.04, but the same principles also applies to Ubuntu 10.10, 11.04, and any future version of Ubuntu. Actually, you can install pretty much any Linux distribution this way.
Page 80
After you launch VirtualBox from the Windows Start menu, click on New to create a new virtual machine. When the New Virtual Machine Wizard appears, click Next. Figure Appendix 2-2 You can name the machine whatever you want to name it, we are installing Ubuntu so it makes sense to name it as Ubuntu.
Page 81
Click Next. Figure Appendix 2-4 If this is your first time using VirtualBox (which it probably is if you need a tutorial on how to use it), then you do want to create new hard disk and then click Next. Figure Appendix 2-5 Click Next again.
Page 85
3. Installing Ubuntu Figure Appendix 2-11 Figure Appendix 2-12 Before Installing Ubuntu in a virtual machine, the first thing to make the (currently blank) virtual hard drive useful is to add the downloaded Ubuntu disk image (the .iso) boot on your virtual machine.
Page 89
Figure Appendix 2-19 Click Forward. Figure Appendix 2-20 This is the no-turning-back point. If you decide to do this, your hard drive will be repartitioned and part or all of it will be formatted. Before you click this button “Install Now” to continue, make sure you have everything backed up.
Appendix III: Driver Installation for Linux USB Ethernet/RNDIS Gadget 1. If you haven’t install the driver for Linux USB Ethernet/RNDIS Gadget, when you connect the device, PC will find the new hardware and pops up a window on the screen, please select “From list or designated location”, then click “Next”...
Appendix IV: The Setup Of TFTP Server 1. Install client $>sudo apt-get install tftp-hpa $>sudo apt-get install tftpd-hpa 2. Install inet $>sudo apt-get install xinetd $>sudo apt-get install netkit-inetd 3. Configure the server First, create “tftpboot” under root directory, and set the properties as “a random user can write and read”...
Page 98
server_args = -s /tftpboot -c per_source = 11 = 100 2 4. Reboot the server: $>sudo /etc/init.d/xinetd restart $>sudo in.tftpd -l /tftpboot 5. Test the server Conduct a test; create a file under folder /tftpboot $>touch abc Enter into another folder $>tftp 192.168.1.15 (192.168.1.15was the server IP) $>tftp>...
Centralized technical support mail box: knode_tech@element14.com Community: http://www.element14.com/community/docs/DOC-41892 Notes This board was designed by element14’s design partner- Embest, you can contact them to get the technical support as well. Marketing Department: Tel: +86-755-25635656 / 25636285 Fax: +86-755-25616057 E-mail: market@embedinfo.com...
Need help?
Do you have a question about the SBC8018 and is the answer not in the manual?
Questions and answers