firefox os + raspberry pi

37
Firefox OS + Raspberry Pi || ? EnsekiTT

Upload: ensekitt

Post on 13-May-2015

8.858 views

Category:

Technology


5 download

DESCRIPTION

English Version

TRANSCRIPT

Page 1: Firefox OS + Raspberry Pi

Firefox OS+

Raspberry Pi||?

EnsekiTT

Page 2: Firefox OS + Raspberry Pi

Goal

Run FirefoxOS in Raspberry Pi

Page 3: Firefox OS + Raspberry Pi

What’s that?Raspberry PiFirefox OS

Page 4: Firefox OS + Raspberry Pi

What’s that?Raspberry PiFirefox OS

Open Source

Web is the platform

Made of the Web

Made by Firefox

Low Cost

Small Size

ARM Core

Rich Interfaces

Page 5: Firefox OS + Raspberry Pi

ToolsRaspberryPiUSB MicroB CableUSB Charger ( > 700mA)SD Card( > 8GB),SD Card R/WPC(Linux | OS X | Windows) for AdvUSB Key Board, MouseHDMI Monitor, CableEthernet Cable(Connect the Internet)

Page 6: Firefox OS + Raspberry Pi

Raspbian “wheezy”DebianRaspberry Pi

Page 7: Firefox OS + Raspberry Pi

Raspbian “wheezy”DebianRaspberry Pi

Linux Distribution

Open Source

Operating System

Big Community

Low Cost

Small Size

ARM Core

Rich Interfaces

Page 8: Firefox OS + Raspberry Pi

Here!This is baked Pi

(Debian installed SD Card)

Page 9: Firefox OS + Raspberry Pi

Start up!

Insert SD Card

Page 10: Firefox OS + Raspberry Pi

Start up!

Connect HDMI Cable

Page 11: Firefox OS + Raspberry Pi

Start up!

Connect LAN Cable

Page 12: Firefox OS + Raspberry Pi

Start up!

Connect USBMouse and Keyboard

Page 13: Firefox OS + Raspberry Pi

Connected!

Page 14: Firefox OS + Raspberry Pi

Power ON

Page 15: Firefox OS + Raspberry Pi

Login

Login ID: piLogin Pass: raspberry

Page 16: Firefox OS + Raspberry Pi

Firefox OS Install

OutlineMake directory for Firefox OSGet Firefox OSGet Profile dataBoot!

Page 17: Firefox OS + Raspberry Pi

Make directory for Firefox OS

$ cd $ mkdir fxos$ cd fxos

[dir]: Directory namecd [dir]: Change Directory for [dir]     (if [dir] = empty then [dir] = HomeDirectory)mkdir [dir]: Make Directory

Page 19: Firefox OS + Raspberry Pi

UnpackFirefox OS tarball

$ tar xvzf b2g-17.0a1.linuxgl-gnueabi-armhf_v6.tar.gz$ cd b2g/

[file]: tarball file nametar xvzf [file]: unpack command(x:unpack files, v:view files list, z:.gz unpack, f [file]: tarball file name)

Page 20: Firefox OS + Raspberry Pi

Download and unpackprofile data

$ wget http://michi.mozlabs.jp/fxos/profile.tar.gz$ tar xvzf profile.tar.gz

Page 21: Firefox OS + Raspberry Pi

$ ./b2g -profile profile

Page 22: Firefox OS + Raspberry Pi

Finish

Close Firefox OS

Halt Raspberry Pi

and unconnect Power USB$ sudo halt

[Ctrl] + c

Page 23: Firefox OS + Raspberry Pi

Future Work

Add touch displayAdd camera displayAdd 3G module

If add 3G module, That’s Phone!!

Page 24: Firefox OS + Raspberry Pi

Advance Course

Page 25: Firefox OS + Raspberry Pi

Raspbian “wheezy” Install

ToolsPersonal Computer(OS X)SD Card ,SD Card R/W

Page 26: Firefox OS + Raspberry Pi

Prepare of Environmentex: OSX

Mac Ports | Homebrewsudo port install wgetbrew install wget

Page 27: Firefox OS + Raspberry Pi

Install Start!Make Directory

$ cd $ mkdir raspi$ cd raspi

[dir]: Directory namecd [dir]: Change Directory for [dir]     (if [dir] = empty then [dir] = HomeDirectory)mkdir [dir]: Make Directory

Page 29: Firefox OS + Raspberry Pi

Unpack Zip

$ unzip 2012-10-28-wheezy-raspbian.zip

[file]: Zip File nameunzip [file]: Unpack [file]

Page 30: Firefox OS + Raspberry Pi

Insert SD card$ df

df: Show disk parameters

Filesystem 512-blocks Used Available Capacity Mounted on/dev/disk0s2 723603632 442647392 280444240 62% /devfs 376 376 0 100% /devmap -hosts 0 0 0 100% /netmap auto_home 0 0 0 100% /home/dev/disk2s1 31488000 4480 31483520 1% /Volumes/NO NAME

Take note : /dev/disk2s1(BSD Name)

Page 31: Firefox OS + Raspberry Pi

Unmount SD Card

$ sudo diskutil unmount /dev/disk2s1password: *****

[com]: Command[disk]: BSD namesudo [com]: Run command as super userpassword: *****: Super user passworddiskutil: OSX disk utility commanddiskutil unmount [disk]: Unmount disk

Page 32: Firefox OS + Raspberry Pi

WriteDebian “wheezy”

$ sudo dd bs=1m if=./2012-10-28-wheezy-raspbian.img of=/dev/rdisk2

[img disk]: Image disk./ : Current Directory/ : Root Directorydd: Disk dump  (Copy all image)bs=*: Block Size(1m=1MB)if=[img disk]: Source image diskof=[disk]: Output disk

Page 33: Firefox OS + Raspberry Pi

WriteDebian “wheezy”

$ sudo dd bs=1m if=./2012-10-28-wheezy-raspbian.img of=/dev/rdisk2

Q: !? I noted /dev/disk2s1.

A: /dev/disk2s1 is one of disk partition  Add r for raw access to disk2  s1 means partition  Therefore “/dev/rdisk2”

Page 34: Firefox OS + Raspberry Pi

Eject SD Card

$ sudo diskutil eject /dev/rdisk2

diskutil eject [disk]: eject [disk]

Page 35: Firefox OS + Raspberry Pi

First Step of Piexpand_rootfs

Use SD Card full access

configure_keyboardSelect your keyboard layout

change_timezoneex:「Asia」→「Tokyo」

updateUpdate Debian

Page 36: Firefox OS + Raspberry Pi

☕Coffee Break