Intel Galileoとあそぼう
-
Upload
toshifumi-nishinaga -
Category
Technology
-
view
808 -
download
3
description
Transcript of Intel Galileoとあそぼう
![Page 1: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/1.jpg)
Intel Galileo と
あそぼう! にしながとしふみ
@tnishinaga
![Page 2: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/2.jpg)
自己紹介 • なまえ
– にしながとしふみ
• だいがく – 金沢大学
• しゅみ – 2次元美少女を愛でる – 組み込み開発 – 自転車(ロード)
@tnishinaga
![Page 3: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/3.jpg)
活動
• 技術書執筆 – 「BareMetalで遊ぶ Raspberry Pi」 (達人出版会) http://tatsu-zine.com/books/raspi-bm
![Page 4: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/4.jpg)
活動
• ブログ執筆 – マルツパーツ館ブログ
http://marutsuparts.blog74.fc2.com/blog-category-0.html
![Page 5: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/5.jpg)
今日の目的
Intel Galileoを紹介する。
![Page 6: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/6.jpg)
本日の内容 • Intel Galileoとは? • Intel Galileoの特徴 – Arduino互換のからくり
• Arduino + Linux の組み合わせ – 開発環境構築方法考察 – debianのインストール
• 作例
![Page 7: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/7.jpg)
Intel Galileoとは?
![Page 8: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/8.jpg)
![Page 9: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/9.jpg)
Intel Galileoとは?
Intelの作った 組み込みLinuxボード
![Page 10: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/10.jpg)
Intel Galileoとは?
x86互換 SoC
「Quark」搭載
![Page 11: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/11.jpg)
Intel Galileoとは?
回路図、ソースコード ほぼすべて公開
https://communities.intel.com/community/makers/documentation/
galileodocuments
![Page 12: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/12.jpg)
Intel Galileo の特徴
![Page 13: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/13.jpg)
Intel Galileoの特徴
ソフト & ハードが
Arduino互換
![Page 14: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/14.jpg)
Arduino互換? • Arduino互換ソケット搭載 – Arduinoシールドが刺さる
• 専用Arduino IDEが提供 – Arduino IDEでプログラミング – Arduino IDEから書き込み & 実行
![Page 15: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/15.jpg)
Intel Galileoの特徴
Arduinoシールドを Arduinoのプログラムで
動かせる!
![Page 16: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/16.jpg)
Arduino互換のからくり
![Page 17: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/17.jpg)
Arduino互換のからくり Arduino IDEでコンパイル (Linux用の実行ファイルができる)
↓
USB(仮想COM)経由で Galileoに送り込む
↓
Galileo上のLinuxで実行
![Page 18: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/18.jpg)
こんなことも
![Page 19: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/19.jpg)
ArduinoとLinuxを 組み合わせた
システムを作りたい!
![Page 20: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/20.jpg)
Yocto Linuxは貧弱貧者ゥ • Yocto Linux – 内蔵FLASHに入ってる 組み込みLinux – SDカードから起動するのもこいつ
– 開発環境はない。 • Linux側のシステム作成には環境を用意しないと…
![Page 21: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/21.jpg)
開発環境の構築方法
自動構築スクリプトが与えられている これを実行すればできる。
![Page 22: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/22.jpg)
環境構築してみる
環境構築スクリプトを実行!!
![Page 23: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/23.jpg)
1時間後…
![Page 24: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/24.jpg)
3時間後……
![Page 25: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/25.jpg)
5時間後………
![Page 26: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/26.jpg)
Out of Memory: Killed process
![Page 27: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/27.jpg)
![Page 28: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/28.jpg)
構築失敗
メモリ1.5GB スワップ1GB では構築不可能…
![Page 29: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/29.jpg)
別の手 • Yocto以外のLinuxを動かす? – フォーラムにdebian動かす方法が載ってる
• でもArduino互換機能は動かないらしい
よし、やるか。
![Page 30: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/30.jpg)
......数日後
![Page 31: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/31.jpg)
https://github.com/jitomesky/Installing_Galileo-debian/blob/master/galileo-debian.md
![Page 32: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/32.jpg)
主な修正 • カーネルモジュールを読むように修正
• ライブラリを追加
– YoctoはuLibc(i586) • Arduino IDEで作るバイナリはulibcに依存
– debianはlibc(i486)
• clloaderを再コンパイル – Arduino IDEのプログラムを受け取るデーモン – ライブラリ移植でも動かない
• ソースコードがあったので再コンパイルして登録
![Page 33: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/33.jpg)
debianの恩恵 • aptitudeで何でも簡単にインストール • 開発環境も楽々インストール
• 環境問題は解決!!
![Page 34: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/34.jpg)
作例 「Tweet ボタン」
![Page 35: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/35.jpg)
「Tweetボタン」
• スイッチが押されたらつぶやくシステム – スイッチ検出担当 :Arduino – ツイート担当 :Ruby
![Page 36: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/36.jpg)
「Tweet ボタン」
Arduino 側 • ボタンが 押されたら Ruby側へ 通知
Ruby 側 • 通知を受けて ツイート
ソケット通信 ボタン入力
![Page 37: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/37.jpg)
まとめ
![Page 38: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/38.jpg)
まとめ
Intel Galileoの真の力は
Arduino互換にあり!
![Page 39: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/39.jpg)
まとめ
環境の問題も
debian化で解決!
![Page 40: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/40.jpg)
まとめ
Arduino + Linux 連携の可能性は
無限大!
![Page 41: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/41.jpg)
みんなも Intel Galileo
で 遊ぼう!
![Page 42: Intel Galileoとあそぼう](https://reader034.fdocuments.net/reader034/viewer/2022042515/5482571a5906b5ce048b464c/html5/thumbnails/42.jpg)
お買い求めはこちら (宣伝)
http://www.marutsu.co.jp/