7,137
edits
No edit summary |
|||
(29 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> | ||