Difference between revisions of "A13-OLinuXino-MICRO"

(Linux)
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Debian SD-CARD image ==
+
== Official Images from OLIMEX ==
  
[https://docs.google.com/file/d/0B-bAEPML8fwlTWFweEZGM0hmMkE/edit?usp=sharing Debian Image] Includes GPIO support, I2C 100kHz WIFI RTL8188CU Ethernet AX88772B no X amd no TouchScreen support for LCDs<br>
+
=== Linux ===
  
=== Changing A13-OLinuxino-MICRO settings to VGA (800x600) or LCD (800x480) ===
+
'''[https://drive.google.com/open?id=0BwplT87k9SCgUTgxVUp5XzRBbms Download location to A13-OLinuXino-MICRO Debian 4GB SD-card image release 3]'''
  
The default SD card setup is made with settings for VGA 800x600.
+
Torrent of Debian release 3: [[Media:A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.torrent|A13 Debian Linux release 3]]
If you want to switch between VGA 800x600 and LCD 800x480 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_GPIO_VGA_xxx directory (with the desired VGA resolution mode) or from script_GPIO_LCD_xxx directory (with the desired LCD resolution mode).
+
 
 +
'''[https://drive.google.com/file/d/0B-bAEPML8fwlYmdWLWJrYWJ1YW8/edit?usp=sharing Step-by-step instructions for building the latest release]'''
 +
 
 +
The image has the following features:
 +
 
 +
*Linux Kernel 3.4.79+
 +
*LXDE desktop environment
 +
*GCC 4.6
 +
*dpkg
 +
*git
 +
*i2c-tools
 +
*perl
 +
*xorg
 +
*Python 2.7
 +
*vlc
 +
*mplayer
 +
*smplayer
 +
*LCD support
 +
*GPIO
 +
*I2C
 +
*SPI
 +
*USB WIFI RTL8188CU, Ethernet AX88772B
 +
*Audio
 +
*PyA13 python module with GPIO,I2C,SPI support
 +
*Default Login: '''root/olimex'''
 +
 
 +
 
 +
The file A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z is an archive of A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img file.
 +
 
 +
So in order to write the image on SD card you have to unzip A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z file:
 +
 
 +
Install under Windows
 +
 
 +
Use 7zip and then use Win32DiskImager.exe [http://sourceforge.net/projects/win32diskimager/ http://sourceforge.net/projects/win32diskimager/] for image writing
 +
 
 +
Install under linux
 +
Use p7zip package. If you have no installed 7zip then type
 +
 
 +
<nowiki>#apt-get install p7zip</nowiki>
 +
 
 +
Copy A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z file in your directory and unzip it with
 +
 
 +
<nowiki>#7za e A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z</nowiki>
 +
 
 +
The output should be a new 4GB file named A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img
 +
Put 4GB SD card in your card reader and type
 +
 
 +
<nowiki># ls /dev/sd</nowiki>
 +
 
 +
Then press two times <TAB> you will see a list of your sd devices like sda sdb sdc note that some of these devices may be your hard disk so make sure you know which one is your sd card before you proceed as you can damage your HDD if you choose the wrong sd-device. You can do this by unplugging your sd card reader and identify which "sd" devices remove from the list.
 +
Once you know which device is your sdcard like sda use this text instead of the sdX name in the references below:
 +
 
 +
<nowiki>#dd if=A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img of=/dev/sdX</nowiki>
 +
 
 +
The list of all installed packages is [https://drive.google.com/file/d/0B-bAEPML8fwlb1ZWODhGUl9uVlE/edit?usp=sharing here]
 +
 
 +
'''Note:''' the A13-OLinuXino-MICRO-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
 +
 
 +
=== Android ===
 +
 
 +
A13-OLinuXino-MICRO has only 256MB of RAM, Android 4.x requires at least 512MB to run well. Running obsolete Android would be possible but without video acceleration )since only MALI requires around 200MB). Forget for Android on this board.
 +
 
 +
=== Changing A13-OLinuxino-MICRO screen resolution ===
 +
 
 +
The default Debian SD card setup is made with settings for VGA 800x600.
 +
If you want to switch resolutions between VGA (800x600) 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_GPIO_VGA_xxx directory (with the desired VGA resolution mode) or from script_GPIO_LCD_xxx directory (with the desired LCD resolution mode).
  
 
The archive of scripts might be download from here: [https://www.olimex.com/Products/OLinuXino/A13/_resources/VGA_LCD_scripts_A13_micro.zip all available screen resolution scripts for A13-MICRO]
 
The archive of scripts might be download from here: [https://www.olimex.com/Products/OLinuXino/A13/_resources/VGA_LCD_scripts_A13_micro.zip all available screen resolution scripts for A13-MICRO]
Line 12: Line 77:
 
Note that these A13-MICRO scripts are not compatible with the A13 boards. Please check the A13 wiki article for such scripts.
 
Note that these A13-MICRO scripts are not compatible with the A13 boards. Please check the A13 wiki article for such scripts.
  
== Kernel 3.4.x compile ==
 
  
[https://www.olimex.com/forum/index.php?topic=790.0 forum tread]
+
===How to edit board configurations and definitions in the official Debian Linux? ===
[[Category:A13]]
+
 
 +
The biggest part of the board configuration might be edited, changed or improved in a file called script.bin
 +
 
 +
The script.bin file can usually be found in the main directory of a microSD card prepared with official Debian image. The folder containing the script can be inspected under both Windows, Linux or Mac.
 +
 
 +
You can't directly edit binary file so you would need to convert it to text format (it is called fex in this case), then edit the parameters via a text editor and finally switch it back to binary format.
 +
 
 +
The different options for the script are explained here: [http://linux-sunxi.org/Fex_Guide SUNXI FEX GUIDE]
 +
 
 +
IMPORTANT! ADJUSTING SCRIPT.BIN WITH IMPROPER VALUES MIGHT BREAK YOUR DEBIAN IMAGE AND IT IS ALWAYS RECOMMENDED TO KEEP A BACK-UP OF YOUR DEFAULT SCRIPT.BIN
 +
 
 +
To convert back and fort the script.bin you might use different tools. You can find Windows tools here: [https://github.com/OLIMEX/OLINUXINO/tree/master/SOFTWARE/fex-bin-convertor-windows SUNXI TOOLS FOR WINDOWS] . For Linux convertors please check the sunxi tools here: [https://github.com/linux-sunxi/sunxi-tools SUNXI TOOLS]
 +
 
 +
Note that it is possible to change the script.bin in a running Debian image in newest releases! More information might be found at the end of the document! Not all releases feature the live method of changing fex to bin so if you board doesn't have it follow the other methods.
 +
 
 +
Changing script.bin file without removing the microSD card:
 +
 
 +
The tools for script.bin changing are located in /opt/sunxi-tools directory
 +
<nowiki># cd /opt/sunxi-tools</nowiki>
 +
<nowiki># ./chscr.sh</nowiki>
 +
This will convert script.bin file from sdcard to script.fex file and the file  will be opened using nano editor.
 +
Now you can change the board modules and parameters, save the changes and exit from nano editor
 +
<nowiki># ./wrscr.sh</nowiki>
 +
this will convert script.fex to script.bin and the script.bin file will be written to sdcard.
 +
 
 +
===Linux Commands===
 +
 
 +
 
 +
[[Linux-Commands]] Brief Linux Command reference
 +
 
 +
 
 +
[[Main_Page]]

Revision as of 04:52, 13 September 2017

Official Images from OLIMEX

Linux

Download location to A13-OLinuXino-MICRO Debian 4GB SD-card image release 3

Torrent of Debian release 3: A13 Debian Linux release 3

Step-by-step instructions for building the latest release

The image has the following features:

  • Linux Kernel 3.4.79+
  • LXDE desktop environment
  • GCC 4.6
  • dpkg
  • git
  • i2c-tools
  • perl
  • xorg
  • Python 2.7
  • vlc
  • mplayer
  • smplayer
  • LCD support
  • GPIO
  • I2C
  • SPI
  • USB WIFI RTL8188CU, Ethernet AX88772B
  • Audio
  • PyA13 python module with GPIO,I2C,SPI support
  • Default Login: root/olimex


The file A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z is an archive of A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img file.

So in order to write the image on SD card you have to unzip A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z file:

Install under Windows

Use 7zip and then use Win32DiskImager.exe http://sourceforge.net/projects/win32diskimager/ for image writing

Install under linux Use p7zip package. If you have no installed 7zip then type

#apt-get install p7zip

Copy A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z file in your directory and unzip it with

#7za e A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.7z

The output should be a new 4GB file named A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img Put 4GB SD card in your card reader and type

# ls /dev/sd

Then press two times <TAB> you will see a list of your sd devices like sda sdb sdc note that some of these devices may be your hard disk so make sure you know which one is your sd card before you proceed as you can damage your HDD if you choose the wrong sd-device. You can do this by unplugging your sd card reader and identify which "sd" devices remove from the list. Once you know which device is your sdcard like sda use this text instead of the sdX name in the references below:

#dd if=A13_Micro_Debian_kernel_34_79_100kHz_I2C_WIFI_USB_LAN_X_touch_third_release.img of=/dev/sdX

The list of all installed packages is here

Note: the A13-OLinuXino-MICRO-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

Android

A13-OLinuXino-MICRO has only 256MB of RAM, Android 4.x requires at least 512MB to run well. Running obsolete Android would be possible but without video acceleration )since only MALI requires around 200MB). Forget for Android on this board.

Changing A13-OLinuxino-MICRO screen resolution

The default Debian SD card setup is made with settings for VGA 800x600. If you want to switch resolutions between VGA (800x600) and LCD (4.3'' or 7'' or 10.1'', 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_GPIO_VGA_xxx directory (with the desired VGA resolution mode) or from script_GPIO_LCD_xxx directory (with the desired LCD resolution mode).

The archive of scripts might be download from here: all available screen resolution scripts for A13-MICRO

Note that these A13-MICRO scripts are not compatible with the A13 boards. Please check the A13 wiki article for such scripts.


How to edit board configurations and definitions in the official Debian Linux?

The biggest part of the board configuration might be edited, changed or improved in a file called script.bin

The script.bin file can usually be found in the main directory of a microSD card prepared with official Debian image. The folder containing the script can be inspected under both Windows, Linux or Mac.

You can't directly edit binary file so you would need to convert it to text format (it is called fex in this case), then edit the parameters via a text editor and finally switch it back to binary format.

The different options for the script are explained here: SUNXI FEX GUIDE

IMPORTANT! ADJUSTING SCRIPT.BIN WITH IMPROPER VALUES MIGHT BREAK YOUR DEBIAN IMAGE AND IT IS ALWAYS RECOMMENDED TO KEEP A BACK-UP OF YOUR DEFAULT SCRIPT.BIN

To convert back and fort the script.bin you might use different tools. You can find Windows tools here: SUNXI TOOLS FOR WINDOWS . For Linux convertors please check the sunxi tools here: SUNXI TOOLS

Note that it is possible to change the script.bin in a running Debian image in newest releases! More information might be found at the end of the document! Not all releases feature the live method of changing fex to bin so if you board doesn't have it follow the other methods.

Changing script.bin file without removing the microSD card:

The tools for script.bin changing are located in /opt/sunxi-tools directory # cd /opt/sunxi-tools # ./chscr.sh This will convert script.bin file from sdcard to script.fex file and the file will be opened using nano editor. Now you can change the board modules and parameters, save the changes and exit from nano editor # ./wrscr.sh this will convert script.fex to script.bin and the script.bin file will be written to sdcard.

Linux Commands

Linux-Commands Brief Linux Command reference


Main_Page