background image

 

Page | 59 

 

        platform_driver_unregister(&gpio_led_driver); 

#endif 

#ifdef CONFIG_LEDS_GPIO_OF 

        of_unregister_platform_driver(&of_gpio_leds_driver); 

#endif 

 

module_init(gpio_led_init); 

module_exit(gpio_led_exit); 

 

MODULE_AUTHOR("Raphael  Assenat  <[email protected]>,  Trent  Piepho 

<[email protected]>"); 

MODULE_DESCRIPTION("GPIO LED driver"); 

MODULE_LICENSE("GPL"); 

 

Apply  for  GPIO,  and  call  led_classdev_register  to  register  led_classdev 
driver; 

static  int  __devinit  gpio_led_probe(struct  platform_device 

*pdev) 

… 

        leds_data  =  kzalloc(sizeof(struct  gpio_led_data)  * 

pdata->num_leds, 

                                GFP_KERNEL); 

… 

        for (i = 0; i < pdata->num_leds; i++) { 

                ret 

create_gpio_led(&pdata->leds[i], 

&leds_data[i], 

                                      &pdev->dev, 

pdata->gpio_blink_set); 

                if (ret < 0) 

                        goto err; 

        } 

… 

 

static  int  __devinit  create_gpio_led(const  struct  gpio_led 

*template, 

        struct gpio_led_data *led_dat, struct device *parent, 

        int  (*blink_set)(unsigned,  unsigned  long  *,  unsigned 

long *)) 

Summary of Contents for SBC8140

Page 1: ...SBC8140 Single Board Computer User Manual Version 1 1 22nd Jan 2014...

Page 2: ...ology has the copyright of this document and reserves all rights Any part of the document should not be modified distributed or duplicated in any approach and form without prior written permission iss...

Page 3: ...y SBC8140 10 2 Introduction to Hardware 11 2 1 CPU Introduction 11 2 1 1 Clock 11 2 1 2 Reset 11 2 1 3 General Interfaces 11 2 1 4 Display Subsystem 12 2 1 5 3D Graphics Acceleration System 12 2 2 Per...

Page 4: ...rface 33 2 4 9 SD Card Interface 33 2 4 10 LED Indicators 34 2 4 11 Buttons 34 3 Linux Operating System 35 3 1 Structure of the Embedded Linux System 35 3 2 Software Features 36 3 3 System Development...

Page 5: ...amera 82 3 8 10 Testing the CDMA8000 U Module 83 3 8 11 Testing the WCDMA8000 U Module 83 3 8 12 Demonstration of the Android System 84 3 8 13 Demonstration of the DVSDK System 86 3 9 Development of A...

Page 6: ...x System 116 Appendix 2 Driver Installation Of Linux USB Ethernet RNDIS Gadget 123 Appendix 3 Making a Linux Boot Disk 126 Appendix 4 TFTP Server Setup 131 Appendix 5 FAQ 133 Appendix 1 ESD Precaution...

Page 7: ...he SBC8140 expansion board utilises many of other features of the DM3730 through headers and connectors including serial ports USB Host OTG Ethernet Audio In Out Keyboard LCD Touch Screen interface VG...

Page 8: ...Dimensions 67x37mm Operation Temperature 0 70 C Operating Humidity 20 90 Non condensing Power Supply 3 3V 0 17A Processor TI DM3730 integrating a 1GHz ARM Cortex A8 core 800 MHz TMS320C64x DSP NEON S...

Page 9: ...nnectors Six LED indicators two power indicators and four custom user indicators Two SPIs SPI1 and SPI2 GPMC bus 16 bit data 10 bit address four CS and some control signals Three UARTs 5 wire support...

Page 10: ...erating Humidity 20 90 Non condensing Power Supply 5V 2A Audio Video Interfaces LCD touch screen interface 24 bit RGB full colour output 50 pin FPC connector Standard VGA interface supports 1024x768 r...

Page 11: ...0Mbps USB A interface SD card slot compatible with SD MMC communication Serial Interfaces Interfaces Descriptions UART1 5 wire RS232 voltage level DB9 debugging serial interface UART2 3 wire TTL volta...

Page 12: ...Page 6 1 4 Interfaces on the SBC8140 Figure 4 SBC8140 Interfaces...

Page 13: ...Page 7 1 5 System Block Diagram Figure 5 SBC8140 system block diagram...

Page 14: ...Page 8 1 6 Hardware Dimensions 1 6 1 MINI8510 Core Board Figure 6 MINI8510 dimensions top side Figure 7 MINI8510 dimensions back side...

Page 15: ...Page 9 1 6 2 Expansion Board Figure 8 Expansion board dimensions...

Page 16: ...d with CD ROM Separately CAM8000 A Yes Yes Yes Available in CD CAM8000 D Yes NO Yes Click to download CAM8100 U Yes Yes Yes Provided with CD ROM Separately CDMA8000 U Yes No Yes Click to download WCDM...

Page 17: ...clock signals of the DM3730 include sys_32k sys_altclk sys_clkout1 sys_clkout2 sys_xtalout sys_xtalin and sys_clkreq among which sys_32k the frequency is 32 KHz generated by the TPS65930 power managem...

Page 18: ...ne are connected to the internal bus of L3 and L4 while the RFBI and TV output codec module are connected to the internal bus of L 2 1 5 3D Graphics Acceleration System The 2D 3D graphics acceleration...

Page 19: ...t IC The TPS65930 is a power management IC for OMAP families The device includes power management a USB high speed transceiver LED drivers an analogue to digital converter ADC a real time clock RTC an...

Page 20: ...00M Ethernet module integrated in the DM9000 is compliant with the IEEE 802 3 standard The SBC8140 can be either connected to a hub with a straight through network cable or to a PC with a cross over n...

Page 21: ...evels The MAX3232 has 2 receivers and 2 drivers It features a 1 A shutdown mode that reduces power consumption and extends battery life in portable systems Its receivers remain active in shutdown mode...

Page 22: ...rface right row Pins Definitions Descriptions 1 GND1 GND 2 G_D14 GPMC data bit 14 3 G_D13 GPMC data bit 13 4 G_D10 GPMC data bit 10 5 G_D8 GPMC data bit 8 6 G_D9 GPMC data bit 9 7 G_D5 GPMC data bit 5...

Page 23: ...address bit 4 22 G_A7 GPMC address bit 7 23 G_A5 GPMC address bit 5 24 G_A8 GPMC address bit 8 25 G_A9 GPMC address bit 9 26 G_D15 GPMC data bit 15 27 G_A10 GPMC address bit 10 28 GND2 GND 29 SPI2_CS1...

Page 24: ...nable 0 43 MMC2_D0 SPI3_SOMI MMC SD Card Data bit 0Slave data out master data in 44 MMC2_D1 MMC SD Card Data bit 1 45 MMC2_CMD SPI3_SIM O MMC SD command signalSlave data in master data out 46 MMC2_CLK...

Page 25: ...us 60 USB1HS_D7 Dedicated for external transceiver Bidirectional data bus 61 USB1HS_D1 Dedicated for external transceiver Bidirectional data bus 62 USB1HS_D2 Dedicated for external transceiver Bidirec...

Page 26: ...t1 General purpose ADC input 79 KC0 Keypad column 0 80 KC1 Keypad column 0 81 KC2 Keypad column 0 82 KC3 Keypad column 0 83 AUDIO_IN Analogue microphone bias 1 84 AUDIO_OR Predriver output right P for...

Page 27: ...equest 3 6 G_NCS3DMAREQ0 GPMC Chip Select bit 7External DMA request 0 7 GND1 GND 8 G_WAIT0 External indication of wait 9 G_NBE0 G_CLE Lower Byte Enable Also used for Command Latch Enable 10 G_ALE Addr...

Page 28: ...UART3 Request To Send 29 DSS_ACBIAS AC bias control STN or pixel data enable TFT output 30 DSS_VSYNC LCD Vertical Synchronization 31 GND3 GND 32 DSS_HSYNC LCD Horizontal Synchronization 33 DSS_CLK LCD...

Page 29: ...xel Data bit 22 53 DSS_D14 LCD Pixel Data bit 14 54 DSS_D19 LCD Pixel Data bit 19 55 DSS_D13 LCD Pixel Data bit 13 56 DSS_D21 LCD Pixel Data bit 21 57 DSS_D1 LCD Pixel Data bit 1 58 DSS_D12 LCD Pixel...

Page 30: ...72 IIC3_SDA I2C Serial Bidirectional Data Output is open drain 73 IO25 General purpose IO 183 74 IO27 General purpose IO 183 75 BOOTJUMP Boot configuration mode bit 5 76 GND7 GND 77 VBUS VBUS power r...

Page 31: ...utput 2 TMS Test mode select 3 TD1 Test data input 4 NTRST Test system reset 5 TD0 Test data output 6 RTCK Receive test clock 7 TCK Test clock 8 EMU0 Test emulation 0 9 EMU1 Test Emulation 1 10 GND GN...

Page 32: ...D10 Digital image data bit 10 13 D11 Digital image data bit 11 14 GND1 GND 15 PCLK Pixel clock 16 GND2 GND 17 HS Horizontal synchronization 18 VDD50 5V 19 VS Vertical synchronization 20 VDD33 3 3V 21...

Page 33: ...3 5 LED Indicators LEDs Definitions Descriptions D1 LED1 User custom LED D2 LED2 User custom LED D3 LED3 User custom LED D4 LED4 User custom LED D5 VDD18 Power indicator D6 VBAT Power indicator 2 4 In...

Page 34: ...t 2 4 DSS_D3 LCD Pixel data bit 3 5 DSS_D4 LCD Pixel data bit 4 6 DSS_D5 LCD Pixel data bit 5 7 DSS_D6 LCD Pixel data bit 6 8 DSS_D7 LCD Pixel data bit 7 9 GND GND 10 DSS_D8 LCD Pixel data bit 8 11 DS...

Page 35: ...26 DSS_D23 LCD Pixel data bit 23 27 GND GND 28 DEN AC bias control STN or pixel data enable TFT 29 HSYNC LCD Horizontal Synchronization 30 VSYNC LCD Vertical Synchronization 31 GND GND 32 CLK LCD Pix...

Page 36: ...Page 30 Pins Definitions Descriptions 43 IIC_SDA IIC serial bidirectional data 44 GND GND 45 VDD18 1 8V 46 VDD33 3 3V 47 VDD50 5V 48 VDD50 5V 49 RESET Reset 50 PWREN Power on enable...

Page 37: ...4 NC NC 5 Left Left output 2 4 4 Audio Input Interface Pins Definitions Descriptions 1 GND GND 2 NC NC 3 MIC MAIN P Right input 4 NC NC 5 MIC MAIN N Left input 2 4 5 Serial Interface Pins Definitions...

Page 38: ...1 TX TX output 2 TX TX output 3 RX RX input 4 VDD25 2 5V Power for TX RX 5 VDD25 2 5V Power for TX RX 6 RX RX input 7 NC NC 8 NC NC 9 VDD 3 3V Power for LED 10 LED1 Speed LED 11 LED2 Link LED 12 VDD 3...

Page 39: ...2 DN USB Data 3 DP USB Data 4 ID USB ID 2 4 9 SD Card Interface Pins Definitions Descriptions 1 CD DAT3 Card detect Card data 2 2 DCMD Command Signal 3 VSS GND 4 VDD VDD 5 CLK Clock 6 VSS GND 7 TF_DAT...

Page 40: ...ED Indicators LEDs Definitions Descriptions D4 LED_POWER 3 3V power indicator D5 User LED User custom LED 2 4 11 Buttons Buttons Definitions Descriptions CN12 BOOTJUMP Boot system from TF card CN11 Re...

Page 41: ...ve been proceeded by an icon to prevent confusion caused by the long instructions that occupy more than one line Ubuntu Linux is used in this document If you do not have a Linux system on your PC plea...

Page 42: ...ource code MMC SD Source code FAT Source code u boot NAND ONENAND Source code MMC SD Source code FAT Source code NET Source code Kernel Linux 2 6 x Supports ROM CRAM EXT2 EXT3 FAT NFS JFFS2 UBIFS file...

Page 43: ...whole process of developing software starting from building a development environment to making a customized system 3 3 1 Building Development Environment 1 Installing Cross Compilation Tools Put the...

Page 44: ...an be put into the file bashrc under user directory to allow the system to load the variable automatically each time it boots up If you need to view the path please use the instruction echo PATH 3 3 2...

Page 45: ...Execute the following instructions to compile first level code for NAND Flash boot up mode cd x loader 03 00 02 07 vi include configs omap3sbc8140 h cd x loader 03 00 02 07 make distclean make omap3s...

Page 46: ...ease visit http www elinux org DevKit8600_FAQ Execute the following instructions to generate a UBI file cd HOME work sudo HOME tools mkfs ubifs r rootfs m 2048 e 129024 c 1996 o ubifs img sudo HOME to...

Page 47: ...x 2 6 32 sbc8140 arch arm configs omap3_SBC8140_defconfig please execute the following instructions to enter the system configuration menu cd linux 2 6 32 sbc8140 cp arch arm configs omap3_sbc8140_def...

Page 48: ...ed under arch arm boot and drivers usb gadget respectively 3 4 Introduction to Drivers This section will introduce various drivers required in a Linux system including NAND Flash SD MMC display subsys...

Page 49: ...6 32 sbc8140 drivers rtc rtc twl c net 10 100M Ethernet DM9000 driver linux 2 6 32 sbc8140 drivers net dm9000 c flash NAND flash driver supports nand boot linux 2 6 32 sbc8140 drivers mtd nand o map2...

Page 50: ...rt audio recording playback linux 2 6 32 sbc8140 sound soc omap om ap3sbc8140 c linux 2 6 32 sbc8140 sound soc codecs t wl4030 c camera Camera driver Digital linux 2 6 32 sbc8140 drivers media video o...

Page 51: ...ific filesystem In order to eliminate inconsistencies between different flash memories an MTD subsystem is placed between the core s filesystem and the flash driver and therefore users need to go thro...

Page 52: ...MC driver SD MMC core implements the structure independent core code in SD MMC related operations mmc_block implements the driver structure used when SD MMC cards work as block devices mmc_queue imple...

Page 53: ...another for the analogue interface The digital interface manages the LCD output while the analogue one manages the TV output The main function of a display driver is to provide interfaces for the uppe...

Page 54: ...ux 2 6 core is designed based on the V4L2 standard Video Buffer Library The Video Buffer Library is a part of the V4L2 It provides an assistance function to effectively manage the video buffer via a q...

Page 55: ...dec can be accomplished by rewriting the codec driver without any change to the camera driver CCDC Library As a hardware module for data input the CCDC receives data from sensors decoders The CCDC lib...

Page 56: ...is platform independent and contains audio controls audio interface capabilities codec DAPM definition and codec IO functions Platform Driver The Platform driver contains the audio DMA engine and audi...

Page 57: ...GPIO_LEDs 3 5 1 GPIO_Keys Driver 1 Device Definition The source file board omap3sbc8140 c is saved under linux 2 6 32 sbc8140 arch arm mach omap2 static struct gpio_keys_button gpio_buttons code KEY_...

Page 58: ...ype selection is active M0 Mode 0 The commented string gives the final mux configuration for that pin MUX_VAL CP ETK_D12_ES2 IEN PTU DIS M4 GPIO_26 MUX_VAL CP ETK_D15_ES2 IEN PTU DIS M4 GPIO_29 Set GP...

Page 59: ...e_exit gpio_keys_exit MODULE_LICENSE GPL MODULE_AUTHOR Phil Blundell pb handhelds org MODULE_DESCRIPTION Keyboard driver for CPU GPIOs MODULE_ALIAS platform gpio keys Call input_register_device to reg...

Page 60: ...evinit gpio_keys_setup_key struct device dev struct gpio_button_data bdata struct gpio_keys_button button char desc button desc button desc gpio_keys int irq error setup_timer bdata timer gpio_keys_ti...

Page 61: ...equest_irq irq gpio_keys_isr IRQF_SHARED IRQF_TRIGGER_RISING IRQF_TRIGGER_FALLING desc bdata if error dev_err dev Unable to claim irq d error d n irq error goto fail3 return 0 fail3 gpio_free button g...

Page 62: ...pe button type EV_KEY int state gpio_get_value button gpio 1 0 button active_low input_event input type button code state input_sync input 3 5 2 GPIO_LEDs Driver 1 Device Definitions The source file b...

Page 63: ...bc8140 h is saved under u boot 03 00 02 07 board timll sbc8140 IEN Input Enable IDIS Input Disable PTD Pull type Down PTU Pull type Up DIS Pull type selection is inactive EN Pull type selection is act...

Page 64: ...pio_led_probe remove __devexit_p gpio_led_remove driver name leds gpio owner THIS_MODULE static int __init gpio_led_init void int ret ifdef CONFIG_LEDS_GPIO_PLATFORM ret platform_driver_register gpio_...

Page 65: ...CENSE GPL Apply for GPIO and call led_classdev_register to register led_classdev driver static int __devinit gpio_led_probe struct platform_device pdev leds_data kzalloc sizeof struct gpio_led_data pd...

Page 66: ...t gpio led_dat active_low state ret led_classdev_register parent led_dat cdev Call gpio_led_set function to control LEDs status by accessing sys class leds xxx brightness static void gpio_led_set stru...

Page 67: ...Flash 3 6 1 Updating System in an SD Card 1 Formatting SD Card You can download the HP USB Disk Storage Format Tool 2 0 6 from http www embest tech com resource download HP USB Disk S torage Format To...

Page 68: ...er on the system the information on the serial interface is shown below Texas Instruments X Loader 1 47 Mar 1 2013 17 05 22 Starting X loader on MMC Reading boot sector 231872 Bytes Read from MMC Star...

Page 69: ...C 5 Sat Mar 2 16 14 46 CST 2013 CPU ARMv7 Processor 413fc082 revision 2 ARMv7 cr 10c53c7f CPU VIPT nonaliasing data cache VIPT nonaliasing instruction cache Machine OMAP3 SBC8140 Board Memory policy E...

Page 70: ...512 CPU Testing write buffer coherency ok regulator core version 0 5 NET Registered protocol family 16 Found NAND on CS0 Registering NAND on CS0 Target VDD1 OPP 4 VDD2 OPP 2 OMAP DMA hardware revision...

Page 71: ...e RPC Registered tcp transport module RPC Registered tcp NFSv4 1 backchannel transport module Trying to unpack rootfs image as initramfs rootfs image is not initramfs no cpio magic looks like an initr...

Page 72: ...ore registered new interface driver asix usbcore registered new interface driver cdc_ether usbcore registered new interface driver cdc_eem usbcore registered new interface driver dm9601 usbcore regist...

Page 73: ...ds7846 spi1 0 touchscreen irq 187 input ADS7846 Touchscreen as devices platform omap2_mcspi 1 spi1 0 input input2 using rtc device twl_rtc for alarms twl_rtc twl_rtc rtc core registered twl_rtc as rtc...

Page 74: ...witching to colour frame buffer device 60x34 regulator_init_complete incomplete constraints leaving VDVI on regulator_init_complete incomplete constraints leaving VDAC on hub 1 1 1 0 USB hub found reg...

Page 75: ...d root ext2 filesystem on device 1 0 Freeing init memory 164K INIT version 2 86 booting Starting udevtar removing leading from member names Remounting root file system mount mounting dev root on faile...

Page 76: ...you wish to use another sized display please refer to 3 7 Display Mode Configuration to change the display mode and type boot under the u boot mode to continue the boot up process 3 6 2 Updating Syste...

Page 77: ...Mar 04 2013 12 00 27 OMAP3630 GP ES2 1 CPU OPP2 L3 133MHz OMAP3 SBC8140 board LPDDR NAND I2C ready DRAM 256 MiB NAND 512 MiB Warning bad CRC or NAND using default environment In serial Out serial Err...

Page 78: ...ND write device 0 offset 0x680000 size 0xbc0000 12320768 bytes written OK When the LEDs on the kit start to blink the update is completed please remove the SD card and reboot the system 3 7 Display Mo...

Page 79: ...nment In serial Out serial Err serial Die ID 3d1400029e3800000168682f07003018 Net dm9000 Hit any key to stop autoboot 0 press any key to enter u boot mode 1 Configuring for a 4 3 LCD Execute the follo...

Page 80: ...s This section will carry out many tests on the SBC8140s devices and also demonstrations of the Android and DVSDK systems Note The following tests are all implemented by entering instructions in a Hyp...

Page 81: ...creen prompt information to finish calibration 2 Execute the following instruction to test the touch screen root SBC8140 ts_test Draw points and lines on the screen as you see the prompt information t...

Page 82: ...elow Mon Aug 8 20 01 01 2011 0 000000 seconds The above information indicates that the system clock has been recovered with the hardware clock Note SBC8140 is not provided with a CR2032 battery by def...

Page 83: ...o Appendix 2 Driver Installation Of Linux USB Ethernet RNDIS GadgetError Reference source not found 2 Execute the following instructions to set the IP addresses of the SBC8140 the IP used below is onl...

Page 84: ...Places on the desktop of your PC and select Properties to open the Network Connections window you can find a new Local Area Connection in the window 4 Right click the icon of the new Local Area Connec...

Page 85: ...1 4 new high speed USB device using ehci omap and address 3 scsi0 usb storage 1 1 4 1 0 scsi 0 0 0 0 Direct Access SanDisk Flash Memory 0 1 PQ 0 ANSI 2 sd 0 0 0 0 sda 2001888 512 byte logical blocks 1...

Page 86: ...ing root SBC8140 arecord t wav c 1 r 44100 f S16_LE v k The information in the HyperTerminal window is shown below Recording WAVE k Signed 16 bit Little Endian Rate 44100 Hz Stereo Plug PCM Hardware P...

Page 87: ...is stream PLAYBACK access RW_INTERLEAVED format S16_LE subformat STD channels 2 rate 44100 exact rate 44100 44100 1 msbits 16 buffer_size 22052 period_size 5513 period_time 125011 tstamp_mode NONE per...

Page 88: ...2 170 The information in the HyperTerminal window is shown below Table 1 1 Testing Network PING 192 192 192 170 192 192 192 170 56 data bytes 64 bytes from 192 192 192 170 seq 0 ttl 128 time 4 486 ms...

Page 89: ...LCD screen 3 8 10 Testing the CDMA8000 U Module Please download the user manual for the module from http www timll com chinese uploadFile cdma8000 rar And follow the instructions in the manual to com...

Page 90: ...own below 60 Texas Instruments X Loader 1 47 Apr 23 2012 09 09 16 Starting X loader on MMC Reading boot sector 1154092 Bytes Read from MMC Starting OS Bootloader from MMC Starting OS Bootloader U Boot...

Page 91: ...read SW ECC selected NAND write device 0 offset 0x280000 size 0x2745cc 2574336 bytes written OK reading ubi img 79036416 bytes read SW ECC selected NAND write device 0 offset 0x680000 size 0x4b60000...

Page 92: ...fer to Appendix 3 Making a Linux Boot Disk 1 Making a Linux Boot Disk and connect it to your PC with a SD card reader then execute the following instructions in an Ubuntu Linux system cp media cdrom l...

Page 93: ...gst omap3530 root dm37x evm usr share ti gst omap3530 loadmodules sh root dm37x evm usr share ti gst omap3530 gst launch filesrc location usr share ti data videos davincieffect_480p30 264 typefind TI...

Page 94: ...e X is the label of your DVD drive By default the system supports a 4 3 screen If you require another display size please refer to 3 7 Display Mode Configuration 3 9 Development of Applications This s...

Page 95: ...s LED3 return 1 for i dat1 i 0x1 1 0 dat2 i 0x2 1 1 0 dat3 i 0x4 2 1 0 write f_led1 dat1 sizeof dat1 write f_led2 dat2 sizeof dat2 write f_led3 dat3 sizeof dat3 usleep 300000 2 Execute the following i...

Page 96: ...resources the following tables will help find them in the DVD ROM where X is the label of your DVD drive BSP X WINCE600 bsp mini8510 rar X WINCE600 bsp COMMON_TI_V1 rar X WINCE600 bsp dvsdk_wince_01_1...

Page 97: ...ce Code REBOOT Source Code Watchdog Source Code RTC Source Code System timer Source Code Interrupt controller Source Code Low power suspend Source Code Drivers NLED driver Source Code GPIO I2C SPI MCB...

Page 98: ...filter Binary Code GPIO keyboard driver Source Code PWM TPS65930 driver Source Code ADC TPS65930 driver Source Code ONENAND driver Source Code Analogue Camera driver Source Code Digital Camera driver...

Page 99: ...specified in the table below so as to avoid unexpected errors No Software 1 Visual Studio 2005 2 Visual Studio 2005 SP1 3 Visual Studio 2005 SP1 Update for Vista vista system require 4 Windows Embedde...

Page 100: ...1 poweVR C WINCE600 public Copy X WINCE600 prj mini8510 C WINCE600 OSDesigns Note The default installation path of Windows Embedded CE 6 0 is C WINCE600 in this document 4 3 3 Compiling Sysgen and the...

Page 101: ...oot the system 4 4 Introduction to Drivers The figure shown below illustrates the architecture of the BSP for the SBC8140 Figure 21 BSP Architecture The following table lists the paths of all the driv...

Page 102: ...OCK bsp COMMON_TI_V1 COMMON_TI BLOCK Display driver LCD DVI S Video Composite Video bsp COMMON_TI_V1 COMMON_TI DSS bsp mini8510 SRC BSP_COMMON DISPLAY bsp mini8510 SRC DRIVERS DISPLAY TOUCH driver bsp...

Page 103: ...65930 driver bsp COMMON_TI_V1 TPS659XX MADC Camera driver bsp mini8510 SRC DRIVERS CAMERA bsp mini8510 SRC DRIVERS CAMERA_Digital Backlight driver bsp mini8510 SRC DRIVERS BACKLIGHT Battery driver bsp...

Page 104: ...ystem Update This section will show you how to update the WinCE system in an SD card and NAND Flash 4 5 1 Updating the System in an SD Card You can download the HP USB Disk Storage Format Tool 2 0 6 f...

Page 105: ...files MLO EBOOTSD nb0 and NK bin from X WINCE600 image where X is the label of your DVD drive to the SD card Notice HP USB Disk Storage Format Tool will erase the partitions of TF card Use other form...

Page 106: ...indows CE Bootloader Common Library Version 1 4 Built May 29 2012 14 39 28 Texas Instruments Windows CE EBOOT for OMAP35xx 37xx Built May 29 2012 at 15 19 04 EBOOT Version 0 0 BSP BSP_WINCE_ARM_A8 1 0...

Page 107: ...SDCard Settings 6 Set Device ID 7 Save Settings 8 Flash Management 9 Enable Disable OAL Retail Messages a Select Display Resolution 0 Exit and Continue Selection a 6 Select a proper display mode in t...

Page 108: ...rk Settings 5 SDCard Settings 6 Set Device ID 7 Save Settings 8 Flash Management 9 Enable Disable OAL Retail Messages a Select Display Resolution 0 Exit and Continue Selection 0 Once the booting proce...

Page 109: ...the eboot menu 3 Type 8 in the eboot menu to enter the flash management menu 4 Type a b and c to program the XLDR EBOOT and NK image files into flash 5 Type the number 0 to go back to the main menu an...

Page 110: ...1_00_patch_01 PowerVR SDK OGLES1 1 Binaries Demos or the exe file under C WINCE600 PUBLIC PowerVR oak target Rev125 ARMV4I retail to the WinCE system of the SBC8140 and then double click the demo to r...

Page 111: ...enerated file CameraDshowApp_analog exe from C WINCE600 platform mini8510 files to an SD card and then insert it into the SBC8140 5 Connect the camera module needs to be purchased separately to the SB...

Page 112: ...ew on the left side of the Visual Studio 2005 window and then select Build Rebuild Solution on the menu bar to start compiling 4 Copy the generated file CameraDshowApp_digital exe from C WINCE600 plat...

Page 113: ...developing applications based on the SBC8140 are using the Windows Embedded CE 6 0 API and have been expanded only in GPIO interface definition The applications that control pin status can be found u...

Page 114: ...O pin The tables below contain examples of GPIO applications 1 Enable the GPIO device HANDLE hFile CreateFile _T GIO1 GENERIC_READ GENERIC_WRITE FILE_SHARE_READ FILE_SHARE_WRITE 0 OPEN_EXISTING 0 0 2...

Page 115: ..._LOW Triggered by low level GPIO_INT_HIGH Triggered by high level GPIO_DEBOUNCE_ENABLE Debounce enabled 5 Operations on GPIO pins Operations on Pins DWORD id 0 pin 0 High Level Output DeviceIoControl...

Page 116: ...DWORD NULL NULL Id is the GPIO pin number irq returns its IRQ number 7 Disable the GPIO device CloseHandle hFile Note GPIO pin definitions 0 191 MPU Bank1 6 GPIO pin 192 209 TPS65930 GPIO 0 17 GPIO p...

Page 117: ...ual machine software such as VirtualBox to install Ubuntu Linux on an emulated virtual PC The following sections will introduce the installation processes of VirtualBox and an Ubuntu system 1 1 Instal...

Page 118: ...name for the new virtual machine and select the operating system type as shown below Enter a name in the Name field e g Ubuntu and select Linux in the Operating System drop down menu and then click Ne...

Page 119: ...RAM you can allocate up to 1 4 to the virtual machine for example 512MB out of 2GB memory could be allocated to virtual machine 5 If this is the first time you have installed VirtualBox you need to se...

Page 120: ...Fixed size storage in the following window and click Next 8 Define where the hard disk data is stored and the default space of the virtual disk 8GB at least and then click Next 9 Click Finish in the...

Page 121: ...Your PC will then create a new virtual disk 11 A window with summary of the newly created virtual machine will be shown as below when the creation process is done Please click Finish to complete the w...

Page 122: ...nload Ubuntu download to download the ISO image file of Ubuntu and then follow the steps below 1 Start VirtualBox from the Start menu and click Settings on the VirtualBox window A Settings window will...

Page 123: ...de of the window and then find the ISO file you downloaded 3 Select the ISO file you downloaded and click OK as shown below 4 Click Start on the VirtualBox window the Ubuntu installation program will...

Page 124: ...dows will pop up during the initiation process You need only click OK all the way to the end of the process 6 Click Install Ubuntu to start installation when the following window appears 7 Click Forwa...

Page 125: ...ntu and click Forward Note Selecting this option will only affect the virtual hard drive you created earlier and will not lead to any content loss on your physical hard drive 9 Click Install Now in th...

Page 126: ...uestion that will appear during the process 11 After all the required information is properly entered in to the fields select Log in automatically and click Forward 12 The installation of Ubuntu may t...

Page 127: ...ically by VirtualBox after restarting Ubuntu If it is not you can eject the ISO file manually in the Settings window of VirtualBox The following window shows the settings window after the ISO file is...

Page 128: ...Page 122...

Page 129: ...install drivers for the Linux USB Ethernet RNDIS Gadget the PC will find the new hardware and give you a hint on the screen please select From list or designated location then click Next 2 Designate...

Page 130: ...Page 124 3 When the following appears select Continue 4 Please wait until the installation is completed...

Page 131: ...Page 125...

Page 132: ...Device Information 6854 215650 sd 7 0 0 0 sdc Mode Sense 0b 00 00 08 6854 215653 sd 7 0 0 0 sdc Assuming drive cache write through 6854 215659 sdc sdc1 6854 218079 sd 7 0 0 0 sdc Attached SCSI removab...

Page 133: ...device as shown below Command m for help p Disk dev sdc 2021 MB 2021654528 bytes 255 heads 63 sectors track 245 cylinders Units cylinders of 16065 512 8225280 bytes Device Boot Start End Blocks Id Sy...

Page 134: ...enter the number of cylinders calculated above Expert Command m for help r type r to go back to normal mode 9 Type p to check the parameters set just now as shown below Command m for help p 63 sectors...

Page 135: ...n Command action e extended p primary partition 1 4 p type p to select primary partition Partition number 1 4 2 set partition number to 2 First cylinder 7 61 default 7 press Enter key on your keyboard...

Page 136: ...created or modified any DOS 6 x partitions please see the fdisk manual page for additional information Syncing disks 15 Execute the following instructions to form the new partitions sudo mkfs msdos F...

Page 137: ...r can write and read cd sudo mkdir tftpboot sudo chmod 777 tftpboot Secondly add in etc inetd conf sudo vi etc inetd conf copy the follow word to this file tftpd dgram udp wait root usr sbin in tftpd...

Page 138: ...cps 100 2 4 Reboot the server sudo etc init d xinetd restart sudo in tftpd l tftpboot 5 Test the server Conduct a test create a file under folder tftpboot touch abc Enter into another folder tftp 192...

Page 139: ...Page 133 Appendix 5 FAQ Please visit http www elinux org SBC8600_FAQ...

Page 140: ...unit unpainted metal chassis If possible use antistatic devices such as wrist straps and floor mats Always hold an evaluation board by its edges Avoid touching the contacts and components on the board...

Page 141: ...e the lowest production costs possible Embest insists on a simple business model to offer customers high performance low cost products with the best quality and service 2 1 Technical support service E...

Page 142: ...are subject to damage caused by operations inconsistent with their specification Products are subject to damage in either appearance or function due to natural disasters flood fire earthquake lightni...

Page 143: ...y will not take any responsibility for products returned without the prior permission of the company 2 3 Basic guidelines for protection and maintenance of LCDs 1 Do not use finger nails or other hard...

Page 144: ...h as serial ports USB interface devices and LCD screens Control system transplantation BSP driver development API software development Other value added services including supply of power adapters and...

Reviews: