Hi! I've found an old Linksys Wrt54gl Router (hardware version 1.1) in a drawer. Before throwing it to trash I've decided to dust it off and try to do something useful using it. I have many APs for testing purposes but none of them is capable of act as a enterprise wifi network. I can do that using a Raspberry pi, but it could be awesome to achieve it using this old router if possible. If finally I get it, that could save me some time each time I need to test something on an Enterprise network environment.
Goal: to create a wifi network acting as enterprise network using freeradius.
Difficulties: very few space on the device, is pretty old. It seems to install freeradius2 package and all its dependencies is not easy.
What I've tried so far:
-1st fail: Using the latest available openwrt firmware for this old router (backfire 10.03.1) from this link: https://archive.openwrt.org/backfire/10.03.1/brcm-2.4/openwrt-wrt54g-squashfs.bin I tried to uninstall some packages using opkg but no matters what I uninstall... it seems that freeradius2, libopenssl, wpad (instead of wpad-mini) and some more are impossible to install. I always "break" the router uninstalling something essential and it breaks... otherwise is impossible to install all I need. So fail this way...
-2nd fail: I've decided to create a custom firmware version using imagebuilder following this guide: https://openwrt.org/docs/guide-user/additional-software/imagebuilder?do=profile . Downloaded the imagebuilder (https://archive.openwrt.org/backfire/10.03.1/brcm-2.4/OpenWrt-ImageBuilder-brcm-2.4-for-Linux-i686.tar.bz2) and started to play.
The first problem I found was that on modern Linux, the image builder is not working. No problem, I downloaded an ancient Ubuntu iso and created a virtual machine for that. Now I can use it and compile my custom stuff. Great! we are on the road... I started to "play" creating different adding and removing packages. I've read that the created bin file must have a size lower than 3866624 bytes and mine has 3153920 so we are good! but when I try to flash the image through the GUI, it shows an error saying "The uploaded image file does not contain a supported format. Make sure that you choose the generic image format for your platform".
Not sure what can be happening. I'm pretty sure that I've downloaded the right stuff for the right version for the right model... I'll paste my build command, maybe it could be useful to know what is happening. In this way you'll see the packages I'm trying to use:
make image PROFILE=brcm-2.4 PACKAGES="luci luci-app-firewall luci-i18n-english luci-lib-core luci-lib-ipkg luci-lib-lmo luci-lib-nixio luci-lib-sys luci-lib-web luci-mod-admin-core luci-mod-admin-full luci-proto-core luci-proto-ppp luci-sgi-cgi luci-theme-base luci-theme-openwrt uhttpd base-files dropbear openssh-sftp-server busybox dnsmasq iptables wpad ip -ppp-mod-pppoe -ppp -kmod-pppoe -kmod-ppp kernel kmod-crypto-aes kmod-switch wireless-tools libiwinfo nvram opkg libltdl libopenssl freeradius2 freeradius2-mod-eap freeradius2-mod-chap freeradius2-mod-eap-gtc freeradius2-mod-eap-peap freeradius2-mod-eap-tls freeradius2-mod-eap-ttls freeradius2-mod-pap freeradius2-mod-mschap freeradius2-mod-eap-mschapv2 freeradius2-mod-eap-md5 freeradius2-mod-exec freeradius2-mod-files freeradius2-mod-radutmp"
As you can see on this command, the profile selected is the right one (brcm-2.4) and the compliation finish ok without errors. The resulting bin file I'm using is called "openwrt-wrt54g-squashfs.bin". It is called in the same way as the file I can download and flash flawlessly from the link I pasted before on this post.
Maybe am I missing some essential package? Any help? Thanks!