-
-
Save StephanAAU/a4909caacf97c128c69fbd73244ba2ae to your computer and use it in GitHub Desktop.
# 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 | |
..... |
Too answer some of your questions, that you didn't answer your self :) 2. I just used regular boot and then canceled the regular boot procedure before uboot started booting the linux image. 3. Don't know :) 5. Yes, boot normally and again interrupt regular boot procedure by spamming "ESC" button in the terminal while it is in uboot, i can't remember for sure, but i believe you have a couple of seconds. 6. I guess you're right, but I have not tried that myself. Also I think you could use the image from ubiquity and then manual flashing procedure as well. 7. Good write up. I had some trouble with prying the plastic apart so the tabs on the transparent part broke for me unfortunately, but it only affects appearance fortunately.
Hope this helps, sorry for the delayed response and good job figuring it out 👍
Thanks a lot for this. I was able to boot the initram-kernel image successfully, but, I really wanted to somehow get the copy of the mtd6 (original firmware) backup to my local machine before I finalised the upgrade with scp. Anyways, when I was on booted initram-kernel, I wasn't able to access the Web admin GUI with the IP/the gateway. I guess, this would only be available after I did the scp upgrade.
Also, I plan on doing a detailed guide once I have everything setup, given everything goes well. Thanks a lot for this guide.
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.
Too answer some of your questions, that you didn't answer your self :)
2. I just used regular boot and then canceled the regular boot procedure before uboot started booting the linux image.
3. Don't know :)
5. Yes, boot normally and again interrupt regular boot procedure by spamming "ESC" button in the terminal while it is in uboot, i can't remember for sure, but i believe you have a couple of seconds.
6. I guess you're right, but I have not tried that myself. Also I think you could use the image from ubiquity and then manual flashing procedure as well.
7. Good write up. I had some trouble with prying the plastic apart so the tabs on the transparent part broke for me unfortunately, but it only affects appearance fortunately.
Hope this helps, sorry for the delayed response and good job figuring it out 👍