• Kernel Compilation • XU4 CPU Control • ODROID Universal Installer
Total Page:16
File Type:pdf, Size:1020Kb
Debian, Tizen, Lakka and Android Marshmallow for XU4 • XU4 Case Year Three Our Issue #25 3rd Jan 2016 year! Magazine For Serious Gamers Hardkernel presents its new Universal Motion Joypad LINUX GAMING • Kernel Compilation Settlers 2 Earth 2140 • XU4 CPU Control • ODROID Universal Installer What we stand for. We strive to symbolize the edge of technology, future, youth, humanity, and engineering. Our philosophy is based on Developers. And our efforts to keep close relationships with developers around the world. For that, you can always count on having the quality and sophistication that is the hallmark of our products. Simple, modern and distinctive. So you can have the best to accomplish everything you can dream of. We are now shipping the ODROID-U3 device to EU countries! Come and visit our online store to shop! Address: Max-Pollin-Straße 1 85104 Pförring Germany Telephone & Fax phone: +49 (0) 8403 / 920-920 email: [email protected] Our ODROID products can be found at http://bit.ly/1tXPXwe EDITORIAL DROID Magazine is celebrating the beginning of its third year! All of our contributors constantly amaze us with Otheir innovations. Each month, our regular columnists like Tobias, Venkat and Nanik write fantastic in-depth tutorials and reviews that help our readers find new ways to work with and enjoy their ODROIDs. We look forward to continuing to produce the best magazine that we can. I hope that the worldwide ODROID community continues to send us great and fascinating articles, since that’s what really makes our publication thrive. This month, we present the new Universal Mo- tion Joypad to make driving games more fun. Tobias offers a set of strategy games that are sure to keep you entertained, and we highlight a few innovative operating systems such as Tizen, Lakka, Debian Jessie Server, and Android Marshmallow. We also showcase a modern aluminum case for the ODROID-XU4, teach you how to throttle your CPU to re- duce fan noise, detail the steps for compiling a kernel, and introduce a convenient way to install a new single or dual-boot operating system. Don’t forget to check out our new website at http://magazine.odroid.com, now featuring a searchable master article list. ODROID Magazine, published monthly at http://magazine.odroid.com, is your source for all things ODROIDian. Hard Kernel, Ltd. • 704 Anyang K-Center, Gwanyang, Dongan, Anyang, Gyeonggi, South Korea, 431-815 Hardkernel manufactures the ODROID family of quad-core development boards and the world’s first ARM big.LITTLE single board computer. For information on submitting articles, contact [email protected], or visit http://bit.ly/1ypImXs. You can join the growing ODROID community with members from over 135 countries at http://forum.odroid.com. Explore the new technologies offered by Hardkernel at http://www.hardkernel.com. STAFF ODROIDMagazine Rob Roy, Manuel Chief Editor Adamuz, Spanish I’m a computer Editor programmer in San Francisco, CA, design- I am 31 years old and ing and building web applications live in Seville, Spain, and for local clients on my network was born in Granada. I am married cluster of ODROIDs. My primary to a wonderful woman and have a languages are jQuery, Angular JS child. A few years ago I worked as and HTML5/CSS3. I also develop a computer technician and program- pre-built operating systems, custom mer, but my current job is related kernels and optimized applications to quality management and infor- for the ODROID platform based mation technology: ISO 9001, ISO on Hardkernel’s official releases, for 27001, and ISO 20000. I am pas- which I have won several Monthly sionate about computer science, es- Forum Awards. I use my ODROIDs pecially microcomputers such as the for a variety of purposes, including ODROID and Raspberry Pi. I love media center, web server, applica- experimenting with these computers. tion development, workstation, and My wife says I’m crazy because I just gaming console. You can check out think of ODROIDs! My other great my 100GB collection of ODROID hobby is mountain biking, and I oc- software, prebuilt kernels and OS casionally participate in semi-profes- sional competitions. images at http://bit.ly/1fsaXQs. Bruno Doiche, Nicole Scott, James Senior Art Editor LeFevour, Art Editor Art Editor Nicole is a Digital Bruno spent a Strategist and Trans- I’m a Digital Me- couple of months sniff- media Producer spe- dia Specialist who is ing networks and working like mad cializing in online optimization and also enjoying freelance work in social to get all of our publications on tar- inbound marketing strategies, social network marketing and website ad- get. As usual, it was crazy. But crazy media management, and media pro- ministration. The more I learn about fun! duction for print, web, video, and ODROID capabilities, the more film. Managing multiple accounts excited I am to try new things I’m with agencies and filmmakers, from learning about. Being a transplant to web design and programming, Ana- San Diego from the Midwest, I am lytics and Adwords, to video edit- still quite enamored with many as- ing and DVD authoring, Nicole pects that I think most West Coast helps clients with the all aspects people take for granted. I live with of online visibility. Nicole owns my lovely wife and our adorable pet anODROID-U2, and a number of rabbit; the latter keeps my books and ODROID-U3’s and looks forward computer equipment in constant to using the latest technologies for peril, the former consoles me when both personal and business endeav- said peril manifests. ors. Nicole’s web site can be found at http://www.nicolecscott.com. INDEX LOGICAL VOLUME MANAGEMENT - 6 DEBIAN - 8 LINUX KERNEL COMPILatiON - 10 UNIVERSAL INStaLLER - 13 CPU CONTROL - 14 COMMUNity WIKI - 15 ODROID MAGAZINE WEBSITE - 16 ANDROID MARSHMALLOW FOR XU4 - 17 UNIVERSAL MOTION JOYPAD - 18 PLEAse don’T TOUCH ANytHING - 21 LaKKA FOR ODROID-XU4 - 22 LINUX GAMING - 24 ODROID-XU4 CaSE - 28 TIZEN FOR XU4 - 30 MEET AN ODROIDIAN - 36 LVM THInly-PROvISIOnED LOGICAL VoluMES THE Ability to dynamically allocate capacity by David Gabriel hen you start having multiple applications running of two LVs. One large data LV that will hold the blocks for the on a single system, administering the storage allo- LV and a metadata LV that will hold metadata. The metadata Wcated to each of them starts getting a little compli- LV will keep track of which block belongs to which LV inside cated. You typically size it to be enough to run for some time the pool along with a few other pieces of information. and include a generous buffer space to avoid running out of To create the thin pool, type the following commands: storage when it’s most needed. However, some file systems’ needs tend to increase quickly over time, like databases, while $ lvcreate -n thinpool -L 10G rootvg others grow slowly, like a web server. This results in having $ lvcreate -n metathinlv -L 500M rootvg large amounts of storage being allocated when it is not always $ lvconvert --thinpool rootvg/thinpool \ being fully used but still being tied to a particular volume. This --poolmetadata rootvg/thinmetalv kind of model is known as thick provisioning and may be inef- ficient sometimes. The first two commands create the data and metadata LVs, For cases like that, we can take advantage of another great and the last is used to merge them into a thin pool LV. Then, feature that LVM offers called thin provisioning. It provides you can create the LVs you want from inside the pool: the ability to dynamically allocate capacity to the volumes as required. Usually, the blocks are written as soon as you create $ lvcreate -n mysqllv -V 1T \ the logical volume. In a thin provisioned logical volume, the --thinpool rootvg/thinpool blocks are allocated as they are written. This way, we can have an LV with a virtual size that is much larger than the physical You can check your newly created LV with the lvs com- available storage. It can then be increased as needed. mand. This will create a new LV from the thin pool with 1TB. Thin provisioning can be compared to a bank. The bank Notice that we clearly don’t have 1 TB of available space, since holds money from all of its depositors, but all that does not the thin pool has only 10GB, but the system will let us cre- exist all at one time. If every single person decides to withdraw ate that virtual space because the blocks will be allocated as their money at the same time, the bank will not have enough needed. If you don’t want to worry about the metadata part available to provide all of it to the clients. It would have to get you can create the thin volume in a single step: the cash from its investments and loans, or by selling shares. Another example is an insurance company. There are a certain $ lvcreate --thinpool thinpool -L 10G rootvg amount of people insured, but not all of them make claims every year. So there is a buffer to pay these claims, but the Or even create the pool and an LV inside it: company doesn’t have to have all of the money to cover the insurees at the same time. This also applies to other resources $ lvcreate -L 10G -V 1T -n mysqllv \ like memory and CPU on demand, especially when using vir- --thinpool rootvgvg/thinpool tual machines, but we will concentrate on the storage use case. In order to create a thin provisioned volume, first a thin You may have already figured this out, but you should have pool LV must be created, which comes from the combination the space usage on thin provisioned file systems be very con- ODROID MAGAZINE 6 LVM ODROID Magazine is now on A quick comparative of Fully Provisioning versus Thin Provisioning Reddit! trolled.