We ran into a lot of issues attempting to flash the AREDN firmware onto Mikrotik hAP ac3's and Ubiquiti Nanobeam 5AC Gen2's, but ultimately prevailed:
hAP ac3
- Downloaded TinyPXE Server from http://labalec.fr/erwan/?page_id=958
- Downloaded hAP stable firmware (Kernel and Sysupgrade) from https://downloads.arednmesh.org/afs/www/
- Left laptop's ethernet adapater to automatic IP address via DHCP
- Connected laptop to router (not its WAN port)
- Configured simple router:
- Disabled wireless (to decrease boot time)
- Programmed router's IP address to 192.168.1.253
- Programmed router's DHCP server IP pool for 192.168.1.2 to 192.168.1.100
- Without power to the hAP, connected the hAP's WAN port (port 1) to the router (not its WAN port)
- Confirmed TinyPXE Server's config.ini, [dhcp] section includes "rfc951=1"
- Copied the hAP's Kernel file into TinyPXE Server's files/rb.elf
- Mistake: I initially copied in the hAP aclite Kernel file instead, as I was updating my personal node. In a later step, flashing fails, as the hAP ac3 knows that it is incompatible with the aclite firmware.
- Ran TinyPXE Server and configured per AREDN configuration instructions:
- In Option 54 (DHCP Server), selected the IP address of my laptop's Ethernet adapter (192.168.1.2)
- Checked "Bind IP"
- Boot file, used the file picker to select "files/rb.elf"
- Boot file, unchecked "Filename if user-class=gPXE or iPXE"
- Clicked "Online"
- Held the ac3's Reset button and plugged it into its power supply. Released the Reset button once the "TFTPd: DoReadFile: rb.elf" message was displayed in TinyPXE.
- Waited until the messages stopped, including 2 ACKs.
- Disconnected the ac3 and laptop from the router. Plugged the laptop into the ac3 (not its WAN port this time).
- Navigated in Chrome to the ac3's webpage at http://localnode.local.mesh
- Fed it the Sysupgrade file, allowing it to upload to the ac3, reboot twice, and then return to http://localnode.local.mesh
- Set the node name (e.g., KK6SF-KIT01-HAP) and admin password
- Mistake, maybe: Save and reboot
- Correct move: Configure other settings (disable mesh RF, configure LAN access point) as well, save; Advanced Config, enable PoE passthrough, save; then reboot
- Bruce thought prior Cache was getting in the way. Earlier, setting changes weren't taking. After entering them and clicking Save, I would get a "site cannot be reached" error. Running in Incognito mode was successful though.
Nanobeam
- Confirmed that SCP and SSH were installed.
- Download the NanoBeam AC Gen2 (not the XC version) Factory file from https://downloads.arednmesh.org/afs/www/
- Issue: Had issues with the stable 3.24.6.0 version, so switched to the 20240921 nightly. Might not have been an issue with the version, and more of the process, in hindsight.
- Connected laptop to router (not its WAN port)
- Router was configured the same as for the ac3
- Connected the router (not its WAN port) to PoE injector's Ethernet port
- Connected the PoE injector's PoE Out port to the nanobeam, port 1
- Powered on the PoE injector, and thereby the nanobeam
- Mistake: attempted to flash the nanobeam via TFTP. It's not necessary and is the incorrect method.
- Navigated in Chrome to the nanobeam's webpage at http://192.168.1.20
- Confirmed location (United States) and language (English), and agreed to EULA.
- Set an admin username and password
- Mistake: Attempted to directly upload the AREDN firmware (initially stable 3.24.6.0, then 3.24.4.0, then nightly 20240921) via the Ubiquiti web UI within Setup
- Unnecessary: Downloaded updated Ubiquiti firmware 8.7.4 from https://ui.com/download/software/nbe-5ac-gen2 and updated from 8.7.1 via the Ubiquiti web UI within Setup
- Copied the AREDEN Factory file to the nanobeam via SCP
- Open Command Prompt
- Navigate to directory with AREDN firmware in it
- Run "scp aredn...factory.bin <user>@192.168.1.20:/tmp/factory.bin
- Accepted the identity fingerprint
- Mistake: For all but the first nanobeam, I had to delete the entry in "%HOMEPATH%\.ssh\known_hosts" before SCP
- Mistake: I configured the username as "root" on the nanobeam's webpage and then used username "admin" on SCP. They need to match, naturally.
- Mistake: I once forgot the ":/tmp/factory.bin" and SCP just copied the factory file within my local computer.
- Disabled the firmrware checksum and flashed the AREDN firmware
- Ran "ssh <user>@192.168.1.20
- Ran the sketchy hexdump per AREDN instructions
- hexdump -Cv /bin/ubntbox | sed 's/14 40 fe 27/00 00 00 00/g' | hexdump -R > /tmp/fwupdate.real
- chmod +x /tmp/fwupdate.real
- /tmp/fwupdate.real -m /tmp/factory.bin
- Mistake: I started typing in the "hexdump" instruction, but there was too much opportunity for a mistake, so I copied and pasted directly from Chrome into SSH instead.
- Wait until "Done" indication
- Unplug router from PoE injector, unplug laptop from router, and plug router into PoE injector's Ethernet port.
- Navigated in Chrome to http://localnode.local.mesh
- Set the node name (e.g., KK6SF-KIT01-DISH1) and admin password
- Configured other settings (disabled mesh RF, configured LAN access point, enabled PoE passthrough)
- Saved
- Rebooted the nanobeam
No comments:
Post a Comment