OpenWrt for Arduino Yun cheat sheet: Difference between revisions

No edit summary
 
(28 intermediate revisions by the same user not shown)
OpenWrt runningwhich runs on the Atheros AR9331AR 9331 of Arduino Yun, LLC edition OpenWrt-Yun also Linino, is in obsolete (andin has security issues) atthe 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''')
 
 
[https://github.com/arduino/openwrt-yun-1505 https://github.com/arduino/openwrt-yun-1505]
 
= InvestigateExplore the Yun Profile of the OpenWrt / LEDE Project =
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]
:Optional package of OpenWrt Project is managed on github.
 
= InvestigateExplore the OpenWrt-Yun =
== OpenWrt-Yun arduino packages ==
LLC edition arduino package:
<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 bootcmd "run addboard; run addtty; run addparts; run addrootfs; bootm 0x9f050000 || bootm 0x9fea00000x9fde0000"
saveenv
</syntaxhighlight>
 
memo memo... be careful
:setenv serverip ‹tftp-server-ip›; setenv ipaddr ‹yun-board-ip›;
 
<syntaxhighlight lang="bash" enclose="div">
setenv serveripboard 192.168.0.101;Yun
setenv mtdparts "spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro"
setenv ipaddr 192.168.0.120;
setenv rootfstype "squashfs,jffs2"
ping 192.168.0.101;
setenv bootargs "console=ttyATH0,250000 board=Yun mem=64M"
setenv noinitrd
</syntaxhighlight>
 
 
<syntaxhighlight lang="bash" enclose="div">
 
tftp 0x80060000 lede-ar71xx-generic/lede-ar71xx-generic-uImage-lzma.bin;
memo...
erase 0x9FDE0000 +$filesize;
:setenv serverip ‹tftp-server-ip›; setenv ipaddr ‹yun-board-ip›;
cp.b $fileaddr 0x9FDE0000 $filesize;
tftp 0x80060000 lede-ar71xx-generic/lede-ar71xx-generic-root.squashfs;
erase 0x9F050000 +$filesize;
cp.b $fileaddr 0x9F050000 $filesize;
reset
</syntaxhighlight>
 
<syntaxhighlight lang="bash" enclose="div">
setenv ipaddrserverip 192.168.01.12010;
saveenv
setenv consoleipaddr ttyATH0,250000192.168.1.1;
ping 192.168.01.10110;
saveenv
reset
</syntaxhighlight>