LeMaker Guitar User Manual

LeMaker Guitar User Manual

The first edition

Advertisement

Quick Links

LeMaker Guitar User Manual
( The first edition )

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Guitar and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for LeMaker Guitar

  • Page 1 LeMaker Guitar User Manual ( The first edition )
  • Page 2 Revision History Revision Data Author Description 2015-11-12 LeMaker LeMaker Guitar User Manual - 1 - Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 3: Table Of Contents

    Table of Contents 1 Introduction ............................4 1.1 What is LeMaker Guitar? ......................4 1.2 What is Linux ........................... 4 1.3 What accessories you need? ..................... 6 1.4 How to connect the accessories ....................8 1.5 See also ............................ 8 2 Install OS image ..........................
  • Page 4 9.2 Use dd command to back up ....................63 9.3 See also ..........................64 10 Android ............................65 10.1 Basic desktop ........................65 10.2 Basic Setting ........................66 LeMaker Guitar User Manual - 3 - Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 5: Introduction

    1.2 What is Linux Linux is the operating system (OS) used for your LeMaker Guitar. Its role is exactly the same as Windows, Mac OS X, Android (in fact, Android is based on a Linux kernel), iOS or any other OS you care to mention.
  • Page 6 Lemuntu Lemuntu is a free operating system based on Debian Jessie optimized for LeMaker SBC and an official Linux distribution of LeMaker community. In order to take full advantage of SBC hardware resources and improve the user experience of SBC, it is necessary to optimize the operating system.
  • Page 7: What Accessories You Need

    Arch software; the installation images released by the Arch team are simply up-to-date snapshots of the main system components. Note that in this user manual, all the operations and tutorials are based on LeMaker Guitar Base Board Rev.B and Lemuntu.
  • Page 8 To update or download software, we recommend that you connect to the internet either via an Ethernet cable or a WI-FI adapter. To boot OS from EMMC NAND Flash, we connect to LeMaker Guitar via USB3.0/2.0 cable USB3.0/2.0 cable (A/M-Micro-B) to write the firmware into EMMC NAND Flash.
  • Page 9: How To Connect The Accessories

    1.4 How to connect the accessories Figure 1.2: The accessories connected to LeMaker Guitar (Notice: Please pay attention that do not hot pull out or insert the core board when it is powered on, otherwise the SOC maybe be burnt down!)...
  • Page 10 [5] Kodi - a free and open source media player: http://kodi.tv/. [6] Debian - https://www.debian.org/ LeMaker Guitar User Manual - 9 - Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 11: Install Os Image

    MicroSD card from MicroSD card slot. There are two OS image file formats for LeMaker Guitar: .img file for writing to a MicroSD card, .fw file for writing to EMMC NAND Flash. You can download the OS image files from...
  • Page 12: Write Os Image Into Microsd Card On Windows

    QUICK, set "FORMAT SIZE ADJUSTMENT" option to "ON". And then click “OK” to finish options setting and click “Format” to format SD card. SDFormatter Download Link: http://mirror.lemaker.org/SDFormatter_v4.zip Figure 2.1: SDFormatter LeMaker Guitar User Manual - 11 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 13: Write Os Image Into Microsd Card On Linux

    Step 2: In the commad terminal, check the MicroSD card node –l sudo fdisk Step 3: Install the ddrescue tool for writing OS image into the MicroSD card LeMaker Guitar User Manual - 12 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 14: Write Os Firmware Into Emmc On Windows

    Step 1: Download and install the firmware burning tool: IH FW Burning Tool, and the start the tool as Administrator. Download Link: http://mirror.lemaker.org/IH_FW_Burning_Tool_For_Windowns_V2.01.03.zip Figure 2.4: IH FW Burning Tool LeMaker Guitar User Manual - 13 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 15 Step 2: Press and hold “ADFU” button, Connect to LeMaker Guitar via USB3.0/USB2.0 cable. Release “ADFU” button when LeMaker Guitar is powered on and enters the ADFU mode. You will find IH FW Burning Tool detects 1 USB Device (ADFU).
  • Page 16: Write Os Firmware Into Emmc On Linux

    Step 3: Press and hold “ADFU” button, Connect to LeMaker Guitar via USB3.0/USB2.0 cable. Release “ADFU” button when LeMaker Guitar is powered on and enters the ADFU mode. You can use the command “lsusb” to list the USB devices.
  • Page 17: Os Image Partitions Description

    [3] SDFormatter: http://www.sdcard.org/downloads/formatter_4/ [4] Win32 Disk Imager - a tool for writing images to USB sticks or SD/CF cards: http://sourceforge.net/projects/win32diskimager/ [5] How to make OS image: http://wiki.lemaker.org/LeMaker_Guitar:How_to_make_LeMaker_Guitar_OS_image LeMaker Guitar User Manual - 16 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 18: Basic Usage

    HDMI is a digital replacement for analog video standards. There has a HDMI interface on LeMaker Guitar, you can connect the display to LeMaker Guitar via the HDMI cable. But if the display use DVI or VGA as input interface, we need a HDMI-to-DVI cable or HDMI-to-VGA cable in the photo below: Pictrue 3.1: HDMI-to-DVI cable...
  • Page 19 Step 2: Edit the dts file: linux-actions-bsp/u-boot-actions/arch/arm/dts/lemaker_guitar.dts. Set default_resolution = “720P50HZ”. Step 3: Recompile LeMaker Guitar BSP You can refer to http://wiki.lemaker.org/LeMaker_Guitar:How_to_use_LeMaker_Guitar_BSP download LeMaker Guitar BSP that includes the above two files. linux-actions-bsp / make Step 4: Replace kernel.dtb and u-boot-dtb.img Copy linux-actions-bsp/build/s500/misc/kernel.dtb and linux-actions-bsp/build/s500/u-boot/u-boot-dtb.img to /tmp directory of LeMaker Guitar.
  • Page 20: Lvds

    LeMaker Guitar supports 7.0 inch LCD module by default. If you want to use other size LCD module, you should configure the resolution of LCD like configuring HDMI, for example 1024*600_60.
  • Page 21 = < 18 > ; hsync_len = < 4 > ; vsync_len = < 4 > ; /* 0: FB_VMODE_NONINTERLACED, 1:FB_VMODE_INTERLACED */ vmode = < 0 > ; LeMaker Guitar User Manual - 20 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 22 = < 5 > ; lcd_mode0:mode @ 1024x600p60 refresh = < 60 > ; xres = < 1024 > ; yres = < 600 > ; LeMaker Guitar User Manual - 21 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 23 /* 0: FB_VMODE_NONINTERLACED, 1:FB_VMODE_INTERLACED */ vmode = < 0 > ; Step 3: Recompile LeMaker Guitar BSP You can refer to http://wiki.lemaker.org/LeMaker_Guitar:How_to_use_LeMaker_Guitar_BSP download LeMaker Guitar BSP that includes the above two files. linux-actions-bsp / make Step 4: Replace kernel.dtb and u-boot-dtb.img Copy linux-actions-bsp/build/s500/misc/kernel.dtb and linux-actions-bsp/build/s500/u-boot/u-boot-dtb.img to /tmp directory of LeMaker Guitar.
  • Page 24: Audio

    # HDMI output 3.3 WI-FI LeMaker Guitar use Realtek RTL8723BS as WI-FI module on board, which integrates WI-FI+BT function blocks。RTL8723BS is a small size and low profile of WI-FI+BT combo module with LGA (Land-Grid Array) footprint, board size is 14mm*14mm with module height of 2mm. It can be easily manufactured on SMT process and highly suitable for tablet PC, ultra book, mobile device and consumer products.
  • Page 25 /etc/modules wlan_8723bs Step 2: Configure WI-FI Configure WI-FI on Lumuntu For Lemuntu, you can connect to the WI-FI AP by using the wap_gui as follow: LeMaker Guitar User Manual - 24 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 26 Figure 3.4: Open wap_gui Figure 3.5: Scan WI-FI AP LeMaker Guitar User Manual - 25 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 27 The configure Parameters will be saved in /etc/wpa_supplicant/wpa_supplicant.conf. / etc / wpa_supplicant / wpa_supplicant.conf ctrl_interface=DIR= / var / run / wpa_supplicant GROUP=netdev update_config=1 network= ssid="LeMaker" #WI-FI Name psk="****** " #WI-FI password proto=RSN LeMaker Guitar User Manual - 26 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 28 If you use the Linux-like system without desktop, we recommend you to use wpa_supplicant tool to connect WI-FI AP. Step 1: Install wpa_supplicant wpasupplicant sudo apt-get install Step 2: Edit the wpa_supplicant.conf LeMaker Guitar User Manual - 27 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 29: Use Wi-Fi As The Ap Mode

    3.3.2 Use WI-FI as the ap mode If you want to let LeMaker Guitar become a WI-FI AP, you can refer to the below instructions to configure the WI-FI mode. Step 1: Check and load WI-FI driver...
  • Page 30 Step 3: Create and edit the hostapd.conf / etc / hostapd sudo mkdir / etc / hostapd / hostapd.conf sudo nano interface=wlanx driver=nl80211 ssid=LeMaker_1020 channel=6 hw_mode=g macaddr_acl=0 auth_algs=1 ignore_broadcast_ssid=0 LeMaker Guitar User Manual - 29 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 31 # The interface that udhcpd will use interface wlanx #default: eth0 #Examles option subnet 255.255.255.0 router 192.168.100.1 wins 192.168.100.1 option dns 192.168.100.1 # appened to above DNS servers for a total of 3 LeMaker Guitar User Manual - 30 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 32: Bluetooth

    ..., you can type the command ifconfig to view which the wlanx should be.) Now you can connect to LeMaker Guitar WI-FI AP, but you can’t connect to the Ethernet, you should create a net bridge between ethx and wlanx。...
  • Page 33 You can type the command below to scan other Bluetooth devices. Maybe you will find some Bluetooth devices, but you also can use the other bluetooth device to find LeMaker Guitar via LeMaker Guitar User Manual - 32...
  • Page 34 Bluetooth. hcitool scan Scanning ... 88:C9:D0:0A:B6:8B ****** 28:E3:47:94:09:4A ****** Step 6: Install Bluetooth GUI and connect Bluetooth devices blueman gnome-bluetooth apt-get install Figure 3.8: Open Bluetooth Manager LeMaker Guitar User Manual - 33 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 35: Camera

    Figure 3.9: Search Bluetooth devices 3.5 Camera LeMaker Guitar's camera interface is compatible with Banana Pi/Pro, so we can use the Banana Pi Camera module on LeMaker Guitar. The Banana Pi Camera module is a high definition camera using Omnivision 5640 CMOS image sensor. The camera module connects to the CSI connector on LeMaker Guitar base board via FPC cable.
  • Page 36 You also can use a UVC camera to show the camera video by the above steps. But not all UVC cameras can work properly. USB 2.0 on LeMaker Guitar supports the UVC camera that there have 3 transactions per microframe or the last transaction is short in the microframe. But USB 2.0 do not supports the UVC camera there has one transaction or 2 transactions per microframe.
  • Page 37: Storage

    Guitar to PC. Or when you want to debug the Android APP on Guitar, you also need connect the Guitar to the PC. At that time, the LeMaker Guitar is act as a device of PC, so the USB 3.0 will work as device mode.
  • Page 38 You can refer to the diagram below to select the right OTG cable. Table 3.1: USB3.0 pins definition LeMaker Guitar User Manual - 37 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 39: Micro Sd Card And Emmc Nand Flash

    Type the command below to list the partitions of storage device –l sudo fdisk lsblk 3.7 ADC There are two ADC channels on LeMaker Guitar base board Rev.B: ADC0 and ADC_COM. LeMaker Guitar User Manual - 38 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 40: See Also

    [4] MPlayer - a movie player which runs on many systems: http://www.mplayerhq.hu/design7/info.html [5] guvcview - a simple v4l2 full-featured video grabber: http://sourceforge.net/projects/guvcview/ [6] The OV5640: http://www.ovt.com/products/sensor.php?id=177 LeMaker Guitar User Manual - 39 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 41: Resize Root Filesystem Partition

    4 Resize root filesystem partition The Linux OS image file (an .img or .fw file) provided by LeMaker has a size about 3.0GB, after you use the image burning tool to write it into a MicroSD card or EMMC NAND Flash on board, you'll find that the partition which contains the root directory "/"...
  • Page 42 Information: You may need to update / etc / fstab. And then: reboot sudo resize2fs / dev / mmcblk0p2 sudo (Notice: parted 2.3 is not support dynamic partitioning.) LeMaker Guitar User Manual - 41 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 43: Cpu

    5 CPU 5.1 Scale CPU frequency According to your different demands, it is very important for LeMaker Guitar to be able to operate both performant as well as energy efficient. CPU frequency scaling plays an important role. The lower the clock speed, the slower the device and the less energy it consumes (and vice versa). Even the voltage available to the ARM core(s) will be adjusted depending on the clock speed, there existed a mapping called dvfs_table between clock speeds and voltage.
  • Page 44 # Make sure that the script will "exit 0" on success or any other # value on error. # In order to enable or disable this script just change the execution # bits. # By default this script does nothing. LeMaker Guitar User Manual - 43 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 45: Read The Cpu&Pmu Temperature

    Step 2: Detect hardware monitoring chips sensors-detect sudo Step 3: Read the CPU temperature sensors sudo battery-virtual-0 Adapter: Virtual device temp1: +0.0°C LeMaker Guitar User Manual - 44 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 46: See Also

    / sys / devices / b0170000.i2c / i2c-0 / 0-0065 / atc2603c-hwmon.0 / ic_temperature 5.3 See also [1] PU frequency and voltage scaling code in the Linux(TM) kernel: https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt [2] PowerVR: https://en.wikipedia.org/wiki/PowerVR#Series_5_.28SGX.29 [3] lm-sensors: http://www.lm-sensors.org/ LeMaker Guitar User Manual - 45 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 47: Remote Login

    6.1.1 Remote login on Windows Step 1: Install Putty or SecureCRT on windows Step 2: List the IP address on your LeMaker Guitar via the serial terminal, for example 10.3.217.133. Make sure that your desktop PC and LeMaker Guitar on the same LAN.
  • Page 48 Figure 6.1: Configure Putty Step 4: Click “Open” button to remotely login your LeMaker Guitar. LeMaker Guitar User Manual - 47 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 49: Remote Login On Linux

    Step 2: Login your LeMaker Guitar by SSH [username] [ipaddress] suod ssh username is user name(lemaker), ipaddress is IP address on your LeMaker Guitar. 6.2 Use vnc to login VNC stands for Virtual Network Computing. It is remote control software which allows you to view and interact with one computer (the "server") using a simple program (the "viewer") on another...
  • Page 50 Step 3: Type the command below to get LeMaker Guitar’ ip address ifconfig Step 4: Use vncview to remote control your LeMaker Guitar on your desktop PC. Figure6.3: Configure VNC Viewer 10.3.217.189 is the IP address of your SBC. 5901 is the default port of tightvncserver.
  • Page 51: Use Rdp To Login

    Step 2: Open the run command window on windows, and then type "mstsc". Figure 6-5: Run command window Step 3: Type the IP address of the Lemuntu system, then click the "connect" LeMaker Guitar User Manual - 50 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 52 Figure 6-6: Remote desktop connection Step 4: Type your acount for the Lemuntu Figure 6-7: Login to xrdp Step 5: Click "OK", and you will view the remote connection successfully. LeMaker Guitar User Manual - 51 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 53: See Also

    [2] SSH - a cryptographic network protocol to allow remote login: https://en.wikipedia.org/wiki/Secure_Shell [3] SecureCRT - The rock-solid Telnet and SSH client for Windows: https://www.vandyke.com/products/securecrt/ [4] Http File Server: http://www.rejetto.com/hfs/ [5] tightvnc: http://www.tightvnc.com/ LeMaker Guitar User Manual - 52 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 54: Video

    Step 2: Install the software installation package GPU_For_LeMaker_Guitar_201511 -R root:root ./* sudo chown . / install.sh sudo Step 3: Replace X, Xorg / usr / bin LeMaker Guitar User Manual - 53 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 55: Use Glmark2 Tool To Test Gpu

    7.1.2 Use glmark2 tool to test GPU Step 1: Install some necessary libraries install libgegl-0.2-0 libgfortran3 libgimp2.0 libgl1-mesa-dev sudo apt-get libgles2-mesa-dev libglew-dev libglew1.10 libglib2.0-bin libglib2.0-data libglib2.0-dev libglu1-mesa-dev LeMaker Guitar User Manual - 54 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 56 ./waf install sduo Step 3: Replace some libraries sudo cp /usr/lib/libEGL.so* /usr/lib/arm-linux-gnueabihf/ -a sudo cp /usr/lib/libGLES* /usr/lib/arm-linux-gnueabihf/ -a Step 4: Run glmark2-es2 on Lemuntu command terminal glmark2-es2 LeMaker Guitar User Manual - 55 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 57: Video Decoder Engine

    Figure 7.1: glmark test 7.2 Video decoder engine LeMaker Guitar VDE (Video Decoder Engine) is a decoder component based on OpenMAX. OpenMAX (Open Media Acceleration), often shortened as "OMX", is a non-proprietary and royalty-free cross-platform set of C-language programming interfaces that provides abstractions for routines especially useful for audio, video, and still images processing.
  • Page 58: See Also

    NV12. the "xxx" means width or height. You can play the file "NV12_wxxx_hxxx" with YUVPlayer.exe on Windows PC. 7.3 See also [1] OpenMAX: https://en.wikipedia.org/wiki/OpenMAX [2] UV Player - a full-featured tool for playback of uncompressed planar YUV video files: http://www.yuvplayer.com/ LeMaker Guitar User Manual - 57 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 59: Io Controlling

    8 IO controlling There has a 40pin GPIO ports on LeMaker Guitar Base Board Rev.B, including TWI, PWM, SPI, I2C, UART, etc…. Via the basic way, we can control the digital IO ports input or output from the sys user space. But if we want to use more complex interface such as SPI or I2C, it is not that easy to achieve.
  • Page 60 Type the command below to set a GPIO pin as output out > / sys / class / gpio / gpio51 / direction echo Type the command below to set a GPIO pin as intput LeMaker Guitar User Manual - 59 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 61: Wiringlmk

    1 / sys / class / gpio / gpio51 / value 8.2 WiringLMK WiringLMK is a GPIO access library written in C language for LeMaker Guitar Base Board Rev.B. It is modified on the base of the original WiringPi for the BCM2835 used in the Raspberry Pi created by Drogon.
  • Page 62: Lmk.gpio

    8.3 LMK.GPIO LMK.GPIO provides a class to control the GPIO on LeMaker Guitar Base Board Rev.B written in Python language. It is modified on the base of the original RPi.GPIO for the BCM2835 used in the Raspberry Pi [1]. Note that the current release does not support SPI, I2C, hardware PWM or serial functionality on the LMK.GPIO yet.
  • Page 63: Lescratch

    Scratch is designed with learning and education in mind. It can run in cooperation with LeScratch, which is the Scratch message handler that runs in the background on LeMaker Guitar to let Scratch to communicate with hardware peripherals. For education purpose, people at any age can earn an...
  • Page 64: Back Up Os Image

    Figure 9.2: Backup the OS image 9.2 Use dd command to back up You can back up the OS image with Win32Diskimager tool, But there has a another way to backup LeMaker Guitar User Manual - 63 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 65: See Also

    OS image. We can back up the OS image by using the command dd on Linux. Step 1: Insert a U disk into LeMaker Guitar for saving the backup of OS image. The U disk will be mounted in /media/lemaker/. Type the command below to view where the u disk was mounted lsblk Step 2: Type the command below to backup the OS image.
  • Page 66: Android

    Slide the Screen, you can switch to another home screens (support 5 home screens in total), Click the “HOME” button on status bar to switch to the default home screen. Figure 10.1: Android home desktop LeMaker Guitar User Manual - 65 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 67: Basic Setting

    Figure 10.2: Android main menu 10.2 Basic Setting Click icon to enter basic setting, including “Wireless & network”, “Device”, “Personal” and “System” LeMaker Guitar User Manual - 66 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 68 Figure 10.3: Android basic setting LeMaker Guitar User Manual - 67 Copyright © 2014-2015 LeMaker. All Rights Reserved.
  • Page 69 For more info and help: LeMaker Website: http://www.lemaker.org/ LeMaker Forum: http://forum.lemaker.org/ LeMaker Wiki: http://wiki.lemaker.org/ LeMaker Support Email: support@lemaker.org LeMaker Github: https://github.com/LeMaker LeMaker Blog: http://www.lemaker.org//blog Lenovator: http://www.lenovator.com/ LeMaker Guitar User Manual - 68 Copyright © 2014-2015 LeMaker. All Rights Reserved.

Table of Contents