Created
July 23, 2024 07:20
-
-
Save StephanAAU/a4909caacf97c128c69fbd73244ba2ae to your computer and use it in GitHub Desktop.
AmplifiHD Router and OpenWRT - Installation and fixing boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here's step-by-step how I got OpenWRT on my Amplifi HD Router | |
# There are some steps to this and one of them is HW access to the Serial interface on the PC. | |
# This is found here: | |
1. Open the Router and connect a UART/Serial USB to between PC and Router | |
Note that in my case the pinout was mirrored. | |
It is located on the middle print. | |
Details for step 1: https://github.com/alexanderhenne/AFi-R?tab=readme-ov-file#finding-j11 | |
2. Download OpenWRT kernel image and TFTP it to the router. | |
When booting the image, beware that I had to change the bootm address to something higher | |
(i.e. tftpboot 0x83000000 amplifi-router-hd-initramfs-kernel.bin | |
bootm 0x83000000) | |
as the kernel image fail decompress.v | |
Then scp the squashfs-sysupgrade image to the router and write to partition. | |
Details for step 2: https://github.com/openwrt/openwrt/commit/c5b7ec8cee497c3a84eb8ad90d88494f0812698c | |
3. Modify uboot parameters! Now I couldn't get it to boot to openwrt initially. I figured it | |
had to do with the uboot configuration. There was no guide available for this so I will write the | |
steps out in detail. | |
3.a. Stop the device from normal boot by pressing "ESC" on the Serial connection. | |
3.b. Now we change the bootcmd from its default to point towards the new flashed firmware location. | |
> setenv customboot 'bootm bf070000' | |
> setenv bootcmd 'run ubntappinit customboot' | |
> saveenv | |
3.c. Reboot device to verify that it boots openwrt: | |
> reset | |
N.B. For this step, please verify that the firmware partition is infact at address bf070000. This can | |
be done by running the ubntappinit and see that name firmware has start_addr: | |
> run ubntappinit | |
..... | |
2. Name = firmware, offset = 70000, start_addr=bf070000, size=11534336,start_sector=7, end_sector=182 | |
..... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update - Was able to scp upgrade to the OpenWRT build. And, used the backed up firmware to try and revert to original Amplifi firmware. It worked flawlessly!
As for the Admin GUI, my bad. Didn't know Luci had to be installed separately. Did that when on the WRT build and it functioned as expected.