I have a MikroTik hAP ax² that worked perfectly for over a year and then started acting strange.
First the Wi-Fi networks began disappearing, then even the wired part would stop responding. A reboot always fixed it temporarily.
One day it rebooted on its own, seemed to be running, but I could no longer connect to it at all.
After a hardware reset (holding the reset button), the device reset to factory defaults. It is now visible in Winbox by MAC address, but when I try to connect it hangs forever on the “Logging” stage. If I deliberately enter a wrong password, it correctly says “invalid username or password”, so the device is definitely responding.
What I have already tried:
Netinstall on Windows 10 and Windows 11 (antivirus and firewall completely disabled) — no luck.
Netinstall CLI on Ubuntu 24.04, 20.04 and Alpine — exactly the same behaviour on all three.
I noticed that when I run netinstall-cli on Linux I never see the line “PXE server started” (or any mention of the TFTP server starting), only endless “Assigned 192.168.88.3 to 48:A9:8A:6E:89:17”.
Does anyone have any ideas or suggestions?
I would really appreciate any help. Thank you in advance!
Do you know what version you was on, when it's was working.
If that is like ver 6, you could try to use a old version of the netinstall from that version.
And do you connect the pc to the device ethernet port 1 (WAN) ?
Any strange issues may be related to power adapter. Check (replace) it first.
Other possibility—dead memory, then yeah, it is brick. But I did not hear about dead memory in MikroTiks.
Any strange issues may be related to power adapter. Check (replace) it first.
Other possibility—dead memory, then yeah, it is brick. But I did not hear about dead memory in MikroTiks.
I took one from 4011 right away for testing. Unfortunately, the problem remained.
One more thing. When you hold the reset button before plugging power then backup bootloader is used. if you plug without holding reset, the regular bootloader is used. The principle of 15+ seconds holding the reset button (until usr led turns off) always applies.
Yes. Directly. Wi-Fi is disabled. I changed patch cords. I read the instructions with a switch in the middle, but I don't have a switch.
Let me try to describe my steps. I might be making a mistake at some point. First, I download and unzip NetInstallCLI and the same version of Routeros. Then, on the network interface, I assign the address 192.168.88.2 and mask 24. Then I run the command line as in the screenshots. The patch cord connects the Ethernet port of the nuke to port 1 of the Mikrotik. Then I hold down the reset button and apply power to the Mikrotik. I wait until the command line with requests (as in the screenshot) appears in the terminal and release it. I usually hold it down for about 35 seconds. I tried not releasing the reset button, but that didn't help either.
As Infabo hinted, you are using the backup bootloader only, though it seems functional, otherwise netinstall would not be able to assign the IP.
Try anyway also with the "main" one, it is selected by pressing the reset immediately after powering the device, see:
Chack the power supply, it is fairly common that they fail, and sometimes they fail in such a way that they seem functional (i.e. they do provide 24V but they cannot provide enough Amperes).
The only time I had with devices not responding was after few years or RB951 we had to decomission it because even reboots/reflash wasn’t helping him. Had also one that the leds did not work properly and wifi would drop, but thats also after many years of excelent work.
Mikrotik states a time usage for those device on datasheet, its most of the time very high but some failures happens. Hope its not your case.
Do you like me, trying out a another firmware like OpenWRT and had to switch the RouterBoot from bootp to dhcp ?
This repeted messages reminds me of that.
And how to get the RoterBoot netinstall image, has being evolved to mutch easier method see how it's done with the netinstall python method in this page:
Unfortunately, my knowledge is probably not enough to follow your instructions. I created a folder and copied two directories from git into it(dhtest + pynetinstall). According to the instructions from pynetinstall, I received various files, including:
I understand that he doesn't like the executable file, but I can't figure out what else to give him. I know this is a pretty stupid question, but maybe you can correct me. Thank you.
Sorry for my bad english, and that may be more confuse for you.
Now you have extracted the RouterBoot Netinstall (the arm64 elf file) image with the python code from the netinstall.exe file.
You don't need to use the dhtest app.
That app was used before to extracting the code before the python method.
So now you have to use dnsmasq command to send the RouterBoot Netinstall image (the arm64 elf file) to the device and then run the netinstall with the same ip like you leased out with dnsmasq command.
So this netinstall-cli is sending stage 1 to the device, and the device is running that to get the stage 2 that is tha RouterOS from the netinstall-cli. The stage 1 is being running in the device that formatting and flashes the RouterOS into the nand.
I have being in contact with Mikrotik let them know that netinstall don't support dhcp ip lease, only bootp.
You shuold see that the file is being send to the device, and after the file being sent you just press CTRL and C to stop dnsmasq command. Then run the regular netinstall-cli, and take a note what ip the device being leased out and then put that ip adress into the netinstall command.
sudo netinstall-cli -r -a 192.168.88.2 -i eno1 ./routeros-7.20.5-arm64.npk
After flashing, just change your ip (PC) again to 192.168.88.2 and change port from WAN to LAN, and then try to access the webfig http://192.168.88.1, so you can change the dhcp to bootp again.
sudo ip address flush eno1
sudo ip address add 192.168.88.2/24 dev eno1
I like what I see.
But I don't see that the file is being sent in the log.
Like that log I get:
dnsmasq-tftp: sent /home/patrik/Projekt/mikrotik/netinstall.mips to 192.168.88.4
You could try to rename the file to like netinstall.arm64 , maybe the name is to long.
There also a linux command that can see if the file is a arm64 code, you can run that to check if the file is for arm64(aarch64).
file netinstall.arm64
And of cource change the dnsmasq line to reflect the new name.
I think you don't get the PXE Server line, you should get like you get with the device you succeeded to flash.