androidタブレットとwindowsタブレットにlinuxを乗せてみた

48
1 Hacking with ARM and Intel devices on Linux 1、 Self introduction 2、Introduction with ARM devices 3、Customized of Linux Mobile ARM devices ・Customized Android devices(Nexus7) ・x86 Emulation on ARM Mobile devices ・ARM Chromebook Crouton & ChrUbuntu 4、Linux Distributions on Windows10 Tablet SpeakerKapper Tokaido Linux Users Group Netwalker Laboratory 福井技術者の集い その7.5 2017/2/25 13:30 Place:鯖江市 メガネ会館 7株式会社jig.jp セミナールーム This Presentation: Slideshare & PDF files publication of my HP http://kapper1224.sakura.ne.jp About Netwalker ARM Mobile Ubuntu

Upload: netwalker-lab-kapper

Post on 21-Feb-2017

73 views

Category:

Mobile


9 download

TRANSCRIPT

Page 1: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

1Hacking with ARM and Intel devices on Linux

1、 Self introduction 2、Introduction with ARM devices3、Customized of Linux Mobile ARM devices ・Customized Android devices(Nexus7) ・x86 Emulation on ARM Mobile devices ・ARM Chromebook Crouton & ChrUbuntu4、Linux Distributions on Windows10 Tablet  

Speaker:KapperTokaido Linux Users GroupNetwalker Laboratory

福井技術者の集い その7.5 2017/2/25 13:30 Place:鯖江市 メガネ会館 7階 株式会社jig.jp セミナールーム

This Presentation:Slideshare & PDF filespublication of my HPhttp://kapper1224.sakura.ne.jp

About NetwalkerARM Mobile Ubuntu

Page 2: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

2

自己紹介 Self Introduction● My name: Kapper

● Twitter account:@kapper1224

● HP:http://kapper1224.sakura.ne.jp

● Slideshare: http://www.slideshare.net/kapper1224

● ニコナレ: http://niconare.nicovideo.jp/users/59379263

● My Hobby:Linux、*BSD、and Mobile ARM Devices

● My favorite words:Record than experiment important

● Test Model:Netwalker(PC-Z1,T1)、Nokia N900、DynabookAZ、RaspberryPi      Nexus7(2012、2013)、Hercules eCAFE EX HD、Jetson TK-1、      OpenPandora、ARM Chromebook、ZTE OPEN C(FirefoxOS)      台湾Android電子辞書 無敵CD-920、CD-928、TW708      

● Recent Activity: Hacking Linux on Windows10 Tablet (Intel Atom base).

 I have been active in the Tokaido Linux User Group.

 Hacking Linux on GPD-WIN and many Atom Devices.

 I have recently often use the ARM Chromebook.

 

Page 3: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

3Recent test こんな事やってます1.Linux distributions on Android 2. Electronic Circuit on ARM

3. Linux distro on x86 Windows Tablet 4. Plesentations in Asia(HongKong,Taiwan) Opensouce Conference

RaspberryPiを使ってLチカ昔に戻って、電子回路工作を楽しんでます

Page 4: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

4

今回発表する内容は4年位の活動のダイジェスト版です。

詳細はSlideshareで公開してます

Page 5: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

5My Activity OpenSourceConference in Japanand Tokaido Linux Uses GroupOnce it is held in one month

SapporoHokkaido

TokyoHamamatu

NagoyaKyoto

Osaka(KOF)

Shimane

Hiroshima

Oita

Okinawa

Kawagoe(Tokyo)

HakataTokushima

Niigata

Kanazawa

Page 6: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

6Linuxを入れると幸せになれる事● LinuxはWindowsと比べて何が良いですか?と多数聞かれるので。

1.最低スペックが低い2.最低使用メモリが小さい3.インストール時の最低要求ストレージが小さい4.USB起動で使えデュアルブートが容易5.CUI、GUIが好きに選択できる6.LAMPサーバが容易7.Docker(凄いChroot)8.Openstack9.GPIOで電子回路を簡単制御10.シェルスクリプトやCrontabなどで自動化が簡単11.フリーでサポートも長期。バージョンアップも無料12.開発言語がフリー13.ARMのタブレットやスマホでもLinuxディストリが使える14.ゲームも艦これなどWeb系やSteam、Wine、OSSなど結構増えた15.ウィルスに感染しにくい16.Android-x86、独自ビルドOS、FirefoxOSやSailfishOSなどマルチOS17.他にもいろいろ

Page 7: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

7PC、スマホ、タブレットにLinuxを移殖する

● タブレットとはタッチパネル液晶バッテリ周辺機種センサー高性能CPU&GPUボードを統合した一つの高度なPCである

● 活動目的スマホやタブレットでLinuxディストリ文化を次世代に残すPCを持っていないスマホ世代にもLinuxを知ってもらうディストリビューターへ自分のOSがタブレットで動く事を証明する、移殖する、使ってもらう古いOS機器をリサイクルする新しいLinuxの使い方を提案する全世界に情報を発信するガジェヲタはLinuxでも*BSDでもインフラ勢に負けないぜ

Page 8: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

8

Customized Android

Page 9: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

9Android改造の簡単な歴史

Android ~4.x中華タブレット全盛Root化アプリ多数

↓アプリ入れるだけ

Android~4.2Nexus7登場

ブートローダーがロックされていない

↓Root化可能

Android初期~2.3root取れない

WebkitのバグからRoot化

↓改造

機種限定規制厳しい 誰でも出来る アプリで簡単

Page 10: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

10ChrootでARM Linuxインストール● ChrootはLinux環境を内部にもう一つ作れます● 違うバージョンのOSを起動出来る● Androidの場合、専用アプリを入れるだけ● Chrootの中から基本は外の環境へ

アクセス出来ないフォルダをマウントすると移動出来るmount -o bind <directory1> <directory2>

● ChrootはRootユーザーのみ. 一般ユーザーではFakechrootが必要(Debian Norootなどで使用)

● Kernelは標準OSのまま使用するので、ドライバやモジュールは、オリジナルKernelのまま。→オリジナルKernelがサポートしていない ドライバやOSは使用できない

AndroidLinux Device

UbuntuDebianAnd

other Linux

UbuntuDebianAnd

other Linux

Page 11: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

11Debian Norootを使ってみる

● Debian NorootはAndroidのアプリでroot権限を取らずにchrootで全自動フルインストール出来るDebian誰でも導入出来る容易さが人気

● Bluetoothキーボードとマウスを使えば、簡易ノートPC。必須!● 中身はfakechrootを使い通常ユーザー権限で

chroot環境を構築し、Xserver-SDLでXorgを表示している● ストレージが内臓/sdcardを前提にしているので容量に課題あり● 最近のVerはAndroid4.0以降で対応。古いOSは古いVerでどうぞ

台湾 無敵シリーズ電子辞書 CD-920

Page 12: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

12

Android対応chrootアプリLinux状況

ディストリ Androidバージョン

インストーラー、CUI or GUI

Linuxディストリ対応 Root是非

対応機種

Debian Noroot(Gimp他)

4.3以降 Full AutoXserverSDL

Debian No Xまで全自動ディスク容量注意

Complete Linux 2.2以降 Terminal Debian、Ubuntu、Fedora、Arch、OpenSuse他

Root 沢山のディストリ自動GUIあり

Debian Kit 4.1以降 Terminal Debian Root Debootstrap

Linux Deploy 2.1以降 Terminal Debian、Ubuntu、Fedora、Arch、OpenSuse他

Root 最も対応数が多いCentOS対応

GnuRoot 1.6以降 Terminal Debian No IS01などほぼ全機種古い

GnuRoot debian,Fedora, Gentoo

1.6以降 Terminal Debian,Fedora,Gentoo

No 各種GNURoot用ディストリ古い

GnuRoot Wheezy X 1.6以降 Xserver Debian No 簡易Xserver古い

AndroLinux 3.0以降 Terminal Fedora,CentOS ? CentOS対応

APKLinux 4.0.3以降 Terminal Bare-Bone Root 独自パッケージ

Lil' Debi 2.1以降 Terminal Debian Root Debootstrap

Terminalベースは慣れが必要ですが容量が小さくすみます。XはXserver-SDLかVNC

Page 13: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

Nexus Root Toolkit● Windows用ですがGUIでNexus7のUnlock、root化が

出来るアプリ● 専用の環境を作りたくない人にお勧め

1、Nexus Root toolkitアプリのダウンロード2、Google USBドライバのインストール3、USBでNexus7を繋いで認識4、機種を選択しボタンをクリックして  Unlock、root化 Nexus Root Toolkit

Page 14: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

スマホ、中華タブレットRoot化● 最近はRoot化アプリがGooglePlayなどでも公開● 一例としてKingo Android Root

多数のデバイスをサポート改造して遊ぶ事が非常に簡単な時代になりました使用のリスクは自己責任で

Supported Manufacture

Page 15: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

15Android TerminalとBusybox

● Terminal EmulatorとBusyboxを使うことでLinuxの基本的な機能を使うことが出来ます。

● Busyboxは基本的なCUIツールがセットになっており一通りの事が出来ます(cp,wget,w3m他)

● システムやアクセス権を変更する際にはroot化が必要です。chrootしてLinuxを入れる際にも。

Android Terminal Busybox

Page 16: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

16Debian KitとComplete Linux● Android上でchroot環境を構築してapt-getしてパッケージを入れるアプリ。Debian化が出来る。

● Androidをシンプルにサーバ化できる。root化がいるものといらないものと。

● Debian KitはAndroidの親プロセスのルート環境でapt-getが使える仕組みなので、自由度が高い(ハイリスク?)

● Debian Norootが入れられない古い環境向けも

● 色々なディストリを使いたい

Complete Linux

Page 17: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

17TightVNCserverとVNCviewer

● もっとも容易なXサーバの代替がVNCserver● chroot環境でTightVNCserverを起動すれば

容易にAndroid上でX環境を立ち上げられます。 sudo apt-get install tightvncserver tightvncserver -geometry 1024x600

● もちろん、遠隔操作して使うことも可能です。

Complete LinuxVNC Viewer

Page 18: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

18Xserver-SDLを単独で使う

● Xserverの代替としてDebian norootでも使われているXserver-SDLを単独でも使えます。

● 使い方はXserver-SDLを起動させてから、Chroot環境で端末から、env DISPLAY=xxx.xxx.xxx.xxx:0 lxsession &と起動しAndroid上で再度Xserver-SDLを表示

Complete LinuxXserver-SDL

Page 19: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

19

Android-own build statusDistributin version Installer Multirom Root Compatible models

Factoryimg ~5.1.0 ◎ ○ △ Nexus

CynanobenMOD ~5.1.x ◎ ○ ○ Many

AOKP ◎ ○ ○ Many

ParanoidAndroid ○ ○ ○ Many

ClockworkMOD ○ ○ ○ Many

Bodhi Linux ~3.0 ○ ○ ○ Nexus7 2012

KDE Plazma ○ △ ○ Nexus7 2012FirefoxOS ○ ○ △ Own buildUbuntu Touch ◎ ○ ○ Nexus7(2013)

4、5、10、6

Tizen △ △ △ ?

SalfishOS △ △ △ Nexus7,RaspberryPi

Internet dogmatic investigation of Kapper (if I wrong I'm sorry. Correct)◎:Official Support、◯:Official reports、△:Users reports

Excerpt because own build of correspondence dozens type and number is too large.

Page 20: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

CyanobenMod● CyanogenMod Inc. and Android4.x to the various devices in one of their own

build a number of Android that are customized are developing.

● Include the formal and informal support, corresponding to 220 devices

● Development from the firmware (boot loader) to the OS image.If a device that is official support, it can be installed with one click without taking root.

● Installation has a difficult but also many operations reported to the local device,It has contributed to the aftermarket of older models.

● Since correspond to the regular even Nexus7, it is easy to install.

CyanobenMod9

Page 21: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

FirefoxOS● You can install and use FirefoxOS in Nexus7.● Custom ROM required Since then replacement

of FirefoxOS ROM.(supported device)

FirefoxOS SimulatorFirefoxOS

Page 22: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

Ubuntu Touch● Nexus7 2013 is Ubuntu Touch supported now.● Installer and boot loader set● The use of Ubuntu touch is Nexus series only.

Ubuntu TouchUbuntu Touch

Page 23: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

23

x86 Emulation and Windows applications

on ARM Linux Devices

Page 24: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

24x86 Emulations on ARM DevicesEmulation OS Root

DeviceEmulated OS Spec Comment

Qemu LinuxAndroidRaspberryPi

No WindowsMacOSX?Linux,*BSD

Slow Tegra K-1⇒Pen 266MHzⅡVer1.5~(ARM GUI)

Qemu+Wine LinuxAndroidRaspberryPi

Required +Windows APP Slow Difficultkernel 3G/1G onlychroot environment

Exagear-Desktop LinuxRaspberryPi

Required Ubuntu,Debian Fast Tegra K-1⇒Pen4 1.8GHz

Exagear-Desktop+Wine

LinuxRaspberryPi

Required Ubuntu+WineWindows APP

Fast Tegra K-1⇒Pen4 1.8GHz

DOSBox LinuxAndroidRaspberryPiiOS,DS,PSP

No DOS,WIndows9x(i386~i586)

Slow Tegra K-1⇒Pen 266MHzⅡNEON SupportsVoodoo1+Glide

Bochs LinuxAndroidRaspberryPiiOS,PSP

No Windows~XP(i386~x86-64)Linux,*BSD

Slow Tegra K-1⇒Pen 266MHzⅡ

XNP2(PC-98 Emulation)

LinuxAndroidRaspberryPiiOS

No DOS、Windows95?

Slow Tegra K-1⇒?

VMWare and Virtualbox are not working on ARM devices.(Only x86)

Page 25: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

25ExaGear MobileでWindowsゲームをAndroidで● Exagear Mobile(RPG、Strategy)はAndroidの有料アプリで

x86+Wineのエミュレーションする構成 ● 非公式ながらもネット報告では色々なWindowsアプリ動作

(Diablo1,2など)● WindowsマシンのC\:Program files\以下をコピーして使う構成

Page 26: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

26x86 Qemu Emulation on ARM devices

Cortex-A15Tegra K-12.1GHz

Core i5-2540M2.60GHz

Cortex-A15Tegra K-12.1GHz

Core i5-2540M2.60GHz

Acer Chromebook13Qemu Win2000HDBench4.6.1

CF-S10Qemu Win2000HDBench4.6.1

Acer Chromebook13BOINC Benchmarck

CF-S10BOINC Benchmarck

0

5,000

10,000

15,000

20,000

25,000

30,000

35,000

40,000

1,3014,062

9142,941

12,119

35,526

6,1188,064

floating point MIPS (Whetstone) per CPU

integer MIPS (Dhrystone) per CPU

QemuWIndows2000

HDBenchBOINC Bench

Windows98、2000 on ARM chromebook

● You can use the x86 emulator will be like can be moved and Wine Windows apps and Steam and Skype.

● The x86 emulator also works such as Windows and NetBSD.TegraK-1 in Using Qemu Pentium2 266MHz equivalent Win98 is in HDBench, it was to use and Pentium4 1.8GHz equivalent to ExaGear-Desktop.

● In ARM Devices,Qemu isx86:ARM=3:1(proportional to the floating point?)

ARM x86ARM x86

NetBSD Teokure Live Imageon ARM chromebook

Page 27: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

27

x86 Emulation on Android● You can operate the Windows or NetBSD by the

use of Android even x86 emulation● PC: Bochs,Qemu,DOSBox,Limbo PC emulation

MAC:vMacMini● In the case of Qemu、Windows and NetBSD, and

the others operation.NetBSD Teokure Live Image(Qemu) on Nexus7

Windows9x、2000(Qemu) on Nexus7

Page 28: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

28x86 Emulation on ExaGear-Desktop1 board PC, and ARM Chromebook ● ExaGear-Desktop is 4.5 times faster than qemu.● i686 Ubuntu12.04LTS on ARMhf Ubuntu 14.04,12.04 ● Boinc Benchmarchs:@ ARM Chromebook CB5-311 TegraK-1

Integer points (ARMhf Base) : 6118 ⇒ (i686): 1800  29.4% Flotings points (ARMhf Base) : 914 ⇒(i686): 200 21.9%about Pentium4 1.8GHz on ARM.(Qemu =Pentium2 266MHz)

● Windows applications on Wine, on ARM devices. Bonanza(Wine) on ARM Chromebookjw-cad(Wine) on ARM Chromebook

Page 29: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

29

Maujan(Wine) on ARM RaspberryPi2HDBench3.40(Wine) on ARM RaspberryPi2

x86 Emulation on ExaGear-DesktopARM RaspberryPi, RaspberryPi2

● ExaGear-Desktop RaspberryPi is 5 times faster than Qemu.● i386 Debian7Wheezy on ARMhf Raspbian,Ubuntu14.04,Debian7 ● HDBench Benchmarchs:@ ARM Raspberry Pi2

Integer points (ExaGear i686) : 7586 (Qemu i386: 1999 26.4%) Flotings points (ExaGear i686) :6224 (Qemu i386: 384 6.2%)about MMX Pentium 200MHz on ARM. (Qemu =Pentium 40MHz?)

● Windows applications on Wine, on ARM devices.

Page 30: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

30Android,iOS and JavascriptDOSBox

AndroidDOSBox Turbo

on Electronic dictionary

iOS iDOS JavascriptEM-DOSBox

● DOSBoxとはi386〜i586エミュでWindows9xや色々なアプリが動作DOSBox can operate 〜Windows9x in the i386〜i586 emulator

● DOSBoxは様々なモバイルOSに移植されて動く特徴があります。DOSBox has been ported MobileOSs, about Android, iOS, WindowsMobile, Blackberry, PSP, Vita, 3DS and others.

● DOSBoxは独自に進化した高度なUIとドライバがあり、ゲームに最適最近はWindows9xゲーム向けに加速的に進化しています。DOSBox has its own evolved advanced UI and the driver, the best in the game.Recently, they are accelerating the evolution in for Windows9x game.

Page 31: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

31

Custmized ARM Chromebook

Page 32: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

32Crouton on Chromebook● ChRomium Os Universal chrooT envirONment

The author Google developers, Mr. David Schneider.

● Chroot automation tool for Ubuntu and Debian https://goo.gl/fd3zc

● To display the terminal in the "ctl + alt + t", used from the terminal to activate the "shell"sudo sh ~/Downloads/crouton -t xfce

● How to download the chroot environment by dropping the main script from github/mnt/stateful_partition/crouton/(Distribution name)

Recognized debian releases: potato* woody* sarge* etch* lenny* squeeze* wheezy jessie sid

Recognized kali releases: kali

Recognized ubuntu releases: warty* hoary* breezy* dapper* edgy* feisty* gutsy* hardy* intrepid* jaunty* karmic* lucid* maverick* natty* oneiric* precise quantal* raring* saucy* trusty utopic*

Releases marked with * are unsupported, but may work with some effort.

Terminal on Chrome-browser Crouton Window Extention

Page 33: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

33ChrUbuntu on Chromebook● Dual-boot & SD USB automated installation tool for Ubuntu.

The author Google developers, Mr. Jay LeeMethod to accept the Linux Kernel and driver module of ChromeOS.x86 does not officially support the ARM in the corresponding. It notes that there is also not operate models.

● When you press the "ctrl + alt + → key", a mechanism to install the Ubuntu switched to CUI of the screen called Developer Console.  curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs(34v87 /dev/mmcblk1)change Partition  curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs

● Use switch in the "ctl + L" the ChromeOS and Ubuntu the OS when you bootHow to download the chroot environment by dropping the main script from github

● Although Ubuntu is started normally, a method is somewhat time-consuming in the start-up manual switching.

Reference:Chromebooks and Chrome OS

Page 34: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

34

Linux distributons on Windows10 Tablet

Page 35: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

35安いWindowsタブレットの入手などCheap Windows Tablet

● 最近インテルタブレットの中古、OSなしがとっても安いですよね♪どんどん安くなる恐ろしいハイスペックデバイス。

● 時々、じゃんぱらや秋葉原など値段が落ちて格安になってきました。是非Linuxを入れてつかいましょ

Android Windows

Page 36: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

36

最近のIntelマシンの困った癖● Intel機種は仕様がほぼ同一でLinux移殖が容易● UEFIブートローダーのトラブルでUEFI32bit面倒

● UEFI32bit機種 面倒格安

● UEFI64bit機種 普通

Page 37: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

37今回のテスト機 Test Model PC・F-07C(Oak -Trail)2011/7 Legacy BIOS 32bit ○・ICONIA W500S(AMD C-50) 2011/4 Legacy BIOS ◎・ONKYO TW317A5(Oak-Trail)2010/9 LegacyBIOS △表示難・Acer W3-810(Clover-Trail)2013/7 UEFI 32bit ×・ASUS T100TA (Bay-Trail)2014/8 UEFI32bit ◎ オススメ・PC-TW708/CAS(Bay-Trail) 2015/10 UEFI 32bit 〇・WIN-70B(Bay-Trail) 2015/6 UEFI 32bit 〇バッテリ小・Chui VI8 Plus(Cherry-Trail) 2016/1 UEFI 32bit △難しい・Jumper EZbook2(Cherry-Trail) 2016/6 UEFI64bit ◎・GPD-WIN(Cherry-Trail) 2016/10 UEFI64bit ◎ オススメ・Surface3(Cherry-Trail) 2015/5 UEFI64bit ○Ubuntu以外

Page 38: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

38Linux Distro on Windows Tablet

公式サポート◎、公式HP動作報告○、ユーザー動作報告△、報告なし×

Distributions Legacy OakTrail

CloverTrail

BayTrail

CherryTrail

GPD-WIN

Grub2bootloader

Comments

32bit64bit

Z670BIOS32bit

Z2760UEFI32bit

Z3735UEFI32bit

Z8300UEFI32bit

Z8700UEFI64bit

Official boot

Ubuntu ◎ ○ × ○ △ △ ○ UEFI64bit対応Wubi

Debian ◎ ◎ × ◎ △ △ ◎ UEFI32,64対応Multiarch-ISO

ArchLinuxManjaroLinux

◎ ○ × ○ △ △ △ UEFI32,64bit対応

Fedora ◎ ○ × ○ △ △ △ UEFI対応Fedret

Gentoo ◎ △ × ? ? △ △ UEFI対応

OpenSuse ◎ △ × △ × △ △ UEFI対応

Mageia ◎ △ × × × ? ? UEFI対応

CentOS ◎ △ × × × ? ? UEFI対応Kernelが古すぎる

FreeBSD ◎ △ × × × × ? UEFI対応

NetBSD ◎ △ × × × × ? UEFI対応

Android-x86 ◎ ○ × ○ △ △ ◎ UEFI対応 4.2.2以降

Page 39: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

39最近のWindows PCでLinuxを起動 Recently PC’s boot process for Windows and Linux

● Ubuntu official ISO is not supported to both 32bit and 64bit.

LegacyBIOS

LegacyBIOS(USB, ISO)

Grub2(32,64bit)

Install ISOUbuntu

(32,64bit)

LegacyBIOS(Wubi)

UEFI32bit(USB, ISO)

UEFI32bit(Wubi)

Hard(32,64bit)

Grub2Wubi

(32,64bit)auto

Install WubiUbuntu

(32,64bit)

UEFI

(32bit)Grub2(64bit)32bit

Install ISOUbuntu(64bit)

Hard(64bit)

Grub2Wubi

(32,64bit)auto

Install WubiUbuntu(64bit)

Fix

NotProblem

NotProblem

Afterinstallgrub2 32bit

Fix installwubi forUbuntu16.04rev3112016/8/2!

Only32bit

SurfaceNotebookUEFI64bit

UEFI(64bit)

Grub2(64bit)

Install ISOUbuntu(64bit)

Hard(64bit)

NotProblem

Page 40: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

40GPD-WIN+Atom Notebook(UEFI64bit)● Blackscreen trouble(need”i915.modeset=0”)

Ubuntu16.10 Debian Multi-Arch Sabayon CentOS

CyanogemMOD-x86Manjaro Gentoo Fedora

NetBSD(UEFI Testing)OpenSuse

Page 41: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

41

Manjaro OpenSuse

CyanogenMOD-x86 Extix Linux

Surface3 (Cherry-Trail)UEFI64bit≧Kernel4.8 and no Ubuntu Linux distro?

SurfaceRT(WindowsRT) was able to install Windows10 Mobile!?

Page 42: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

42

Manjaro

Debian

Old Kernel Freeze Bug

Chinese Cheap Windows Tablet UEFI32bitUEFI 32bit bootloader, Power and blackscreen problem

Ubuntu

Fedora

Android-x86 ExTixLinux

OpenSuse

Page 43: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

43Wubi(Windows-based Ubuntu Installer) とは?● WubiはWindows上で動作するUbuntu元公式インストーラー。

UbuntuをWindowsの1ファイル上にインストール、デュアルブートする構成● パーティション切り分け無く、1ファイルをブートローダーでマウントする

Windows起動画面にUbuntuを追加、自動で切り替え出来る設定を構築● 長所は直接ディスクにインストールする際のリスクを回避しつつ、OSやドラ

イバの動作確認。削除が1ファイルなので極めて容易で誰でも安全である。

WindowsHDDストレージ

Ubuntu1ファイルループバックイメージ

ブートローダ

Windows起動

Ubuntu起動Grub

Page 44: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

44Install ISO for Ubuntu 16.04 on UEFI32bit 1.ISOファイルをダウンロードしてbootia32.efiをコピー2.USBで繋いでセキュアブートをOFF、起動3.起動時にGrub2を書き換えてインストーラーを動かす4.通常通りインストール(まだネットには繋がらない)5.再起動、USBからから起動して、Grub2を書き換えて 本体SSDのイメージデータを起動6.ネットに繋いで、32bitのGrub2をインストール7.Wifi、タッチパネルなどのドライバをインストール

DownloadISO

USB

DownloadBootia32.efi

Copy/EFI/boot/

ConnectUSB

OFFSecureboot

boot

boot

And

WriteGrub2

InstallLinux

Distributions(NoWifi?)

再起動Reboot

And

WriteGrub2

InstallGrub2-ia32(Connect

WIfi)

Start! ③ ⑤

Page 45: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

45Dualboot Windows and Linux on UEFI1.パーティション「/」Ext4、「/boot/efi」FAT32、Swap を容量変更し3つ作成。 MBRの概念はないのでどこでも良い。2.「/boot/efi」にespとして設定3.Linuxをインストール(Windowsを消さない事)4.電源ON後「ESC」を押しUEFIの画面でOSの選択5.Grub2のオプション選択とOS起動 もちろんUSBやMicroSDからも起動できます

Page 46: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

46 Winタブレット機種別のドライバ調査

公式サポート◎、公式HP動作報告○、ユーザー動作報告△、報告なし×KapperのWindows独断調査(間違っていたらごめんなさい。修正します)

Devices OakTrail

CloverTrail

BayTrail

BayTrail

CherryTrail

CherryTrail

Comments

ONKYOTW2A

W3-810

TW708/CAS

Chuwi Hi8 ChuwiVi8

jumper EZBook 2

TouchPanel HID準拠 I2C HID

I2C HID KMDFI2C HID

I2C HID I2C HID 良く分からない

Wifi RalinkTec.cop

Broadcom

RTK8723 Broadcom

Broadcom

Broadcom

RTKはGitHubBroadcomはOSS

Bluetooth Broadcom Broadcom

RTK8723BT Broadcom

Broadcom

Broadcom

RTKはGitHubBroadcomはOSS

Sound Realtek IntelSSTAudio

RealtekI2S

IntelSSTAudio

RealtekII2S

IntelSSTAudio

RealtekI2S

IntelSSTAudio

RealtekI2S

IntelSSTAudio

ES8316

Display IntelGMA600

Intel(PowerVR)

IntelHDGraphics

IntelHDGraphics

IntelHDGraphics

IntelHDGraphics

中味は世代で違う

Camera 1.3MWebCam

OV2722 

UnicamAr0543M1040

OV2680 IntelAVStream

1.3MWebCam

機種によって違う

Accelerometer HID BMA2x2Bocsh

BocshAccela

機種によって違う

Senser(Other) 簡易センサ

BroadcomGNSS4752

CM3128xSDOV2

機種によって違う

SD IntelSM35

IntelHost

IntelHost

IntelHost

IntelHost

IntelHost

Mic IntelSSTAudio

IntelSSTAudio

IntelSSTAudio

IntelSSTAudio

IntelSSTAudio

Monitor デジタルフラット

汎用PnP 汎用PnP 汎用PnP 汎用PnP 汎用PnP

Page 47: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

47 Linux Kernel reported(Bay-Trail)

公式サポート◎、公式HP動作報告○、ユーザー動作報告△、報告なし×Kapperのネット独断調査(間違っていたらごめんなさい。修正します)

機種やドライバ次第。リンク先より抜粋。(後日整理します)Device Kernel 種類 動作確認 Comments

MicroSD ? Intel △ 動作確認できず

Wifi 4.4.0~External

RTK,BCM ○ 外部ドライバ推奨BCMはオープンソース

Bluetooth XExternal

RTK,BCM △ 外部ドライバ推奨BCMはオープンソース

Sound 4.4.0? Intel RT5640~ △ 外部ドライバ推奨

Suspend 4.4.2~ Intel △ 一部機種のみ動作

Hibernation ? Intel ? ?

Accelerometer 4.4.0~ 各自バラバラ △ 動作確認。画面回転対応

Camera X 各自バラバラ × 動かない

TLP ○ ? フリーズ多発

USB ○ Intel ○ 問題なし

TouchPanel 4.4.0~External

Intel、ATML1000 △ 一部機種のみ動作外部ドライバ推奨

Sources:http://www.studioteabag.com/science/dell-venue-pro-linux/

Page 48: AndroidタブレットとWindowsタブレットにLinuxを乗せてみた

48LinuxKernel changelog on AtomKernel day Changelog Comments

4.0 2015/4 drm/i915/skl: add turbo supportbrcmfmac: Add support for bcm43340/1 wireless chipsetsIntel: Add Cherrytrail & Braswell machine driver cht_bsw_rt5645

GPU Turbo電源管理

4.1 2015/6 intel_idle: Add support for the Airmont Core in the Cherrytrail and Braswell SOCsbrcmfmac: Add support for BCM4345 SDIO chipsetbrcmfmac: add support for BCM43430 SDIO chipset

省電力モード

4.2 2015/8 Intel: Add Cherrytrail & Braswell machine driver cht_bsw_max98090_ti sound サウンド

4.3 2015/10 surface pro 3: Add support driver for Surface Pro 3 buttons SurfacePro3

4.4 2016/1 perf/x86: Add Intel cstate PMUs support 電源

4.5 2016/3 surface pro 4: Add support for Surface Pro 4 ButtonsIntel: Atom: Add support for HP ElitePad 1000 G2 SoundIntel: Atom: add 24-bit support for media playback and captureIntel: Atom: add support for RT5642 Sound

SurfacePro4

4.6 2016/5 Intel: Atom: add support for CHT w/ RT5640 Sound

4.8 2016/8 ASoC: Intel: Add surface3 entry in CHT-RT5645 machine soundInput: add Raydium I2C touchscreen driveradd new driver for the Surface 3add Alps I2C HID Touchpad-Stick supporaccel: Add support for Bosch BMA220

Surface3

4.9 2016/11 This early i915 DRM feature update for DRM-NextAdditional P-State Change For Linux 4.9 May Boost Intel Atom PerformanceIntel Integrated Sensor Hub (ISH) Support

SpeedupSensor

4.10? Generic Governors Support Coming For Intel P-State supporting multi-touch data with the Surface 3. Surface 4 HID support drm/i915/dsi: Do not clear DPOUNIT_CLOCK_GATE_DISABLE from vlv_init_display_clock_gating

Surface3/4Blackscreen