Home
SBC8018 Evaluation Board User Manual
Contents
1. J36 Pin Signal Function 1 DAT2 Card data 2 2 DAT3 Card data 3 3 CMD Command Signal 4 VDD VDD 5 CLK Clock 6 VSS GND 7 DATO Card data 0 8 DAT Card data 1 9 CD Card detect 10 PGND GND 11 PGND GND 12 PGND GND 13 PGND GND 14 NC NC 15 NC NC Copyright 2011 by element14 User Manual 21 em on element u SELECT 2 3 14 JTAG Interface Table 2 14 JTAG interface J37 Pin Signal Function 1 TMS Test mode select 2 NTRST Test system reset 3 TDI Test data input 4 GND GND 5 VIO 1 8V 6 NC NC 7 TDO Test data output 8 GND GND 9 RTCK Receive test clock 10 GND GND 11 TCK Test clock 12 GND GND 13 EMUO Test emulation 0 14 EMU1 Test emulation 1 2 3 15 Expansion Interface Table 2 15 expansion interface J41 Pin Signal Function 1 GND GND 2 GND GND 3 EMA_A_16_EXP GPIO 4 EMA_D_15 EXP GPIO 5 EMA_A_15 EXP GPIO Copyright 2011 by element14 User Manual 22 Ee _ o geg elementiu S Premier Farnell 6 EMA D_14 EXP GPIO 7 EMA A 14 EXP GPIO 8 EMA D 13 EXP GPIO 9 EMA A 13 EXP GPIO 10 EMA D 12 EXP GPIO 11 EMA A 0 EXP GPIO 12 EMA D_11 EXP GPIO 13 EMA BA 1 EXP GPIO 14 EMA D 10 EXP GPIO 15 EPWMN1_TZO GPIO 16 EMA_D_9 EXP GPIO 17
2. respectively 3 4 3 3 Test To perform the test first you need to update the kernel image ulmage file after that copy the g_file_storage ko file to the 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 mmcblkOp1 root sbc8018 media mmcblk0p1 insmod g_file_storage ko file dev mmcblk0p1 stal 0 removable 1 g_file_storage gadget File backed Storage Gadget version 20 November 2008 g_file_storage gadget Number of LUNs 1 g_file_storage gadget lun0 ro 0 file dev mmcbikOp1 musb_hdre musb_hdre MUSB HDRC host driver Copyright 2011 by element14 User Manual 36 STE D eg element u SEEN musb_hdrc musb_hdrc new USB bus registered assigned bus number 3 hub 3 0 1 0 USB hub found hub 3 0 1 0 1 port detected musb g_file_storage gadget disconnected root sbc801 8 media mmcblk0p1 g_file_storage gadget high speed config 1 Use the USB cable USB mini B to USB A to connect the development board and PC PC will prompt a message to indicate USB mass storage device is found a new portable hard disk is found and now users is ready to use the disk Please make sure that the kernel image has been updated otherwise module g_file_storage ko will fail to load and the similar tips will show insmod cannot insert media mmcblk0p1 g_file_storage ko Device or resource busy 3 5 How to Upd
3. 3 3 Board Support Package BSP Features 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 Table 3 1 BSP Features Item Note NAND MMC SD BIOS u boot FAT NET Supports ROM CRAM EXT2 EXT3 FAT NFS Kernel Linux 2 6 x JFFS2 and various file systems serial Series driver rtc Hardware clock driver net 10 100M Ethernet card DM9000 driver flash nand flash driver supports nand boot Device Icd TFT LCD driver Driver touch screen Touch screen controller ads7846 driver Debug tf mmc sd controller driver usb otg 2 0 driver can be configured as slave usb otg device currently usb ehci usb ehci driver Copyright 2011 by element14 User Manual PB SE e SS mg elementiu S audio Audio driver Camera driver support CAM8000 A camera camera module button gpio button driver led user led lamp driver sata 1 5 3 0G SATA driver 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 environme
4. EDMA driver bsp OMAPL138_AM18X SRC DRIVERS EDMA bsp OMAPL138_AM18X SRC DRIVERS I2C 12C driver bsp OMAPL13X_TI_V1 l2C bsp OMAPL13X_TI_V1 SPI SPI driver bsp OMAPL138_AM18X SRC DRIVERS SPI McASP driver bsp OMAPL13X_TI_V1 MCASP AIC3106 Audio driver bsp OMAPL138_AM18X SRC DRIVERS WAVEDEV2 USB 1 1 OHCI Host driver OMAPL138_AM18X SRC DRIVERS USB OHCI bsp OMAPL13X_TI_V1 USB USBH USB 2 0 OTG Host driver bsp OMAPL138_AM18X SRC DRIVERS USB USBH USB 2 0 OTG Function bsp OMAPL13X_TI_V1 USB USBFN Driver bsp OMAPL138_AM18X SRC DRIVERS USB USBFN bsp OMAPL13X_TI_V1 USB USBOTG USB 2 0 OTG driver bsp OMAPL138_AM18X SRC DRIVERS USB USBOTG bsp OMAPL13X_TI_V1 USB USBCDMA USB CDMA driver bsp OMAPL138_AM18X SRC DRIVERS USB USBCDMA bsp OMAPL13X_TI_V1 DISPLAY Raster LCD Display driver bsp OMAPL138_AM18X SRC DRIVERS DISPLAY Copyright 2011 by element14 User Manual 58 em on element uf dE Character LCD Display driver bsp OMAPL138_AM18X SRC DRIVERS CHARLCD bsp OMAPL13X_TI_V1 LIDD NDIS Ethernet driver bsp OMAPL13X_TI_V1 EMAC bsp OMAPL138_AM18X SRC DRIVERS EMAC NAND Flash driver bsp OMAPL138_AM18X SRC COMMON NAND bsp OMAPL138_AM18X SRC DRIVERS NAND Serial driver bsp OMAPL13X_TI_V1 SERIAL bsp OMAPL138_AM18X SRC DRIVERS SERIAL UPP driver bsp OMAPL13X_TI_V1 UPP bsp OMAPL138_AM18X SRC DRIVERS UPP SD MMC Host C
5. gt sudo vi etc inetd conf copy the follow word to this file tftpd dgram udp wait root usr sbin in tftpd usr sbin in tftpd s tftpboot Then reload inetd process gt sudo etc init d inetd reload Finally enter directory etc xinetd d and create a new file TFTP and put the designated content into the TFTP file gt cd etc xinetd d gt sudo touch tftp gt sudo vi tftp copy the follow word to tftp file service tftp disable no socket_type dgram protocol udp wait yes user root server usr sbin in tftpd Copyright 2011 by element14 User Manual Clement SERRE server_args S tftpboot c per_source EK cps 100 2 4 Reboot the server gt sudo etc init d xinetd restart gt sudo in tftpd l tftpboot 5 Test the server Conduct a test create a file under folder tftpboot gt touch abc Enter into another folder gt tftp 192 168 1 15 192 168 1 15was the server IP gt tftp gt get abc That download can be made means the server has been installed Copyright 2011 by element14 User Manual 98 elementiv SERRE Customer Service amp Technical support Customer Service Please contact Premier Farnell local sales and customer services staffs for the help Website http www farnell com Technical Support Please contact Premier Farnell local technical support team for
6. Pre compile image CD WINCE600 Image EBOOTNANDFLASH nbO Eboot for NAND boot NK bin WinCE runtime image packed NK nb0 WinCE runtime image Copyright O 2011 by element14 User Manual 53 element SA 4 3 Software Features Resources of BSP Table 4 1 Source code Catalog Item binary NAND Source EBOOT NOR source SPI Source KILT EMAC Source Boot parameter Source Watchdog Source RTC Source System timer Source Interrupt controller Source MMU Source Serial Debug Port Source Kernel Profiler use mert high 32 bits Source Library Abstractions PSC PLL GPIO OAL Source abstractions Power management CPU idle support ARM wait for interrupt in OEMIdle This BSP release implements support for some basic power management PM The drivers support DO and D4 states and Source system suspend resume support is implemented There is no support for voltage or frequency scaling Driver EDMA driver Source Copyright 2011 by element14 User Manual element SERRE 12C driver Source SPI driver Source MCASP driver Source AIC3106 Audio driver Source USB 1 1 OHCI HOST driver Source USB OTG 2 0 HOST driver Source USB OTG 2 0 FUNCTION driver Source USB OTG driver Source USB CDMA driver Source Raster LCD Display driver Source Character LCD Display driver S
7. Source codes for all the components of the system are available in the disc under the directory linux source users need to extract them to the Ubuntu system before starting the development mkdir HOME work cd HOME work tar xvf media cdrom linux source uboot 03 20 00 14 tar bz2 tar xvf media cdrom linux source linux 03 20 00 14 tar bz2 cp media cdrom linux source ramdisk mkdir rootfs sudo mount t ext2 o loop ramdisk rootfs After completing the above steps the current directory will generate uboot 03 20 00 14 linux 03 20 00 14 and rootfs directories 3 4 2 2 X loader Image Generation The SBC8018 evaluation board supports UART boot or NAND boot The image files are different for the different boot modes and the methods for mapping are also different Copyright 2011 by element14 User Manual 30 element u Raia 1 To generate image file u boot cd uboot 03 20 00 14 make distclean make da850evm_config make After completing the above steps the current directory will generate the required u boot file Copy current u boot file to Windows system the AlSgen tool will launch on Windows 2 To generate the u boot uart ais bin for UART start up Put the new u boot file to the folder d sbc8018 Make sure you had installed AlSgen d800k006 Install v1 7 exe under the folder CD linux tools Click Windows XP gt Start gt All Programs gt Texas Instruments gt AlSgen for D800K006 gt AlSg
8. Tracking Mem Start 0x00000000 Tracking Mem Length 0x00000000 Image Start Ox00000000 Image Size Ox00000000 Image Launch Addr 0x00000000 Image ROMHDR Ox00000000 Boot Device Type 3 6 ADEhellounch Windows Embedded CE by jumping to Oxc0000000 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 BSP version 1 3 0 SOC version 1 3 0 INFO OALLogSetZones dpCurSettings ulZoneMask Oxf WARN Updating local copy of BSP_ARGS Intr Init done Timer Init done OALDumpClocks Clock Configuration Reference Clock 0 24000000 Hz PEN 456000000 Hz PLLO SYSCLK1 456000000 Hz DSP Subsystem PLLO SYSCLK2 228000000 Hz UART EDMA SPI MMC SD VPIF LCDC SATA uPP USB2 0 HPI PRU PLLO SYSCLKS 91200000 Hz EMIFA PLLO SYSCLK4 114000000 Hz INTC SYSCFG GPIO PSC I2C1 USB1 1 EMAC MDIO GPIO PLLO SYSCLKS 152000000 Hz reserved Copyright 2011 by element14 User Manual 68 element iu S PLLO SYSCLKG 456000000 Hz ARM Subsystem PLLO SYSCLK7 76000000 Hz EMAC PLLO AUXCLK 24000000 Hz I2CO Timers McASPO serial clock RTC USB2 0 PHY EE 264000000 Hz PLL1 SYSCLK1 22 264000000 Hz DDR2 mDDR PHY PLL1 SYSCLKk2 132000000 Hz Optional for MCASPO McBSP ePWM eCAP SPI1 PLL1 SYSCLK3 88000000 Hz PLLO input OALDumpClocks OEMInit PINMUX14 0x00000000 PINMUX15 0x0
9. 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 Otherwise you can name it as what you like Y Create New Virtual Machine Memory Select the amount of base memory RAM in megabytes to be allocated to the virtual machine The recommended base memory size is 512 MB Base Memory Size 2048 MB Figure Appendix 2 3 VirtualBox will try to guess how much of your memory or RAM to allocate for the virtual machine If you have 1 GB or less of RAM would advise you stick with the recommendation If however you have over 1 GB about a quarter of RAM or less should be fine For example if you have 2 GB of RAM 512 MB is fine to allocate If you have 4 GB of RAM 1 GB is fine to allocate If you have no idea what RAM is or how much of it you have just go with the default Copyright 2011 by element14 80 User Manual element n SERRE Click Next P Create Hew Virtual Machine Virtual Hard Disk Select a virtual hard disk to be used as the boot hard disk of the virtual machine You can either create a new hard disk or select an existing one from the drop down list or by pressing corresponding button to invoke file open window If you need a more complicated hard disk setup you can also skip this step and attach hard disks later using the VM Settings dialog The recommended size of the boot hard disk is 8 00 GB Boot Hard
10. 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 For that click on Settings and Storage then under CD DVD Device select the Ubuntu iso you downloaded earlier Copyright 2011 by element14 User Manual 85 elementu S Ubuntu Settings General Storage System Storage Tree Attributes E IDE Controller CD DVD Drive IDE Primary Master v A Display Storage ubuntu 11 04 desktop i386 is0 Information Type Image SATA Controller Network Size 685 29 MB e Ubuntu vdi i D software ubuntu 11 04 desktol Audio Serial Ports USB D system U buntu vdi Type Format Normal DI Shared Folders Attached to Ubuntu E lo E 2 Ei Contains all storage controllers for this machine and the virtual images and host drives attached to them A Non optimal settings detected OK Cancel Help Figure Appendix 2 13 Once you ve selected it click OK Then double click your virtual machine to start it up ES Ubuntu Oracle VE VirtualBox Fi VirtualBox Information You have the Auto capture keyboard option turned on This will cause the Virtual Machine to automatically capture the keyboard every time the VM window is activated and make it unavailable to other applications running on your host machine when the keyboard is captured all key
11. ECAP2 APWM2 GPIO 18 EMA D EXP GPIO 19 AIC_WCLK GPIO 20 EMA CLK EXP GPIO 21 AFSR GPIO 22 EMA_SDCKE EXP GPIO 23 AIC_MCLK GPIO 24 EMA CSn_5 EXP GPIO 25 GND GND 26 EMA CSn 4 EXP GPIO 27 AIC_BCLK GPIO 28 EMA CSn 2 EXP GPIO 29 ACLKR GPIO 30 EMA C n 0 EXP GPIO 31 GND GND 32 EMA _WAIT_1_EXP GPIO 33 GND GND 34 GND GND 35 5VDC_IN 5V 36 GND GND Copyright 2011 by element14 User Manual PB D gemeng element DE 37 3P3V 3 3V 38 1P8V_LDO 1 8V 39 GND GND 40 GND GND Table 2 16 expansion interface J42 Pin Signal Function 1 GND GND 2 GND GND 3 uP_SPI1_CLK SPI1 clock 4 uP_McBSP1_CLKR_EXP McBSP1 receive clock 5 uP_SPI1_SOMI SPI1 data slave out master in 6 uP_McBSP1_CLKX_EXP McBSP1 transmit clock 7 uP_SPI1_SIMO SPI1 data slave in master out i UP_McBSPO_CLKS_EXP McBSP1 sample rate generator clock input 9 uP_SPI1_SCSn0 SPI1 chip selects 10 AIC DOUT McBSP1 receive frame sync 11 uP_SPI1_ENAN SPI1 enable 12 AIC_DIN McBSP1 transmit frame sync 13 GND GND 14 uP_McBSPO_DR_EXP McBSP1 receive data 15 UART1_RXD UART1 receive data 16 uP_McBSPO_DX_EXP McBSP1 transmit data 17 UART1_TXD UART1 transmit data 18 GND GND 19 UART1_RTSn UART1 ready to send output 20 UART2_RXD UART2 receive data 21 AIC_MCL UART1 clear to send input 22 UART2_TXD UART2 transmit data 23 GND GND C
12. Manual 90 elementiu S Premier Farnell Install Who are yo Your name Susan Brownmiller Ki Your computer s name ubuntutaplop y The ramo it uses when it talks ta other computers Pick a username susan Choose a password Ggggeeggeeeg Falr password Confirm your password 9000000000 Login automatically Require my password to log in Encrypt my home folder Figure Appendix 2 23 Install Welcome to Ubuntu 11 04 Ubuntu is packed with feabures to make your Unity desktop interface a d new way to find and manage your applications Y like to show some cool things to look for in your new operating system gt Almost finished copying files Figure Appendix 2 24 Copyright O 2011 by element14 User Manual 91 Clement NE Find even more software Install The Ubuntu Software Centre has thousands of new applications ready for e Est your computer Just type what you wart or explore the categories like games science and education It is simple to downoad new stult and write reviews Lo share your experiences laj Zetzortak tentait Shele COPC e en e Stellarium Le 2 E Montre Some of our Favourites Stellarium Inkscape El Frozen Bubble nectohre One VIPP Spas lien Le DEC es Chaque WU were A d ag for he one Faterui en D AE face zeen Pre ba Gre thers Bte ra bebes s Figure Appendix 2 25 in
13. Notes 1 When the sample PM configuration is disabled the default CE 6 0 PM configuration is used 2 When entering the suspend state the CE Power Manager powers down all the peripherals sets all drivers to D4 state 3 On L138 AM18x the SDRAM is put into self refresh mode and powered down the PLL controllers are powered down and the SOC is put into Deep Sleep mode 4 On L138 AM18x there are two wake sources supported e Internal source RTC alarm e External source via the DEEPSLEEP pin connected to UART2 CTS 5 The pmsuspena tool can be used to enter the system suspend state The wake source can be specified on the command line 6 OnL138 AM18x when resuming the SDRAM and PLL controllers are powered up 7 On resume the CE Power Manager powers up all the peripherals sets all drivers to DO state Copyright 2011 by element14 User Manual K SE EE eg Ee element SERRE Power Management Tools When power management is enabled a number of tools are available e pmtimeout Sets the idle timeouts used for transition between PM states e pmsuspend Sets an RTC alarm and puts the platform into suspend e pmset Sets the system power state e pmget Gets the current system power state e pmsetd Sets the power state for a device e pmgeid Gets the power state for a device e pmreq Sets a device power requirement e pmmon Monitors and reports on power state changes Most of the tools displa
14. O 2011 by element14 User Manual 39 elementu S Skipping bad block at Ox0ffe0000 OK c Write U BOOT U Boot gt tftp Oxc0700000 u boot nand ais bin nand write i Oxc0700000 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 HHH HHH done Bytes transferred 210860 337ac hex NAND write device O offset 0x20000 size 0x337ac 210944 bytes written OK U Boot gt nandecc sw SW ECC selected d Write kernel U Boot gt tftp 0xc0700000 ulmage nand write i 0xc0700000 0x200000 filesize Using device TFTP from server 192 192 192 154 our IP address is 192 192 192 215 Filename ulmage Load address 0xc0700000 Loading HAHA EEA EEE HEH AEE EE FEA HEE ETE EEE HE AEE AEE RRHH AAARAAH FEA A A done Bytes transferred 2299460 231644 hex NAND write device 0 offset 0x200000 size 0x231644 Copyright 2011 by element14 User Manual element iu NI 2299904 bytes written OK e Write file system U Boot gt tftp 0xc2000000 jffs2 img nand write i Oxc2000000 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 FHA HEH AEE HEHE HEA EEA HEE AEA AEH AEE EAE EE AHHH T ZE EE eer FEAR EEE EEE EAE EE HHRHR RRHH T HT FAA HHH done Bytes transferred 3889116 3b57dc hex
15. any technical issues through the telephone live chat amp mail or post your questions on the below micro site we will reply to you as soon as possible 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 Technical Support Tel 86 755 25503401 E mail support embedinfo com URL http www armkits com Copyright O 2011 by element14 User Manual 99
16. detected SDBootMDD SDinitializeHardware timeOut 0 SDBootMDD SDinitializeHardware timeOut 1 SDBootMDD SDinitializeHardware timeOut 2 SDBootMDD SDinitializeHardware timeOut 3 SDBootMDD Card address is 1234 SDBootMDD 4 bit data bus selected InitMasterBootRecord Partition 0 type 12 Copyright 2011 by element14 User Manual elementu S InitMasterBootRecord Partition 0 FAT32 start 0x7e00 length 0x753f8200 InitPartition Offset 0x7e00 length 0x753f8200 ReadFileFromSDMMC file size 16138467 bytes UnpackBINImage unpacking binary from Oxc2000000 UnpackBINImage Image start 0x80000000 UnpackBINImage Image length 0x102fd2c UnpackBINImage record 0 start 0x80000000 length 0x4 checksum 0x1 eb UnpackBINImage record 296 start 0x0 length 0x80001000 checksum 0x0 CheckCElmage checking image at Oxc0000000 ROMHDR pTOC 0xc102de8c DLL First 0x4001c001 DLL Last Ox40b5c097 Physical First 0x80000000 Physical Last 0x8102fd2c Num Modules E 181 RAM Start 0x81030000 RAM Free 0x8103f000 RAM End 0x8373f800 Num Copy Entries 2 Copy Entries Offset 0x804f4fd4 Prof Symbol Length 0x00000000 Prof Symbol Offset 0x00000000 Num Files S 73 Kernel Flags 0x00000000 FileSys RAM Percent 0x30303030 Driver Glob Start 0x00000000 Driver Glob Length 0x00000000 CPU 0x01c2 Copyright O 2011 by element14 User Manual elementu S MiscFlags 0x0002 Extensions 0x80001070
17. interface TF slot serial port JTAG interface camera interface TFT LCD interface touch screen interface and keyboard interface SBC8018 board can be used for the following applications e Intelligent instrument e Service point e Educational plant e Portable data terminal e Placeholder intelligent sensor e A formal data terminal e Industrial Control Home Automation Copyright 2011 by element14 User Manual XG element 1 SAT a Y E AM1808 i Connector 375 456 MHz ARM926EJ S RISC Core i x 128K Byte On chip Memory P E N _DSS Figure 1 1 SBC8018 Evaluation Board Functional Block Diagram 1 2 Features SBC8018 evaluation board is based on AM1808 processor and is one compact board which integrates all functions and features of Tl s AM1808 ARM9 processor Some of the board features are mentioned below Mechanical Parameters e Working temperature 0 C 70 C e Humidity Range 20 90 non condensable Dimensions 112 24mm x 82 29mm Power Consumption 5V 0 22A working without LCD e Power Input 5V 2A Processor e 375 MHz ARM926EJ S RISC Core ARM926EJ S Core Memory e 128MB NAND Flash Copyright O 2011 by element14 User Manual 7 element u NE e 128MB Mobile DDR Audio Video Interfaces e An audio Microphone input interface 3 5mm audio jack red e A two channel audio line output interface 3 5mm audio jack green e ATFT LCD interface 24 bit colo
18. is recommended Installation Process 1 Download software Before installing Ubuntu you must get VirtualBox software and Ubuntu disk image ISO file Both can be downloaded from VirtualBox download page VirtualBox 4 0 10 72479 Win exe and _ Ubuntu download page ubuntu 11 04 desktop i386 iso 2 Create New Virtual machine Oracle VE VirtualBox Manager P Create Hew Virtual Machine Welcome to the New Virtual Machine Wizard Y This wizard will guide you through the steps that are necessary to create a new virtual machine for VirtualBox Use the Best button to go to the next page of the wizard and the Back button to return to the previous page You can also press Cancel if you want to cancel the execution of this wizard Copyright O 2011 by element14 User Manual 79 element SERRE 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 Y Create New Virtual Machine VM Name and OS Type Enter a name for the new virtual machine and select the type of the guest operating system you plan to install onto the virtual machine The name of the virtual machine usually indicates its software and hardware configuration It will be used by all VirtualBox components to identify your virtual machine Name Ubuntu OS Type Operating System E Version Figure Appendix 2
19. 0000000 PINMUX16 0x22222200 PINMUX17 0x22222222 PINMUX18 0x22000022 PINMUX19 0x02000022 OEMGetExtensionDRAM Added 0x84400000 gt 0x88000000 OEM Cleaning system hive OEM Cleaning user profiles WARN Updating local copy of BSP_ARGS OEM Not cleaning system hive FMD ReadID Mfg 0x2c Dev 0xda MICBIASHardwareContext Init 555 Adapter s MAC address is 00 08 EE 00 00 00 SDHC lnit SDHC Active RegPath Drivers Active 21 SDHCPDD_Init Ctrl O Entry SDHC Init SDHC Open SDHC Open Copyright O 2011 by element14 User Manual Clement SERRE SDHC_CARD_DETECT 1 SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout SDHC CommandCompleteHandler Command response timeout Copyright 2011 by element14 User Manual 70 element u Raia 4 5 3 Downloading NK bin to NAND flash This section will introduce you how to download NK bin to NAND flash via Ethernet using VS2005 utility 1 Confirm you have performed the release build in C WINCE600 0SDesigns OMAPL138 AM18X SAMPLE OMAPL138 AM18X SAMPLE ein 2 Connect PC and SBC8018 evaluation board using with RJ45 Cable 3 DIP switch positio
20. 070 07b5 49e5 63fc 000b 0000 0000 0000 0000 Copyright 2011 by element14 User Manual element AEE 0000080 07b6 49e5 2569 000c 0001 0102 0000 0000 0000090 07b6 49e5 2586 000c 0000 0000 0000 0000 00000a0 07b6 49e5 a922 000e 0001 0102 0001 0000 00000b0 07b6 49e5 a941 000e 0000 0000 0000 0000 Press CONTROL C to quit the test The back of the test is the same 3 6 1 3 Touch Screen Testing 1 Run the following command to start the calibration process root sbc8018 ts_calibrate Then follow the LCD prompt click the icon 5 times to complete the calibration 2 Calibration is complete now enter the following commands for Touch Panel Test root sbc8018 ts test Follow the LCD prompts to choose draw point OR draw line test 3 6 1 4 RTC Testing 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 1 Setthe system time as Mon Dec 05 20 00 00 2011 root sbc8018 date 120520002011 Mon Dec 08 20 00 00 UTC 2011 2 Write the system clock into RTC root sbc8018 hwclock w 3 Read the RTC root sbc8018 hwclock Mon Dec 08 20 00 00 UTC 2011 Now the RTC clock has been set as Dec 05 2011 the system clock will be saved in the hardware clock Copyright 2011 by element14 User Manual element m ssen 4 Restart the system enter the following commands to renew the system clock root sbc8018 hwclock s root sbc8018
21. 1 8 arecord t wav c 1 r 44100 f S16 LE v k Recording WAVE k Signed 16 bit Little Endian Rate 44100 Hz Stereo Plug PCM Hardware PCM card 0 omap3evm device O subdevice O Its setup is stream CAPTURE access RW_INTERLEAVED format S16 LE subformat STD channels gt 2 rate 44100 Copyright 2011 by element14 User Manual 47 ES A Premier Farnell elementiu exact rate 44100 44100 1 msbits 16 buffer_size 22052 period size 5513 period time 125011 tstamp_mode NONE period step 1 avail min 5513 period_event 0 start_threshold 1 stop threshold 22052 silence_threshold 0 silence_size 0 boundary 1445199872 appl_ptr 0 hw_ptr 0 2 Playback Testing 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 Plug PCM Hardware PCM card 0 omap3evm device O subdevice O Its setup is stream PLAYBACK access RW_INTERLEAVED format S16 LE subformat STD channels 52 rate 44100 Copyright 2011 by element14 User Manual 48 EE aaa element iu S exact rate 44100 44100 1 msbits 16 buffer_size 22052 period size 5513 period time 125011 tstamp_mode NONE period step 1 avail min 5513 period_event 0 start_threshold 22052 stop threshold
22. 15 system control coprocessor Memory Management Unit MMU Separate instruction and data caches e Write buffer Separate instruction and data internal RAM interfaces Separate instruction and data AHB bus interfaces Embedded Trace Module and Embedded Trace Buffer ETM ETB ARM Internal Memory e 8KBRAM e 64KB built in ROM e Embedded Trace Module and Embedded Trace Buffer ETM ETB Copyright 2011 by element14 User Manual 10 EE E SE element NA ARM Subsystem ARM926EJ S CPU With MMU System Control PLL Clock Deg Generator base 4KB ETB General Purpose Timer x3 Power Sleep Controller Pin Multiplexing 16KB 16KB l Cache D Cache 8KB RAM Vector Table 64KB ROM Figure 2 1 ARM Subsystem 2 2 Introduction to the Expanded Chip 2 2 1 TPS65070 The TPS6507x are single chip Power Management IC the charger can either be supplied by a USB port on pin USB or by a DC voltage from a wall adapter connected to pin Three highly efficient 2 25MHz step down converters are targeted at providing the core voltage memory and UO voltage in a processor based system The step down converters allow the use of small inductors and capacitors to achieve a small solution size The TPS6507x also integrate two general purpose LDOs for an output current of 200mA These LDOs can be used to power a TF card interface and an always on rail but can be used for other purposes as well Each LDO operat
23. 22052 silence_threshold 0 silence_size 0 boundary 1445199872 appl_ ptr 0 hw_ptr 0 3 6 1 9 Network Testing 1 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 ethO 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 UP BROADCAST MULTICAST MTU 1500 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 1000 RX bytes 0 0 0 B TX bytes 0 0 0 B Interrupt 185 Base address 0x2000 Copyright 2011 by element14 User Manual 49 elementu S root sbc8018 ping 192 192 192 154 PING 192 192 192 154 192 192 192 154 56 data bytes 64 bytes from 192 192 192 154 seq 0 ttl 128 time 4 486 ms 64 bytes from 192 192 192 154 seq 1 ttl 128 time 0 336 ms 64 bytes from 192 192 192 154 seq 2 ttl 128 time 0 336 ms 2 Ifyou receive ping response like above indicates the successful network communication The IP address in the network card of development board and PC should be in the same network segment for example 192 192 192 x Press 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 modu
24. 26 User Manual element u SERRE Chapter 3 Linux Operating System 3 1 Introduction This section is intended to provide detailed instruction on Operating System Software development for SBC8018 evaluation board 1 Describes the software resources provided by SBC8018 2 Describes the software feature 3 Explains the software development including how to set up the development environment the building guidance of the boot loader kernel and file system and the development of device driver 4 Provides flashing methods with U BOOT prompts 5 Shows the usage of SBC8018 6 Shows the application development In this part it is suggested to 1 Install Ubuntu Linux in advance please refer to Appendix II for details 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 system Figure 3 1 Copyright 2011 by element14 User Manual element iu aus Features and functions of each part of the system are given below 1 U boot is a bootstrap program it s used for interacting with users and updating images and loading the kernel 2 The latest 2 6 x kernel is employed here and it can be customized to use on SBC8018 evaluation board 3 Rootfs employs Open source system jffs2
25. 55 Sent BOOTME to 255 255 255 255 Sent BOOTME to 255 255 255 255 Sent BOOTME to 255 255 255 255 Sent BOOTME to 255 255 255 255 Copyright 2011 by element14 User Manual element SERRE 8 Click Target gt Connectivity Options in VS2005 Menu you will see a Connectivity Options pop up window like below select Ethernet from Download drop down menu J Target Device Connectivity Options Device Configuration Add Device Target Device cE Device y Delete Device Download Service Configuration Ethernet z Kernel Service Map AM1808 65535 Core Service Settings Transport ervice Status Ethernet v Settings AM1808 65535 Debugger KaStub e Settings Prompt On Error Apply Target device core service settings are updated Figure 4 6 9 Nowclick on Settings button located in the right of Download drop down menu this will pop up another window as shown below If the network settings are correct and network cable OK you would see AM1808 65535 in Active target devices edit box select device AM1808 65535 and click OK button to go back to Connectivity Options dialog click Apply gt Close gt finish under Connectivity Options setting Copyright 2011 by element14 User Manual 273 elementiu O Ethernet Download Settings Target device boot name 41806 65535 IP address 0 0 0 0 Boot loader 0 0 Active target devices 4M1808 65535 TFTP block s
26. CD module type before sysgen and build BSP Copyright 2011 by element14 User Manual 56 Ges 7 element u ARE For 4 3 LCD If you are using 4 3 LCD screen modify the line as shown below at platform SBC801 8 SBC8018 bat set BSP_LCD43INCH 1 For 7 LCD If you are using 7 LCD screen modify the line as shown below at platform SBC801 8 SBC8018 bat set BSP_LCD43INCH The default installation path of the Windows Embedded CE 6 0 in this context is C WINCE600 4 4 3 Sysgen amp Build BSP For sysgen and to build the BSP please follow the below steps 1 Open the existing project file OMAPL138_AM18X_SAMPLE sin located at C WINCE600 OSDesigns OMAPL138_AM18X_SAMPLE 2 Click Build gt Build Solution in vs2005 to sysgen and build BSP 3 Once you finish sysgen and build process EBOOTNANDFLASH nb0 Nk bn NK nbo0 will be created at the directory location C WINCE600 0SDesigns OMAPL 138_AM18X_SAMPLE OMAPL138_AM18X_SAMPL E RelDir OMAPL138 AM18X ARMVAI Release Now copy EBOOTNANDFLASH nb0 to the directory D sbc8018 bin and copy Nk bn NK nb0 to the TF card FAT FAT32 format 4 Now to update the system image please refer to the section 4 5 below How to Update the System Image Copyright 2011 by element14 User Manual element 4 SEN 4 4 4 Source code path of all drivers in BSP Table 4 2
27. D_DCLK LCD Pixel Clock 33 GND GND 34 TOUCH_X1 Input 1 to the x plate for the touch screen 35 TOUCH_X2 Input 2 to the x plate for the touch screen 36 TOUCH_Y1 Input 1 to the y plate for the touch screen 37 TOUCH_Y2 Input 2 to the y plate for the touch screen 38 R_LCD_SPICLK SPI clock 39 R_LCD_MOSI Slave data in master data out Copyright O 2011 by element14 User Manual element u SERRE 40 R_LCD_MISO Slave data out master data in 41 R_LCD_SPICS SPI enable 42 IIC_CLK IIC master serial clock NC 43 IC DAT IIC serial bidirectional data NC 44 GND GND 45 1P8V_LDO 1 8V 46 3P3V 3 3V 47 5VDC_IN 5V 48 5VDC_IN 5V 49 RESET 1 8V 50 R_LCD_PWREN Power on enable 2 3 5 AUDIO OUTPUT Jack Table 2 5 Audio out interface J38 Pin Signal Function 1 GND GND 2 LINE_OUT_LP Left output 3 LINE_OUT_RP Right output 4 LINE_OUT_RP Right output 5 LINE OUT LP Left output Copyright 2011 by element14 16 User Manual 2 3 6 Camera Interface elementiu Table 2 6 camera interface S Premier Farnell J35 J43 Pin Signal Function 1 GND GND 2 DO Test Point 3 D1 Test Point 4 H CAM DO VPIF capture data bit 0 5 R_CAM_D1 VPIF capture data bit 1 6 R_CAM_D2 VPIF capture data bit 2 7 R_CAM_D3 VPIF capture data bit 3 8 R_CAM_D4 VPIF capture
28. Disk O Use existing hard disk ubuntu vdi formal 8 00 GB 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 Y Create Hew Virtual Disk Welcome to the Create New Virtual Disk Wizard This wizard will help you to create a new virtual hard disk for your virtual machine Use the Next button to go to the next page of the wizard and the Back button to return to the previous page You can also press Cancel if you want to cancel the execution of this wizard Figure Appendix 2 5 Click Next again Copyright 2011 by element14 User Manual S element n NE Hard Disk Storage Type P Create Hew Virtual Disk Select the type of virtual hard disk you want to create A dynamically expanding storage initially occupies a very small amount of space on your physical hard disk It will grow dymamically up to the size specified as the Guest OS claims disk space fixed size storage does not grow It is stored in a file of approximately the same size as the size of the virtual hard disk The creation of a fixed size storage may take a long time depending on the storage size and the write performance of your harddisk Storage Type O Dynamically expanding storage Figure Appendix 2 6 Select Fixed size storage and click Next again Y Create Hew Virtual
29. Disk Virtual Disk Location and Size Press the Select button to select the location of a file to store the hard disk data or type a file name in the entry field Location F WbuntuWbuntu vdil a Select the size of the virtual hard disk in megabytes This size will be reported to the Guest 0S as the maximum size of this hard disk Size m Y 8 00 GB 2 00 TB Figure Appendix 2 7 Ubuntu s default installation is less than 8 GB If you plan on adding software or downloading large files in your virtualized Ubuntu you should select more space accordingly Copyright 2011 by element14 User Manual Clement SERRE Y Create New Virtual Disk Summar y You are going to create a new virtual hard disk with the following parameters Type Fixed size storage Location G Ubuntu systemiUbuntu vdi Size 8 00 GB 8589934592 B If the above settings are correct press the Finish button Once you press it anew hard disk will be created Figure Appendix 2 8 S Oracle VE VirtualBox Manager You are going to create a new virtual hard disk with the following parameters Creating fixed medium storage unit G Vbuntu system Ubuntu vdi a ss x 1 minute 56 seconds remaining Ir audio Host Driver Windows DirectSound Controller ICH AC9T Figure Appendix 2 9 Click Finish and wait for the virtual hard drive to be created This is actually just a very large f
30. GND GND 2 NC NC 3 5V Power supply 5V 2A Type Copyright 2011 by element14 User Manual 24102 element lu WAS 2 3 2 Power Output Interface Table 2 2 power output interface J18 Pin Signal Function 1 5V 5V output 2 GND GND 2 3 0 Power Switch Table 2 3 power switch Swi Pin Signal Function 1 DC IN VDD Input 2 5VDC_IN 5V 3 NC NC 2 3 4 TFT_LCD Interface Table 2 4 TFT_LCD interface J1 Pin Signal Function 1 B_NUO Test Point 2 B_NU1 Test Point 3 B_NU2 Test Point 4 LCD D LCD data bitO 5 LCD Di LCD data bit1 6 LCD_D2 LCD data bit2 7 LCD_D3 LCD data bit3 8 LCD_D4 LCD data bit4 9 GND GND Copyright 2011 by element14 14 O Premier Farnell elementiu 10 G_NUO Test Point 11 G_NU1 Test Point 12 LCD_D5 LCD data bit5 13 LCD_D6 LCD data bit6 14 LCD_D7 LCD data bit7 15 LCD_D8 LCD data bit8 16 LCD_D9 LCD data bit9 17 LCD_D10 LCD data bit10 18 GND GND 19 R_NUO Test Point 20 R_NU1 Test Point 21 R_NU2 Test Point 22 LCD Di LCD data bit11 23 LCD_D12 LCD data bit12 24 LCD_D13 LCD data bit13 25 LCD_D14 LCD data bit14 26 LCD_D15 LCD data bit15 27 GND GND 28 R_LCD_DEN LCD AC bias enable chip select 29 R_LCD_HSYNC LCD vertical sync 30 R_LCD_VSYNC LCD horizontal sync 31 GND GND 32 R_LC
31. NAND write device 0 offset Ox600000 size 0x3b57dc 3889152 bytes written OK 3 NAND Flash boot up For NAND flash boot up make sure the DIP switch S7 settings are as below Figure 3 11 Boot up from NAND Flash Copyright 2011 by element14 User Manual 41 SES e e NS mg element iu S 3 6 Test Procedures 3 6 1 Various Tests Scenario 3 6 1 1 LED Testing The SBC8018 evaluation board is having following LEDs D5 is power LED D2 is heartbeat LED D3 and D4 are user s LED The following operation can be carried out using HyperTerminal 1 Control D3 root sbc801 8 echo 0 gt sys class leds led2 brightness root sbc801 8 echo 1 gt sys class leds led2 brightness 2 Control D4 root sbc801 8 echo 0 gt sys class leds led3 brightness root sbc8018 echo 1 gt 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 root sbc801 8 hexdump dev input eventO 0000000 06f5 49e5 206f 0001 0001 0100 0000 0000 0000010 06f5 49e5 208d 0001 0000 0000 0000 0000 0000020 06f5 49e5 1c89 0003 0001 0100 0001 0000 0000030 06f5 49e5 1ca9 0003 0000 0000 0000 0000 0000040 07b5 49e5 d3fd 0008 0001 0101 0000 0000 0000050 07b5 49e5 d41d 0008 0000 0000 0000 0000 0000060 07b5 49e5 63d9 000b 0001 0101 0001 0000 0000
32. 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 6 If you receive ping response like above indicates the successful communication between the board and the PC IP address of the network adapter configured in OTG cannot be the same as that of Ethernet interface Copyright 2011 by element14 User Manual 46 element ue 3 6 1 7 USB HOST Testing 1 Connect the USB flash disk the system will automatically mount the file system of the USB flash disk under the directory media root sbc8018 cd media root sbc8018 media Is card hdd mmcbik0p1 ram sdai cf mmci net realroot union You can see the USB flash disk contents using the below command root sbc8018 media Is sdat flash uboot bin u boot bin x load bin ift for NAND mlo ulmage ramdisk gz ubi img 3 6 1 8 Audio Testing The board has multiple audio input and output interface we can use the alsa utils utility available in the file system to test the board audio in order to test the audio please follow the below steps 1 Recording Test To test the recording functionality first plug in the microphone and use the below command to start the recording root Sbc80
33. Power supply class support gt lt gt Hardware Monitoring support gt lt gt Generic Thermal sysfs driver gt Watchdog Timer Support gt Sonics Silicon Backplane gt Multifunction device drivers gt Multimedia devices gt Graphics support gt lt gt Sound card support gt al HID Devices gt fia USB support lt gt HHC SD SDIO card support gt lt gt Sony HemoryStick card support EXPERIMENTAL gt Accessibility support gt LED Support gt lt gt Real Time Clock gt DMA Engine support gt Yoltage and Current Regulator Support gt lt gt Userspace 1 0 drivers gt CBUS support gt Sel ect lt Exit gt lt Help gt Figure 3 4 3 Select USB Gadget Support EMI 6 2m USB Audio interface support I 216 USB Audio interface support U devices from Ontrak Control Systems B 7 Segment LED Display B Diamond Rio500 support B Lego Infrared Tower support B LCD driver support B BlackBerry recharge support B LED driver support press CY7C63xxx USB driver support press USB thermometer driver support B Phidgets drivers emens ID USB Mouse Fingerprint sensor support an PCHCIA CardBus Adapter USB Client ple Cinewa Display support B 2 0 SVGA dongle support Net2280 515315 B LD driver ayStation 2 Trance Vibrator driver support 10 Warrior driver support USB testing driver iSight firmware loading supp
34. SBC8018 Evaluation Board Integrated with SATA TF OTG Audio in out USB Ethernet LCD CCD COMS Serial JTAG interface based on 32 bit microprocessor User Manual element SEE Version update records 1 0 2011 10 21 Initial version Copyright 2011 by element14 User Manual De element n SERRE Contents CHAPTER OVERVIEW E 6 1 1 PRODUCT INTRODUCTION eet 6 EE 7 CHAPTER 2 HARDWARE SVs TEN E 9 EN EE 9 2A E Hang e a ee iranin iaeiiai noE 9 2 e ER 9 2 2 INTRODUCTION TO THE EXPANDED CHIP coccion cn 11 22 a E E 11 2 22 ale AT TC 11 2 2 3 HOMSLOO2MEPR Encens are ete area 12 2 24 DMI Eeer 12 2 2 5 TLV320AIC33IRGZR nan rnnnnnnnannnnninnss 12 OM RS stances stesatecacesatetatesatatetesatatete tases 12 2 3 HARDWARE INTERFACE AAA 13 A POWO elle AAA 13 e el 14 2 3 3 POWOT A ei EE E EEEE EEEE EEEE ERES 14 2 34 TFT_LOD Interfasea ineine aeeie aii eaaa aa aaia 14 EE 16 A A E 17 23 MOIN E ee A E 18 2 9 5 A 18 RR ln ne 19 2 310 SATA Interface Ee 19 23 USB OTG aler 20 SOS TIRE 21 23 13 TF Card M Or A E a 21 Copyright 2011 by element14 User Manual is element u SERRE A 22 2 3 15 Expansion Interface sise 22 2 3 16 DIP Switeliiiea5 5 55 5 een 25 2 3 17 KEY Switch c0 cccccccsesccssesessstscsssecsssecesssscessencsesenesseassssatecssenesesesessucesseneeesssessencessees 26 vn MO A N e e 26 CHAPTER 3 LINUX OPERATING SYSTEM wscessncccccincccccnsccereneccsntnecternsecctexeccscncarconscceto
35. acle VE VirtualBox Ubuntu 11 04 Figure Appendix 2 16 Copyright O 2011 by element14 User Manual 97 elementiu O Premier Farnell Asturian Bahasa indonesia Bosanski Catal e tina Dansk Deutsch Eesti por AA Esperanto Euskara Try Ubuntu Install Ubuntu Fran ais Gaellge You can try Ubuntu without making any changes ba your computer directly Galego From this CD Hrvatski 8 6 Or if you re ready you can install Ubuntu alongside or instead of your slenska current operating system This shouidr ttake too long Italiane Kurdi You may wish to read the release notes Figure Appendix 2 17 Select language and click Install Ubuntu install Preparing to install Ubuntu For best results please ensure that this computer of has at least 4 4 GB available drive space y is plugged into a power source 2 is connected to the internet Download updates while installing Ubuntu uses third party software to display Flash MP3 and other media and Lo work with some wireless hardware Some of this software is closed source The software is subject to the license terms included with the software s documentation Install this third party software Fluendo MP3 plugin includes MPEG Layer 3 audio decoding technology licensed from Fraunhofer 15 and Thomson Figure Appendix 2 18 Click Forward Copyright 2011 by element14 User Manual element SERRE Install Allocate d
36. ate 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 to enter Linux system Please make sure the DIP switch S7 settings are as below Figure 3 7 Boot up from NAND Flash 3 5 1 Boot up From Serial Port 1 First setup the hardware environment make sure the DIP switch S7 settings are as below Figure 3 8 Boot up from Serial port 2 Now open the AlSgen_d800k006_Install_v1 7 exe Copyright 2011 by element14 User Manual 2 97 Ee em e gt elementiu S Premier Farnell Windows XP gt Start gt All Programs gt Texas Instruments gt AlSgen for D800K006 gt UART Boot Host Add u boot uart ais bin Directory CD linux image to the AIS File as below ONAP L138 UART Boot Host Ver AIS File Serial Port COMI at 1115200 Wait for BOOTME 2010 Texas Instruments Inc Figure 3 9 3 Click the Start and power ON the evaluation board 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 3 5 2 How Update Imag
37. data bit 4 9 R_CAM_D5 VPIF capture data bit 5 10 R_CAM_D6 VPIF capture data bit 6 11 R_CAM_D7 VPIF capture data bit 7 12 D10 Test Point 13 D11 Test Point 14 GND GND 15 PCLK Pixel clock 16 GND GND 17 CAM HG A0 Horizontal synchronization 18 5VDC_IN 5V 19 CAM VG A0 Vertical synchronization 20 3P3V 3 3V 21 CAM_XCLKA_AO Test Point 22 CAM_XCLKB_AO Test Point 23 GND GND 24 CAM_FLD_AO Test Point 25 uP_CAM_WENO Test Point 26 uP_CAM_STR Test Point Copyright 2011 by element14 User Manual S Premier Farnell elementiu 27 CAM_SDA 12C0 serial data 28 CAM_SCL 12C0 serial clock 29 GND GND 30 1P8V_LDO 1 8V 2 3 7 MIC IN Jack Table 2 7 MIC IN interface J39 Pin Signal Function 1 GND GND 2 LINE_IN_LP Left input 3 LINE_IN_RP Right input 4 LINE_IN_RP Right input 5 LINE_IN_LP Left input 2 3 8 Serial Ports Table 2 8 serial port J9 Pin Signal Function 1 NC NC 2 RSA_RXD Receive data 3 RSA_TXD Transit data 4 NC NC 5 GND GND 6 NC NC 7 RSA_RTS Request To Send 8 RSA_CTS Clear To Send 9 NC NC 10 GND GND 11 GND GND Copyright O 2011 by element14 185 User Manual 2 3 9 LAN Interface element u Wee de El Table 2 9 LAN interface J58 Pin Signal Function 1 LAN_TX TX output 2 LAN_TX TX output Lin
38. 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 1 First insert the TF card in the board the system will automatically mount the file system of the TF card under the directory media root sbc8018 cd media root sbc8018 media Is card hdd mmcbik0p1 ram union cf mmc net realroot 2 Enter the following command to see the TF card content root SBC80root sbc801818 media Is mmcblkOp1 flash uboot bin u boot bin x load bin ift for NAND mlo ulmage ramdisk gz ubi img 3 6 1 6 USB Devices Testing In the USB DEVICE testing a USB cable is used to connect the miniUSB interface of the development board and the USB interface of the PC for the computer end the development board is recognized as a network device 1 The computer needs to be installed with Linux USB Ethernet driver please refer to Appendix Ill for detailed installation procedure Copyright 2011 by element14 User Manual element 1u NS 2 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 lo 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 overrun
39. ed1 open LED_D3 O_RDWR lt 0 printf error in open s LED_D3 Copyright O 2011 by element14 User Manual 51 element u SRE return 1 if f_led2 open ED DA O_RDWR lt 0 printf error in open s LED_D4 return 1 for i 0 i lt 100 i dati i 8 0x1 1 0 dat2 i amp 0x2 1 0 write f_led1 amp dat1 sizeof dat1 write f_led2 amp dat2 sizeof dat2 usleep 300000 return 0 Step 2 Cross compilation arm none linux gnueabi gcc led_app c o led_app Step 3 Download and run Now download the compiled code into the evaluation board through TF card USB flash disk or network locate the the directory with the led_app file and enter the following commands and press Enter to run led_app in the background chmod a x led_app Nled_app Copyright O 2011 by element14 User Manual 52 element SERRE 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 2 Software Resources BSP Board Support Package CD WINCE600 BSP OMAPL138_AM18X rar CD WINCE600 BSP OMAPL13X_TI_V1 rar Windows Embedded CE 6 0 R3 sample project CD WINCE600 sample projechOMAPL138_AM18X_SAMPLE rar
40. eeeeeeeeeauaaeeceeeseeesaaaaeeeeseseuenanaaneesess 75 4 6 1 How to use Power Management 75 ApG23HowiouseCAM OOO Amodule iii erreennerrre eee eeeennneeeeeeeeeeeenennnnsee 76 4 7 SBC8018 WINDOWS CE 6 0 WIN32 API APPLICATION DEVELOPMENT DEMO siens 77 GREEN 78 APPENDIX I HARDWARE DIMENSIONS rnnr trr renn AA EEEEEEERAEEEE EEEE ERRARE EEEE enen 78 APPENDIX Il THE INSTALLATION OF UBUNTU 0cececccccecceceeseeececeececeaeusceceeeceeecuaeeeeeeeeeeeeeaaaaaeeeess 79 APPENDIX II DRIVER INSTALLATION FOR LINUX USB ETHERNET RNDIS GADGET ociscene 94 APPENDIX IV TugGEmupOETEITPGEpWER nr rreenenn 97 CUSTOMER SERVICE amp TECHNICAL SUPPORT ccccccccccsssscscccccccssscscsccccsssssseeeeeeeseeseeesssees 99 CUSTOMER GERVICE eee eecceneneeeeeeeeecennnneeeeeeeeeeennnnnnnee 99 TECHNICAL SUPPORT iecceeiiiiiirrcceeeeenneesseeecececennneeseeeeececeeneneeeeeeeceeennnennseeeeene 99 NOTES cece 99 Copyright 2011 by element14 User Manual 5 Clement SERRE 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 board expands the hardware capabilities including LAN port audio input output interface USB OTG USB HOST SATA
41. en for D800K006 to open AlSgen tool a Launches the ASlgen click File gt 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 sbc801 8 u boot uart ais bin d Click Generate AIS u boot uart ais bin will be generated under the folder d sbc801 8 Copyright 2011 by element14 User Manual MER elementi is AlSgen for D800E006 File Help General Peripheral PLLO ELL DDR Device Type 800x002 v lam v Boot Mode UART2 v Clock Source Crystal ei 24 mz Configure PLLO REESEN C Configure SDRAM Configure DDR Configure PSC Configure Pinmux C Enable CRC O Specify Entrypoi ARM Application FileD sbc8018 u boot m AIS Output File d sbc8018 u boot uart ais bin m Wrote 210836 bytes to file d sbc8018 u boot uart ais bin Figure 3 2 ASlgen for D800K006 3 To generate u boot nand ais bin for NAND Flash boot up a Launches the ASlgen click File gt Load Configuration to open AM1808 NAND cfg 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 sbc801 8 u boot nand ais bin d Click Generate AIS u boot nand ai
42. es 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 Below IP will be taken as an example PC 192 192 192 154 Evaluation board 192 192 192 215 1 PC TFTP service Copyright O 2011 by element14 User Manual 38 a 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 Tftpd32 by Ph Jounin Current Directory d sbc8018 DN Browse Server interface IENEN EZAT M Show Dir Tftp Server Tftp Client DHCP server Syslog server Log viewer starttime progress About Settings Help Figure 3 10 tftpd32 tool b Copy u boot nand ais bin ulmage_4 3 ulmage_7 jffs2 img from the CD under the folder CD linux image to the folder d sbc8018 c According to your LCD size 4 3 or 7 rename the ulmage_xx as ulmage 2 U BOOT prompts Input the below commands with U BOOT prompts as below a Set the environment with ipaddr and serverip U Boot gt setenv ipaddr 192 192 192 215 U Boot gt setenv serverip 192 192 192 154 b Erase the NAND Flash U Boot gt nand erase NAND erase device 0 whole chip Skipping bad block at Ox0Off80000 Skipping bad block at Ox0ffa0000 Skipping bad block at OxOffc0000 Copyright
43. es with an input voltage range between 1 8V and 6 3V allowing them to be supplied from one of the step down converters or directly from the main battery 2 2 2 K9F1GO8U0B 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 Copyright 2011 by element14 User Manual U U a KK eS KB _ S element iu SN 2 2 3 H5MS1G62MFP The H5MS1G62MFP K3M is the 128MB DDR memory chip used in SBC8018 evaluation board This DDR RAM is connected directly the CPU DDR SDRAM interface for faster memory access 2 2 4 DM9161 The DM9161 is a fully integrated and cost effective low pin count single chip Fast Ethernet controller with a general processor interface a 10 100M PHY and 4K DWORD SRAM It is designed with low power and high performance process that support 3 3V with 5V I O tolerance SBC8018 uses 10 100M adaptive network interface of DM9161 in which the 10 100M Ethernet module is compatible to IEEE 802 3 standard protocol The cable interface used is a standard RJ45 cable with a connection indicator and a transmission indicator 2 2 5 TLV320AIC33IRGZR The TLV320AIC33IRGZR is a low power stereo audio codec with stereo headphone amplifier as well as ten audio inputs and seven audio outputs programmable in single ended or fully differential configurations Exten
44. g config make menuconfig Copyright 2011 by element14 User Manual 33 element u SERRE 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 1 Select Device driver General setup gt el Enable loadable module support gt x Enable the block layer gt System Type gt Bus support gt Kernel Features gt Boot options gt CPU Power Management gt Floating point emulation gt Userspace binary formats gt Power management options gt Networking support gt evice Drivers File systems gt Kernel hacking gt Security options gt Cryptographic API gt Library routines gt Load an 4lternate Configuration File Save an Alternate Configuration File lt Exit gt lt Help gt Figure 3 3 2 Select USB support Copyright 2011 by element14 User Manual element ATX ISDN support gt Input device support gt Character devices gt lt gt 12C support gt el SPI support gt GPIO Support gt lt gt Dallas s l wire support gt lt gt
45. hernet RNDIS Gadget has not passed Windows Logo testing to verify its compatibility with Windows XP Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that has passed Windows Logo testing Continue Anyway STOP Installation Figure Appendix 3 3 Copyright 2011 by element14 User Manual elementu S 4 Please wait until the installation is completed Found New Hardware Wizard Completing the Found New Hardware Wizard The wizard has finished installing the software for Linux USB Ethermet ANDIS Gadget Click Finish to close the wizard Figure Appendix 3 4 Copyright 2011 by element14 User Manual 96 E e element IL SE mier Farn elt Appendix IV The Setup Of TFTP Server 1 Install client gt sudo apt get install tfto hpa gt sudo apt get install tftod hpa 2 Install inet gt sudo apt get install xinetd gt 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 gt cd gt sudo mkdir tftpboot gt sudo chmod 777 tftpboot Secondly add in etc inetd conf
46. ial cable 2 DIP Switch settings S7 3 and S7 4 should be ON other switch should be OFF Figure 4 2 3 Copy the folder bin from the CD folder CD WINCE600 tools to the folder D sbc801 8 4 Now according to your LCD screen size copy the EBOOTNANDFLASH nb0 from the CD folder WINCE600 Image 4_3INCH or WINCE600 image 7 INCH to the folder D sbc8018 bin 5 Now start the Windows Command Prompt Click Start gt All Programs gt run and input CMD on the pop up dialog to enter Windows Command Prompt cmd exe now enter the Copyright 2011 by element14 User Manual 60 __ a aa element SERRE below commande in command prompt d cd sbc8018 6 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 7 Power ON the Kit You should see the erase cycle in progress 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 start the process again 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 NAND v p COM1 appStartAddr Oxc7f60000 appLoadAddr Oxc7f60000 arm nand ais 456mhz bin EBOOTNANDFLASH nb0 9 Power ON the Kit You should see write cycle in prog
47. ile that lives inside of your Windows installation Copyright 2011 by element14 User Manual elementiu SERRE Create New Virtual Disk Summar y You are going to create a new virtual hard disk with the following parameters Type Fixed size storage Location G Ubuntu systen Ubuntu vdi Sire 8 00 GB 6589934592 B If the above settings are correct press the Finish button Once you press it anew hard disk will be created lt Back Finish Cancel Figure Appendix 2 10 Click Finish The virtual hard drive is successfully created Copyright 2011 by element14 User Manual element u SERRE 3 Installing Ubuntu Oracle VE VirtualBox Manager Ubuntu Settings General E System I Displey Basic Advanced Description Storage Hame Ubuntu Audio Operating System Linux Network Version Ubuntu Serial Ports USB Shared Folders Select a settings category from the Isst on the Jeft hand side and move the mouse over a settings stem to get more information T 4 Ubuntu Settings Storage Display Storage Tree O Storage Choose a virtual CD DVD disk file P Audio Look in software sl ec ES Network 2 Bubuntu 11 04 desktop 385 1 Serial Ports use Shared Folders Files of type All CD DYD ROM disk images dmg iso cdt e Figure Appendix 2 12
48. ings 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 Copyright 2011 by element14 User Manual O Premier Farnell elementiu 8 Allow DSP to Boot 0 Exit and Continue Selection 2 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 b Press the key 0 gt 0 by step by step to start the system from SD card and you would see the following message on your PC Hyper Terminal 1 Show Current Settings 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 Copyright 2011 by element14 User Manual 65 _ elementu S Selection 0 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 ReadFileFromSDMMC reading file nk bin SDBootPDD PDD SDinitializeHardware MMCSD SDBootMDD SDinitializeHardware SD card detected SDBootMDD SDinitializeHardware V2 0 card
49. ize b Copy NK nb0 NK bin to TF card 3 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 a Press the key 2 gt 2 gt 2 step by step to select boot NK from TF card as shown below Booting with TI UBL Device OPP 456MHz 1 3V 01 Microsoft Windows CE Bootloader Common Library Version 1 4 Built Sep 23 2011 15 29 43 INFO OALLogSetZones dpCurSettings ulZoneMask Oxb Microsoft Windows CE EBOOT 1 0 for AM1808 OMAPL138 AM18X EVM Built Sep 23 2011 at 15 30 38 BSP version 1 3 0 SOC version 1 3 0 CODE 0xC7F60000 gt OxC7FA0000 DATA 0OxC7FA0000 gt 0xC7FE0000 STACK 0xC7FE0000 gt 0xC8000000 Enabled OAL Log Zones ERROR WARN INFO Platform Init done System ready Preparing for download Predownload FMD ReadID Mfg 0x2c Dev 0xda WARN Invalid boot configuration found using defaults Lan MAC 00 08 ee 00 00 00 Copyright 2011 by element14 User Manual 63 element iu au 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 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 2 1 Show Current Sett
50. ize in bytes S Premier Farnell DE Restore Figure 4 7 10 Now go to Target gt 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 Image Size Image Launch Addr 0x80001000 Image ROMHDR Boot Device Type 2 6 Got EDBG_CMD_JUMPIMG Got EDBG_CMD_CONFIG flags 0x00000000 BLFlashDownload Logicalloc 0x62000000 Load NK image from flash memory NAND FMD ReadID Mfg 0x2c Dev 0xda BLFlashDownload cp1 Copyright 2011 by element14 74 User Manual element u Wee de El 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 gt 2 gt 3 step by step to select NK from NAND flash and press 0 gt 0 to start the system from NAND flash 4 6 User Instructions 4 6 1 How to use Power Management 1 This BSP release implements support for some basic power management states and system suspend resume There is no support for voltage or frequency scaling 2 Power Management Configuration The sample PM configuration is enabled by default in platform reg The configuration can be disabled by setting the BSP_POWERMAN variable in lt BSPFolder gt OMAPL138_AM18X bat
51. k to analog transmit power input with 3 CT OR resistance 4 485 Transformer 5 788 Transformer Link to analog transmit power input with 6 CT OR resistance 7 LAN_RX RX input 8 LAN_RX RX input 9 YEL Link LED 10 VDD 3 3V Power for LED 11 GRN Speed LED 12 VDD 3 3V Power for LED 13 CHGND GND 14 CHGND GND 15 NC NC 16 NC NC 2 3 10 SATA Interface Table 2 10 SATA interface J32 Pin Signal Function 1 GND GND 2 SATA_TXP SATA receive data positive Copyright 2011 by element14 19 User Manual element SEE 3 SATA TSN SATA receive data negative 4 GND GND 5 SATA_RXN SATA transmit data negative 6 SATA_RXP SATA transmit data positive 7 GND GND 8 NC NC 9 GND GND 2 3 11 USB OTG Interface Table 2 11 USB OTG interface J34 Pin Signal Function 1 USBO_VBUS 5V 2 USBO_D USB Data 3 USBO_D USB Data 4 ID USB ID 5 GND GND 6 G2 GND 7 G3 GND 8 G4 GND 9 G5 GND 10 G6 GND 11 NC NC 12 NC NC Copyright 2011 by element14 20 User Manual 2 3 12 USB HOST Interface elementiu S Premier Farnell Table 2 12 USB HOST interface J33 Pin Signal Function 1 USB1_VBUS 5V 2 USB1_D USB Data 3 USB1_D USB Data 4 GND GND 5 CHGND GND 6 CHGND GND 2 3 13 TF Card Interface Table 2 13 TF interface
52. le 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 following command root Sbc8018 camera_test i 0 n 3 f nv16 S s 720x576 dev video0 The framebuffer device was opened successfully fscreen line_length 960 vscreen 480x272 16bpp xoffset 0 yoffset 0 The framebuffer device mapped successfully Device dev video0 opened DA850 OMAP L138 Video Capture Once the above commands are executed you should be able to see the captured images from the camera module on your LCD screen 3 6 1 11 SATA Testing 1 Connect SATA device to the SATA connector marked with J32 and connect the SATA device power cable to the J37 connector on the evaluation board 2 Now power ON the evaluation board you can see the SATA device contents by using the Copyright 2011 by element14 User Manual 50 element SEE following command 3 7 Application Development This section will introduce you to the various steps involved in application development process Step 1 Code Editing Source Code led_app c Application Blinking D3 and D4 LEDS include lt stdio h gt include lt unistd h gt include lt fentl h gt define LED_D3 sys class leds led2 brightness define LED_D4 sys class leds led3 brightness int main int argc char argv int i int f_led1 f_led2 unsigned char dat dat2 if f_l
53. n S7 1 to ON position other switches to OFF position Figure 4 5 Boot up from NAND Flash 4 Select EMAC as boot media in EBOOT menu press key 2 gt 2 gt 1 steps by step as below 1 EMAC 2 NK from SD 3 NK from NAND flash 0 Exit and Continue Selection actual NK from SD 1 Boot device set to EMAC 5 Press 6 gt y this will enable the NK download to NAND Flash in EBOOT menu 1 Show Current Settings Copyright 2011 by element14 User Manual element ua 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 Setting the DHCP IP NETMASK according to your network environment confirm that the IP NETMASK of evaluation board is in the same sub network of your PC Press key 0 to return to EBOOT main menu Now press key 0 to prepare the NK bin download process from PC to the NAND flash You will see the below message on your PC Hyper Terminal window INFO Boot device uses MAC 00 08 ee ff ff ff EbootSendBootmeAndWaitForT ftp Sent BOOTME to 255 255 255 255 Sent BOOTME to 255 255 255 255 Sent BOOTME to 255 255 255 2
54. n the screen please select From list or designated location then click Next Found New Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps you install software for RNDIS Ethernet Gadget E If your hardware came with an installation CD lt 6 or floppy disk insert it now What do you want the wizard to do Install the software automatically Recommended Click Next to continue Figure Appedix 3 1 2 Designate a path for the USB driver and the USB driver directory is disk linux tools then click Next Copyright 2011 by element14 User Manual 94 element SERRE Found New Hardware Wizard Please choose your search and installation options Search for the best driver in these locations Use the check boxes below to limit or expand the default search which includes local paths and removable media The best driver found will be installed wvable media floppy CD ROM Include this location in the search C Documents and Settings workiDesktoptusb driv vw O Don t search will choose the driver to install Choose this option to select the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware Figure Appendix 3 2 3 When the following appears select Continue Hardware Installation The software you are installing for this hardware Linux USB Et
55. nncacaneceeens 27 3 1 INTRODUCTION a da e 27 3 2 SOFTWARE RESOURCES AA II 27 3 3 BOARD SUPPORT PACKAGE BSP FEATURES dt 28 SEENEN 29 3 4 1 How to Setup Operating System Development Environment oocoooccccnocccooccccoonncnancnnnnnos 29 K System Compilation 30 es A NPE neo annem E EE Smee EP 33 3 5 HOW TO UPDATE E ET 37 3 5 1 B tup From Serial POM E 37 3 5 2 How Update Images From Ethernet 38 SOES PROCEDURE S erren Pre eR ST 42 3 6 1 Various Tests Senai Onise iiia iia EE i EEEE EEEE EE EE 42 3 7 APPLICATION DEVELOPMENT scsi eds 51 CHAPTER 4 WINCE OPERATING SYSTEM c c cscscsseeesesseencesneensesneeseeeneesseeneesneeneesneenaesee 53 CERN 53 4 2 SOFTWARE RESOURCES tu a tO Ge 53 4 3 SOFTWARE FERIDBES ai a a ratne nrar rar nennen ennnen 54 4 4 SYSTEM DEVELOPMENT E 56 4 4 1 Installation of IDE Integrated Development Environment 56 4 4 2 Extract BSP and project files to 1DE 4 8 0 hs laicidad inn 56 4 4 35 Sysgen amp Build BSP wcccuiennea DUO LC LA ARR OR 57 4 4 4 Source code path of all drivers in ESP ie ere cee Reema 58 4 5 HOW TO UPDATE SYSTEM A E 60 Copyright 2011 by element14 User Manual 4 Clement SERRE 4 5 1 Downloading EBOOT to NAND Flash 60 4 5 2 Update TF Card NK runtime Images cooocoocccoccconccooncnoncnonccnnncnnnncnnncnnc cnn cnn cnn nc nnnnnnnnnnr 63 4 5 3 Downloading NK bin to NAND och 71 4 6 USER INSTRUCTIONS cccccccccccccccceseeeceeeeeecnuneseeeeeceeeeaueeese
56. nt will be explained below by taking Ubuntu operating system as an example 3 4 1 1 Installation of Cross Compilation Tools Installation of cross compilation tools is done by using the software CD provided along with this kit to start the process insert the CD and allow it for auto run Ubuntu will mount the disc under the directory media cdrom the cross compilation tools are saved under the directory media cdrom linux tools mkdir HOME tools cd media cdrom linux tools tar jxvf arm 2009q1 203 arm none linux gnueabi i686 pc linux gnu tar bz2 C HOME tools 3 4 1 2 Installation of Other Tools Some of the other development tools used for source code compilation are present in the directory linux tools the user can execute the following commands to copy them to the local folder cd media cdrom linux tools cp mkimage HOME tools cp mkfs jffs2 HOME tools Copyright 2011 by element14 User Manual 29 element iu S 3 4 1 3 Addition of environment variables After all above tools are installed it is necessary to use the following commands to add them in the temporary environment variables export PATH HOME tools arm 2009q1 bin HOME tools PATH The user can write it in the barsrc file under the user directory such that the addition of environment variables will be finished automatically when the system is booted command echo PATH can be used to check the path 3 4 2 System Compilation 3 4 2 1 Preparation
57. ontroller driver bsp OMAPL13X_TI_V1 SDHC bsp OMAPL138_AM18X SRC DRIVERS SDHC bsp OMAPL13X_TI_V1 SDBUS PMW driver bsp OMAPL13X_TI_V1 PWM bsp OMAPL138_AM18X SRC DRIVERS PWM Notification LED driver bsp OMAPL138_AM18X SRC DRIVERS NLED Touch Screen driver bsp OMAPL138_AM18X SRC DRIVERS TOUCH McBSP driver bsp OMAPL13X_TI_V1 MCBSP bsp OMAPL138_AM18X SRC DRIVERS MCBSP VPIF drive bsp OMAPL138_AM18X SRC DRIVERS CAMERA LAYER ED User Manual Copyright 2011 by element14 59 gt 8 eege element iu SES For more information on WinCE driver development please refer to below location for more documents for Windows Embedded CE 6 0 Start gt All programs gt Microsoft visual Studio 2005 gt MicroSoft Visual Studio Document gt Content C gt Windows Embedded CE 6 0 gt Develop a Device Driver 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 tool net framework is require to run this utility you can download net framework dotNetFx40_Full_x86_x64 exe from Microsoft 1 Make sure you have connected the evaluation board to the PC using ser
58. opyright 2011 by element14 User Manual 24 a SE S Premier Farnell elementi 24 12C0_SCL 12C0 serial clock 25 GND GND 26 12C0_SDA 12C0 serial data 27 GND GND 28 GND GND 29 GND GND 30 uP_SPIO_CLK SPIO clock 31 GDN GND 32 uP_SPIO_SOMI SPIO data slave out master in 33 GND GND 34 uP_SPIO_SIMO SPIO data slave in master out 35 GND GND 36 uP_SPIO_SCSn0 SPIO chip selects 37 5VDC_IN 5V 38 uP_SPIO_ENAN 1 8V 39 3P3V 3 3V 40 1P8V_LDO 1 8V 2 3 16 DIP Switch Table 2 17 DIP Switch S7 Pin Function 1 PWR_BOOT Link to PWR_BOOT with 1K resistor 2 GND Link to GND with 1K resistor 3 GND Link to GND with 1K resistor 4 PWR_BOOT Link to PWR_BOOT with 1K resistor 5 LCD_D12 LCD data bit 12 6 LCD Di LCD data bit 11 7 LCD_D10 LCD data bit 10 8 LCD_D9 LCD data bit 9 Copyright 2011 by element14 User Manual 2 3 17 KEY Switch element SERRE Table 2 18 KEY Switch Key Pin Function S6 uP_RESETn Device reset input S8 USER_BACK GPIO S9 USER_MENU GPIO 10 USER_HOME GPIO 2 3 18 LEDs Table 2 19 LED LED Pin Signal Function D2 User_LED_1 User Definitude D3 User_LED 2 User Definitude D4 User LED 3 User Definitude D5 3P3V 3 3V power indicator Copyright O 2011 by element14
59. ort USB YST driver USB Gadget Support xxx DTG and related infrastructure GPIO based peripheral only YBUS sensing transceiver Philips ISP1301 with OMAP OTG TWL4030 USB Transceiver Driver E Ge ERP RSL RRRABRE MAIN NNNNNNNNNNNN NNR AT IN IN LT LT IN LT NASA Suv Sel ect Ent lt Help gt Figure 3 5 Copyright 2011 by element14 User Manual 35 element wu SA 4 The configuration of USB Gadget Support can be changed as showed in the following USB Gadget Support Debugging messages DEVELOPMENT Debugging information files DEVELOPMENT Maximum VBUS Power usage 2 500 m USB Peripheral Controller Inventra HDRC USB Peripheral TI ADI gt USB Gadget Drivers Gadget Zero DEVELOPMENT Ethernet Gadget with CDC Ethernet support Gadget Filesystem EXPERI MENTAL File backed Storage Gadget testing version NEW GMA AAA ma Ss 8 VW wi wi a kel ki Serial Gadget with CDC ACM and CDC OBEX support MIDI Gadget EXPERI MENTAL Printer Gadget CDC Composite Device Ethernet and ACM vi d d ZN a VVVV lt Exit gt lt Help gt Figure 3 6 3 4 3 2 Compilation Save the configuration made and execute the following commands to recompile the kernel make ulmage make modules After completing the above steps a new kernel image ulmage and a module file g_file_storage ko will be generated under the directory arch arm boot and drivers usb gadget
60. ource NDIS Ethernet driver Source NAND FLASH driver Source Serial driver Source UPP driver Source SD MMC HOST controller driver Source PWM driver Source Notification LED driver Source Touch Screen driver Source McBSP driver Source VPIF driver Source Copyright 2011 by element14 User Manual 55 elementiu O Premier Farnell 4 4 System Development 4 4 1 Installation of IDE Integrated Development Environment Please install items below to windows XP Vista 1 Visual Studio 2005 2 Visual Studio 2005 SP1 3 Visual Studio 2005 SP1 Update for Vista vista system require 4 Windows Embedded CE 6 0 Platform Builder 5 Windows Embedded CE 6 0 SP1 6 Windows Embedded CE 6 0 R2 7 Windows Embedded CE 6 0 Product Update Rollup 12 31 2008 8 Windows Embedded CE 6 0 R3 9 Windows Embedded CE 6 0 Product Update Rollup 12 31 2009 10 ActiveSync 4 5 11 Windows Mobile 6 Professional SDK CD does not provide WinCE development environment tools please down from htto Awww microsoft com download en default aspx 4 4 2 Extract BSP and project files to IDE The following preparations should be made 1 Extract CDROM WINCE600 bsp OMAPL138_AM18xX rar to CAWINCEGOOPLATFORM directory 2 Extract CDROM WINCE600 bsp OMAPL13X_TI_V1 rar to C WINCE600 PLATFORM COMMON SRC SOC 3 Copy CD directory CDROM WINCE600 sample project OMAPL138_AM18X_SAMPLE to C WINCE600 OSDesigns directory 4 Please modify the L
61. pp_analog exe to view camera preview The VPIF driver support PAL 720 576 and NTSC 720 480 camera and the drivers is default set to support the PAL camera some parameter in VPIF drivers should be change with NTSC camera if you want to view the whole of picture in LCD please use 7inch LCD connect to SBC8018 4 7 SBC8018 Windows CE 6 0 win32 API application development Demo For SBC8018 Windows CE 6 0 win32 API development demo please refer to bsp OMAPL138 AM18X SRC TEST APPS Copyright 2011 by element14 User Manual 77 element SRI Appendix Appendix I Hardware Dimensions o le O O e o O O O O O O jo O jo O Q Q Lo 00000000000000000000 00000000000000000000 00000000000000000000 WW UN 28 T000 rZ 020 E 096 Figure Appendix 1 1 Hardware Dimensions Diagram Copyright O 2011 by element14 User Manual Clement SERRE Appendix Il 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 VirtualBox allows you to run an entire operating system inside another operating system Please be aware that you should have a minimum of 512 MB of RAM For better performance 1 GB of RAM or more
62. r 1 8 V logic with touch screen Data Transfer Interface e Serial port H UART 1 3 line serial port TTL based voltage H UART2 3 line serial port TTL based voltage WR UARTS3 5 line serial port RS232 based voltage e 1 x USB 2 0 OTG interface OTG connector e 1x USB1 1 Interface Type A e 10 100Mbps Ethernet Interface RJ45 jack e 1 channel TF card slot e 1channel SATA interface supports both SATA I 1 5 Gbps and SATA II 3 0 Gbps e 1 channel 14 pin JTAG interface e Multi functional expand interface IIC SPI MCBSP UART 1 8V 3 3V 5V GPIO EMA Input Interface e 2x Camera interfaces 8 bit 1 8 V logic e 4 buttons RESET BACK HOME MENU o 1 Power LED e 3 User LEDs Copyright 2011 by element14 User Manual SE element OA 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 e ARM926EJ S RISC processor core and associated memories e A set of I O peripherals e A powerful DMA subsystem and SDRAM EMIF interface 2 1 2 CPU Features Clock The OSCIN OSCOUT system input clock 24 MHz is used to generate the main source clock for the device It also provides the DPLLs to several CPU other modules Reset The function of reset is determined by the input signal on RESETN pin of the CPU Reset is enabled when LOW level
63. ress wait until it completes Copyright 2011 by element14 User Manual 61 UIS Flashing UBL arm nand ais 456mhz bin 13776 bytes at Happ Target SENDIMG Target BEGIN Image data transmitted over UART Target DONE UBL programming complete Target SENDING Target DONE Flashing application EBOOTNANDFLASH nbG 262144 bytes gt at 6x88610000 Target SENDIMG Target BEGIN Image data transmitted over UART Target DONE Application programming complete Target Number of blocks needed for header and data 1515151515158 Target Attempting to start in block number B8xBxBBBBABB6 Target Magicnum x x55424CBB Target Entrypoint x xC7F60068 Target Numpage x x86666886 Target Writing header and image data to Block BxBBBABBB6 Page 6x666668 Target DONE Target DONE Operation completed successfully 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 Copyright 2011 by element14 User Manual 62 elementiu SE 4 5 2 Update TF Card NK runtime images 1 Format TF card Format the TF Card in FAT FAT32 file system 2 Copy NK runtime image a Navigate to the directory WINCE600 image Icd7inch or WINCE600 image Icd4 3inch according to the LCD s
64. rive space This computer currently has no detected operating systems What would you like to do Erase disk and install Ubuntu Warning ei Something else Quit Back Forward Figure Appendix 2 19 Click Forward Install Erase disk and install Ubuntu Select drive SCSI3 0 0 0 sda 8 6 GB ATA VBOX HARDDISK Ubuntu dev sda ext4 8 6 GB The entire disk will be used Quit Back Install Now 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 Copyright 2011 by element14 User Manual 89 element nu SERRE install Where are you New York Figure Appendix 2 21 While Ubuntu is preparing files to copy over for installation it ll ask you some questions They re self explanatory Install Keyboard layout Choose your keyboard layout Tajikistan Tanzania Alternative international Thailand Cherokee Turkey Classic Dvorak Turkmenistan Colemak Dvorak Ukraine Dvorak alternative international no dead keys United Kingdom Dvorak international with dead keys Uzbekistan International AltGr dead keys Vietnam International with dead kevs e here Detect Keyboard Layout Figure Appendix 2 22 Copyright 2011 by element14 User
65. s 0 carrier 0 collisions 0 txqueuelen 0 RX bytes 2316 2 2 KiB TX bytes 2316 2 2 KiB usbO Link encap Ethernet HWaddr 5E C5 F6 D4 2B 91 inet addr 192 168 1 115 Bcast 192 168 1 255 Mask 255 255 255 0 UP BROADCAST RUNNING MULTICAST MTU 1500 Metric 1 RX packets 253 errors 0 dropped 0 overruns 0 frame 0 TX packets 43 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 1000 RX bytes 35277 34 4 KiB TX bytes 10152 9 9 KiB 3 After the development board is configured please click My Computer gt gt Network Neighborhood gt gt Check Network Connection you can see a virtual network adapter is added at the PC end 4 Now go to the virtual network adapter properties and select Internet Protocol TCP IP to configure the IP address of the virtual network adapter Copyright 2011 by element14 User Manual 45 element SERRE Internet Protocol TCP IP Properties Kl General You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings Obtain an IP address automatically Use the following IP address IP address 192 168 1 15 Subnet mask 255 255 255 0 Default gateway 192 168 1 1 Obtain DNS server address automatically Use the following DNS server addresses Preferred DNS server Alternate DNS server Figure 3 12 5
66. s bin will be generated under the folder d sbc801 8 3 4 2 3 Kernel compilation 1 Choose the Display Device Modify the lines as below according to the display screen size in the file linux 03 20 00 14 arch arm mach davinci board da850 evm c For 4 3 inch LCD define LCD A 3INCH 1 define LCD_7INCH 0 For 7 inch LCD define LCD A 3INCH 0 Copyright 2011 by element14 User Manual 290s define LCD_7INCH 1 2 Kernel compilation cd linux 03 20 00 14 make distclean make sbc8018_defconfig make ulmage After completing the above steps the required ulmage 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 file 3 4 3 System Customization As Linux kernel has many configuration options the user can increase or reduce the kernel features by using available default kernel configurations according to their best requirements The general process of system customization is described with examples below 3 4 3 1 Modification of Kernel Configuration The source code for factory default kernel configuration is provided in the below directory linux 03 20 00 14 arch arm configs sbc8018_defconfig User can carry out system customization on this basis cd linux 03 20 00 14 cp arch arm configs sbc8018 defconfi
67. signal high to low is given ARM Subsystem The ARM Subsystem includes the following features ARM926EJ S RISC processor ARMVSTEJ 32 16 bit instruction set e Little endian System Control Co Processor 15 CP15 MMU e 16KB Instruction cache e 16KB Data cache e Write Buffer e Embedded Trace Module and Embedded Trace Buffer ETM ETB e ARM Interrupt controller Copyright O 2011 by element14 User Manual 9 element SRE The ARM Subsystem integrates the ARM926EJ S processor The ARM926EJ S processor is a ARM926EJ S RISC CPU 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 Specifically the ARM926EJ S processor supports the ARMv5TEJ instruction set which includes features for efficient execution of Java byte codes providing Java performance similar to Just in Time JIT Java interpreter but without associated code overhead The ARM926EJ S processor supports the ARM debug architecture and includes logic to assist in both hardware and software debug The ARM926EJ S processor has a Harvard architecture and provides a complete high performance subsystem including ARM926EJ S integer core CP
68. sive register enabling the stereo 48 kHz DAC playback as low as 15 mw from a 3 3V analog supply making it ideal for portable battery powered audio and telephony applications The playback path includes mix mux capability from the stereo DAC and selected inputs through programmable volume controls to the various outputs TLV320AIC33IRGZR has Ten Audio Input Pins and Seven Audio Output Drivers 2 2 6 MAX3232 The function of MAX3232 is mainly to convert TTL logic level signal to RS232 logic level which helps the board at TTL logic to interface with PC working at RS232 logic level The SBC8018 evaluation board uses UART2 as debugger serial port the default voltage for this UART2 is 1 8V Copyright 2011 by element14 User Manual os _ e gt element TA it is necessary to convert this voltage from 1 8V to 3 3V in order to connect the board to the eternal world 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 v H D 0 L OPO e 00000000000000000000 00000000000000000000 0000000 E o 0004000 DO000000000000000000 00000000000000000000 l at 8884883 ENT Q Ji QS A Gw Figure 2 2 Hardware Interface chart 2 3 1 Power Input Jack Table 2 1 power input interface J40 Pin Signal Function 1
69. stallation Complete Installation has finished You can continue testing Ubuntu now but until you restart the computer any changes you make or documents you save will not be preserved Continue Testing STE Figure Appendix 2 26 The installation will finish the whole thing can take anywhere between 15 minutes and an hour depending on the speed of your computer Copyright 2011 by element14 User Manual 92 element NA Ubuntu Settings a General Storage System Display Storage Tee Attributes O Storage amp IDE Controller CD DVD Drive IDE Primary Master d Network SATA Controller Gm Serial Ports Deus Gate USB Attached To Shared Folders Geese On the System page you have assigned more than 50 of your computer s memory 959 00 MB to the virtual machine There might not be enough memory left for your host operating system Continue at your own tisk A Aere pn Figure Appendix 2 27 Afterwards in order to use your virtualized installation instead of continually booting from the live CD you have to change the CD DVD Device entry to be Empty again Copyright 2011 by element14 User Manual element uN Appendix Ill 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 o
70. strokes including system ones like Alt Tab will be directed to the WM You can press the host key at any time to uncapture the keyboard and mouse if it is captured and return them to normal operation The currently assigned host key is shown on the status bar at the bottom of the Virtual Machine window next to the E icon This icon together with the mouse icon placed nearby indicate the current keyboard and mouse capture state The host key is currently defined as Right Ctrl o not show this message agal gt H Right Ctrl Figure Appendix 2 14 Copyright O 2011 by element14 User Manual 86 element 4 SA Fa Ubuntu Running Oracle VE VirtualBox P YirtualBox Information The virtual machine window is optimized to work in 32 bit color mode but the virtual display is currently set to 16 bit Please open the display properties dialog of the guest OS and select a 32 bit color mode if it is available for best possible performance of the virtual video subsystem Note Some operating systems like 05 2 may actually work in 32 bit mode but report it as 24 bit 16 million colors You may try to select a different color mode to see if this message disappears or you can simply disable the message now if you are sure the required color mode 32 bit is not available in the guest OS o not show this message agai PO 3 Right Ctrl Figure Appendix 2 15 Click OK ES Ubuntu Running Or
71. y help if run without command line parameters Some example usage as follows e g Go into suspend with a 1 min RTC alarm CE device gt Start gt CMD prompt gt pmsuspend t 1 4 6 2 How to use CAM8000 A module 1 Select Third Party gt BSP gt OMAPL138_AM18x ARMV4I gt Device Drivers gt Camera gt VPIF Capture Driver from the VS2005 catalog menu 2 Make sure that DirectShow items are selected in catalog items view as shown in below picture Copyright 2011 by element14 User Manual 76 element u SERRE Ca BSP CA Core OS CA CEBASE Applications End User CA Applications and Services Development H Communication Services and Networking j Core OS Services 3 Device Management Di File Systems and Data Store CN Fonts CN Graphics and Multimedia Technologies CH Audio Graphics E Media Audio Codecs and Renderers CN Digital Rights Management ECM DirectShow CH ACM Wrapper Filter m DirectShow Core m DirectShow Display DirectShow Error Messages DirectShow Video Capture m DMO Wrapper Filter UI Figure 4 8 3 Click Build gt Rebuild Solution in VS2005 to perform sysgen and build BSP 4 Update Nk bin and NK nb0 after sysgen and build BSP completed 5 Confirm CAM8000 A module is connect to SBC8018 correctly boot system with updated NK copy C WINCE600 PLATFORM SBC801 8 files CameraDshowApp_analog exe to run Windows CE OS on the kit and click CameraDshowA
Download Pdf Manuals
Related Search
Related Contents
guide Med-El Opus 2 - Sounding Board 1 - Website for Güde 3M Projector 9800 Owner's Manual +端末パック契約約款 - ケーブルテレビ富山 Aluratek AUCR200 User's Manual Procédures d`auto-maintenance sur vos robots aspirateurs DEEPOO LOGIQ P6 Pro ワンワンとうーたん おりたたみロングスロープジムEX Copyright © All rights reserved.
Failed to retrieve file