7,137
edits
(34 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
OpenWrt | OpenWrt which runs on the Atheros AR 9331 of Arduino Yun, LLC edition OpenWrt-Yun also Linino is obsolete in the kernel and various packages (and there are security problems). I will drill down on how to upgrade to the latest version of OpenWrt. ('''With Absolutely NO Warranty''') | ||
Line 58: | Line 58: | ||
[https://github.com/arduino/openwrt-yun-1505 https://github.com/arduino/openwrt-yun-1505] | [https://github.com/arduino/openwrt-yun-1505 https://github.com/arduino/openwrt-yun-1505] | ||
= | = Explore the Yun Profile of the OpenWrt / LEDE Project = | ||
The OpenWrt / LEDE Project, already exist a Arduino Yun Profile. | The OpenWrt / LEDE Project, already exist a Arduino Yun Profile. | ||
[https://git.openwrt.org/?p=source.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=source.git;a=blob;f=target/linux/ar71xx/generic/profiles/arduino.mk;h=8ae5054a7e312213cf872833594b16c0f0237cf1;hb=HEAD target/linux/ar71xx/generic/profiles/arduino.mk] | ||
Line 95: | Line 95: | ||
:Optional package of OpenWrt Project is managed on github. | :Optional package of OpenWrt Project is managed on github. | ||
= | = Explore the OpenWrt-Yun = | ||
== OpenWrt-Yun arduino packages == | == OpenWrt-Yun arduino packages == | ||
LLC edition arduino package: | LLC edition arduino package: | ||
Line 200: | Line 200: | ||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
setenv mtdparts "spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro" | setenv mtdparts "spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro" | ||
setenv bootcmd "run addboard; run addtty; run addparts; run addrootfs; bootm 0x9f050000 || bootm | setenv bootcmd "run addboard; run addtty; run addparts; run addrootfs; bootm 0x9f050000 || bootm 0x9fde0000" | ||
saveenv | saveenv | ||
</syntaxhighlight> | </syntaxhighlight> | ||
memo... | memo memo... be careful | ||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
setenv | setenv board Yun | ||
setenv | setenv mtdparts "spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro" | ||
setenv rootfstype "squashfs,jffs2" | |||
setenv bootargs "console=ttyATH0,250000 board=Yun mem=64M" | |||
setenv noinitrd | |||
</syntaxhighlight> | </syntaxhighlight> | ||
memo... | |||
:setenv serverip ‹tftp-server-ip›; setenv ipaddr ‹yun-board-ip›; | |||
<syntaxhighlight lang="bash" enclose="div"> | <syntaxhighlight lang="bash" enclose="div"> | ||
setenv serverip 192.168.1.10; | |||
setenv | setenv ipaddr 192.168.1.1; | ||
ping 192.168.1.10; | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 241: | Line 235: | ||
== Essential items in the kernel configuration == | == Essential items in the kernel configuration == | ||
'''diffconfig''' | |||
<syntaxhighlight lang="text" enclose="div"> | <syntaxhighlight lang="text" enclose="div"> | ||
CONFIG_TARGET_ar71xx=y | CONFIG_TARGET_ar71xx=y | ||
CONFIG_TARGET_ar71xx_generic=y | CONFIG_TARGET_ar71xx_generic=y | ||
CONFIG_TARGET_ar71xx_generic_DEVICE_arduino-yun=y | |||
CONFIG_ALL_KMODS=y | CONFIG_ALL_KMODS=y | ||
CONFIG_ALL_NONSHARED=y | CONFIG_ALL_NONSHARED=y | ||
CONFIG_DEVEL=y | CONFIG_DEVEL=y | ||
CONFIG_BUILD_PATENTED=y | |||
CONFIG_CCACHE=y | CONFIG_CCACHE=y | ||
CONFIG_IB=y | CONFIG_IB=y | ||
CONFIG_IB_STANDALONE=y | CONFIG_IB_STANDALONE=y | ||
CONFIG_IMAGEOPT=y | CONFIG_IMAGEOPT=y | ||
CONFIG_KERNEL_MIPS_FPU_EMULATOR=y | |||
CONFIG_LIBCURL_COOKIES=y | CONFIG_LIBCURL_COOKIES=y | ||
CONFIG_LIBCURL_FILE=y | CONFIG_LIBCURL_FILE=y | ||
Line 267: | Line 258: | ||
CONFIG_LUCI_LANG_en=y | CONFIG_LUCI_LANG_en=y | ||
CONFIG_MAKE_TOOLCHAIN=y | CONFIG_MAKE_TOOLCHAIN=y | ||
CONFIG_NODEJS_8=y | |||
CONFIG_NODEJS_ICU_NONE=y | |||
CONFIG_OPENSSL_WITH_COMPRESSION=y | CONFIG_OPENSSL_WITH_COMPRESSION=y | ||
CONFIG_OPENSSL_WITH_DEPRECATED=y | CONFIG_OPENSSL_WITH_DEPRECATED=y | ||
Line 295: | Line 286: | ||
CONFIG_PACKAGE_arduinoos=m | CONFIG_PACKAGE_arduinoos=m | ||
CONFIG_PACKAGE_argp-standalone=y | CONFIG_PACKAGE_argp-standalone=y | ||
CONFIG_PACKAGE_avahi-daemon-service-ssh=y | |||
CONFIG_PACKAGE_avahi-dbus-daemon=y | CONFIG_PACKAGE_avahi-dbus-daemon=y | ||
CONFIG_PACKAGE_avahi-dnsconfd=y | CONFIG_PACKAGE_avahi-dnsconfd=y | ||
CONFIG_PACKAGE_avahi-utils=y | |||
CONFIG_PACKAGE_avrdude=y | CONFIG_PACKAGE_avrdude=y | ||
CONFIG_PACKAGE_badblocks=y | |||
CONFIG_PACKAGE_blkid=y | CONFIG_PACKAGE_blkid=y | ||
CONFIG_PACKAGE_block-mount=y | CONFIG_PACKAGE_block-mount=y | ||
CONFIG_PACKAGE_bluez-libs=m | CONFIG_PACKAGE_bluez-libs=m | ||
CONFIG_PACKAGE_bossa=y | CONFIG_PACKAGE_bossa=y | ||
CONFIG_PACKAGE_ca-bundle=y | |||
CONFIG_PACKAGE_ca-certificates=y | CONFIG_PACKAGE_ca-certificates=y | ||
CONFIG_PACKAGE_ciao=y | CONFIG_PACKAGE_ciao=y | ||
Line 317: | Line 306: | ||
CONFIG_PACKAGE_dbus=y | CONFIG_PACKAGE_dbus=y | ||
CONFIG_PACKAGE_dbus-utils=y | CONFIG_PACKAGE_dbus-utils=y | ||
CONFIG_PACKAGE_dosfstools=y | |||
CONFIG_PACKAGE_duktape=m | CONFIG_PACKAGE_duktape=m | ||
CONFIG_PACKAGE_e2fsprogs=y | |||
CONFIG_PACKAGE_fdisk=y | |||
CONFIG_PACKAGE_gnupg=y | CONFIG_PACKAGE_gnupg=y | ||
CONFIG_PACKAGE_hidapi=m | CONFIG_PACKAGE_hidapi=m | ||
CONFIG_PACKAGE_kmod-fs-exfat=m | |||
CONFIG_PACKAGE_kmod-fs-msdos=y | |||
CONFIG_PACKAGE_kmod-fs- | |||
CONFIG_PACKAGE_kmod-fs- | |||
CONFIG_PACKAGE_kmod-fs-vfat=y | CONFIG_PACKAGE_kmod-fs-vfat=y | ||
CONFIG_PACKAGE_kmod-loop=y | CONFIG_PACKAGE_kmod-loop=y | ||
CONFIG_PACKAGE_kmod-nls-cp437=y | CONFIG_PACKAGE_kmod-nls-cp437=y | ||
CONFIG_PACKAGE_kmod-nls-iso8859-1=y | CONFIG_PACKAGE_kmod-nls-iso8859-1=y | ||
CONFIG_PACKAGE_kmod-nls-utf8=y | CONFIG_PACKAGE_kmod-nls-utf8=y | ||
CONFIG_PACKAGE_kmod-scsi-core=y | CONFIG_PACKAGE_kmod-scsi-core=y | ||
CONFIG_PACKAGE_kmod-scsi-generic=y | |||
CONFIG_PACKAGE_kmod-spi-bitbang=y | CONFIG_PACKAGE_kmod-spi-bitbang=y | ||
CONFIG_PACKAGE_kmod-spi-dev=y | CONFIG_PACKAGE_kmod-spi-dev=y | ||
CONFIG_PACKAGE_kmod-spi-gpio=y | CONFIG_PACKAGE_kmod-spi-gpio=y | ||
CONFIG_PACKAGE_kmod-spi-gpio-custom=y | CONFIG_PACKAGE_kmod-spi-gpio-custom=y | ||
CONFIG_PACKAGE_kmod-usb-storage=y | CONFIG_PACKAGE_kmod-usb-storage=y | ||
CONFIG_PACKAGE_libavahi-client=y | CONFIG_PACKAGE_libavahi-client=y | ||
CONFIG_PACKAGE_libavahi-compat-libdnssd=y | CONFIG_PACKAGE_libavahi-compat-libdnssd=y | ||
Line 362: | Line 331: | ||
CONFIG_PACKAGE_libblkid=y | CONFIG_PACKAGE_libblkid=y | ||
CONFIG_PACKAGE_libbz2=y | CONFIG_PACKAGE_libbz2=y | ||
CONFIG_PACKAGE_libcap=y | CONFIG_PACKAGE_libcap=m | ||
CONFIG_PACKAGE_libcomerr=y | |||
CONFIG_PACKAGE_libcurl=y | CONFIG_PACKAGE_libcurl=y | ||
CONFIG_PACKAGE_libdaemon=y | CONFIG_PACKAGE_libdaemon=y | ||
CONFIG_PACKAGE_libdbus=y | CONFIG_PACKAGE_libdbus=y | ||
CONFIG_PACKAGE_libelf1=y | CONFIG_PACKAGE_libelf1=y | ||
CONFIG_PACKAGE_libevdev=m | |||
CONFIG_PACKAGE_libexpat=y | CONFIG_PACKAGE_libexpat=y | ||
CONFIG_PACKAGE_libext2fs=y | |||
CONFIG_PACKAGE_libfdisk=y | |||
CONFIG_PACKAGE_libffi=y | CONFIG_PACKAGE_libffi=y | ||
CONFIG_PACKAGE_libftdi1=y | CONFIG_PACKAGE_libftdi1=y | ||
CONFIG_PACKAGE_libfuse=m | CONFIG_PACKAGE_libfuse=m | ||
CONFIG_PACKAGE_libgdbm=y | CONFIG_PACKAGE_libgdbm=y | ||
CONFIG_PACKAGE_libiwinfo-lua=y | CONFIG_PACKAGE_libiwinfo-lua=y | ||
CONFIG_PACKAGE_liblua=y | CONFIG_PACKAGE_liblua=y | ||
CONFIG_PACKAGE_liblucihttp=y | |||
CONFIG_PACKAGE_liblucihttp-lua=y | |||
CONFIG_PACKAGE_liblzma=m | |||
CONFIG_PACKAGE_libncurses=y | CONFIG_PACKAGE_libncurses=y | ||
CONFIG_PACKAGE_libopenssl=y | CONFIG_PACKAGE_libopenssl=y | ||
CONFIG_PACKAGE_libpam=m | CONFIG_PACKAGE_libpam=m | ||
Line 385: | Line 357: | ||
CONFIG_PACKAGE_libreadline=y | CONFIG_PACKAGE_libreadline=y | ||
CONFIG_PACKAGE_librt=y | CONFIG_PACKAGE_librt=y | ||
CONFIG_PACKAGE_libsmartcols=y | |||
CONFIG_PACKAGE_libss=y | |||
CONFIG_PACKAGE_libstdcpp=y | CONFIG_PACKAGE_libstdcpp=y | ||
CONFIG_PACKAGE_libubus-lua=y | CONFIG_PACKAGE_libubus-lua=y | ||
CONFIG_PACKAGE_libudev-fbsd=m | |||
CONFIG_PACKAGE_libusb-1.0=y | CONFIG_PACKAGE_libusb-1.0=y | ||
CONFIG_PACKAGE_libusb-compat=y | CONFIG_PACKAGE_libusb-compat=y | ||
Line 393: | Line 367: | ||
CONFIG_PACKAGE_libuuid=y | CONFIG_PACKAGE_libuuid=y | ||
CONFIG_PACKAGE_logrotate=m | CONFIG_PACKAGE_logrotate=m | ||
CONFIG_PACKAGE_lua=y | CONFIG_PACKAGE_lua=y | ||
CONFIG_PACKAGE_lua-base64=m | CONFIG_PACKAGE_lua-base64=m | ||
Line 416: | Line 389: | ||
CONFIG_PACKAGE_luci-theme-bootstrap=y | CONFIG_PACKAGE_luci-theme-bootstrap=y | ||
CONFIG_PACKAGE_luci-theme-openwrt=y | CONFIG_PACKAGE_luci-theme-openwrt=y | ||
CONFIG_PACKAGE_mg= | CONFIG_PACKAGE_mg=y | ||
CONFIG_PACKAGE_nano=y | CONFIG_PACKAGE_nano=y | ||
CONFIG_PACKAGE_node=m | CONFIG_PACKAGE_node=m | ||
CONFIG_PACKAGE_node-actions-on-google=m | |||
CONFIG_PACKAGE_node-alexa-app=m | CONFIG_PACKAGE_node-alexa-app=m | ||
CONFIG_PACKAGE_node-alexa-sdk=m | CONFIG_PACKAGE_node-alexa-sdk=m | ||
CONFIG_PACKAGE_node-arduino-firmata=m | CONFIG_PACKAGE_node-arduino-firmata=m | ||
CONFIG_PACKAGE_node-authenticate-pam=m | CONFIG_PACKAGE_node-authenticate-pam=m | ||
Line 437: | Line 410: | ||
CONFIG_PACKAGE_node-bleno=m | CONFIG_PACKAGE_node-bleno=m | ||
CONFIG_PACKAGE_node-bluetooth-hci-socket=m | CONFIG_PACKAGE_node-bluetooth-hci-socket=m | ||
CONFIG_PACKAGE_node-browserify=m | CONFIG_PACKAGE_node-browserify=m | ||
CONFIG_PACKAGE_node-bufferutil=m | |||
CONFIG_PACKAGE_node-coap=m | CONFIG_PACKAGE_node-coap=m | ||
CONFIG_PACKAGE_node-cpx=m | CONFIG_PACKAGE_node-cpx=m | ||
Line 447: | Line 420: | ||
CONFIG_PACKAGE_node-eddystone-beacon=m | CONFIG_PACKAGE_node-eddystone-beacon=m | ||
CONFIG_PACKAGE_node-ejdb=m | CONFIG_PACKAGE_node-ejdb=m | ||
CONFIG_PACKAGE_node-epoll=m | |||
CONFIG_PACKAGE_node-exorcist=m | |||
CONFIG_PACKAGE_node-express=m | CONFIG_PACKAGE_node-express=m | ||
CONFIG_PACKAGE_node-ffi=m | |||
CONFIG_PACKAGE_node-firmata=m | CONFIG_PACKAGE_node-firmata=m | ||
CONFIG_PACKAGE_node-forever=m | CONFIG_PACKAGE_node-forever=m | ||
CONFIG_PACKAGE_node-fuse-bindings=m | CONFIG_PACKAGE_node-fuse-bindings=m | ||
CONFIG_PACKAGE_node-hap-nodejs=m | |||
CONFIG_PACKAGE_node-hashmap=m | CONFIG_PACKAGE_node-hashmap=m | ||
CONFIG_PACKAGE_node-hashtable=m | CONFIG_PACKAGE_node-hashtable=m | ||
Line 472: | Line 449: | ||
CONFIG_PACKAGE_node-muzzley-client=m | CONFIG_PACKAGE_node-muzzley-client=m | ||
CONFIG_PACKAGE_node-nconf=m | CONFIG_PACKAGE_node-nconf=m | ||
CONFIG_PACKAGE_node-net-ping=m | |||
CONFIG_PACKAGE_node-nino-io=m | CONFIG_PACKAGE_node-nino-io=m | ||
CONFIG_PACKAGE_node-nitrogen=m | CONFIG_PACKAGE_node-nitrogen=m | ||
Line 479: | Line 457: | ||
CONFIG_PACKAGE_node-node-expat=m | CONFIG_PACKAGE_node-node-expat=m | ||
CONFIG_PACKAGE_node-node-hid=m | CONFIG_PACKAGE_node-node-hid=m | ||
CONFIG_PACKAGE_node-node-inspect=m | |||
CONFIG_PACKAGE_node-node-lambda=m | CONFIG_PACKAGE_node-node-lambda=m | ||
CONFIG_PACKAGE_node-node-red=m | CONFIG_PACKAGE_node-node-red=m | ||
Line 486: | Line 465: | ||
CONFIG_PACKAGE_node-node-static=m | CONFIG_PACKAGE_node-node-static=m | ||
CONFIG_PACKAGE_node-npm=m | CONFIG_PACKAGE_node-npm=m | ||
CONFIG_PACKAGE_node- | CONFIG_PACKAGE_node-npm-check-updates=m | ||
CONFIG_PACKAGE_node-onoff=m | CONFIG_PACKAGE_node-onoff=m | ||
CONFIG_PACKAGE_node-pm2=m | CONFIG_PACKAGE_node-pm2=m | ||
Line 503: | Line 482: | ||
CONFIG_PACKAGE_node-statvfs=m | CONFIG_PACKAGE_node-statvfs=m | ||
CONFIG_PACKAGE_node-twilio=m | CONFIG_PACKAGE_node-twilio=m | ||
CONFIG_PACKAGE_node-typescript=m | |||
CONFIG_PACKAGE_node-uglify-js=m | CONFIG_PACKAGE_node-uglify-js=m | ||
CONFIG_PACKAGE_node-usb=m | CONFIG_PACKAGE_node-usb=m | ||
CONFIG_PACKAGE_node-utf-8-validate=m | |||
CONFIG_PACKAGE_node-ws=m | CONFIG_PACKAGE_node-ws=m | ||
CONFIG_PACKAGE_node-xmpp=m | CONFIG_PACKAGE_node-xmpp=m | ||
Line 516: | Line 497: | ||
CONFIG_PACKAGE_python-light=y | CONFIG_PACKAGE_python-light=y | ||
CONFIG_PACKAGE_python-logging=y | CONFIG_PACKAGE_python-logging=y | ||
CONFIG_PACKAGE_python-netifaces=m | |||
CONFIG_PACKAGE_python-openssl=y | CONFIG_PACKAGE_python-openssl=y | ||
CONFIG_PACKAGE_python-paho-mqtt=y | CONFIG_PACKAGE_python-paho-mqtt=y | ||
CONFIG_PACKAGE_python-pyserial=y | CONFIG_PACKAGE_python-pyserial=y | ||
CONFIG_PACKAGE_python-xml=y | CONFIG_PACKAGE_python-xml=y | ||
CONFIG_PACKAGE_querierd=m | |||
CONFIG_PACKAGE_reset-serial=y | CONFIG_PACKAGE_reset-serial=y | ||
CONFIG_PACKAGE_rng-tools=y | CONFIG_PACKAGE_rng-tools=y | ||
CONFIG_PACKAGE_rpcd=y | CONFIG_PACKAGE_rpcd=y | ||
CONFIG_PACKAGE_rpcd-mod-rrdns=y | |||
CONFIG_PACKAGE_shellinabox=m | CONFIG_PACKAGE_shellinabox=m | ||
CONFIG_PACKAGE_spacebrew=y | CONFIG_PACKAGE_spacebrew=y | ||
CONFIG_PACKAGE_strace=y | |||
CONFIG_PACKAGE_swap-utils=y | CONFIG_PACKAGE_swap-utils=y | ||
CONFIG_PACKAGE_temboo=y | CONFIG_PACKAGE_temboo=y | ||
CONFIG_PACKAGE_terminfo=y | CONFIG_PACKAGE_terminfo=y | ||
CONFIG_PACKAGE_tune2fs=y | |||
CONFIG_PACKAGE_uSDaemon=m | CONFIG_PACKAGE_uSDaemon=m | ||
CONFIG_PACKAGE_uboot-ar71xx-linino-yun=y | CONFIG_PACKAGE_uboot-ar71xx-linino-yun=y | ||
Line 543: | Line 529: | ||
CONFIG_VERSION_BUG_URL="" | CONFIG_VERSION_BUG_URL="" | ||
CONFIG_VERSION_CODE="" | CONFIG_VERSION_CODE="" | ||
CONFIG_VERSION_DIST=" | CONFIG_VERSION_DIST="OpenWrt" | ||
CONFIG_VERSION_HOME_URL="" | |||
CONFIG_VERSION_HWREV="1.0" | CONFIG_VERSION_HWREV="1.0" | ||
CONFIG_VERSION_MANUFACTURER="Arduino" | CONFIG_VERSION_MANUFACTURER="Arduino" | ||
CONFIG_VERSION_MANUFACTURER_URL="" | CONFIG_VERSION_MANUFACTURER_URL="" | ||
CONFIG_VERSION_NUMBER="" | CONFIG_VERSION_NUMBER="" | ||
CONFIG_VERSION_PRODUCT="Arduino Yun" | CONFIG_VERSION_PRODUCT="Arduino Yun" | ||
CONFIG_VERSION_REPO=" | CONFIG_VERSION_REPO="https://downloads.openwrt.org/snapshots" | ||
CONFIG_VERSION_SUPPORT_URL="" | CONFIG_VERSION_SUPPORT_URL="" | ||
CONFIG_uhttpd_lua=y | |||
# CONFIG_VERSION_CODE_FILENAMES is not set | |||
# CONFIG_VERSION_FILENAMES is not set | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 877: | Line 866: | ||
e2fsck -t -y -f -c /dev/sda2 | e2fsck -t -y -f -c /dev/sda2 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== YunFirstConfig == | |||
https://www.arduino.cc/en/Tutorial/YunFirstConfig | |||
https://github.com/arduino-libraries/Bridge/tree/master/examples/YunFirstConfig | |||
== Luci and arduino-webpanel == | |||
https://github.com/arduino/lede-yun/commit/565508f99cc8922d55b47554de98f7dcb441a461#diff-f2fe3255fb192223dd3dbef288fe215f | |||
== mDNS == | == mDNS == |