ARM Chromebookで Linuxを色々と遊んでみよう kernelvm2015night.pdf · PDF...

Click here to load reader

  • date post

    18-Feb-2018
  • Category

    Documents

  • view

    218
  • download

    4

Embed Size (px)

Transcript of ARM Chromebookで Linuxを色々と遊んでみよう kernelvm2015night.pdf · PDF...

  • 1ARM ChromebookLinux

    ChromebookChromebookOSCrouton ChrubuntuLinuxFreeBSDWindows( x86Acer C720MacOSX( x86Acer C720

    KapperNetwalker

    Kernel/VM Night! 2015/2/14 20:45~ PMO

    HP

  • 2

    ARM

  • 3

    Chrome Extention Android-apk

    Linux

    Chromebook

    ChromeOS

    Linux

    *BSD

    U-bootCorebootSeaBIOS()

    WindowsMacOSX

    (x86

  • 4PCChromebook

    Android

    AndroidWindows

    Tablet

    WindowsPC

    iPad

    Chromebook

    Macbook

    RaspberryPi

    Android StickPC

    WindowsPC

    Google

    PCPC

    iPhone

    0 6 10

    $200

    $100

    $500

    $1000

    MacPC

    ChromeBox

    $179~$350

  • 5

    ChromeOS 4

    KernelXSingle x-clientChrome

    Hardware

    Customized Firmware(U-boot, Coreboot,SeaBIOS)

    Recovery Firmware Verified boot Fast boot Path Bootloader

    Linux Kernel

    X + GraphicLibrary System Library

    Window Manager Chrome

    Web App Web Site

    Html5 / Webkit

    JavaScrpit Flash

    Extention

    Introduction to chrome os

    http://www.slideshare.net/indrajitschumacher/introduction-to-chrome-os-24531798?qid=4da5ee0e-01ae-44d5-a5cb-5d7172fdd669&v=default&b=&from_search=12

  • 6LinuxChromebookLinux

    chromebook

    USB

    DeveloperMode

    Crouton,chrUbuntu Yes

    No

    CroutonchrootARM

    KernelUSB,SD

    Yes

    No

    Linux

    USB,SD

    DeveloperModeCUI

    U-Boot

    crouton

    crouton

    ChrUbuntuUSBSD

    Ubuntu

    DeveloperModeCUI

    USBSDChrUbuntu

    ctl+Alt+Shift+

    ChrUbuntu

    LinuxFreeBSD

  • 7

    Developer Mode ChromeOSDeveloperMode

    ChromeOSDeveloperMode DeveloperModeEsc+(F4)+

    ChromebookCtrl+DEnter10

    DeveloperMode

    Chromebrowserchrome://imageburnerUSBSD

    DeveloperModeThe Chromium ProjectsDeveloper Mode

    Chrome

    http://www.chromium.org/chromium-os/chromiumos-design-docs/developer-mode

  • 8Crouton ChRomium Os Universal chrooT envirONment

    GoogleDavid Schneider UbuntuDebianchroot https://goo.gl/fd3zc l+alt+tshell

    sudo sh ~/Downloads/crouton -t xfce githubchroot

    /mnt/stateful_partition/crouton/(chroot

    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.

    Chrome

    UbuntuDebian

    Crouton Window Extention

    https://goo.gl/fd3zc

  • 9ChrUbuntu UbuntuSD USB

    GoogleJay Lee ChromeOSLinux KernelxARM

    ctrl+alt+Developer ConsoleCUIUbuntu curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs34v87 /dev/mmcblk1curl -L -O http://goo.gl/9sgchs; sudo bash 9sgchs

    OSChromeOSUbuntuctl+Lgithubchroot

    Ubuntu

    Chromebooks and Chrome OS

    http://chromeos-cr48.blogspot.jp/2013/10/chrubuntu-for-new-chromebooks-now-with.html

  • 10

    ARMx86

    ROM RAM MBR(

    Kernel init

    x86~Linux

    BIOSDISK

    ARMAndroid

    Unlock

    x86-Chromebook

    ARMLinuxChromebook

    x86

    BIOS

    GRUBLILO

    Kernel

    Daemon

    RAM

    Kernel

    Kernelrootfs

    CUI

    Xorg

    Kernelrootfs

    Daemon

    Zygote

    RAM

    U-boot

    Kernel

    Kernelrootfs

    Kernel

    Daemon

    CUI

    Xorg

    Dalvik

    AndroidGUI

    ARMFlashROMRAMKernelrootfsROMAndroidUnlock

    Android ROMMLO

    MLO

    RAM

    Kernel

    Kernelrootfs

    U-bootSeaBIOSCoreBoot

    Kernel

    Daemon

    CUI

    Xorg

  • 11LinuxFreeBSDFreeBSD

    Kernel USBSD U-BootKernelRoot ChromebookDeveloperModeCUI

    USBSDlocalhost ~ # crossystem dev_boot_usb=1

    cgptUSBSD UBootOS

    OpenSuse ChrUbuntu ChromebookDeveloperModeCUI

    USBSDlocalhost ~ # crossystem dev_boot_usb=1

    CroutonChrUbuntu

    FreeBSD on Samsung Chromebook "SNOW" model XE303C12HCL:ARMChromebook

    https://wiki.freebsd.org/FreeBSD/arm/Chromebookhttps://en.opensuse.org/HCL:ARMChromebook

  • 12ARM ChromebookMainline KernelU-boot1st partition: kernel partition with nv u-boot.2nd partition: boot partition (must be formatted as FAT32 or Ext2).3rd partition: root partition. U-bootwget -O - http://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/nv_uboot-snow.kpart.bz2 | bunzip2 > nv_uboot.kpart/Kernel dd if=nv_uboot.kpart of=/dev/mmcblk1p1 cgpt add -i 1 -S 1 -T 5 -P 10 /dev/mmcblk1

    Mainline Kernel/git clone --depth 1 https://github.com/linux-exynos/linux.git -b dts-config linux

    cd linuxmake exynos_defconfigmake menuconfig

    mount /dev/mmcblk1p2 /mnt/externcp arch/arm/boot/{uImage,dts/exynos5250-snow.dtb} /mnt/externumount /mnt/extern

    mount /dev/mmcblk1p3 /mnt/externINSTALL_MOD_PATH=/mnt/extern make modules_installumount /mnt/extern ARM Chromebook/Mainline Linux kernel

    http://linux-exynos.org/wiki/ARM_Chromebook/Mainline_Linux_kernel

  • 13

    KVMChromebook KVMChromebookOS

    KVM virtualization on ARM Chromebook laptop

    http://www.virtualopensystems.com/en/solutions/guides/kvm-on-chromebook/

  • 14WindowsMacOSXx86 C720USBWindowsMacOSX

    WindowsMacOSXSeaBIOS

    WindowsWindows8.1USBC720DeveloperModeLegacybootCtl+LUSBWindows8.1Windows

    MacOSXOSWindows8.1

  • 15AcerWindows8

  • 16

    OSCOSCOSDC OSCOSCOSDC :OSCSpring ChromebookLinux 45

    OSCARM

    OSCSpring 228 10:00Place1OSC 523OSC 8OSDCOSCCOSCUP8

  • 17

  • 18

  • 19

    ARM Linux

    AndroidFirefoxOS

    Linux

    ChromeOS

    Linux

    BootloaderKernel

  • 20

    Das U-Boot ARMROM 2010Redboot

    CCPU LinuxmkimageKerneluImageROMROM

    MLO/boot/ rootfsext3 Kernel

    U-BootU Boot or Universal Bootloader

    CPUROM

    RAM(

    bootloaderMLO

    Kernelrootfilesystem bootloader

    Kernelrootfilesystem

    MBR(

    Kernelrootfilesystem

    Grub

    ROM

    OS

    ftp://ftp.mlb.co.jp/pub/u-boot/u-boot-manual_dimm.pdfhttp://www.slideshare.net/satpalparmar/u-boot-or-universal-bootloader-presentation

    1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20