You are here

No TFTP exchanges with Mikrotik SXT SQ Lite5

10 posts / 0 new
Last post
WA4KFZ
No TFTP exchanges with Mikrotik SXT SQ Lite5
This is partially a follow up to a previous problem I've been having with a Mikrotik SXT SQ Lite5. 

Following the AREDN documentation, and recommendations on OpenWRT, I was able to successfully downgrade the RouterOS version to the recommended version 6.45.8. I can log into the node via the Mikrotik suite of tools and access the node's settings. I can also change the boot device settings to try-ethernet-once-then-nand in preparation for using Tiny PXEserver. Protected Routerboot is not enabled and the boot protocol is bootp. 

In my configuration, I have a Netgear FS108 dumb switch between my laptop (with Tiny PXEserver) and the Mikrotik node (using the supplied PoE adapter, of course....). I set my laptop to a static IP address of 192.168.1.10 (net mask 255.255.255.0). When I start Tiny PXEserver, the static IP address is recognized properly and everything looks as it should per the AREDN documentation. 

I renamed the appropriate AREDN 3.24.6.0 kernel file to rb.elf as required. 
I navigated to the rb.elf location, configured Tiny PXEserver as shown in the documentation and enabled the Online switch.

I powered up the node in the Etherboot configuration by holding down the reset switch and waiting for the communication sequence to begin. The Tiny PXEserver low window indicates:
DHCP'd request received and shows the MAC address for the node
DHCP'd BOOTP REQUEST
DHCP'd ACK  sent and shows the IP pool starting address. 

Regardless of how long I hold down the reset button after seeing the above three DHCP'd messages, I never get the TFTPd: DoReadFile: rb.elf message in the log window. 

Watching the LEDs on the dumb switch, I notice that both sets of LEDs blink very rapidly, and in synchronization, after the DHCP'd ACK message shows up. Regardless of how long I wait, nothing changes on either the LED blink pattern or the Tiny PXEserver log window. The only way to stop the blink pattern is to cycle power on the Mikrotik node.

I've successfully used Tiny PXEserver with Ubiquiti nodes in the past and received the desired TFTP'd message to start the installation process on the node. There just seems to be something strange going on with the Mikrotik nodes. 

What am I missing here? 

 
KD1HA
KD1HA's picture
Try removing the dumb switch.
Try removing the dumb switch. I haven't used a switch on any Mikrotic although I am not familiar with this model but it's worth a shot. I appears that you have done everything else correctly also make sure your wifi is off.

Denis
K6CCC
K6CCC's picture
I always use a dumb switch -
I always use a dumb switch - not so much for the node, but to keep the computer seeing that there is a connection all the time.
On the Mikrotik, once you see the DHCP messages, release the button.

 
K7EOK
Dumb switch or no dumb switch
Dumb switch or no dumb switch ... whatever.  I never use one and make sure my computer network card resets by unplugging from the port when I'm changing IP address. 

Sometimes flashing with an older version of the kernel (try 3.22.12.0 for example) will get you to the "doread" then you can continue by using the sysupgrade you want.  I don't know why but sometimes an older file is needed.

Ed
 
WA4KFZ
Will try older version
Thank you to all who responded. 

I've tried performing the installation with and without a dumb switch and ended up with the same result. Let me try an older version of the kernel and see if it can be recognized.  
hb9bla
Same problem here
I have a very similar problem here with an mANTbox 19s. I was able to flash it in the past (according the documentation with a switch in between, firewall disabled).
The log shows that the mANTbox sends a request and gets an answer. But the answer seems not to be what was expected.
 
10:45:31 DHCPc:discovering for another DHCPd on LAN
10:45:31 ROOT=C:\Dropbox\! HAM Radio\AREDN\pxesrv\files\
10:45:31 DHCPd 192.168.1.10:67 started...
10:45:31 TFPTd 192.168.1.10:69 started...
10:45:31 HTTPd:80 started...
10:45:36 DHCPc:no other DHCPd discovered
10:45:59 DHCPd:REQUEST received, MAC:48-A9-8A-0F-F2-A9, XID:BDC6C330
10:45:59 DHCPd:BOOTP REQUEST
10:45:59 DHCPd:ACK sent, IP:192.168.1.21, XID:BDC6C330
10:46:00 DHCPd:REQUEST received, MAC:48-A9-8A-0F-F2-A9, XID:C19250CF
10:46:00 DHCPd:BOOTP REQUEST
10:46:00 DHCPd:ACK sent, IP:192.168.1.21, XID:C19250CF
and so on...

Wireshark shows that the reply packet seems to contain the right answers (server address, file name, etc). But the mANTbox does not start to download and just sends the next request.
Recently, I had a similar behavior with a hap lite (which I sent back under warranty).
 
Frame 11: 334 bytes on wire (2672 bits), 334 bytes captured (2672 bits) on interface \Device\NPF_{F26B9D3C-9EBA-4139-8FBC-FBD2B5F522A1}, id 0
    Section number: 1
    Interface id: 0 (\Device\NPF_{F26B9D3C-9EBA-4139-8FBC-FBD2B5F522A1})
        Interface name: \Device\NPF_{F26B9D3C-9EBA-4139-8FBC-FBD2B5F522A1}
        Interface description: Ethernet
    Encapsulation type: Ethernet (1)
    Arrival Time: Aug 17, 2024 10:45:59.881466000 W. Europe Summer Time
    UTC Arrival Time: Aug 17, 2024 08:45:59.881466000 UTC
    Epoch Arrival Time: 1723884359.881466000
    [Time shift for this packet: 0.000000000 seconds]
    [Time delta from previous captured frame: 0.023937000 seconds]
    [Time delta from previous displayed frame: 0.023937000 seconds]
    [Time since reference or first frame: 28.582823000 seconds]
    Frame Number: 11
    Frame Length: 334 bytes (2672 bits)
    Capture Length: 334 bytes (2672 bits)
    [Frame is marked: False]
    [Frame is ignored: False]
    [Protocols in frame: eth:ethertype:ip:udp:dhcp]
    [Coloring Rule Name: UDP]
    [Coloring Rule String: udp]
Ethernet II, Src: QuantaComput_1f:bc:8d (74:d4:dd:1f:bc:8d), Dst: Broadcast (ff:ff:ff:ff:ff:ff)
    Destination: Broadcast (ff:ff:ff:ff:ff:ff)
        Address: Broadcast (ff:ff:ff:ff:ff:ff)
        .... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
        .... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
    Source: QuantaComput_1f:bc:8d (74:d4:dd:1f:bc:8d)
        Address: QuantaComput_1f:bc:8d (74:d4:dd:1f:bc:8d)
        .... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
        .... ...0 .... .... .... .... = IG bit: Individual address (unicast)
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 192.168.1.10, Dst: 255.255.255.255
    0100 .... = Version: 4
    .... 0101 = Header Length: 20 bytes (5)
    Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
        0000 00.. = Differentiated Services Codepoint: Default (0)
        .... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
    Total Length: 320
    Identification: 0x4bd6 (19414)
    000. .... = Flags: 0x0
        0... .... = Reserved bit: Not set
        .0.. .... = Don't fragment: Not set
        ..0. .... = More fragments: Not set
    ...0 0000 0000 0000 = Fragment Offset: 0
    Time to Live: 128
    Protocol: UDP (17)
    Header Checksum: 0x0000 [validation disabled]
    [Header checksum status: Unverified]
    Source Address: 192.168.1.10
    Destination Address: 255.255.255.255
User Datagram Protocol, Src Port: 67, Dst Port: 68
    Source Port: 67
    Destination Port: 68
    Length: 300
    Checksum: 0xd7e9 [unverified]
    [Checksum Status: Unverified]
    [Stream index: 4]
    [Timestamps]
        [Time since first frame: 0.000000000 seconds]
        [Time since previous frame: 0.000000000 seconds]
    UDP payload (292 bytes)
Dynamic Host Configuration Protocol
    Message type: Boot Reply (2)
    Hardware type: Ethernet (0x01)
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0xbdc6c330
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
        0... .... .... .... = Broadcast flag: Unicast
        .000 0000 0000 0000 = Reserved flags: 0x0000
    Client IP address: 0.0.0.0
    Your (client) IP address: 192.168.1.21
    Next server IP address: 192.168.1.10
    Relay agent IP address: 0.0.0.0
    Client MAC address: Routerboardc_0f:f2:a9 (48:a9:8a:0f:f2:a9)
    Client hardware address padding: 00000000000000000000
    Server host name: RADIO
    Boot file name: rb.elf
    Magic cookie: DHCP
    Option: (0) Padding
        Padding: 000000
    Option: (1) Subnet Mask (255.255.255.0)
        Length: 4
        Subnet Mask: 255.255.255.0
    Option: (3) Router
        Length: 4
        Router: 0.0.0.0
    Option: (6) Domain Name Server
        Length: 4
        Domain Name Server: 0.0.0.0
    Option: (13) Boot File Size
        Length: 2
        Boot File Size: 10832
    Option: (28) Broadcast Address (192.168.1.255)
        Length: 4
        Broadcast Address: 192.168.1.255
    Option: (51) IP Address Lease Time
        Length: 4
        IP Address Lease Time: 1 hour (3600)
    Option: (54) DHCP Server Identifier (192.168.1.10)
        Length: 4
        DHCP Server Identifier: 192.168.1.10
    Option: (175) Etherboot
        Length: 6
        Value: 010101080101
    Option: (255) End
        Option End: 255
w6bi
w6bi's picture
TFTP
I had similar problems using PXEServer.   I found that OpenWrt now recommend a much larger DHCP range than previously (don't know why).  When I changed my DHCP range to 192.168.1.110 to 192.168.1.200, the Mikrotik ran through a bunch of them, finally accepted one and the file transfer proceeded.

Hope this helps.

Orv W6BI
hb9bla
TFTP
Thank you, Orv. In the meantime, I also had issues with the same AP flashing the original Mikrotik firmware. When I decided to use another PC, Netinsall worked without problems.
Because I currently use the AP for a test with the original SW I was not able to flash AREDN back. But because both, TFTP and Netinstall showed the same problem, I assume that  it will work when I flash AREDN back (and I will use your tip)
A colleague (a longtime Mikrotik consultant) told me that Netinstall does not work with all PC drivers and sometimes has issues with Wireshark drivers. 
WA4KFZ
TFTP
Orv,

Can you elaborate on this? Are you referring to the settings in Tiny PXEServer? Does this refer to changing the settings on the IP Pool start/size line? 
WA4KFZ
TFTP follow up
Thank you again to all who have replied. 

I was able to get one of the units running by shutting off the firewall on my laptop computer. The recent version of AVG Free is insidious; it gets into EVERYTHING on my Windows 10 system. Once the firewall issue was resolved, the install went according to the AREDN documentation. 

The second unit, however, is still giving me fits. I can successfully get to the step where the kernel image is loaded into RAM, awaiting the final installation step of uploading the sysupgrade file. After the sysupgrade file installs, however, the node never reboots automatically afterwards. 

I next tried using the alternate upload method with WinSCP and PuTTY. Again, I could successfully load the kernel image into RAM and then issue the command line (shown in the documentation) for the final sysupgrade file. 

PuTTY displays the following messages:
Commencing upgrade. Closing all shell sessions.
Command failed: Connection failed

An error message box then pops up:
PuTTY Fatal Error
Remote side unexpectedly closed network connection

Does anyone know what's going on here? 
 

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer