You are here

LHG LX 5HP Trouble with factory file

6 posts / 0 new
Last post
DL6MCO
LHG LX 5HP Trouble with factory file

Hi specialists,
I'm not able to flash an LHG LX 5HP with the rb.elf file.
As soon as the download starts, I get following output:

rolf@rolf-Inspiron-7720:~$ sudo dnsmasq -i enp3s0 --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-boot=rb.elf --enable-tftp --tftp-root=/tftp/ -d -u rolf -p0 -K --log-dhcp --bootp-dynamic
dnsmasq: gestartet, Version 2.79, DNS abgeschaltet
dnsmasq: Übersetzungsoptionen: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify
dnsmasq-dhcp: DHCP, IP range 192.168.1.100 -- 192.168.1.200, lease time 1h
dnsmasq-tftp: TFTP Wurzel ist /tftp/
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen
dnsmasq-dhcp: DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen

After some times, the download stops without any further activity.
Who has an idea, what I can do?

The ID of this device is: RBLHG-5HPnD-XL

73 Rolf DL6MCO

 

nc8q
nc8q's picture
Did your computer lose its 192.168.1.x static assignment?

"DHCP-Paket ohne Adresse an Schnittstelle enp3s0 empfangen"
->
"Receive DHCP packet without address at interface enp3s0"

Sometimes my computer's ethernet device drops its static IP address.
So, I set my computer's IP address immediately before starting dnsmasq.

sh tftp.sh 'ethernet device' 'username'
<shell script>
echo "dnsmasq <name of ethernet device> <your username>"
sudo ifconfig $1 192.168.1.99
sudo dnsmasq -i $1 --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-boot=aredn-1850-29a56b8-ar71xx-mikrotik-vmlinux-initramfs.elf --enable-tftp --tftp-root=/tftp/ -d -u $2 -p0 -K --log-dhcp --bootp-dynamicd -u $2 -p0 -K --log-dhcp --bootp-dynamic

</shell script>

I hope this helps,
Chuck

An edit was made to the computer's IP address.
 

AB7PA
Some ideas

Rolf, I wonder whether your Inspiron-7720 has a firewall that might be blocking the bootp/dhcp requests?

The other idea is that you could try giving your Inspiron-7720 a static IP address in the Mikrotik default IP address range of 192.168.88.x.  Chuck NC8Q reminded me in an offline message that this should not be required, which is true, but I have had success giving my computer a static IP address in the default Mikrotik IP subnet.  I found the wiki for Mikrotik's Netinstall program and there they also recommend giving your computer a static IP address in that range.  You should also use that IP address range in the dnsmasq command:  
dnsmasq -i enp3s0 --dhcp-range=192.168.88.100,192.168.88.200 --dhcp-boot=rb.elf --enable-tftp --tftp-root=/tftp/ -d -u rolf -p0 -K --log-dhcp --bootp-dynamic

Chuck's NC8Q suggestion is to give your computer a static IP address of 192.168.1.99 and use a dhcp range of 192.168.1.100,192.168.1.200 in the dnsmasq command, and this should work well while also saving you a step later in the firmware install process after the node has booted from the rb.elf file.  You will need to put your computer on the 192.168.1.x subnet eventually in order to finish the firmware install process, so Chuck's NC8Q method puts everything on that subnet from the beginning.

Much appreciated, Chuck NC8Q !!

DL6MCO
Thank's to all for tips and
Thank's to all for tips and proposals.
Now I tried some features and had no success.
Changing the IP addresses was a good idea.
It seems, that the device now got a connection to tftp, but couldn't load the file.
Maybe I use the wrong file.
I tried the file at the software page (factory File: aredn-3.20.3.1-ar71xx-mikrotik-vmlinux-initramfs.elf md5sum: 6090be01e220a0d71b24fddcb8a971cd)
and I tried a file from nightly builds (aredn-84-99305c5-ar71xx-mikrotik-vmlinux-initramfs.elf    2021-01-28 09:57     9.2M).
Every time the download got wrong.
It stops after following Message:
rolf@rolf-Inspiron-7720:~$ sudo dnsmasq -i enp3s0 --dhcp-range=192.168.1.100,192.168.1.200 --dhcp-boot=rb.elf --enable-tftp --tftp-root=/tftp/ -d -u rolf -p0 -K --log-dhcp --bootp-dynamic
dnsmasq: gestartet, Version 2.79, DNS abgeschaltet
dnsmasq: Übersetzungsoptionen: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 Lua TFTP conntrack ipset auth nettlehash DNSSEC loop-detect inotify
dnsmasq-dhcp: DHCP, IP range 192.168.1.100 -- 192.168.1.200, lease time 1h
dnsmasq-tftp: TFTP Wurzel ist /tftp/
dnsmasq-dhcp: 1111771990 available DHCP range: 192.168.1.100 -- 192.168.1.200
dnsmasq-dhcp: 1111771990 vendor class: Mips_boot
dnsmasq-dhcp: 1111771990 Marken: bootp, enp3s0
dnsmasq-dhcp: 1111771990 BOOTP(enp3s0) 192.168.1.142 48:8f:5a:c6:41:3c
dnsmasq-dhcp: 1111771990 Name der Bootdatei: rb.elf
dnsmasq-dhcp: 1111771990 Nächster Server: 192.168.1.99
dnsmasq-dhcp: 1111771990 sent size:  4 option:  1 netmask  255.255.255.0
dnsmasq-dhcp: 1111771990 sent size:  4 option: 28 broadcast  192.168.1.255
dnsmasq-dhcp: 1111771990 sent size:  4 option:  3 router  192.168.1.99

greetings Rolf (DL6MCO)
 
nc8q
nc8q's picture
dnsmasq-dhcp: 1111771990 sent size: 4 option: 3 router 192.16

https://arednmesh.readthedocs.io/en/latest/arednGettingStarted/installing_firmware.html#mikrotik-first-install-process
"Continue to hold the reset button until you see output information from the computer window where you ran the dnsmasq command, which should happen after about ten seconds. Release the reset button as the computer starts communicating with the node.
When you see the “sent” message, this indicates success, and the node has downloaded the image and will reboot.
You can now -C or kill dnsmasq."

Rolf:

You saw the sent message:
"dnsmasq-dhcp: 1111771990 sent size: 4 option: 1 netmask 255.255.255.0
dnsmasq-dhcp: 1111771990 sent size: 4 option: 28 broadcast 192.168.1.255
dnsmasq-dhcp: 1111771990 sent size: 4 option: 3 router 192.168.1.99"

Now, go to 'Final Configuration Steps'.
(Maybe do a 'ifconfig' to ensure that your computer has retained its 192.168.1.99 address.)

Chuck

DL6MCO
not booting after download
Hi Chuck,
thank you very much for your great support.
Unfortunately the Node isn't booting after download.
I'm not able to open AREDN, but I can call the device via 192.168.88.1 and have the original Mikrotik login page.
Rolf

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer