OpenWrt for Arduino Yun cheat sheet: Difference between revisions

From misc notes
Jump to navigation Jump to search
Line 13: Line 13:
OpenWrt Project ですでに Arduino Yun の Profile がある。
OpenWrt Project ですでに Arduino Yun の Profile がある。
  [https://git.openwrt.org/?p=openwrt.git;a=blob;f=target/linux/ar71xx/generic/profiles/arduino.mk;h=8ae5054a7e312213cf872833594b16c0f0237cf1;hb=HEAD target/linux/ar71xx/generic/profiles/arduino.mk]
  [https://git.openwrt.org/?p=openwrt.git;a=blob;f=target/linux/ar71xx/generic/profiles/arduino.mk;h=8ae5054a7e312213cf872833594b16c0f0237cf1;hb=HEAD target/linux/ar71xx/generic/profiles/arduino.mk]
[https://git.openwrt.org/?p=openwrt.git;a=commit;h=914d4fc6219538640ce843b6cf2a6cab5d71db8a ar71xx: add Arduino Yun]
[https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/yunbridge_160-f2042052115e71ad2c91f77e78d21db8275fcdd6_ar71xx.ipk yunbridge]
:Arduino YUN bridge library が取り込まれている。


OpenWrt snapshot images:
OpenWrt snapshot images:
Line 21: Line 25:
:次はこれで実験する予定。
:次はこれで実験する予定。


[https://git.openwrt.org/?p=openwrt.git;a=commit;h=914d4fc6219538640ce843b6cf2a6cab5d71db8a ar71xx: add Arduino Yun]
  [https://git.openwrt.org/?p=openwrt.git;a=tree git.openwrt.org Git - openwrt trunk tree]
  [https://git.openwrt.org/?p=openwrt.git;a=tree git.openwrt.org Git - openwrt trunk tree]
 
:OpenWrt本体とコアなパッケージのレポジトリ。
[https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/packages/yunbridge_160-f2042052115e71ad2c91f77e78d21db8275fcdd6_ar71xx.ipk yunbridge]
:本家に Arduino YUN bridge library が取り込まれている感じ...


  [https://github.com/openwrt/packages https://github.com/openwrt/packages]
  [https://github.com/openwrt/packages https://github.com/openwrt/packages]
:本家の package は github で管理するようになっている。
:本家のオプションパッケージは github で管理するようになっている。


  [https://wiki.openwrt.org/doc/packages#official_packages Where to get packages OpenWrt Wiki]
  [https://wiki.openwrt.org/doc/packages#official_packages Where to get packages OpenWrt Wiki]

Revision as of 09:51, 29 January 2016

Arduino Yun の Atheros AR9331 で稼働する OpenWrt が古くていろいろ危険なので、OpenWrt の最新版との同期がとれるかをメモ。

すでにある ポーティング版 OpenWrt-yun

Arduino Yun フォーラムで発見した RedSnake64 さんの実装。

RedSnake64版 OpenWrt-yun:

https://github.com/RedSnake64/openwrt-yun
ChaosCalmer_v1.2
人柱で導入してみた。mDNS がつかえず .local でアクセスできなかった。IP 指定で設定まではいけたがいったん実験終了。
avahi-daemon 確認する事。

本家 OpenWrt の Yun Profile を調査する

OpenWrt Project ですでに Arduino Yun の Profile がある。

target/linux/ar71xx/generic/profiles/arduino.mk
ar71xx: add Arduino Yun
yunbridge
Arduino YUN bridge library が取り込まれている。

OpenWrt snapshot images:

https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/
https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/packages/
openwrt-ar71xx-generic-yun-16M-squashfs-sysupgrade.bin
時々ビルドに失敗して snapshots から消えてしまうようだ。一週間ぐらい気長に待つ。
次はこれで実験する予定。
git.openwrt.org Git - openwrt trunk tree
OpenWrt本体とコアなパッケージのレポジトリ。
https://github.com/openwrt/packages
本家のオプションパッケージは github で管理するようになっている。
Where to get packages OpenWrt Wiki

OpenWrt build メモ

RedSnake64 さん版を野良ビルド中...できるだけ本家の HEAD に近いように工夫する実験中...

git clone --depth=1 --branch 15.05 --single-branch https://github.com/RedSnake64/openwrt-yun.git
git clone --depth=1 --branch master --single-branch https://github.com/openwrt/openwrt.git
次はこっちで実験
apt-get update
apt-get install -y git subversion build-essential asciidoc \
	fastjar flex gawk libgtk2.0-dev intltool zlib1g-dev \
	genisoimage libncurses5-dev libssl-dev ruby sdcc unzip \
	bison libboost-dev libxml-parser-perl libusb-dev bin86 \
	bcc sharutils openjdk-7-jdk mercurial cvs bzr \
	nodejs-legacy curl
apt-get install g++-multilib
Installing Node.js via package manager | Node.js
Ubuntu 純正パッケージの nodejs, npm 使うとビルドこける。
https://downloads.openwrt.org/sources/
パッケージのソースの取得に失敗する場合はここからとって ./dl/ 配下に置いておく。
http://libfreecwmp.org/
ここにつながらないのでコケる。
./scripts/feeds uninstall libfreecwmp freecwmp libmicroxml
ダメっぽいので捨てた...
./scripts/feeds uninstall aria2
./build.sh YUN_PACKAGES_ONLY
Yun 関係のみの場合。

feeds.conf.default:

src-git packages https://github.com/openwrt/packages.git
src-git luci https://github.com/openwrt/luci.git
src-git routing https://github.com/openwrt-routing/packages.git
src-git telephony https://github.com/openwrt/telephony.git
src-git management https://github.com/openwrt-management/packages.git
src-git arduino https://github.com/RedSnake64/openwrt-arduino-packages.git;for-15.05
これでビルド実験中...