Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:netgear:lbr20 [2024/11/20 16:38] – [Specific Configuration & Gotchas] grammer, spelling, and new information regarding A06 01.008 (the latest modem firmware) s2s2toh:netgear:lbr20 [2024/11/24 20:34] – [OEM easy installation] tiny change to formatting/layout s2s2
Line 31: Line 31:
   * You will get a warning that the version you are trying to flash is older. Just click 'Yes' and proceed.   * You will get a warning that the version you are trying to flash is older. Just click 'Yes' and proceed.
   * Settings in the NVRAM (the settings for the Netgear/Voxel configuration you are currently running) do not get reset.    * Settings in the NVRAM (the settings for the Netgear/Voxel configuration you are currently running) do not get reset. 
-  If you flash back to Netgear/Voxel, the LBR20 will start with the settings you had before you flashed Openwrt. +     * If you flash back to Netgear/Voxel, the LBR20 will start with the settings you had before you flashed Openwrt. 
-  This is convenient, because if you have a little difficulty with Openwrt or need to test something out, the N/V firmware will still have your previous settings.+     * This is convenient, because if you have a little difficulty with Openwrt or need to test something out, the N/V firmware will still have your previous settings.
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
Line 67: Line 67:
   * **Qfirehose Quectel Modem Upgrade-Flashing Procedure**: Once you have acquired [[https://forums.quectel.com/t/firmware-for-eg18-ea/23995/56|the ''qfirehose'' binary]], put it in /root and mark it as executable. Unzip the Quectel-provided firmware to your computer, and upload the contents [//update// folder, //contents.xml//, and //md5.txt//] to the /tmp folder. There isn't enough user-storage space partitioned on the Orbi LBR20 to put it in /root. Disable your wan-watchdog.sh script. From a terminal (laptop) with a wired connection to the router, run 'qfirehose -f /tmp'. Allow the flash procedure to finish to 100% and confirm completion:<code>   * **Qfirehose Quectel Modem Upgrade-Flashing Procedure**: Once you have acquired [[https://forums.quectel.com/t/firmware-for-eg18-ea/23995/56|the ''qfirehose'' binary]], put it in /root and mark it as executable. Unzip the Quectel-provided firmware to your computer, and upload the contents [//update// folder, //contents.xml//, and //md5.txt//] to the /tmp folder. There isn't enough user-storage space partitioned on the Orbi LBR20 to put it in /root. Disable your wan-watchdog.sh script. From a terminal (laptop) with a wired connection to the router, run 'qfirehose -f /tmp'. Allow the flash procedure to finish to 100% and confirm completion:<code>
       * [083.292]: Upgrade module successfully.</code>       * [083.292]: Upgrade module successfully.</code>
-      * Using the command ''picocom /dev/ttyUSB2'', send the modem an ''AT+QGMR'', to display the current firmware revision.\\ +      * The modem (not the entire router) will reboot 10 seconds later, and reconnect to the cell provider. 
-        * The latest A06 01.008 modem firmware, does not display a 01.008 revision code after the ...A06M4G. +      * Using ''picocom /dev/ttyUSB2'', send the modem an ''AT+QGMR'', to display the current firmware revision.\\ 
-        * The ''/dev/ttyUSB2'' may disappear after flashing, and be replaced with /dev/ttyUSB3 (0,1,2&3 -> 0,1,3&4). That is a temporary artifact of flashing the modem. Reboot the ORBI LBR20 and the assignments will revert to 0,1,2&3.+        * The latest A06 01.008 modem firmware, does not display a 01.008 revision code after the ...A06M4G response. 
 +        * The Netgear-provided A05 firmware, also does not display a revision code after the A05M4G response
 +        * The ''/dev/ttyUSB2'' may disappear after flashing, and be replaced with /dev/ttyUSB3 (0,1,2&3 -> 0,1,3&4). That is a temporary artifact of flashing the modem. You might try ''/dev/ttyUSB3'', or reboot the ORBI LBR20and the assignments will revert to 0,1,2&3.
 ==== QMI / wwan0 / 4G LTE Monitoring Script ==== ==== QMI / wwan0 / 4G LTE Monitoring Script ====
 Here is a wan_watchdog.sh script that tests the connection, and if it receives no response from several well-known DNS providers, it will: Here is a wan_watchdog.sh script that tests the connection, and if it receives no response from several well-known DNS providers, it will:
Line 84: Line 86:
 <code> <code>
 #!/bin/sh #!/bin/sh
 + 
 TRIES="0" TRIES="0"
-while [[ "${TRIES}" -lt ]]+while [[ "${TRIES}" -lt ]]
 do do
  echo $TRIES  echo $TRIES
  echo "Attempting to ping a variety of well-known ipv4 and ipv6 addresses..."  echo "Attempting to ping a variety of well-known ipv4 and ipv6 addresses..."
- # ONE failure will not fail fping. All of them failing, will.+ # ONE site failure will not fail fping. All of them failing, will.
  if fping --alive 1.1.1.1 9.9.9.9 8.8.8.8 2001:4860:4860::8888 2620:fe::fe | grep -q .  if fping --alive 1.1.1.1 9.9.9.9 8.8.8.8 2001:4860:4860::8888 2620:fe::fe | grep -q .
-# if fping --alive blablahblah | grep -q . # this will intentionally make the script fail, when we are testing the rest of the script.+# if fping --alive blablahblah | grep -q . # this will intentionally make the script fail, when we are testing.
  then  then
- echo "SUCCESS: DO NOT RESET WWAN. EXIT IMMEDIATELY" # Positive reply from one (1) of the fping destinations - therefore internet is working, do nothing.+ echo "SUCCESS: DO NOT RESET WWAN. EXIT IMMEDIATELY" # Positive reply from one (1) of the fping destinations - do nothing.
  exit 0  exit 0
  fi  fi
Line 100: Line 103:
 done done
  
-echo "PING FAILED CONSECUTIVE TIMES. RESETTING WWAN CELL CONNECTION" +echo "PING FAILED CONSECUTIVE TIMES. RESETTING WWAN CELL CONNECTION" 
-# Tell the modem to turn off without actually disconnecting the tty serial communication interface: +# There are a variety of ways to restart the Quectel/4G interface. 
-echo AT+CFUN=0 | socat - /dev/ttyUSB2,crnl +# The original script used hub-ctrl to turn-off, then turn-on, the USB hub. 
-sleep 5 +# However, devices like the Orbi LBR20 with a EM18-xx 4G chip, don't use a 
-tell the modem to turn on +# USB bus. Older devices like the GL-X750, do (through a mini-pci-e slot).  
-echo AT+CFUN=1 | socat - /dev/ttyUSB2,crnl +# Restart hub: (GL-X750/EC25-AF) 
-sleep 5 +# hub-ctrl -b 001 -d 002 -P 2 -p 0 
-restart the network interface +# More general use: EG18xx EC25xx etc: 
-ifup qmippp # this is where you change 'qmippp' to whatever your upstream cell interface is called in Luci+ifup qmippp # restarts the interface 
-date >> /root/wan_reset_log.txt # if there is a failure, write a log. This will be persistent between reboots. Verify you have the space (it doesn't take much but over very long timeit could..)+sleep 15 # give the modem time to reconnect 
 +# Alternative method (older modem firmware, ymmv) 
 +# Tell the modem to turn off without actually disconnecting the tty serial  
 +communication interface: 
 +echo AT+CFUN=0 | socat - /dev/ttyUSB2,crnl # This does wear the storage on the modem. 
 +sleep 3 
 +Tell the modem to turn on 
 +echo AT+CFUN=1 | socat - /dev/ttyUSB2,crnl 
 +sleep 7 
 +echo "Restarted QMIPPP" >> /root/wan_reset_log.txt Make a record in the log
 +date >> /root/wan_reset_log.txt # Write the date. This will be persistent between reboots. Verify you have the space
 +# sleep 2 # pause before bringing the hub back up 
 +# hub-ctrl -b 001 -d 002 -P 2 -p 1 
 +# Test if the previous steps worked. If yes, exit. If no, reboot. 
 +# The following network restart may work for you, but usually the modem itself is crashed and so the LBR20 requires reboot. 
 +# if fping --alive 1.1.1.1 9.9.9.9 8.8.8.8 2001:4860:4860::8888 2620:fe::fe | grep -q . 
 +# then 
 +# echo "SUCCESS: 'ifup qmippp' workedno need for network restart." >> /root/wan_reset_log.txt 
 +# echo "SUCCESS: 'ifup qmippp' worked, no need for network restart." 
 +# exit 0 
 +# fi 
 +# echo "FAILURE: 'ifup qmippp' did not work by itself, the modem is unresponsive. Restarting network..." 
 +# sleep 5 
 +# /etc/init.d/network restart 
 +# sleep 25 
 + if fping --alive 1.1.1.1 9.9.9.9 8.8.8.8 2001:4860:4860::8888 2620:fe::fe | grep -q . 
 + then 
 + echo "SUCCESS: Quectel modem wwan restart worked, no need for reboot" >> /root/wan_reset_log.txt 
 + echo "SUCCESS: Quectel modem wwan restart worked, no need for reboot" 
 + exit 0 
 + fi 
 + echo "FAILURE: reboot required" >> /root/wan_reset_log.txt 
 + echo "FAILURE: reboot required" 
 + sleep 5 
 + reboot
 </code> </code>
 ==== Network interfaces ==== ==== Network interfaces ====
  • Last modified: 2024/11/26 17:58
  • by s2s2