After more than 10 years in use and licensing issues we decided to replace our WiFi installation consisting of about 40 Aerohive AP121 newer models.
Because all APs are still able to work, we thought about the future use of our devices. As we already use a lot of open source software, we thought it would be nice if also our APs are running with Linux and this is actually possible with OpenWRT!
It's more or less a summary and an experience report from our side!
Model | AP121 |
CPU | Atheros AR9344 |
CPU MHz | 560 |
Flash MB | 1, 128 NAND |
RAM MB | 128 |
WLAN Hardware | Atheros AR9344, Atheros AR9382 |
WLAN 2.4GHz | b/g/n |
WLAN 5.0GHz | a/n |
Ethernet 100Mbit ports | - |
Ethernet 1Gbit ports | 1 |
RJ45 console ports | 1 |
USB ports | 1 |
Concerning hardware the OpenWRT wiki says:
ath79/generic
subtarget and a bit confusingly only carries ap121 in OpenWrt filenames. Files for the Aerohive AP121 can be found in the ath79/nand
subtarget and contain the string hiveap-121
.
Firstly confirm that the AP you want to flash OpenWRT on has one of the following firmware versions:
You can either do this via the serial console which is also required later, or more easy within your old HiveManager.
Bootloader versions v1.0.0.25 and lower have been reported to fail!
To host the image for the AP we going to use a TFTP-Server: you can either use Pumpkin TFTP, TFTPD64 or SolarWind's TFTP-Server.
We also need a serial console terminal: here PuTTY:
And the OpenWRT image for the AP: Therefore open this URL: downloads.openwrt.org/releases/ select the release to install and then navigate to <version>/targets/ath79/nand
. There should be an image named aerohive_hiveap-121-squashfs-factory.bin
. Use the factory
-image for firsttime install, not the sysupgrade
-image.
192.168.1.10
with netmask 255.255.255.0
as static ip for the RJ45-interface of the PC you want to use.C:\Program Files\Klever\Nothings\PumpKIN.exe
. Select Options
and set the root path
to the directory where the OpenWRT-image was saved. It's recommended to rename the image file to something more simple like openwrt.bin
because this makes it easier to type the name into the console later.Device Manager
and select Ports
, there you should see an interface like COM1
or COM3
. Select this interface in PuTTY as it is your serial cable to the AP.Serial
, type in the Serial line
(e.g. COM1
) and set the speed/baudrate to 9600
. Then open the connection.AhNf?d@ta06
or administrator
. Here to copy:AhNf?d@ta06
v1.0.0.25
everything is ok: version
<name-of-firmware-image>
with openwrt.bin
or the name you gave the firmware file:tftpboot 0x81000000 <name-of-firmware-image>
nand erase 0x800000 0x7400000
0x800000
is the flash memory address in the Access Point. 0x7400000
is the filesize. This is important later.nand write 0x81000000 0x800000 0x7400000
0x8100000
is the memory address that the OpenWRT image is stored in. 0x800000
is the flash memory address for the Access Point. 0x7400000
is the filesize.reset
During first reboot, if the AP was booting via its secondary backup flash chip located at 0xd00000
then the boot may fail with a Bad Magic number error. Do not panic, allow the boot process to fail 3 times, after which the AP will then default to booting from 0x800000 and should boot OpenWRT Normally.
192.168.1.1
it should load the LuCI-webinterface of OpenWRT. The default password for OpenWRT is passwd
. Network > Wireless
you can change the WiFi/Network config.Network > Interfaces
, edit br-lan
and change the protocol to DHCP
. Additionally disable the firewall by switching to the Firewall
-tab and under Create/Assign firewall zone
select unspecified
. Then press Save and Apply
For troubleshooting and more information check the OpenWRT wiki: openwrt.org - AP121 or visit github.com - NWSpitfire - AP121 OpenWRT Install from which some parts of this tutorial are sourced.
It might also be possible to flash OpenWRT on AP122, but we haven't tested this yet:
github.com - Aerohacking - AP122
Also have a look at other tutorials concerning Aerohive and OpenWRT:
Sources used: