Community discussions

MikroTik App
 
rodebiet
just joined
Topic Author
Posts: 4
Joined: Tue Jun 29, 2021 6:13 pm

Netinstall not working

Tue Jun 29, 2021 6:35 pm

We have an mANTBox 15s, ID: RB921GS-5HPacD-15S, serial number ending with /r3.

We installed OpenWRT on it for some experiment. Now we want the original RouterOS back. But netinstall does not seem to work on both linux and windows.

I tried both with a direct UTP cable as well as with an ethernet switch in between.

I put the power on while holding the reset button.

I monitor the ethernet link with Wireshark.

1. The Mikrotik sends a DHCP Discover.
2. My linux box answers with a boot reply containing the ip address 192.168.88.3 and the image name linux.arm.
3. Mikrotik answers with DHCP Request with ip 192.168.88.3 in bootp option 50 requested ip address.0
4. My linux box answers againwith a boot reply containing the ip address 192.168.88.3 and the image name linux.arm.
these four steps repeat two times.


$ sudo ./netinstall -r -k 93SR-S6LJ.key routeros-mipsbe-6.48.3.npk -a 192.168.88.3
Will reset config
Using server IP: 192.168.88.2
Starting PXE server
Waiting for RouterBOARD...
PXE client: 08:55:31:F4:3A:50
PXE client: 08:55:31:F4:3A:50
PXE client: 08:55:31:F4:3A:50
PXE client: 08:55:31:F4:3A:50


So there is some initial exchange, but a firmware download never happens.

Anyone with similair experience? Anyone knows what to do now?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 18958
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: Netinstall not working

Wed Jun 30, 2021 5:25 pm

Sorry.
a. only done netinstall with windows PC
b. unsure of affects of installing other firwmare?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netinstall not working

Wed Jun 30, 2021 5:49 pm

...and the image name linux.arm...
Is mipsbe, not ARM, wrong image...
 
rodebiet
just joined
Topic Author
Posts: 4
Joined: Tue Jun 29, 2021 6:13 pm

Re: Netinstall not working

Wed Jun 30, 2021 6:04 pm

I provide the image routeros-mipsbe-6.48.3.npk to netinstall, so that is mipsbe. I also saw that it provides the linux.arm filename in the bootp process, but I thought: maybe it is just a name. Is there some way I can influence that?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netinstall not working

Wed Jun 30, 2021 6:50 pm

I have never used linux version, instead on Ubunto and wine I have used netinstall.exe
I do not know how support you, but is strange to provide arm to mipsbe....
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netinstall not working

Wed Jun 30, 2021 6:55 pm

Opening the file I see the reference only for this platform:

arm
arm64
mmips
tile
powerpc
e500
440

mipsbe is not present, is e500??? or 440???
Last edited by rextended on Wed Jun 30, 2021 7:05 pm, edited 1 time in total.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netinstall not working

Wed Jun 30, 2021 6:59 pm

What is for?????????

AMAZON amazon_restart amazon_setup
amazon-nand amazon-uart amazon-ppe amazon-eth amazon_pci_init

inside binary....


MikroTik RouterBOARD RBD25G-5HPacQD2HPnD-AX Audience with integrated Alexa???
 
rodebiet
just joined
Topic Author
Posts: 4
Joined: Tue Jun 29, 2021 6:13 pm

Re: Netinstall not working

Thu Jul 01, 2021 10:09 am

My routerboot settings are:
# rbcfg show
boot_delay=2
boot_device=nandeth
boot_key=any
boot_protocol=dhcp
booter=backup
cpu_mode=powersave
uart_speed=115200
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Netinstall not working

Thu Jul 01, 2021 10:33 am

where you extract that info?
is some linux program?

dhcp?
must not be bootp ???
dhcp is for OpenWRT, netinstall use bootp

booter backup?
must not be "current"?
 
rodebiet
just joined
Topic Author
Posts: 4
Joined: Tue Jun 29, 2021 6:13 pm

Re: Netinstall not working

Thu Jul 01, 2021 10:59 am

rbcfg is a utility of OpenWRT. I currently have OpenWRT on it, but I want back to router os
 
User avatar
iaskakho
just joined
Posts: 17
Joined: Sun Sep 05, 2021 9:27 pm
Location: New York, USA
Contact:

Re: Netinstall not working

Sat Sep 11, 2021 2:35 am

I've been having an issue as well recently I got 3 little hapMinis, they don't have enough space to update so netinstall was needed.

The first one went fine but the next 2 gave trouble...

2nd one kept error "FAILED TO REPLY".. then after multiple commands and setting a different ip on the bridge I was able to do it. Kept having to go into /system routerboard settings set boot-device=try-ether

Now on the 3rd one it didnt want to at all kept sending same "FAILED TO REPLY" message, I tried changing ports ips even admin-mac on the bridge interface to match the first port ether1 which was WAN by default and recofigured to join bridge with the rest of the ports.

I ended up backing up the config and restarting the device then resetting it, upon reset added interface to bridge (ether1) and set new up 10.0.5.3/24 then the boot-device=try-ether and rebooted while netinstall running see below the results:
 root  ~  Downloads  netinstall-6.48.4  ./netinstall -a 10.0.5.3 ../routeros-smips-6.48.4.npk
Using server IP: 10.0.5.4
Starting PXE server
Waiting for RouterBOARD...
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
PXE client: B8:69:F4:3C:E2:A1
Sending image: mips
Discovered RouterBOARD...
Key was rejected
 root  ~  Downloads  netinstall-6.48.4  ./netinstall -a 10.0.5.3 ../routeros-smips-6.48.4.npk
Using server IP: 10.0.5.4
Starting PXE server
Waiting for RouterBOARD...
bind tftp general failed: Address already in use
Discovered RouterBOARD...
Formatting...
Sending package routeros-smips-6.48.4.npk ...
Ready for reboot...
Sent reboot command
 root  ~  Downloads  netinstall-6.48.4  ps aux | grep net
root     2235599  0.0  0.0  36124  3412 pts/8    S    19:23   0:00 ./netinstall -a 10.0.5.3 ../routeros-smips-6.48.4.npk
You can see the error on the key, program exits, you have to start it again yet another instance is running in background and bound to tftp port.. the second instance sends the package and installs it.

On boot its the new OS:
[iaskakho@ap1] > /system routerboard print 
       routerboard: yes
        board-name: hAP mini
             model: RouterBOARD 931-2nD r2
     serial-number: 94A2096251B5
     firmware-type: qca9531L
  factory-firmware: 6.42.5
  current-firmware: 6.42.5
  upgrade-firmware: 6.48.4
[iaskakho@ap1] > /system resource print 
                   uptime: 10m5s
                  version: 6.48.4 (stable)
               build-time: Aug/18/2021 06:43:27
         factory-software: 6.42.2
              free-memory: 7.8MiB
             total-memory: 32.0MiB
                      cpu: MIPS 24Kc V7.4
                cpu-count: 1
            cpu-frequency: 650MHz
                 cpu-load: 3%
           free-hdd-space: 7.8MiB
          total-hdd-space: 16.0MiB
  write-sect-since-reboot: 385
         write-sect-total: 2264
               bad-blocks: 0%
        architecture-name: smips
               board-name: hAP mini
                 platform: MikroTik

Who is online

Users browsing this forum: Google [Bot], GoogleOther [Bot], johnson73, rplant, sted, TeWe and 100 guests