OpenWrt for Arduino Yun cheat sheet: Difference between revisions

Jump to navigation Jump to search
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
OpenWrt running on Atheros AR9331 of Arduino Yun, LLC edition OpenWrt-Yun also Linino, is in obsolete (and has security issues) at kernel and various packages. I will dig on how to upgrade to the latest version of OpenWrt. ('''With Absolutely NO Warranty''')
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]


= Investigate the Yun Profile of the OpenWrt / LEDE Project =
= 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.


= Investigate the OpenWrt-Yun =
= 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 0x9fea0000"
setenv bootcmd "run addboard; run addtty; run addparts; run addrootfs; bootm 0x9f050000 || bootm 0x9fde0000"
saveenv
saveenv
</syntaxhighlight>
</syntaxhighlight>


memo...
memo memo... be careful
:setenv serverip ‹tftp-server-ip›; setenv ipaddr ‹yun-board-ip›;
 
<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
setenv serverip 192.168.0.101;
setenv board Yun
setenv ipaddr 192.168.0.120;
setenv mtdparts "spi0.0:256k(u-boot)ro,64k(u-boot-env),15936k(firmware),64k(nvram),64k(art)ro"
ping 192.168.0.101;
setenv rootfstype "squashfs,jffs2"
setenv bootargs "console=ttyATH0,250000 board=Yun mem=64M"
setenv noinitrd
</syntaxhighlight>
</syntaxhighlight>


<syntaxhighlight lang="bash" enclose="div">
 
tftp 0x80060000 lede-ar71xx-generic/lede-ar71xx-generic-uImage-lzma.bin;
 
erase 0x9FDE0000 +$filesize;
memo...
cp.b $fileaddr 0x9FDE0000 $filesize;
:setenv serverip ‹tftp-server-ip›; setenv ipaddr ‹yun-board-ip›;
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">
<syntaxhighlight lang="bash" enclose="div">
saveenv
setenv serverip 192.168.1.10;
setenv console ttyATH0,250000
setenv ipaddr 192.168.1.1;
saveenv
ping 192.168.1.10;
reset
</syntaxhighlight>
</syntaxhighlight>


Navigation menu