background image

 

Page | 31 

 

Name 

Note 

touch screen 

4-line touch-screen controller driver 

mmc/sd 

mmc/sd controller driver 

usb otg 

usb otg 2.0 driver 

audio 

Audio driver (supports audio recording and playback) 

keypad 

Gpio keypad driver 

led 

User custom led driver 

Demo 

Android 

android 2.3.4 system 

TISDK 

TISDK system 

5.4

 

System Development 

5.4.1

 

Establishment of development environment 

Before  developing  software  for  the  SBC8600B,  users  have  to  establish  a 
Linux cross development environment on the PC. This section will use the 
Ubuntu  operating  system  as  an  example  to  introduce  how  to  establish  a 
cross development environment. 

5.4.2

 

Installing Cross Compilation Tools 

After you insert the DVD-ROM to your PC, Ubuntu will mount it automatically 
under the directory /media/cdrom. The cross compilation tools can be found 
under /media/cdrom/linux/tools. 

The  following  instructions  are  executed  at  the  Ubuntu  terminal  to 
decompress the cross compilation tools under the directory $HOME: 

 

Note: 

 

Each instruction is proceeded by an icon “

” to prevent confusion caused by 

long instructions that occupy more than one line in the context. 

 

Summary of Contents for SBC8600B

Page 1: ...SBC8600B Single Board Computer Quick Start Guide Version 1 1 23rd Jan 2014...

Page 2: ...nology 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 is...

Page 3: ...On Board Interfaces 6 2 4 Operational Parameters 7 3 Hardware Details 8 3 1 Introduction to CPU 8 3 2 CPU Features 8 3 2 1 Clock 8 3 2 2 Reset 8 3 2 3 General Purpose Interfaces 9 3 2 4 Programmable R...

Page 4: ...0 CAN RS485 Interface 25 4 2 11 ADC Interface 26 4 2 12 SPI Interface 26 4 2 13 Extension Interface 27 4 2 14 Buttons 28 4 2 15 LEDs 28 5 Linux Operating System 29 5 1 Introduction 29 5 2 Software Res...

Page 5: ...6 5 2 Driver for the gpio_leds 47 6 6 Updating the System 50 6 6 1 Updating the TF card system image 50 6 6 2 Updating NAND Flash 54 6 7 Instructions 56 6 7 1 Selecting the Display Mode 56 6 7 2 Using...

Page 6: ...es 79 7 3 Software Features 80 7 4 System Development 81 7 4 1 Installation of Integrated Development Environment 81 7 4 2 Extract BSP and project files to the IDE 81 7 4 3 Sysgen Build BSP 82 7 4 4 D...

Page 7: ...3 Making a Linux Boot Disk 108 Appendix 4 TFTP Server Setup 113 Appendix 5 ESD Precautions Handling Procedures 115 Appendix 6 Technical support Warranty 116 6 1 Technical support service 116 6 2 Main...

Page 8: ...gle board computer SBC8600B which has an expansion board to carry the Mini8600B The flexible design allows the fast and easy way of realizing and upgrading the controller s capabilities In addition to...

Page 9: ...Page 2 1 3 Board Interfaces Figure 1 SBC8600B Interfaces...

Page 10: ...Page 3 1 4 System Block Diagram Figure 2 SBC8600B System Block Diagram...

Page 11: ...Page 4 1 5 Physical Dimensions Figure 3 MINI8600B Physical Dimensions...

Page 12: ...Page 5 Figure 4 SBC8600B Physical Dimensions...

Page 13: ...ubsystem 2 2 On Board Memory 512MB NAND Flash Two x 256MB DDR3 SDRAM 512MB total 2 3 On Board Interfaces Two 0 4 pitch 2x40 pin DIP Interfaces A TFT LCD Interface Support LCDs with 24 bpp parallel RGB...

Page 14: ...re multiplexed for UART IIC SPI CAN Please refer to the CPU datasheet and schematics on the DVD for details 2 4 Operational Parameters Working Temperature 0 C 70 C Working Humidity 20 90 Non Condensin...

Page 15: ...g effects The Programmable Real Time Unit and Industrial Communication Subsystem PRU ICSS is separate from the ARM core allowing independent operation and clocking for greater efficiency and flexibili...

Page 16: ...ith support for industrial Ethernet such as EtherCAT A MDIO interface An enhanced capture module eCAP 3 2 5 3D Graphics Engine The POWERVR SGX graphics acceleration subsystem is used to improve 3D ima...

Page 17: ...802 3az Energy Efficiency Ethernet Standard and the Atheros s proprietary SmartEEE standard which allows traditional MAC SoC devices incompatible with 802 3az to function as a complete 802 3az system...

Page 18: ...D 2 VDDS_RTC Supply voltage for RTC 3 CLK_OUT1 Clock out1 4 CLK_OUT2 Clock out2 5 MMC0_DAT0 MMC0 data bus 6 MMC0_DAT1 MMC0 data bus 7 MMC0_DAT2 MMC0 data bus 8 GLOBLE_RESETN SYS_RESET IN OUTPUT 9 MMC0...

Page 19: ...ta 22 AM355X_I2C0_SDA I2C0 master serial data 23 AM355X_CAN0_TX CAN0 transmit data 24 AM355X_I2C0_SCL I2C0 master serial clock 25 AM355X_UART4_RX UART4 receive data 26 AM355X_UART1_RX UART1 receive da...

Page 20: ...it data 44 MII1_RX_CLK MII1 receive clock 45 MII_MDIO MII MDIO DATA 46 MII1_RXD3 MII1 receive data 47 MII_MDC MII MDIO CLK 48 MII1_RXD2 MII1 receive data 49 GND GND 50 MII1_RXD1 MII1 receive data 51 A...

Page 21: ...MC_A5 GPMC address 66 GPMC_A11 GPMC address 67 GPMC_A4 GPMC address 68 GPMC_A10 GPMC address 69 GPMC_A3 GPMC address 70 GPMC_A9 GPMC address 71 GPMC_A2 GPMC address 72 GPMC_A8 GPMC address 73 GPMC_A6...

Page 22: ...it bit clock 5 MCASP0_FSX MCASP0 transmit frame sync 6 MCASP0_AXR0 MCASP0 serial data I O 7 MCASP0_AHCLKR MCASP0 receiver master clock 8 MMC0_CLK MMC0 clock 9 MCASP0_FSR MCASP0 receive frame sync 10 M...

Page 23: ...A12 LCD data bus 27 LCD_DATA0 LCD data bus 28 LCD_DATA10 LCD data bus 29 LCD_DATA5 LCD data bus 30 LCD_DATA13 LCD data bus 31 LCD_DATA4 LCD data bus 32 LCD_DATA11 LCD data bus 33 LCD_DATA6 LCD data bu...

Page 24: ...NC LCD horizontal sync 50 GPMC_BEN1 GPMC byte enable 1 51 GND GND 52 GND GND 53 LCD_EN LCD AC bias enable chip select 54 GPMC_WPN GPMC write protect 55 GPMC_AD13 GPMC address data 56 GPMC_CSN3 GPMC ch...

Page 25: ...MC_BEN0_CLE GPMC byte enable 0 Command latch enable 70 GPMC_AD4 GPMC address data 71 GPMC_OEN_REN GPMC output read enable 72 GPMC_AD1 GPMC address data 73 GPMC_AD2 GPMC address data 74 GPMC_AD0 GPMC a...

Page 26: ...sion Board Figure 7 Extension Board Interfaces The interface is on the bottom of the board The interface is on the top of the board 4 2 1 Power Jack CON1 Pin Signal Description 1 GND GND 2 12V Power s...

Page 27: ...ata bit 2 7 B6 LCD Pixel data bit 3 8 B7 LCD Pixel data bit 4 9 GND1 GND 10 G0 GND 11 G1 GND 12 G2 LCD Pixel data bit 5 13 G3 LCD Pixel data bit 6 14 G4 LCD Pixel data bit 7 15 G5 LCD Pixel data bit 8...

Page 28: ...TFT 29 HSYNC LCD Horizontal Synchronization 30 VSYNC LCD Vertical Synchronization 31 GND GND 32 CLK LCD Pixel Clock 33 GND4 GND 34 X X Position Input 35 X X Position Input 36 Y Y Position Input 37 Y...

Page 29: ...RESET Reset 50 PWREN Backlight enable Note Please do NOT disconnect the LCD flat cable while the board is powered on 4 2 3 Audio Output Interface HEADPHONE1 Pin Signal Description 1 GND GND 2 NC NC 3...

Page 30: ...GND GND 2 NC NC 3 MIC IN Input 4 NC NC 5 MIC IN Input 4 2 5 USB HOST Interface CON3 Pin Signal Description 1 VBUSA 5V 2 DA USB Data 3 DA USB Data 4 GNDA GND 4 2 6 USB OTG Interface CON2 Pin Signal De...

Page 31: ...S VSS 7 DAT0 Card data 0 8 DAT1 Card data 1 9 CD Card detect 4 2 8 LAN Interface J1 J2 Pin Signal Description 1 TD1 Transmit Data1 2 TD1 Transmit Data1 3 TD2 Transmit Data2 4 TD2 Transmit Data2 5 TCT...

Page 32: ...nterface J4 UART0 J5 UART2 Pin Signal Description 1 NC NC 2 RXD Receive data 3 TXD Transmit data 4 NC NC 5 GND GND 6 NC NC 7 RTS Request To Send 8 CTS Clear To Send 9 NC NC 4 2 10 CAN RS485 Interface...

Page 33: ...ription 1 GND GND 2 GND GND 3 ADC_CH1 ADC1 4 ADC_CH3 ADC3 5 VDDA_ADC Power 6 VDDA_ADC Power 7 ADC_CH2 ADC2 8 ADC_CH4 ADC4 9 GND GND 10 GND GND 4 2 12 SPI Interface J8 Pin Signal Description 1 3 3V 3 3...

Page 34: ...O_3V3 3 3V 3 UART3_TX_3V3 UART3 Transit data 3 3V level 4 UART4_TX_3V3 UART4 Transit data 3 3V level 5 UART3_RX_3V3 UART3 receive data 3 3V level 6 UART4_RX_3V3 UART4 receive data 3 3V level 7 GND GND...

Page 35: ...7 GND GND 8 GND GND 9 GND GND 10 GND GND 4 2 14 Buttons S1 3 Pin Signal Description S2 MENU System menu key S3 BACK System back key S4 Reset System Reset key 4 2 15 LEDs LEDs LED Definition Descripti...

Page 36: ...pdates Notes for the use of system Introducing the development of upper layers Note It is recommended to refer to Error Reference source not found for details of Ubuntu Linux installation and learning...

Page 37: ...th users and updating images and boot the kernel 3 A Linux version with kernel 3 2 0 is employed here and it can be customized based onSBC8600B 4 rootfs employs open source system ubifs It is small in...

Page 38: ...elopment environment on the PC This section will use the Ubuntu operating system as an example to introduce how to establish a cross development environment 5 4 2 Installing Cross Compilation Tools Af...

Page 39: ...nux tools mkfs ubifs HOME tools cp media cdrom linux tools ubinize HOME tools cp media cdrom linux tools ubinize cfg HOME tools 5 4 3 Addition of environment variables After all above tools are instal...

Page 40: ...inux source in the disc they require decompression in the Ubuntu system before beginning development mkdir HOME work cd HOME work tar xvf media cdrom linux source u boot 2011 09 psp04 06 00 03 tar bz2...

Page 41: ...u boot 2011 09 psp04 06 00 03 make distclean make sbc8600_config make When the above steps are finished two files named MLO and u boot img can be found under the current directory 6 1 3 Kernel compil...

Page 42: ...tructions to commence compilation of an Android system cd rowboat android gingerbread am335xevm make TARGET_PRODUCT am335xevm clean make TARGET_PRODUCT am335xevm OMAPES 4 x 2 Modify Rules make under h...

Page 43: ...A default configuration file is provided in the factory kernel source codes Linux 3 2 0 psp04 06 00 08 sdk arch arm configs sbc8600_defconfig Users can carry out system customization based on it cd Li...

Page 44: ...nd compile the kernel again 6 3 2 Compilation Save configuration execute the following commands to recompile kernel make uImage make modules After above operations are finished a new kernel image uIma...

Page 45: ...ND Flash is mainly administered by a specific file system In order to allow for a difference in different flash memories the kernel inserts an MTD subsystem between the file system and the specific fl...

Page 46: ...r parts SD MMC core mmc_block mmc_queue and the SD MMC driver 1 SD MMC core handles core codes unrelated to structure in the SD MMC card operation 2 mmc_block controls driver structure when SD MMC car...

Page 47: ...erences as follows comparing with OMAP L138 Interrupt configuration and status registers are different Higher display resolution of up to 2048x2048 24 bit active TFT grating per pixel So da8xx fb LCD...

Page 48: ...latform driver The platform driver contains the audio dma engine and audio interface drivers e g I2S AC97 PCM for that platform Machine driver The machine driver handles any machine specific controls...

Page 49: ...triggered on low level the structure template is shown below static struct gpio_keys_button gpio_key_buttons code KEY_F1 gpio GPIO_TO_PIN 0 20 active_low true desc menu type EV_KEY wakeup 1 code KEY_...

Page 50: ...drivers input keyboard gpio_keys c Call platform_driver_register to register gpio_keys driver static struct platform_driver gpio_keys_device_driver probe gpio_keys_probe remove __devexit_p gpio_keys_...

Page 51: ...input input bdata button button error gpio_keys_setup_key pdev bdata button if error goto fail2 if button wakeup wakeup 1 input_set_capability input type button code error sysfs_create_group pdev dev...

Page 52: ...ut button gpio if error 0 dev_err dev failed to configure direction for GPIO d error d n button gpio error goto fail3 if button debounce_interval error gpio_set_debounce button gpio button debounce_in...

Page 53: ...en button is pressed an interrupt is generated and key value is displayed static irqreturn_t gpio_keys_isr int irq void dev_id schedule_work bdata work static void gpio_keys_work_func struct work_stru...

Page 54: ...led both activated by a high level signal static struct gpio_led gpio_leds name sys_led default_trigger heartbeat gpio GPIO_TO_PIN 1 30 name user_led gpio GPIO_TO_PIN 1 31 static struct gpio_led_platf...

Page 55: ...form_driver gpio_led_driver probe gpio_led_probe remove __devexit_p gpio_led_remove driver name leds gpio owner THIS_MODULE of_match_table of_gpio_leds_match MODULE_ALIAS platform leds gpio static int...

Page 56: ...i 0 i delete_gpio_led priv leds i kfree priv return ret static int __devinit create_gpio_led const struct gpio_led template struct gpio_led_data led_dat struct device parent int blink_set unsigned un...

Page 57: ...ge 1 Formatting the MMC SD card The HP USB Disk Storage Format Tool is recommended The software can be downloaded from http www embest tech com resource download HP USB Disk St orage Format Tool rar I...

Page 58: ...ed click OK Note HP USB Disk Storage Format Tool will erase the partitions of TF card Use other format tool may cause the failure of the TF card booting 1 Update of images Copy all files under the dir...

Page 59: ...t environment Net cpsw Hit any key to stop autoboot 0 SD MMC found on device 0 reading uEnv txt Unable to read uEnv txt from mmc 0 1 reading uImage 3224184 bytes read reading ramdisk gz 12514633 bytes...

Page 60: ...d Invalid argument mount mounting dev root on failed Invalid argument root mount mounting rootfs on failed No such file or directory Setting up IP spoofing protection rp_filter Configuring network int...

Page 61: ...NAND Flash boot up image is accomplished by u boot Regardless of the content of the NAND Flash u boot on the TF card can be used to update NAND Flash images Preparation 1 Format the TF card to the FA...

Page 62: ...m Note You may short the jumper JP5 on the board to allow SBC8600B boot up from TF card and enter uboot to write the image in NAND Flash and then disconnect JP5 to allow system boot up from NAND Flash...

Page 63: ...uration By default the system image has been set for 4 3 LCD You can change the settings in UBOOT according to the detailed instructions contained in the next section 6 7 Instructions 6 7 1 Selecting...

Page 64: ...M in Profile 0 with Daughter board NAND HW ECC Hamming Code selected 512 MiB MMC OMAP SD MMC 0 Warning bad CRC using default environment Net cpsw Hit any key to stop autoboot 0 press any key to enter...

Page 65: ...mode LVDS SBC8600 saveenv 6 8 Testing 6 8 1 LED Testing The D35 LED on the board is the system indicator D36 is a user customisable LED The following operations are accomplished in HyperTerminal 1 Con...

Page 66: ...exit Event time 1233046135 256046 type 1 Key code 1 Esc value 1 Event time 1233046135 256053 Report Sync Event time 1233046135 426967 type 1 Key code 1 Esc value 0 Event time 1233046135 426970 Report...

Page 67: ...Backlight Testing The backlight brightness has a range from 0 to 100 in which 100 corresponds to the highest brightness setting whereas 0 corresponds to the lowest Execute the following instructions t...

Page 68: ...SBC8600 date 032220002012 Thu Mar 22 20 00 00 UTC 2012 2 Write the system clock into RTC root SBC8600 hwclock w 3 Read the RTC root SBC8600 hwclock Thu Mar 22 20 00 10 2012 0 000000 seconds We can se...

Page 69: ...64 dev root 31 0M 19 7M 11 3M 64 none 250 6M 684 0k 249 9M 0 dev tmpfs 250 6M 20 0k 250 6M 0 var volatile tmpfs 250 6M 0 250 6M 0 dev shm tmpfs 250 6M 3 0M 247 6M 1 media ram dev mmcblk0p1 1 8G 101 8M...

Page 70: ...formation 2 Execute the following commands in the HyperTerminal root SBC8600 ifconfig usb0 192 168 1 115 root SBC8600 ifconfig lo Link encap Local Loopback inet addr 127 0 0 1 Mask 255 0 0 0 UP LOOPBA...

Page 71: ...nd in the HyperTerminal to test whether the settings of the development board are correct root SBC8600 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 t...

Page 72: ...ot root SBC8600 umount media sda1 3 Type command df The absence of directory media sda1 indicates that the USB disk is unmounted successfully root SBC8600 df Filesystem 1k blocks Used Available Use Mo...

Page 73: ...f S16_LE v k Recording WAVE k Signed 16 bit Little Endian Rate 44100 Hz Mono Plug PCM Route conversion PCM sformat S16_LE Transformation table 0 0 0 5 1 0 5 Its setup is stream CAPTURE access RW_INTE...

Page 74: ...ormation table 0 0 1 0 Its setup is stream PLAYBACK access RW_INTERLEAVED format S16_LE subformat STD channels 1 rate 44100 exact rate 44100 44100 1 msbits 16 buffer_size 32768 period_size 2048 period...

Page 75: ...ollisions 0 txqueuelen 1000 RX bytes 13792 13 4 KiB TX bytes 0 0 0 B Interrupt 40 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 0 er...

Page 76: ...me 7 969 ms 64 bytes from 192 168 168 121 seq 1 ttl 64 time 0 319 ms The above information indicates a successful network test 6 8 11 CAN Testing SBC8600B can work as a CAN device Please connect the C...

Page 77: ...dump can0 The terminal window will print the information of the received data package 4 Stop the CAN device root SBC8600 canconfig can0 stop Users can test with different bit rates by using the instru...

Page 78: ...t simultaneously Copy the file uart_test under linux example uart_test onto the TF card and then insert the card into the SBC8600B and execute the following instructions root SBC8600 cd media mmcblk0p...

Page 79: ...ND 1234567890 dev ttyO2 RECV 10 total dev ttyO2 RECV 1234567890 dev ttyO2 SEND 1234567890 dev ttyO2 RECV 10 total dev ttyO2 RECV 1234567890 dev ttyO2 SEND 1234567890 dev ttyO2 RECV 10 total dev ttyO2...

Page 80: ...d and short jumper JP5 and then power on the board The debugging tool will show the following information CCCCCCCC U Boot SPL 2011 09 svn55 Dec 04 2012 09 36 25 Texas Instruments Revision detection un...

Page 81: ...ead HW ECC BCH8 Selected NAND write device 0 offset 0x280000 size 0x297eb8 2719416 bytes written OK reading ubi img 72744960 bytes read SW ECC selected NAND write device 0 offset 0x780000 size 0x45600...

Page 82: ...O media LABEL1 cp media cdrom linux demo tisdk image u boot img media LABEL1 cp media cdrom linux demo tisdk image uImage media LABEL1 uIm age rm rf media LABEL2 sudo tar xvf media cdrom linux demo ti...

Page 83: ...D HW ECC Hamming Code selected 512 MiB MMC OMAP SD MMC 0 Warning bad CRC using default environment Net cpsw Hit any key to stop autoboot 0 Booting from dvsdk reading uImage 3175384 bytes read Booting...

Page 84: ...e general process of application programs development through examples 6 10 1 Development example LED application program 1 Composing Source Code The following is led_acc c source code this instructs...

Page 85: ...compiling arm none linux gnueabi gcc led_acc c o led_acc 3 Downloading and running Download the code to the development board system through a TF card a USB flash disk or the network connection and e...

Page 86: ...the BSP board support package and so on 7 2 Software Resources BSP Board Support Package CD WINCE700 BSP SBC8600 rar CD WINCE700 BSP COMMON_TI_V1 rar CD WINCE700 BSP 3rdParty rar CD WINCE700 BSP Powe...

Page 87: ...D Source SD Source EBOOT Second boot loader NAND Source SD source OAL Boot parameter Source KILT EMAC Source Serial debug Source REBOOT Source Watchdog Source RTC Source Kernel profiler Source System...

Page 88: ...install all the items below to windows XP Vista in the order listed 1 Visual Studio 2008 2 Visual Studio 2008 SP1 3 Windows Embedded Compact 7 4 Windows Embedded Compact 7 Updates 5 ActiveSync 4 5 Not...

Page 89: ...WINCE700 7 4 3 Sysgen Build BSP Below are the steps given for building Sysgen and the BSP 1 Open the existing project file SBC8600 sln located in C WINCE700 OSDesigns SBC8600 1 Click Build Build Solu...

Page 90: ...S UART Audio driver BSP SBC8600 SRC DRIVERS WAVEDEV2 NAND driver BSP SBC8600 SRC DRIVERS BLOCK BSP COMMON_TI_V1 COMMON_TI_AMXX BLOCK Display driver BSP COMMON_TI_V1 COMMON_TI_AMXX DSS_Netra BSP SBC860...

Page 91: ...programs Microsoft Visual Studio 2008 Microsoft Visual Studio 2008 Document Content C Windows Embedded Compact 7 Device Driver 7 5 Updating the System Image The SBC8600B supports boot up from a TF car...

Page 92: ...rom the file system drop down box Click Start When formatting is complete then click OK Note HP USB Disk Storage Format Tool will erase the partitions of TF card Use other format tool may cause the fa...

Page 93: ...er Common Library Version 1 4 Built Jul 27 2012 11 23 05 I2C EEPROM returned wrong magic value 0xffffffff INFO OALLogSetZones dpCurSettings ulZoneMask 0x8409 Texas Instruments Windows CE EBOOT for AM3...

Page 94: ...t KITL Debug Device 4 Network Settings 5 SDCard Settings 6 Set Device ID 7 Save Settings 8 Flash Management 9 Enable Disable OAL Retail Messages a Select Display Resolution b Select OPP Mode 0 Exit an...

Page 95: ...LCD 480x272 60Hz For 4 3 inch LCD 2 DVI 640x480 60Hz N A 3 DVI 640x480 72Hz N A 4 LCD 800x480 60Hz For 7 inch LCD 5 DVI 800x600 60Hz N A For LVDS 6 DVI 800x600 56Hz N A 7 VGA 1024x768 60Hz For VGA 8...

Page 96: ...2000 Length 0x03c9e9bc Save 0x80002000 Download file type 1 OEMIsFlashAddr 0x80002000 g_eboot type 1 rom_offset 0x0 ImageStart 0x80002000 ImageLength 0x3c9e9bc LaunchAddr 0x8000b6a0 Completed file s O...

Page 97: ...r the EBOOT menu An image can be flashed to NAND flash according to the following steps 1 Press 8 to enter the Flash menu 2 Press 9 4 A 9 3 B and 9 2 C to write XLDR EBOOT and NK images respectively 3...

Page 98: ...e Microsoft Windows Embedded Compact 7 standard application program interface definition SBC8600B only expands the interface definitions of GPIO based on standard API Please refer to the CD WINCE700 a...

Page 99: ...mode DeviceIoControl hFile IOCTL_GPIO_SETMODE pInBuffer sizeof pInBuffer NULL 0 NULL NULL 3 Read the working mode of the GPIO DeviceIoControl hFile IOCTL_GPIO_GETMODE id sizeof DWORD mode sizeof DWOR...

Page 100: ...the GPIO pin number pinSate returns to pin state Other optional operations Read the corresponding IRQ number of a GPIO pin DWORD id 0 irq 0 DeviceIoControl hFile IOCTL_GPIO_GETIRQ id sizeof DWORD irq...

Page 101: ...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 102: ...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 103: ...AM 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 sel...

Page 104: ...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 105: ...our 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 wh...

Page 106: ...e 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 be shown as below 2 Select Storage...

Page 107: ...Page 100 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 start as shown below...

Page 108: ...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 109: ...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 110: ...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 111: ...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 112: ...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 113: ...Page 106 3 When the following appears select Continue 4 Please wait until the installation is completed...

Page 114: ...Page 107...

Page 115: ...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 116: ...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 117: ...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 track 245 cylinder...

Page 118: ...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 Using default value 52 Last cylinder or size o...

Page 119: ...S 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 32 dev sdc1 n LABEL1 sudo...

Page 120: ...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 usr sbin in tft...

Page 121: ...oot the server sudo etc init d xinetd restart sudo in tftpd l tftpboot 5 Test the server Conduct a test create a file under folder tftpboot touch abc Enter into another folder tftp 192 168 1 15 192 16...

Page 122: ...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 123: ...insists on a simple business model to offer customers high performance low cost products with the best quality and service 6 1 Technical support service Embest provides one year of free technical sup...

Page 124: ...nconsistent with their specification Products are subject to damage in either appearance or function due to natural disasters flood fire earthquake lightning strike or typhoon or natural aging of comp...

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

Page 126: ...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: