Successful Compile CC LuCi AR300M

I have successfully compiled a clean version of CC and LuCi on an AR300M. It is routing traffic.

I used @alzhao’s instructions. I have found that, on these tech blogs, the documentation isn’t really clear.

My next step is to load an OpenVPN server, and a Samba server.

so everything works good?

@alzhao,

It is working well. LuCi is up and I am learning how to manipulate the interfaces. I am routing traffic. But I am having trouble loading OpenVPN.

From the clean install, with interfaces enabled, I PuTTy into the SSH and run the following commands:

opkg update
opkg install openvpn-openssl luci-app-openvpn

I get:

Installing openvpn-openssl (2.3.6-5) to root…
Downloading http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/nand/packages/base/openvpn-openssl_2.3.6-5_ar71xx.ipk.
Package luci-app-openvpn (git-15.248.30277-3836b45-1) installed in root is up to date.
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for openvpn-openssl:
  •  kernel (= 3.18.20-1-a44d8090b8f752ec1d96871dbbb8988a) *
    
  • opkg_install_cmd: Cannot install package openvpn-openssl

When I gor to LuCi–>Services–>OpenVPN, it get:

/usr/lib/lua/luci/dispatcher.lua:433: Failed to execute cbi dispatcher target for entry '/admin/services/openvpn'.
The called action terminated with an exception:
/usr/lib/lua/luci/cbi.lua:311: Unable to read UCI data: openvpn
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:433: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:168: in function </usr/lib/lua/luci/dispatcher.lua:167>

OpenVPN doesn't seem to be loading.

well, if you compile your own firmware, you have to compile these kernel modules in your firmware. Otherwise you will have a kernel mismatch problem like this.

So, please compile openvpn directly in the firmware.

http://www.gl-inet.com/firmware/ar300m/nand/clean/1.0/

AR300M Nand clean firmware is here. It is backed with full software repo.

Hi.
Can you kindly elaborate on the meaning of “clean” (from the readme: “clean” contains a clean firmware with minimal packages, with LuCI installed).

Is it simply OpenWRT with Luci and not any Gli “stuff”?
Also, does it have OpenVPN integrated?

Glitch

OK, I answered this myself by trying it out.

Clean appears to be an OpenWRT firmware with Luci, without the Gli GUI.
OpenVPN has to be installed manually, which is normal for an OpenWRT image.

Yes, clean means:

  1. Built from OpenWrt source code without any proprietary things from anybody
  2. With Luci, without any other things
  3. With full software repo backed from GLI so that you can install anything by yourself
  4. You have to trust our binary files