/openwrt-yun-build-extra

Additional files and scripts for building OpenWrt-Yun (OpenWrt / LEDE).

Primary LanguageLuaGNU General Public License v2.0GPL-2.0

OpenWrt/LEDE for Arduino Yún (+LininoOS)

Description

OpenWrt/LEDE for Arduino Yún : trunk (Bleeding Edge / Reboot)

Extra files and scripts for building OpenWrt-Yun (+LininoOS).

BusyBox v1.25.1 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (17.01-SNAPSHOT, r3401-e02b12c)
    \________\/    -----------------------------------------------------------

root@Arduino:~# cat /proc/cpuinfo
system type             : Atheros AR9330 rev 1
machine                 : Arduino Yun
processor               : 0
cpu model               : MIPS 24Kc V7.4
BogoMIPS                : 265.42
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 16
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

License

See:

Reference

Build

READ FIRST

Do everything as normal user, don't use root user or sudo!

Do not build in a directory that has spaces(and non ASCII characters) in its full path

mkdir Build_Path_Some_Where
cd Build_Path_Some_Where
git clone https://github.com/openwrt/openwrt.git
git clone --depth=1 --branch master --single-branch https://github.com/nxhack/openwrt-yun-build-extra.git
cd openwrt
ln -s ../openwrt-yun-build-extra/* .
./build.sh

Please modify /etc/opkg/distfeeds.conf

Enjoy!

Breaking changes

To use the new partitioning, you need to update your U-Boot env in advance:

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"
saveenv

Luci and Arduino WebPanel

The latest version of luci does not work with arduino-webpanel. Unfortunately unable to fix, downgrade to lede-17.01 branch. (or use YunFirstConfig)

After setting Yun, upgrade the luci package to the latest version.

Yún First Configuration

How to connect to a WiFi network with your Yún device using the Serial Monitor as the communication interface during the whole process.

REST API ACCESS

REST API using Web Basic Authentication does not work with the latest version of luci.

Behind the scenes