VIA Technologies ARTiGO-A600 Evaluation Manual

VIA Technologies ARTiGO-A600 Evaluation Manual

Linux bsp v1.2
Hide thumbs Also See for ARTiGO-A600:
Table of Contents

Advertisement

Quick Links

EVALUATION GUIDE
ARTiGO-A600
Linux BSP v1.2
1.00-09232015-094100

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ARTiGO-A600 and is the answer not in the manual?

Questions and answers

Summary of Contents for VIA Technologies ARTiGO-A600

  • Page 1 EVALUATION GUIDE ARTiGO-A600 Linux BSP v1.2 1.00-09232015-094100...
  • Page 2 VIA Technologies, Inc. reserves the right the make changes to the products described in this manual at any time without prior...
  • Page 3 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Revision History Version Version Date Date Remarks Remarks Version Version Date Date Remarks Remarks 1.00 09/22/2015...
  • Page 4: Table Of Contents

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Table of Contents 1. 1. 1. 1. Introduction Introduction ........ Introduction Introduction ....................
  • Page 5 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.6.2.1. devmem2 utility read and write..........21 4.6.3. Test GPIO input and output ............... 23 4.6.3.1.
  • Page 6 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide GPIO Output Data Registers ..................42 GPIO Pull-up/Pull-down Enable Registers ............43 GPIO Pull-up/Pull-down Control Registers............43 GPIO Interrupt Request Status Registers ...............
  • Page 7: Overview

    1. 1. 1. 1. Introduction Introduction Introduction Introduction 1.1. Overview This document describes how to run Debian 7.0 OS on VIA ARTiGO-A600 platform and how to evaluate the graphics and multimedia functions. 1.2. Package content The evaluation package includes: 1. Kernel image: “/EVK/Kernel_Image/uzImage.bin”...
  • Page 8: Setup Environment Setup Environment

    Host PC: SD Card reader: SDHC compliant Operation System: Ubuntu 10.04 x64 version Target board: Target board: Target board: Target board: ARTiGO-A600 platform (with 4G eMMC) SD Card: 4GB SDHC (at least). ARTiGO-A600 now supports up to class 6 SDHC.
  • Page 9: Making System Booting Media

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 3. 3. 3. 3. Making System Booting Making System Booting Making System Booting Making System Booting Media Media...
  • Page 10: Boot From Sd Card

    5. Insert the SD card to ARTiGO-A600 and boot. 6. After the installation is finished, please remove the SD card. The system will shut down in 3 seconds. 7. Power on the ARTiGO-A600, and it will boot from on-board eMMC. Username: Username:...
  • Page 11 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide rootfstype=ext3 noinitrd mbtotal=${mbsize} ${bootargs-common} ${bootargs-extra}" setenv wmt.plla.param 1:792:1:2:1:1:1 setenv wmt.plla2.param 1:792:1:2:1:1:1 saveenv reset Default display setting “setenv wmt.display.param 4:6:1:1920:1080:60”...
  • Page 12: Format The Sd Card

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 3.1.3.2. 3.1.3.2. Format the Format the SD card SD card 3.1.3.2. 3.1.3.2. Format the Format the SD card SD card...
  • Page 13: Download The Fully Debian7 File System

    Download the fully Debian7 file system Download the fully Debian7 file system Connect the ARTiGO-A600 and host PC through COM port. On the host PC, you will see the kernel message and login prompt through serial console. The default username and password are debian/temppwd...
  • Page 14 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Please confirm that the DNS information in /etc/resolv.conf is correct. For example the DNS for VIA in /etc/resolv.conf is domain via.com.tw domain via.com.tw domain via.com.tw...
  • Page 15 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Type the following command to update the debian-archive-keyring package, the warning will go away. # # # # apt apt- - - - get install debian get install debian...
  • Page 16: Install The Graphics And Multimedia Package

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 3.2. Install the graphics and multimedia package 3.2.1. Prerequisites Enable the network Get the correct ethX by using the command, (X is variable, depending on your environment.) # # # # ifconfig ifconfig - - - - a a a a...
  • Page 17: Install The Multimedia Package

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 42.820] (II) LoadModule: "mali" 42.833] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so 42.913] (II) Module mali: vendor="X.Org Foundation" 42.913] (II) MALI: driver for Mali Framebuffer: mali Success Success...
  • Page 18 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide # dpkg- - - - reconfigure locales # dpkg reconfigure locales # dpkg # dpkg reconfigure locales reconfigure locales...
  • Page 19: Functionality

    Functionality Functionality Functionality 4.1. Light HDMI monitor U U U U - - - - Boot: Boot: Boot: Boot: Connect the ARTiGO-A600 and host PC through COM port. Update uboot uboot uboot uboot parameters parameters as below parameters parameters setenv wmt.display.param setenv wmt.display.param 4 4 4 4 : : : : 6 6 6 6 :1: :1: :1: :1:1920...
  • Page 20 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide So does the display resolution for LVDS. Section "Screen" Identifier "Mali Screen" Device "Mali FBDEV"...
  • Page 21: Switch Hdmi Mode By Xrandr Tool

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.2. Switch HDMI mode by xrandr tool In order to switch Mode, we use xrandr command to switch the resolution and refresh rate of the monitor.
  • Page 22: Change The Color Depth/Bpp

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide √ 1680x1050 16bit √ 1920x1080 16bit 4.3. Change the Color Depth/bpp. Please open /etc/X11/xorg.conf and change DefaultDepth to 16 or 24 to change the Color Depth.
  • Page 23 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide “←”or“→” “→”to choose the item to be modified, press“ “ “ “ M M M M ” ” ” ” to turn on “←”...
  • Page 24 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide After it outputs the test music for several seconds, use CTRL+C to stop the examination.
  • Page 25: Gpio Control

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.6. GPIO control This section describes how to operate the GPIO function. Please use devmem2 utility to access the GPIO, which was pre-installed in the file system image.
  • Page 26: Devmem2 Utility

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide You can connect your own device to the pins and operate it via the relative GPIO settings.
  • Page 27: Devmem2 Utility Read And Write

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide devmem2 [address] [type] [data] address : physical address of the register type : data type to be read/written, [b]yte, [h]alfword or [w]ord data : data to be written to the register 4.6.2.1.
  • Page 28 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide # devmem2 0xd81100b0 b 0xff # devmem2 0xd81100b0 b 0xff # devmem2 0xd81100b0 b 0xff # devmem2 0xd81100b0 b 0xff For detailed descriptions about GPIO register values, please refer to Appendix...
  • Page 29: Test Gpio Input And Output

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.6.3. Test GPIO input and output 4.6.3.1. 4.6.3.1. 4.6.3.1. 4.6.3.1. Test GPIO connection Test GPIO connection Test GPIO connection Test GPIO connection...
  • Page 30 Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Obviously, the value should be 0x0. b. To begin the experiment, set the value of GPIO 20-23 output enable registers to be high state.
  • Page 31: Set Gpio 24-27 To Change Gpio 20-23

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.6.3.3. 4.6.3.3. Set GPIO 24 Set GPIO 24- - - - 27 to change GPIO 20 27 to change GPIO 20- - - - 23 4.6.3.3.
  • Page 32: External Rtc Control

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Now GPIO 24-27 should output the high state, which changes the low state of GPIO 20-23 to be high state.
  • Page 33: Display External Rtc Timekeeper Registers

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.7.2. Display external RTC timekeeper registers # # # # i2cdump i2cdump i2cdump i2cdump - - - - f f f f - - - - y y y y - - - - r 0 r 0- - - - 15 0 0x68 b 15 0 0x68 b...
  • Page 34: Test Auto Power-On Control Of External Rtc

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.7.4. Test auto power-on control of external RTC Configure alarm2 registers to enable the auto power-on control. For example: set alarm each hour.
  • Page 35: Disable Alarm2 And Clear Alarm2 Status Of External Rtc

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.7.5. Disable alarm2 and clear alarm2 status of external RTC Please remember to disable alarm2 and clear alarm2 status after every booting of the system.
  • Page 36: Watch Dog Control

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.8. Watch dog control This section describes how to operate the watch dog function. Please use watch dog utility (wdt_app) to access the watch dog, which was pre-installed in the file system image.
  • Page 37: Set The Watch Dog Timer

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Set the watch dog timer 4.8.2. Fill the value of watch dog timer, which decides when the watch dog can perform its function to restart the system.
  • Page 38: Get The Watch Dog Timer

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Get the watch dog timer 4.8.3. Once you set the watch dog timer, you may observe the value of the watch dog timer by this order.
  • Page 39: Disable The Watch Dog

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Disable the watch dog 4.8.4. To stop the function of watch dog, you can disable the watch dog through this command.
  • Page 40: Set Up Vab-600-E Rs485

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.9. Set up VAB-600-E RS485 4.9.1. Check whether VAB-600-E RS485 is running on VAB-600 •...
  • Page 41: How To Test Vab-600-E Rs485 Function

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.9.2. How to test VAB-600-E RS485 function • Install Install serial communication Install Install serial communication serial communication...
  • Page 42: How To Program Vab-600-E Rs485 Registries

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 4.9.3. How to program VAB-600-E RS485 registries If you need to program your own serial communication, please refer to the following code to enable RS485 function: #include <sys/ioctl.h>...
  • Page 43: Debug Message

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide 5. 5. 5. 5. Debug Message Debug Message Debug Message Debug Message VAB-600 Linux BSP supports debugging with RS232 port. The RS232 client software (such as putty) should configure the parameters as follows: COM speed:...
  • Page 44: Default U-Boot Parameters

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Change display U-boot logo resolution WMT # setenv wmt.display.param WMT # setenv wmt.display.param 4 4 4 4 :6:1:1280:1024:60 :6:1:1280:1024:60 WMT # setenv wmt.display.param WMT # setenv wmt.display.param...
  • Page 45: Appendix A. Q&A Appendix A. Appendix A. Q&A

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Appendix A. Appendix A. Q&A Q&A Appendix A. Appendix A. Q&A Q&A Q: When trying to setup static IP address in “Network Connections”, the IP setup does not take effect.
  • Page 46: Appendix B. Appendix B. Limitation Limitation

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Appendix B. Appendix B. Limitation Limitation Appendix B. Appendix B. Limitation Limitation 1) On some special monitors, some modes may cause screen garbage and other display issue.
  • Page 47: Appendix C. Appendix C. Gpio Appendix C. Gpio Registers Gpio Registers

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide Appendix C. Appendix C. Appendix C. Appendix C. GPIO registers GPIO registers GPIO registers GPIO registers GPIO Input Data Registers Address 0xd8110030 –...
  • Page 48: Gpio Output Enable Registers

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide GPIO Output Enable Registers Address 0xd81100B0 GPIO[23:20] Output Enable Register Attribute Default Description GPIO[23:20] Output Enable Register Address 0xd81100B1 GPIO[27:24] Output Enable Register...
  • Page 49: Gpio Pull-Up/Pull-Down Enable Registers

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide GPIO Pull-up/Pull-down Enable Registers Address 0xd81104B0 GPIO[23:20] Pull-up/Pull-down Enable Register Attribute Default Description GPIO[23:20] Pull-up/Pull-down Enable Register Address 0xd81104B1...
  • Page 50: Gpio Interrupt Request Status Registers

    Linux Linux BSP BSP v1. v1.2 2 2 2 ..0 0 0 0 Evaluation Evaluation Guide Guide Linux Linux Evaluation Evaluation Guide Guide GPIO Interrupt Request Status Registers Address 0xd8110362 GPIO Interrupt Request Status Register (GPIO[23:20]) Attribute Default Description...

Table of Contents