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?
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 install openvpn-openssl luci-app-openvpn
Installing openvpn-openssl (2.3.6-5) to root…
Package luci-app-openvpn (git-15.248.30277-3836b45-1) installed in root is up to date.
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
[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.
AR300M Nand clean firmware is here. It is backed with full software repo.
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?
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.