background image

    

    

VAB

VAB

VAB

VAB----800 Android BSP 1.

800 Android BSP 1.

800 Android BSP 1.

800 Android BSP 1.3

3

3

3 User Manual

 User Manual

 User Manual

 User Manual    

 

23

 

3.3.8.

 

GPIO 

 

Change directory to /sys/class/gpio

/sys/class/gpio

/sys/class/gpio

/sys/class/gpio 

 

Generate the numbers corresponding to the GPIO pins. 

P

PP

Pin

in

in

in    

VAB

VAB

VAB

VAB----800 name

800 name

800 name

800 name    

FSL name

FSL name

FSL name

FSL name    

C7 

GPI_2 

GPIO1_2 

C6 

GPI_16 

GPIO7_11 

D7 

GPI_18 

GPIO7_13 

B4 

GPI_19 

GPIO4_5 

E14 

GPI_10 

GPIO1_10 

C15 

GPI_11 

GPIO1_11 

E13 

GPI_12 

GPIO1_12 

D14 

GPI_13 

GPIO1_13 

Table 

Table 

Table 

Table 2

2

2

2: 

:  GPIO pins

 GPIO pins

 GPIO pins

 GPIO pins    

The number is (X-1)*32+Y for each GPIOX_Y. 

Ex: The number for GPIO7_11 is (7-1)*32+11=203 

The number for GPIO1_11 is (1-1)*32+11=11 

echo 203 > export 
echo 11 > export 

The directories “gpio203” and “gpio11” will be created under /sys/class/gpio/ 

 

Set GPIO IN/OUT 

echo in > gpio203/direction 
echo out > gpio11/direction 

 

Note

Note

Note

Note::::    

10, 11, 12, and 13 are out.  2, 203, 205 and 101 are in. 

 

Test 

The following GPIO are connected by jumpers, we can test them together. 

    gpio101  ---  gpio13 
    gpio205  ---  gpio12 
    gpio203  ---  gpio11 
    gpio2     ---  gpio10 

Write value 0 or 1 to “out” and read value from “in” 

echo 0 > /sys/class/gpio/gpio203/value 
cat /sys/class/gpio/gpio11/value 

Check if the value is the same as you wrote it. 

Содержание VAB-800

Страница 1: ...1 30 02122015 170700 USER MANUAL VAB 800 Android BSP 1 3...

Страница 2: ...Technologies makes no warranties implied or otherwise in regard to this document and to the products described in this document The information provided in this document is believed to be accurate and...

Страница 3: ...Manual User Manual User Manual iii Revision History Revision Revision Revision Revision Date Date Date Date Remarks Remarks Remarks Remarks 1 00 4 16 2013 Initial external release 1 10 4 18 2013 Adde...

Страница 4: ...ter for eMMC 6 2 3 1 Setting the display devices 7 2 3 2 Setting the miscellaneous 8 3 3 3 3 Testing Testing Testing Testing 10 10 10 10 3 1 Installing APK through file manager 10 3 2 Installing APK t...

Страница 5: ...nual User Manual User Manual User Manual v 3 3 12 USB 25 3 3 12 1 USB storage 25 3 3 12 2 USB OTG 25 3 3 13 SD storage 26 3 3 14 Touch panel 26 3 3 14 1 4 wired resistance interface 26 3 3 15 Rotate t...

Страница 6: ...package content 1 Figure 2 Boot select jumper 4 Figure 3 Android image auto installation 5 Figure 4 u boot parameter 6 Figure 5 SDK Manager 11 Figure 6 Packages to install 11 Figure 7 OpenGL ES 2 0 14...

Страница 7: ...AB VAB VAB 800 Android BSP 1 800 Android BSP 1 800 Android BSP 1 800 Android BSP 1 3 3 3 3 User Manual User Manual User Manual User Manual vii List of Tables Table 1 Jumper settings 4 Table 2 GPIO pin...

Страница 8: ...f these files does not exist in the boot media 1 2 Package Content There are two folders in VAB 800 evaluation package Figure Figure Figure Figure 1 1 1 1 VAB VAB VAB VAB 800 800 800 800 evaluation ev...

Страница 9: ..._Video_Player_1 6e MX_Video_Player_1 6e MX_Video_Player_1 6e StarVG StarVG StarVG StarVG and TigerVG TigerVG TigerVG TigerVG which was provided by Freescale for evaluation Tools Tools Tools Tools andr...

Страница 10: ...make Android system eMMC through the Micro SD Step 1 Step 1 Step 1 Step 1 Insert the Micro SD card to Linux development computer Step Step Step Step 2 2 2 2 Open Terminal Terminal Terminal Terminal u...

Страница 11: ...Micro SD storage card code name for this example is identified as sdb sdb sdb sdb user ubuntu EVK Images_autoinstall_sd scripts sudo mk_install_sd sh dev sdb User can unplug Micro SD card from Linux d...

Страница 12: ...to eMMC or other keys to exit without installing Android images There is a power off power off power off power off message when image is installed User can press y y y y to power off directly Figure F...

Страница 13: ...and press any key to stop the booting process as shown in Figure 4 Figure Figure Figure Figure 4 4 4 4 u u u u boot parameter boot parameter boot parameter boot parameter Make sure the parameters are...

Страница 14: ...4 VGA WSXGA vga pmem 32M 64M fbmem 5M gpu_memory 64M Note Note Note Note There are four modes to be set in VAB 800 VGA WSXGA 1680 x 1050p 60 VGA SXGA 1280 x 1024p 60 VGA XGA 1024 x 768p 60 VGA SVGA 80...

Страница 15: ...0 x 480 LVDS panel in default 2 3 2 Setting the miscellaneous Touch Panel Touch Panel Touch Panel Touch Panel To set LVDS1 with touch port setenv touch setenv bootargs bootargs di0_primary video mxcdi...

Страница 16: ...P 1 800 Android BSP 1 800 Android BSP 1 3 3 3 3 User Manual User Manual User Manual User Manual 9 It is a must to reset after you set the MAC address and save it saveenv reset Note Note Note Note User...

Страница 17: ...t from eMMC from SD card Boot from eMMC 1 Open the Open Manager Open Manager Open Manager Open Manager 2 Choose extsd extsd extsd extsd folder 3 Select the app you want to install The program will ask...

Страница 18: ...ds index html http www oracle com technetwork java javase downloads index html http www oracle com technetwork java javase downloads index html http www oracle com technetwork java javase downloads in...

Страница 19: ...IT USE android update adb TO GENERATE 1 USB VENDOR ID PER LINE 0x15a2 Step Step Step Step 7 7 7 7 Unpack the android_usb_fsl zip android_usb_fsl zip android_usb_fsl zip android_usb_fsl zip from Tools...

Страница 20: ...ATE 1 USB VENDOR ID PER LINE 0x15a2 Create a new udev rule file under the PC s etc udev rules d named imx android rules Fill in the following line into the file SUBSYSTEM usb SYSFS idVendor 15a2 MODE...

Страница 21: ...2 OpenVG OpenVG is not originally supported by Android however it is possible to use OpenVG in Android by downloading AndroidVG Get more detailed information at http code google com p androidvg wiki I...

Страница 22: ...p it if user had already set it setenv ethaddr xx xx xx xx xx xx After booting into Android go to Settings Ethernet configuration o In Ethernet configuration set Ethernet Devices as eth0 eth0 eth0 eth...

Страница 23: ...Static IP Ethernet Static IP Ethernet Static IP Ethernet Static IP After booting into Android go to Settings Ethernet configuration o In Ethernet configuration set Ethernet Devices as eth0 eth0 eth0 e...

Страница 24: ...VAB 800 Figure Figure Figure Figure 8 8 8 8 VT9 VT9 VT9 VT9271 connector 271 connector 271 connector 271 connector Go to Settings Settings Settings Settings Wireless networks Wireless networks Wireles...

Страница 25: ...ck whether there are sdx sdx1 sda sda1 Mount the SATA HDD and operate file management mount t ext4 or other else dev block sdX1 sdcard sata busybox cp any file sdcard sata 3 3 5 COM port 3 3 5 1 3 3 5...

Страница 26: ...ote Note Note Note Please check Board version to decide what kinds of UART cable to use Rev A User should use crossover cable Rev A1 Rev B User should use non crossover cable 3 3 5 2 3 3 5 2 3 3 5 2 3...

Страница 27: ...layer app and play music 3 3 6 2 3 3 6 2 3 3 6 2 3 3 6 2 M M M Mic ic ic ic in in in in It is recommended to download Hi Q MP3 Rec Llite 1 6 12 Plug the microphone to the red jack socket Run Hi Q app...

Страница 28: ...1 alsa_amixer cset numid 7 1 Run Hi Hi Hi Hi Q Q Q Q app 3 3 6 4 3 3 6 4 3 3 6 4 3 3 6 4 Echo while recording Echo while recording Echo while recording Echo while recording Plug headphone to green ja...

Страница 29: ...d at address 0x10 and 0x11 on I2C2 3 3 7 2 3 3 7 2 3 3 7 2 3 3 7 2 Read th Read th Read th Read the register value from light sensor e register value from light sensor e register value from light sens...

Страница 30: ...GPIO1_13 Table Table Table Table 2 2 2 2 GPIO pins GPIO pins GPIO pins GPIO pins The number is X 1 32 Y for each GPIOX_Y Ex The number for GPIO7_11 is 7 1 32 11 203 The number for GPIO1_11 is 1 1 32 1...

Страница 31: ...13 13 WDOG reboot WDOG reboot WDOG reboot WDOG reboot 3 3 10 Video To install MX player Select video file to play MX player will use hardware acceleration to decode the video by default and show HW o...

Страница 32: ...3 3 12 1 3 3 12 1 3 3 12 1 3 3 12 1 USB storage USB storage USB storage USB storage Android will detect USB disk automatically Once the USB disk is detected system will inform you You can also mount t...

Страница 33: ...tos or video files which are stored in SD card 3 3 14 Touch panel 3 3 14 1 3 3 14 1 3 3 14 1 3 3 14 1 4 wired resistance interface 4 wired resistance interface 4 wired resistance interface 4 wired res...

Страница 34: ...P 1 800 Android BSP 1 800 Android BSP 1 3 3 3 3 User Manual User Manual User Manual User Manual 27 3 3 15 Rotate testing manually There is no G Sensor to do the auto rotate on VAB 800 Rotate_4 6 2 apk...

Страница 35: ...Android BSP 1 800 Android BSP 1 800 Android BSP 1 3 3 3 3 User Manual User Manual User Manual User Manual 28 3 3 16 FlexCAN Setup H W It will guide you to setup your CAN BUS testing H W 1 To test on...

Страница 36: ...VAB VAB VAB VAB 800 Android BSP 1 800 Android BSP 1 800 Android BSP 1 800 Android BSP 1 3 3 3 3 User Manual User Manual User Manual User Manual 29 2 To test on VAB 800 with VAB 800 A and cable...

Страница 37: ...cantest can1 cantest can0 123 aabbccdd If the setting is successful it will show ID ID ID ID and DATA DATA DATA DATA The others testing reference Simple Tx Rx Test All receive ifconfig can0 up ifconfi...

Страница 38: ...bitrate ifconfig can1 down echo 250000 sys devices platform FlexCAN 1 bitrate ifconfig can1 up candump can1 cansend can0 i0x123 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x123 8 11 22 33 44 55 66 77 88...

Страница 39: ...A XGA vga video mxcdi0fb RGB24 1280x720M 60 hdmi pmem 64M 64M fbmem 8M gpu_memory 64M setenv set_display run dualview saveenv Then OS will light VGA and HDMI LVDS2 HDMI setenv dualview setenv bootargs...

Страница 40: ...ice Primary Device Primary Device Secondary Device Secondary Device Secondary Device Secondary Device HDMI 1280 x 720 HDMI 1024 x 768 HDMI 800 x 600 VGA VGA SXGA 1280 x 1024 HDMI 640 x 480 HDMI 1280 x...

Страница 41: ......

Отзывы: