User Tools

Site Tools


doc:appunti:hardware:tl-mr6400_openwrt

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:hardware:tl-mr6400_openwrt [2023/02/01 16:41] – [The SNMP Daemon] niccolodoc:appunti:hardware:tl-mr6400_openwrt [2023/10/31 14:18] – [Upgrade to OpenWRT 22.05.0] niccolo
Line 53: Line 53:
 ===== Upgrade the uqmi package ===== ===== Upgrade the uqmi package =====
  
-Download the custom **uqmi** packages for OpenWRT 22.03.2 here: **[[https://github.com/mrhaav/openwrt/raw/master/22.03.2/uqmi_2022-11-29-0.10_mipsel_24kc.ipk|uqmi_2022-11-29-0.10_mipsel_24kc.ipk]]**.+Using the stock **uqmi** package provided by OpenWRT 22.03.2 I was not able to bring up the LTE interface. The error message shown by **logread** was: 
 + 
 +<code> 
 +daemon.notice netifd: lte4g (2329): Command failed: 
 +    ubus call network.interface notify_proto 
 +    { "action": 0, "link-up": false, "keep": false, "interface": "lte4g"
 +    (Permission denied) 
 +daemon.notice netifd: Interface 'lte4g' is now down 
 +daemon.notice netifd: Interface 'lte4g' is setting up now 
 +daemon.notice netifd: lte4g (2343): Waiting for SIM initialization 
 +</code> 
 + 
 +I downloaded a custom **uqmi** packages for OpenWRT 22.03.2 here: **[[https://github.com/mrhaav/openwrt/raw/master/22.03.2/uqmi_2022-11-29-0.10_mipsel_24kc.ipk|uqmi_2022-11-29-0.10_mipsel_24kc.ipk]]**.
  
 The **uqmi** depends upon **libubox** and **libblobmsg-json**, these are the exact versions that satisfied the dependency in my installation: The **uqmi** depends upon **libubox** and **libblobmsg-json**, these are the exact versions that satisfied the dependency in my installation:
Line 61: Line 73:
 ^ libblobmsg-json20220515  | 2022-05-15-d2223ef9-1  | ^ libblobmsg-json20220515  | 2022-05-15-d2223ef9-1  |
  
 +Now the ''logread'' output is OK, except that IPv6 is not negotiated (may be a fault by the Iliad provider):
 +
 +<code>
 +kern.info kernel:  qmi_wwan 1-1:1.4: cdc-wdm0: USB WDM device
 +kern.info kernel:  qmi_wwan 1-1:1.4 wwan0:
 +                   register 'qmi_wwan' at usb-101c0000.ehci-1,
 +                   WWAN/QMI device, 1a:45:b9:77:47:66
 +kern.info kernel:  usbcore: registered new interface driver qmi_wwan
 +kern.info kernel:  usbcore: registered new interface driver option
 +kern.info kernel:  usbserial: USB Serial support registered for GSM modem (1-port)
 +daemon.notice netifd: Interface 'lte4g' is setting up now
 +daemon.notice netifd: lte4g (1900): PINcode disabled
 +daemon.notice netifd: lte4g (1900): Data format set to raw-ip
 +daemon.notice netifd: lte4g (1900): Default profile: 1
 +daemon.notice netifd: lte4g (1900): Change default profile
 +daemon.notice netifd: lte4g (1900):  apn:  to iliad
 +daemon.notice netifd: lte4g (1900):  authentication: none to both
 +daemon.notice netifd: lte4g (1900): Airplane mode off
 +daemon.notice netifd: lte4g (1900):  registered on 22250
 +daemon.notice netifd: lte4g (1900): Registered to Iliad on LTE
 +daemon.notice netifd: lte4g (1900): Connected with IPv4
 +daemon.notice netifd: lte4g (1900): Unable to connect with IPv6
 +daemon.notice netifd: lte4g (1900): Setting up wwan0
 +daemon.notice netifd: Interface 'lte4g' is now up
 +</code>
  
 ===== Configure the LTE connection ===== ===== Configure the LTE connection =====
Line 267: Line 304:
  
 I was not able to instal the **wakeonlan** package because it depends upon Perl (not enough space on flash memory). Fortunately I was able to install **etherwake**, which requires only **4 kb**. I was not able to instal the **wakeonlan** package because it depends upon Perl (not enough space on flash memory). Fortunately I was able to install **etherwake**, which requires only **4 kb**.
 +
 +===== Upgrade to OpenWRT 22.05.0 =====
 +
 +To upgrade from OpenWRT **22.03.3** to **22.05.0** we used the **sysupgrade** option, which preserves the existing configuration, at least partially.
 +
 +Download the new firmware **[[https://downloads.openwrt.org/releases/23.05.0/targets/ramips/mt76x8/openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin|openwrt-23.05.0-ramips-mt76x8-tplink_tl-mr6400-v5-squashfs-sysupgrade.bin]]** to your PC. Connect the PC to one of the Ethernet ports of the router and point your browser to the LuCI web interface. Click the **System** => **Backup / Flash Firmware** page and then upload the firmware file to the router by clicking **Flash new firmware image**.
 +
 +Once the router reboots, you can access it via SSH or LuCI web, the network configuration should have been preserved.
 +
 +Beware that all the extra packages must be installed again, notably the **uqmi** package, required to drive the LTE modem for internet access, must be upgraded to version **[[https://raw.githubusercontent.com/mrhaav/openwrt/master/23.05.0/uqmi_2022-11-29-0.11_mipsel_24kc.ipk|uqmi_2022-11-29-0.11_mipsel_24kc.ipk]]**. That version is not included into the official repository and thus must be downloaded from the GitHub repository.
 +
 +The repository roots are:
 +
 +  * https://downloads.openwrt.org/releases/23.05.0/targets/ramips/mt76x8/
 +  * https://downloads.openwrt.org/releases/23.05.0/packages/mipsel_24kc/
 +
 +This is the list of all the extra packages installed:
 +
 +^ Package                               ^ Space  ^
 +| uqmi_2022-11-29-0.11_mipsel_24kc.ipk  |   92K |
 +| openvpn                                228K |
 +| luci-app-openvpn                      |  320K |
 +| tcpdump-mini                          |  314K |
 +| snmpd                                  540K |
 +| luci-app-snmpd                        |    8K |
 +| etherwake                                8K |
 +| coreutils-base64                      |       |
  
 ===== Web References ===== ===== Web References =====
doc/appunti/hardware/tl-mr6400_openwrt.txt · Last modified: 2024/04/26 13:30 by niccolo