Skip to content

Instantly share code, notes, and snippets.

@moxuse
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moxuse/77549fb5b79fbd43e94d to your computer and use it in GitHub Desktop.
Save moxuse/77549fb5b79fbd43e94d to your computer and use it in GitHub Desktop.
Intel Edison IPカメラを認識させるためにリカバリーセットアップする
// poky 3.10.17 > からはデフォルトでuvccamera moduleがサポートされたので、自分でopkg install uvccamera する必要がない。
// 下手にするとカーネルモジュールが壊れる。
// https://software.intel.com/en-us/iot/hardware/edison/downloads > Release 2.1 Yocto* complete image をダウンロード
cd xxxx/paedison-image-ww25
//フラッシュを初期化、の前に
//macだとdfu-waitが長すぎて失敗するのでスクリプトを一部修正する必要が有る -> https://gist.github.com/ddewaele/f1b13545586c78ddb545
./flashall.sh
Please plug and reboot the board
//となったらOTGにボードを挿す
U-boot & Kernel System Flash Success...
//となったらリブートしてディスクユーティリティでフラッシュを再フォーマット (FAT32)し、bootイメージをコピーして
reboot ota
//でファームウエアをアップデート
//ログイン後password wifiの設定をしておく
configure_edison --setup
//wifi認識できたら次回boot時にも自動でSSID認識して欲しいのでイカをしておく。
systemctl stop hostapd
systemctl disable hostapd
systemctl enable wpa_supplicant
systemctl start wpa_supplicant
wpa_cli reconfigure
wpa_cli select_network wlan0
udhcpc -i wlan0
//uvcvideo があるか確認してみる
list-installed | grep uvcvideo
//あれば成功
//opkgをアップデートする
vi /etc/opkg/base-feeds.conf
//.confファイル編集して、以下を加える
src/gz all http://repo.opkg.net/edison/repo/all
src/gz edison http://repo.opkg.net/edison/repo/edison
src/gz core2-32 http://repo.opkg.net/edison/repo/core2-32
//加えたらupdate
opkg update
//gitやnodeやらを入れておく
opkg install git
opkg install node
//edi-camというnodeのアプリを使うのでリポジトリをクローン
clone https://github.com/drejkim/edi-cam.git
//bin/install_ffmpeg.sh にffmpegのインストールスクリプトがあるので実行しておく
//web/serverに行ってnpm installしておく
//web/client/index.htmlのwebsocketのホストネームを修正しておく
//以上できたらnodeサーバを立ててみる
node server.js
//ブラウザで表示されたらおk
//以上おつかれさまでした。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment