OpenWRT on Aerohive AP121

OpenWRT is supported on the AP121 but it takes a little bit more work than usual, requiring a console cable and TFTP flash. As of this writing, the latest compiled version is OpenWRT 19.07.

These instructions are duplicated from this git commit:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=10d11859dfbad0b4482d1a50b20ef91eeeeca2d7

Prerequsites

  • RJ45 console cable - “cisco style”
  • Network with DHCP server
  • TFTP server
  • Power supply (12v/1A N-type connector or PoE)
  • AP121

Flashing

  1. Connect the AP121 to your computer using the console cable
  2. Open a console program (teraterm, putty, etc.) to 9600,8,n,1
  3. Power on (or reset) the device, press spacebar when instructed to halt the boot process
  4. Enter password of “AhNf?d@ta06” or “administrator” when prompted
  5. Connect to a live network with a dhcp server (can probably statically set an IP, I don't know how though)
  6. Pull an address from DHCP
    dhcp;
  7. Set your TFTP server's IP:
    setenv YOUR_TFTP_SERVER_IP tftp-server-ip;
  8. Download the image:
    tftpboot 0x81000000 openwrt-19.07.7-ar71xx-nand-hiveap-121-squashfs-factory.bin;
  9. erase the NAND and write in the new image:
    nand erase 0x800000 0x800000;
    nand write 0x81000000 0x800000 0x800000;
  10. Reboot the unit:
    reset;

    Note! It will probably reboot a few times before starting OpenWRT. This is expected, just let it loop a few times until you see OpenWRT start. If it never starts, try flashing the unit again. Once the OpenWRT boot text stops scrolling, press enter to activate the console. There is no root password by default, so you will be dropped directly into a BusyBox shell.

Configuration

Upon first boot with OpenWRT, the AP121 will not be particularly useful. Some reconfiguration is needed to set it up as a wireless access point, such as disabling the DHCP/DNS services running on eth0.

First, edit the network configuration file:

vi /etc/config/network

and change the 'lan' block to the following:

config interface 'lan'
        option ifname 'eth0'
        option proto 'dhcp'

Save the file, then execute the following to restart the network stack:

service network restart

After a few seconds, check to see if the device has picked up an IP from your DHCP server:

ip a

If you have an IP address, you can open it in a web browser and continue to configure OpenWRT from there.

aerohibe_ap121_openwrt.txt · Last modified: 2021/07/28 18:23 by john
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0