Daily Archives: 2018-05-15

VoCore2: Port mt7628.ko to LuCI 8

Install LuCI to the firmware, get some errors:

Tue May 15 00:07:30 2018 daemon.notice netifd: Interface 'wan' has link connectivity
Tue May 15 00:07:30 2018 daemon.notice netifd: radio0 (844): uci: Parse error (too many arguments) at line 24, byte 24
Tue May 15 00:07:30 2018 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Tue May 15 00:11:10 2018 daemon.err uhttpd[794]: luci: accepted login on / for root from 192.168.61.231
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/dispatcher.lua:509: Failed to execute arcombine dispatcher target for entry '/admin/network/network/wwan'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: The called action terminated with an exception:
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/nsection'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/ucisection'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tabcontainer'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/network_ifacelist'.
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/model/network.lua:1277: bad argument #4 to '?' (no value)
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: stack traceback:
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: 	[C]: in function 'assert'
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:509: in function 'dispatch'
Tue May 15 00:11:23 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:127: in function 
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/dispatcher.lua:509: Failed to execute arcombine dispatcher target for entry '/admin/network/network/wwan'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: The called action terminated with an exception:
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/nsection'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/ucisection'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tabcontainer'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/network_ifacelist'.
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/model/network.lua:1277: bad argument #4 to '?' (no value)
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: stack traceback:
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: 	[C]: in function 'assert'
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:509: in function 'dispatch'
Tue May 15 00:12:19 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:127: in function 
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/dispatcher.lua:509: Failed to execute arcombine dispatcher target for entry '/admin/network/network/lan'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: The called action terminated with an exception:
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/nsection'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/ucisection'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tabcontainer'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/network_ifacelist'.
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/model/network.lua:1277: bad argument #4 to '?' (no value)
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: stack traceback:
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: 	[C]: in function 'assert'
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:509: in function 'dispatch'
Tue May 15 00:12:28 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:127: in function 
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/dispatcher.lua:509: Failed to execute arcombine dispatcher target for entry '/admin/network/network/lan'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: The called action terminated with an exception:
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/map'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/nsection'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/ucisection'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/tabcontainer'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/template.lua:97: Failed to execute template 'cbi/network_ifacelist'.
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: A runtime error occured: /usr/lib/lua/luci/model/network.lua:1277: bad argument #4 to '?' (no value)
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: stack traceback:
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: 	[C]: in function 'assert'
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:509: in function 'dispatch'
Tue May 15 00:19:48 2018 daemon.err uhttpd[794]: 	/usr/lib/lua/luci/dispatcher.lua:127: in function 
Tue May 15 00:38:37 2018 daemon.info dnsmasq-dhcp[1152]: DHCPREQUEST(br-lan) 192.168.61.231 78:4f:43:5b:75:57
Tue May 15 00:38:37 2018 daemon.info dnsmasq-dhcp[1152]: DHCPACK(br-lan) 192.168.61.231 78:4f:43:5b:75:57 Vongers-MBP-2
Tue May 15 00:38:37 2018 daemon.warn odhcpd[705]: DHCPV6 SOLICIT IA_NA from 00010001217b622f784f435b7557 on br-lan: ok fd2d:f637:12aa::4e9/128
Tue May 15 00:38:38 2018 daemon.warn odhcpd[705]: DHCPV6 REQUEST IA_NA from 00010001217b622f784f435b7557 on br-lan: ok fd2d:f637:12aa::4e9/128

I did not install iwinfo, so that should be one of the problem.
LuCI netdev interface can not be edit, that should be something missed.

VoCore2: Setup OpenWrt in MacOS 10.13

Just copy from openwrt official site.

I used to use port but brew looks better now.

First, install brew.

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

It is broken when I install it, need to set privilege for some folders, you can call “brew doctor” to get instruction then fix it or search google 🙂

brew install coreutils diffutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz gnu-time

note: in my macbook, I find getopt do not support –long. Looks like default it will find the getopt from MacOS (/usr/bin) but not the one from brew.

add this line to your ~/.profile, so system will search and use gnu-getopt first.(this path will be different if version of getopt changed)

export PATH="/usr/local/Cellar/gnu-getopt/1.1.6/bin:$PATH"

Then make a virtual disk by disk-utils, must be case sensitive disk, size around 20GB.

Clone openwrt latest version from github to the new disk.

git clone https://github.com/openwrt/openwrt.git

Then make menuconfig, everything will work.

If you want install mt7628.ko into the firmware, follow the tutorial at https://github.com/vonger/vocore2