Difference between revisions of "A10s-OLinuXino-MICRO"

(Changing A13-OLinuxino-MICRO screen resolution)
(Linux)
 
(47 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
[[File:A10S-OLinuXino.jpg]]
 +
 +
 +
'''A10S is not recommended for new designs - please read more on the subject here: [http://olimex.wordpress.com/2013/09/27/allwinner-do-not-develop-new-sdks-for-a10s/ link].
 +
'''
 +
 +
A10S-OLinuXino-MICRO features are:
 +
*A10S Cortex-A8 processor at 1GHz, 3D Mali400 GPU, NEON
 +
*512MB DDR3 RAM
 +
*Optional 4GB NAND FLASH memory
 +
*USB High-speed host with power control and current limiter
 +
*USB-OTG with power control and current limiter
 +
*HDMI output with ESD protectors
 +
*100MBit native Ethernet
 +
*Audio Line-input
 +
*Audio Headphones output
 +
*UEXT connector
 +
*LCD connector to work with 4.3, 7.0, 10.1" LCD modules from Olimex
 +
*50 GPIOs on three GPIO connectors
 +
*MicroSD card connector
 +
*SD/MMC card connector
 +
*DEBUG-UART connector for console debug with USB-SERIAL-CABLE-F
 +
*STATUS LED
 +
*Power LED
 +
*2KB EEPROM for MAC address and other storage
 +
*5 BUTTONS with ANDROID functionality + BOOT/REC and POWER buttons
 +
*Microphone input on connector (not populated)
 +
*Composite TV-output on connector (not populated)
 +
*JTAG-DEBUG connector (not populated)
 +
*UART1 connector (not populated)
 +
*+5V input power supply, noise immune design
 +
*4 mounting holes
 +
*PCB dimensions: (4000 x 3200) mils ~ (101.6 x 81.28) mm
 +
 
== Official Images from OLIMEX ==
 
== Official Images from OLIMEX ==
  
 
=== Linux ===
 
=== Linux ===
  
'''[https://docs.google.com/file/d/0B-bAEPML8fwlZ2g0V0JSRGxHc0U/edit?usp=sharing A10S Debian 4GB SD-card image release-7 with:]'''
+
The official Debian images are suitable only for microSD card. Information on booting Debian from the NAND might be found at the forum.
*Linux Kernel 3.0.52+
+
 
 +
Download methods and locations might be found below!
 +
 
 +
Torrent of Debian release 4: [[Media:A10S_debian_3_4_GPIO_LAN_USBs_SDs_HDMI_LCD_I2C_100KHz_TS_4G_release_4.torrent|A10s-OLinuXino-MICRO Debian release 4]]
 +
 
 +
[https://drive.google.com/file/d/1zcON-7TpqYMqIcMTInE9x1Jmb3uRqZVR/view?usp=sharing Build instructions and required files]
 +
 
 +
*Linux Kernel 3.4.61+
 
*XFCE4 desktop environment
 
*XFCE4 desktop environment
 
*Mplayer CLI
 
*Mplayer CLI
Line 31: Line 72:
  
 
'''Note:''' the A10S-OLinuXino-SD card which we have on our webshop contain same image on 4GB Class10 fast micro sd-card, if you want to use this image please use Class10 fast card or the performance of Linux will slow down
 
'''Note:''' the A10S-OLinuXino-SD card which we have on our webshop contain same image on 4GB Class10 fast micro sd-card, if you want to use this image please use Class10 fast card or the performance of Linux will slow down
 +
 +
Tested hardware with this image:
 +
*GPIOs located in /sys/class/gpio
 +
*LCD - supported are [https://www.olimex.com/Products/OLinuXino/A13/A13-LCD43TS A13-LCD4.3TS], [https://www.olimex.com/Products/OLinuXino/A13/A13-LCD7-TS A13-LCD7TS], [https://www.olimex.com/Products/OLinuXino/A13/A13-LCD10TS A13-LCD10TS]
 +
*Touch screen - you need calibrate LCD before using touch screen. Type: ts_calibrate and then test it with ts_test
 +
*HDMI - the default HDMI resolution is 720p60(1280x720-60 Hz)
 +
*ASIX 8877 USB-LAN - [https://www.olimex.com/Products/OLinuXino/A13/USB-ETHERNET-AX88772B/ USB-ETHERNET-AX88772B]
 +
*WEB camera A4TECH
 +
*RTL8188CU - [https://www.olimex.com/Products/Modules/Ethernet/MOD-WIFI-RTL8188/ MOD-WIFI-RTL8188]
 +
*USB_OTG - works as OTG device and Low/Full/High USB host
 +
*USB_HOST - works as Low/Full/High USB host
 +
*USB_HOST_down - works as Low/Full/High USB host
 +
*mico_SD_card - allow Linux boot
 +
*secondary SD-MMC card - with card present detector
 +
*ETHERNET - 100Mb
 +
*Headphone OUT - audio output
 +
*MIC IN - microphone input
 +
*I2C1(100KHz) - /dev/i2c-1
 +
*I2C2(100KHz) - /dev/i2c-2
 +
*UART2 - /dev/ttyS1. Note that UART2 is shifted and it responds of /dev/ttyS1 instead of /dev/ttyS2
 +
*UART3 - /dev/ttyS2. Note that UART3 is shifted and it responds of /dev/ttyS2 instead of /dev/ttyS3
 +
<br>
  
 
=== Android ===
 
=== Android ===
  
'''[https://docs.google.com/file/d/0B-bAEPML8fwlSzcyWUJNMmZiaW8/edit?usp=sharing A10S Android NAND image with HDMI]
+
Torrents of official Android releases are below. Please read description of the image carefully.
'''
+
 
*Android_version - 4.0.3
+
Torrent of Android release 2 for NAND memory: [[Media:A10s_nand_HDMI_en_380MHz_second_release.torrent‎|A10s-OLinuXino-MAXI Android for NAND]]
*Baseband version - 1.2
+
 
*Kernel version 3.0.8+
+
Torrent of Android release 2 for microSD card: [[Media:A10S_android_SD_card_4G_TS_GPIO_HDMI_WIFI_release_2.torrent‎|A10s-OLinuXino-MAXI Android for microSD card]]
 +
 
 +
Direct download locations of official Android releases are below. In case the daily limit of the download locations had been reached, please use the torrents above. Please read description of the image carefully.
  
 +
Direct download of Android release 2 for NAND memory [https://docs.google.com/file/d/0B-bAEPML8fwlSzcyWUJNMmZiaW8/edit?usp=sharing A10S-OLinuXino-MICRO NAND flash image for Android]
  
'''[https://docs.google.com/file/d/0B-bAEPML8fwlTW95Slc2OGo2Skk/edit?usp=sharing A10S-OLinuXino-MICRO Android SD-CARD image with HDMI]'''
+
Direct download of Android release 2 for microSD card memory [https://docs.google.com/file/d/0B-bAEPML8fwlTW95Slc2OGo2Skk/edit?usp=sharing A10S-OLinuXino-MICRO microSD card image for Android]
  
You have to unrar the file and  write the image on 4GB sd card. We recommend class 10 card. You can use dd (under linux) or Win32DiskImager.exe (under Windows) for image writing.
+
You have to unrar the file and  write the image on 4GB sd card. We recommend you to use a class 10 card. You can use dd (under linux) or Win32DiskImager.exe (under Windows) for the image writing.
  
 
*Android_version - 4.0.3
 
*Android_version - 4.0.3
 
*Baseband version - 1.2
 
*Baseband version - 1.2
 
*Kernel version 3.0.8+
 
*Kernel version 3.0.8+
*VGA 800x600 pixels
+
<br>
 +
'''Changing screen resolution in the Android SD card image:'''
 +
 
 +
The default screen resolution of A10s android SD card image is HDMI. If you want to change to LCD 10<nowiki>''</nowiki>(1024x600) or LCD7<nowiki>''</nowiki>(800x480) you have to replace the default script.bin file in the main SD card card partition. For this purpose put the SD card in a card reader on Linux machine (it might not work under Windows due to the Android file system format), mount the SD card, find script.bin file(usually it is located in the ../Volume partition) and replace it with the script.bin file from the corresponding directory. The scripts might be also downloaded from here: [https://www.olimex.com/Products/OLinuXino/A10S/_resources/HDMI_LCD_scripts_A10s_Android_SD.zip A10s Android SD scripts]
  
== Documents ==
+
The available directories are:
User's manual: https://www.olimex.com/Products/OLinuXino/A10S/_resources/A10s-OLinuXino-Micro.pdf
 
  
How to build Linux for A10s from scratch: http://olimex.wordpress.com/2013/06/19/building-linux-for-a10s-from-scratch/
+
script_a10s_android_LCD_800x480_TS_GPIO - contains script for A13-LCD7-TS
  
== Hardware ==
+
script_a10s_android_LCD_1024x600_TS_GPIO - contains script for A13-LCD10TS
  
Under construction
+
script_a10s_android_HDMI_GPIO - contains script for the default HDMI resolution
  
== Software ==
+
Note that you have to calibrate the touch screen with running Calibration application on Android Desktop. You would need a USB mouse to run the Calibration because the touch screen would still carry the old calibration settings.
  
The image in the Nand flash can be updated using the tools found at the following links:
+
The LCD output will be active only if the board boots without HDMI cable connected.
  
[http://linux-sunxi.org/LiveSuit LiveSuit official page]
+
'''This method of changing the default display setting will NOT work with the NAND Android!'''
  
[https://docs.google.com/file/d/0B7WHuNCASY8cWlZ2djh4X0QtV0U/edit?usp=sharing LiveSuit for Windows]
+
== Documents ==
 +
<br>
 +
===A10S-OLinuXino user manual===
 +
[https://www.olimex.com/Products/OLinuXino/A10S/_resources/A10s-OLinuXino-Micro.pdf A10S-OLinuXino user manual]
 +
<br>
  
----
+
===A10S Datasheet===
 +
[https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A10S-PDFs/A10s%20datasheet%20V1.20_.pdf A10S Datasheet]
  
'''A10S Android 4.2.2 SDK used to generate the Android image'''
+
[https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A10S-PDFs/A10s%20HDMI%20Dongle%20Brief-2012.10.10.pdf A10S Dongle brief]
  
[https://drive.google.com/folderview?id=0B5JCBCiZ1VAKUkVXQXd2LWFweE0&usp=sharing A10S-SDK]
+
[https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A10S-PDFs/AXP152%20Datasheet%20v1.0_cn.pdf AXP152 datasheet]
 +
<br>
  
----
+
== Hardware ==
 +
<br>
 +
Under construction
 +
<br>
 +
== Software ==
 +
<br>
 +
===Python===
 +
<br>
 +
[https://pypi.python.org/pypi/pyA10S/0.1.2 pyA10S is Python library for access to A10S-OLinuXino-MICRO GPIOs, I2C, SPI]
  
=== Changing A10s-OLinuxino-MICRO screen resolution ===
+
Use:
  
The default Debian SD card setup is made with settings for HDMI 1920x1080.
+
    #!/usr/bin/env python
If you want to switch resolutions between HDMI and LCD (4.3<nowiki>''</nowiki> or 7<nowiki>''</nowiki> or 10.1<nowiki>''</nowiki>, respectively with native screen resolutions of 480x242, 800x480 and 1024x600) then you have to replace the existing script.bin file from the first SD card partition (note that this partition is FAT - so you can replace the file under Windows or Linux) with the script.bin file from script_a10s_linux_HDMI_xxx directory (for HDMI resolution mode) or from script_a10s_linux_LCD_xxx directory (with the desired LCD resolution mode).
+
   
 +
    import A10S_GPIO as GPIO
 +
   
 +
    #init module
 +
    GPIO.init()
 +
   
 +
    #configure module
 +
    GPIO.setcfg(GPIO.PIN#, GPIO.OUTPUT)
 +
    GPIO.setcfg(GPIO.PIN#, GPIO.INPUT)
 +
   
 +
    #read the current GPIO configuration
 +
    config = GPIO.getcfg(GPIO.PIN#)
 +
   
 +
    #set GPIO high
 +
    GPIO.output(GPIO.PIN#, GPIO.HIGH)
 +
   
 +
    #set GPIO low
 +
    GPIO.output(GPIO.PIN#, GPIO.LOW)
 +
   
 +
    #read input
 +
    state = GPIO.input(GPIO.PIN#)
 +
   
 +
    #cleanup
 +
    GPIO.cleanup()
 +
<br>
 +
===GPIO under Linux===
  
The archive of scripts might be download from here: [https://www.olimex.com/Products/OLinuXino/A10S/_resources/HDMI_LCD_scripts_A10s.zip all available screen resolution scripts for A10s]
+
GPIOs are located in /sys/class/gpio directory.
 +
the full list of A10S GPIOs is:
 +
    root@A20:~# ls /sys/class/gpio/
 +
    export      gpio14_pc17  gpio19_pe5  gpio23_pe9  gpio4_pb11  gpio9_pb3
 +
    gpio10_pb4  gpio15_pe1  gpio1_pb14  gpio24_pe10  gpio5_pb5  gpiochip1
 +
    gpio11_pc3  gpio16_pe2  gpio20_pe6  gpio25_pe11  gpio6_pb6  unexport
 +
    gpio12_pc7  gpio17_pe3  gpio21_pe7  gpio2_pb13  gpio7_pb7
 +
    gpio13_pc16  gpio18_pe4  gpio22_pe8  gpio3_pb12  gpio8_pb8
  
Note that these A10s-MICRO scripts are not compatible with the A10 boards. Please check the A10s wiki article for such scripts.
+
Example how to toggle onboard LED. The LED is connected to PE3.
  
For Android you need a new image created with the proper screen settings.
+
make PE3(LED) output
  
== Projects ==
+
    root@A10s:/sys/class/gpio/gpio17_pe3# echo out > direction
Under construction
 
  
== FAQ ==
+
turn on onboard LED(connected to PE3)
  
'''Q: I plug my mouse in the board's only USB and it is not working. I also tried with my keyboard - still no success. Is my A10s board broken?'''
+
    root@A10s:/sys/class/gpio/gpio17_pe3# echo 1 > value
  
A: No. The problem is on software level! Low-speed devices such as mice and keyboards doesn't work as expected with the USB-host interface. You can go around this problem if you plug an USB hub (USB splitter) in the board. Then plug your low speed devices to the USB hub. Now they should work properly.
+
turn off onboard LED(connected to PE3)
  
----
+
    root@A10s:/sys/class/gpio/gpio17_pe3# echo 0 > value
  
'''Q: How to download new Android image to the NAND memory of my A10s board?'''
 
  
A: To repair the image on the NAND re-upload it following these steps:
+
===Add Voice to your OLinuXino project===
  
1. Download, install and start LiveSuit (download location might be found above the article)
 
  
2. Hold down “BOOT/REC” button on the board
+
[http://olimex.wordpress.com/2013/10/03/make-things-talk-with-olinuxino/ Installation of Festival on OLinuXino]
  
3. Connect the board to the computer via the mini connector of the USB-OTG
 
  
5. Release “BOOT/REC” button
+
===A10S SDK for Android===
  
6. You will be asked for drivers for the bootloader. Navigate to the folder where you extracted the LiveSuit and install the drivers from the respective executables (or manually point the installer to the drivers folder in the LiveSuit installation path).
+
'''A10S Android 4.2.2 SDK used to generate the Android image'''
  
7. Choose the image you have prepared or downloaded
+
[https://drive.google.com/folderview?id=0B5JCBCiZ1VAKUkVXQXd2LWFweE0&usp=sharing A10S-SDK]
  
8. Update and don't disconnect the board until the LiveSuit program confirms the update is complete
+
<br>
  
----
+
== HOW TO? ==
 +
===How to generate SD Debian Linux image with Kernel 3.4===
 +
<br>
 +
[http://olimex.wordpress.com/2013/10/28/building-debian-sd-card-for-linux-with-kernel-3-4-from-scratch-for-a10s-olinuxino-micro/ How to Build SD card Debian Linux image with Linux Kernel 3.4]
  
'''Q: How do I upload a Linux image to an SD card which I want to use with my A10s board?'''
+
[https://github.com/linux-sunxi/u-boot-sunxi/wiki Sunxi u-boot loader] The linux-sunxi git page contains a lot of sources for all Olimex Allwinner boards.
  
A: To write a Linux image to an SD card under Windows we use Win32 Disk Imager:
+
===How do I write the Linux image to a micro SD card to use with my A10S board?===
 +
<br>
 +
To write a Linux image to an SD card under Windows we use Win32 Disk Imager):
  
*Download Win32 Disk Imager Win32 Disk Imager
+
*Download Win32 Disk Imager [http://sourceforge.net/projects/win32diskimager/ Win32 Disk Imager]
 
*Insert card
 
*Insert card
 
*Start program
 
*Start program
 
*Select file
 
*Select file
 
*Click "write"
 
*Click "write"
 
  
 
To write a Linux image to an SD card under Linux:
 
To write a Linux image to an SD card under Linux:
  
For instance you have an image with the file name of "debian_2g.img". It would be downloaded to the SD card connected to a Linux machine using one of the following commands:
+
For instance you have an image with the file name of "debian_4g.img". It would be downloaded to the SD card connected to a Linux machine using one of the following commands:
  
* # dd bs=4M oflag=sync if=debian_2g.img of=/dev/sdX
+
* # dd bs=4M oflag=sync if=debian_4g.img of=/dev/sdX
 
or
 
or
* # cp debian_2g.img /dev/sdX
+
* # cp debian_4g.img /dev/sdX
  
  
 
where X is the uSD card.
 
where X is the uSD card.
 +
<br>
 +
 +
===How to change HDMI and LCD resolutions in the latest Debian image?===
 +
<br>
 +
The default SD card setup is made with settings for HDMI 720p/60Hz. If you want to change to some other LCD  or HDMI resolution then you have to start change_display.sh script file in /root directory.
 +
 +
Type:
 +
    # ./change_display.sh
 +
 +
and choose the resolution and the interface(LCD, HDMI or VGA). Note that the selection of a specific resolution is done by navigating with the arrow keys and pressing "space" button. Make sure the asterisk marks your selection properly.
 +
 +
The supported resolutions are:
 +
 +
'''For LCD:'''
 +
 +
*1. 4.3" (480x272)
 +
*2. 7" (800x480)
 +
*3. 10" (1024x600)
 +
 +
Important: initially the boards are calibrated for a specific display. If you re-write the image (no matter whether the SD card or the NAND memory) you would need to use a mouse to calibrate the display initially. It might be impossible to calibrate it via touching the display.
 +
 +
'''For HDMI:'''
 +
 +
*0. 480i
 +
*1. 576i
 +
*2. 480p
 +
*3. 576p
 +
*4. 720p50
 +
*5. 720p60
 +
*6. 1080i50
 +
*7. 1080i60
 +
*8. 1080p24
 +
*9. 1080p50
 +
*10. 1080p60
 +
 +
 +
Note that you have to calibrate touch screen after changing LCD resolution in the script.bin
 +
type:
 +
 +
    root@A10s:~# ts_calibrate
 +
 +
and calibrate the LCD touch screen
 +
you can test the calibration using ts_test.
 +
 +
    root@A10s:~# ts_test
 +
 +
and finaly you hsve to reboot the board in order to use the touch screen in X environment.
 +
<br>
 +
 +
===How to flash new Android image to the NAND memory of my A10s board?===
 +
<br>
 +
To repair the image on the NAND re-upload it following these steps:
 +
 +
1. Download, install and start LiveSuit (download location might be found above the article)
 +
 +
2. Hold down "BOOT/REC" button on the board
 +
 +
3. Connect the board to the computer via the mini connector of the USB-OTG
 +
 +
5. Release "BOOT/REC" button
 +
 +
6. You will be asked for drivers for the bootloader. Navigate to the folder where you extracted the LiveSuit and install the drivers from the respective executable (or manually point the installer to the drivers folder in the LiveSuit installation path).
 +
 +
7. Choose the image you have prepared or downloaded
 +
 +
8. Update and don't disconnect the board until the LiveSuit program confirms the update is complete
 +
<br>
  
 +
===How to control PWM under Linux? ===
 +
<br>
 +
There is an article here: [[how to add pwm]]
 +
<br>
 
[[Category:A10s]]
 
[[Category:A10s]]

Latest revision as of 02:25, 2 January 2018

A10S-OLinuXino.jpg


A10S is not recommended for new designs - please read more on the subject here: link.

A10S-OLinuXino-MICRO features are:

  • A10S Cortex-A8 processor at 1GHz, 3D Mali400 GPU, NEON
  • 512MB DDR3 RAM
  • Optional 4GB NAND FLASH memory
  • USB High-speed host with power control and current limiter
  • USB-OTG with power control and current limiter
  • HDMI output with ESD protectors
  • 100MBit native Ethernet
  • Audio Line-input
  • Audio Headphones output
  • UEXT connector
  • LCD connector to work with 4.3, 7.0, 10.1" LCD modules from Olimex
  • 50 GPIOs on three GPIO connectors
  • MicroSD card connector
  • SD/MMC card connector
  • DEBUG-UART connector for console debug with USB-SERIAL-CABLE-F
  • STATUS LED
  • Power LED
  • 2KB EEPROM for MAC address and other storage
  • 5 BUTTONS with ANDROID functionality + BOOT/REC and POWER buttons
  • Microphone input on connector (not populated)
  • Composite TV-output on connector (not populated)
  • JTAG-DEBUG connector (not populated)
  • UART1 connector (not populated)
  • +5V input power supply, noise immune design
  • 4 mounting holes
  • PCB dimensions: (4000 x 3200) mils ~ (101.6 x 81.28) mm

Official Images from OLIMEX

Linux

The official Debian images are suitable only for microSD card. Information on booting Debian from the NAND might be found at the forum.

Download methods and locations might be found below!

Torrent of Debian release 4: A10s-OLinuXino-MICRO Debian release 4

Build instructions and required files

  • Linux Kernel 3.4.61+
  • XFCE4 desktop environment
  • Mplayer CLI
  • GCC 4.6
  • iceweasel WEB browser
  • LCD and touchscreen support
  • GPIO
  • I2C
  • SPI
  • USB WIFI RTL8188CU, Ethernet AX88772B
  • Audio
  • apache2
  • dpkg
  • git
  • i2c-tools
  • perl
  • vlc
  • xorg
  • Scratch
  • GCC
  • Python 2.7.3
  • PyA13 python module with GPIO,I2C,SPI support
  • OpenCV
  • Default Login: root/olimex


Note: the A10S-OLinuXino-SD card which we have on our webshop contain same image on 4GB Class10 fast micro sd-card, if you want to use this image please use Class10 fast card or the performance of Linux will slow down

Tested hardware with this image:

  • GPIOs located in /sys/class/gpio
  • LCD - supported are A13-LCD4.3TS, A13-LCD7TS, A13-LCD10TS
  • Touch screen - you need calibrate LCD before using touch screen. Type: ts_calibrate and then test it with ts_test
  • HDMI - the default HDMI resolution is 720p60(1280x720-60 Hz)
  • ASIX 8877 USB-LAN - USB-ETHERNET-AX88772B
  • WEB camera A4TECH
  • RTL8188CU - MOD-WIFI-RTL8188
  • USB_OTG - works as OTG device and Low/Full/High USB host
  • USB_HOST - works as Low/Full/High USB host
  • USB_HOST_down - works as Low/Full/High USB host
  • mico_SD_card - allow Linux boot
  • secondary SD-MMC card - with card present detector
  • ETHERNET - 100Mb
  • Headphone OUT - audio output
  • MIC IN - microphone input
  • I2C1(100KHz) - /dev/i2c-1
  • I2C2(100KHz) - /dev/i2c-2
  • UART2 - /dev/ttyS1. Note that UART2 is shifted and it responds of /dev/ttyS1 instead of /dev/ttyS2
  • UART3 - /dev/ttyS2. Note that UART3 is shifted and it responds of /dev/ttyS2 instead of /dev/ttyS3


Android

Torrents of official Android releases are below. Please read description of the image carefully.

Torrent of Android release 2 for NAND memory: A10s-OLinuXino-MAXI Android for NAND

Torrent of Android release 2 for microSD card: A10s-OLinuXino-MAXI Android for microSD card

Direct download locations of official Android releases are below. In case the daily limit of the download locations had been reached, please use the torrents above. Please read description of the image carefully.

Direct download of Android release 2 for NAND memory A10S-OLinuXino-MICRO NAND flash image for Android

Direct download of Android release 2 for microSD card memory A10S-OLinuXino-MICRO microSD card image for Android

You have to unrar the file and write the image on 4GB sd card. We recommend you to use a class 10 card. You can use dd (under linux) or Win32DiskImager.exe (under Windows) for the image writing.

  • Android_version - 4.0.3
  • Baseband version - 1.2
  • Kernel version 3.0.8+


Changing screen resolution in the Android SD card image:

The default screen resolution of A10s android SD card image is HDMI. If you want to change to LCD 10''(1024x600) or LCD7''(800x480) you have to replace the default script.bin file in the main SD card card partition. For this purpose put the SD card in a card reader on Linux machine (it might not work under Windows due to the Android file system format), mount the SD card, find script.bin file(usually it is located in the ../Volume partition) and replace it with the script.bin file from the corresponding directory. The scripts might be also downloaded from here: A10s Android SD scripts

The available directories are:

script_a10s_android_LCD_800x480_TS_GPIO - contains script for A13-LCD7-TS

script_a10s_android_LCD_1024x600_TS_GPIO - contains script for A13-LCD10TS

script_a10s_android_HDMI_GPIO - contains script for the default HDMI resolution

Note that you have to calibrate the touch screen with running Calibration application on Android Desktop. You would need a USB mouse to run the Calibration because the touch screen would still carry the old calibration settings.

The LCD output will be active only if the board boots without HDMI cable connected.

This method of changing the default display setting will NOT work with the NAND Android!

Documents


A10S-OLinuXino user manual

A10S-OLinuXino user manual

A10S Datasheet

A10S Datasheet

A10S Dongle brief

AXP152 datasheet

Hardware


Under construction

Software


Python


pyA10S is Python library for access to A10S-OLinuXino-MICRO GPIOs, I2C, SPI

Use:

   #!/usr/bin/env python
   
   import A10S_GPIO as GPIO
   
   #init module
   GPIO.init()
   
   #configure module
   GPIO.setcfg(GPIO.PIN#, GPIO.OUTPUT)
   GPIO.setcfg(GPIO.PIN#, GPIO.INPUT)
   
   #read the current GPIO configuration
   config = GPIO.getcfg(GPIO.PIN#)
   
   #set GPIO high
   GPIO.output(GPIO.PIN#, GPIO.HIGH)
   
   #set GPIO low
   GPIO.output(GPIO.PIN#, GPIO.LOW)
   
   #read input
   state = GPIO.input(GPIO.PIN#)
   
   #cleanup
   GPIO.cleanup()


GPIO under Linux

GPIOs are located in /sys/class/gpio directory. the full list of A10S GPIOs is:

   root@A20:~# ls /sys/class/gpio/
   export       gpio14_pc17  gpio19_pe5  gpio23_pe9   gpio4_pb11  gpio9_pb3
   gpio10_pb4   gpio15_pe1   gpio1_pb14  gpio24_pe10  gpio5_pb5   gpiochip1
   gpio11_pc3   gpio16_pe2   gpio20_pe6  gpio25_pe11  gpio6_pb6   unexport
   gpio12_pc7   gpio17_pe3   gpio21_pe7  gpio2_pb13   gpio7_pb7
   gpio13_pc16  gpio18_pe4   gpio22_pe8  gpio3_pb12   gpio8_pb8

Example how to toggle onboard LED. The LED is connected to PE3.

make PE3(LED) output

   root@A10s:/sys/class/gpio/gpio17_pe3# echo out > direction

turn on onboard LED(connected to PE3)

   root@A10s:/sys/class/gpio/gpio17_pe3# echo 1 > value

turn off onboard LED(connected to PE3)

   root@A10s:/sys/class/gpio/gpio17_pe3# echo 0 > value


Add Voice to your OLinuXino project

Installation of Festival on OLinuXino


A10S SDK for Android

A10S Android 4.2.2 SDK used to generate the Android image

A10S-SDK


HOW TO?

How to generate SD Debian Linux image with Kernel 3.4


How to Build SD card Debian Linux image with Linux Kernel 3.4

Sunxi u-boot loader The linux-sunxi git page contains a lot of sources for all Olimex Allwinner boards.

How do I write the Linux image to a micro SD card to use with my A10S board?


To write a Linux image to an SD card under Windows we use Win32 Disk Imager):

  • Download Win32 Disk Imager Win32 Disk Imager
  • Insert card
  • Start program
  • Select file
  • Click "write"

To write a Linux image to an SD card under Linux:

For instance you have an image with the file name of "debian_4g.img". It would be downloaded to the SD card connected to a Linux machine using one of the following commands:

  • # dd bs=4M oflag=sync if=debian_4g.img of=/dev/sdX

or

  • # cp debian_4g.img /dev/sdX


where X is the uSD card.

How to change HDMI and LCD resolutions in the latest Debian image?


The default SD card setup is made with settings for HDMI 720p/60Hz. If you want to change to some other LCD or HDMI resolution then you have to start change_display.sh script file in /root directory.

Type:

   # ./change_display.sh

and choose the resolution and the interface(LCD, HDMI or VGA). Note that the selection of a specific resolution is done by navigating with the arrow keys and pressing "space" button. Make sure the asterisk marks your selection properly.

The supported resolutions are:

For LCD:

  • 1. 4.3" (480x272)
  • 2. 7" (800x480)
  • 3. 10" (1024x600)

Important: initially the boards are calibrated for a specific display. If you re-write the image (no matter whether the SD card or the NAND memory) you would need to use a mouse to calibrate the display initially. It might be impossible to calibrate it via touching the display.

For HDMI:

  • 0. 480i
  • 1. 576i
  • 2. 480p
  • 3. 576p
  • 4. 720p50
  • 5. 720p60
  • 6. 1080i50
  • 7. 1080i60
  • 8. 1080p24
  • 9. 1080p50
  • 10. 1080p60


Note that you have to calibrate touch screen after changing LCD resolution in the script.bin type:

   root@A10s:~# ts_calibrate

and calibrate the LCD touch screen you can test the calibration using ts_test.

   root@A10s:~# ts_test

and finaly you hsve to reboot the board in order to use the touch screen in X environment.

How to flash new Android image to the NAND memory of my A10s board?


To repair the image on the NAND re-upload it following these steps:

1. Download, install and start LiveSuit (download location might be found above the article)

2. Hold down "BOOT/REC" button on the board

3. Connect the board to the computer via the mini connector of the USB-OTG

5. Release "BOOT/REC" button

6. You will be asked for drivers for the bootloader. Navigate to the folder where you extracted the LiveSuit and install the drivers from the respective executable (or manually point the installer to the drivers folder in the LiveSuit installation path).

7. Choose the image you have prepared or downloaded

8. Update and don't disconnect the board until the LiveSuit program confirms the update is complete

How to control PWM under Linux?


There is an article here: how to add pwm