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 ..........................
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.
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.
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!)...
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 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).
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.
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.
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 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.
# 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.
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...
..., 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...
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.
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.
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 "/"...
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.
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.
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.
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.
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.
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.
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.
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...
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.
Need help?
Do you have a question about the Guitar and is the answer not in the manual?
Questions and answers