Update DOC and add UCI defaults script ModemManager config

main
Armonius 9 months ago
parent 352c89df2f
commit 142a1e7064
  1. 0
      TODO.txt
  2. 2
      doc/bug_fixed/README.md
  3. 9
      doc/bug_fixed/dbus.md
  4. 35
      doc/config.md
  5. 8
      doc/flash.md
  6. 12
      files/etc/uci-defaults/10-modemmanager

@ -0,0 +1,2 @@
# Bug Fixed Section
This section is dedied to the bugs than we had from OpenWRT and the other components around.

@ -0,0 +1,9 @@
# DBus Bug
The bug was been on dev branch and was [patched](http://lists.openwrt.org/pipermail/openwrt-devel/2021-April/034805.html)
## Problem
DBus doesn't want launch it. So if DBus doesn't launch, we can't use modemManager to have an internet connection.
We have:
```
```

@ -7,7 +7,40 @@
3. Copy/paste scripts in the `files/` folder if they are not shipped with the ROM
4. Set IP range: `192.168.0.254/24`
### ModemManager
### ModemManager config automatic
The image of this project relies on [UCI](https://openwrt.org/docs/guide-developer/uci-defaults) to configure ModemManager from the installation.
In *files/etc/uci-defaults/10-modemmanager*:
```
uci -q batch <<EOF
network.wan=interface
network.wan.device='/sys/devices/platform/soc/60f8800.usb2/6000000.dwc3/xhci-hcd.1.auto/usb3/3-1'
network.wan.proto='modemmanager'
network.wan.apn='free'
network.wan.iptype='ipv4v6'
network.wan.auth='none'
network.wan.peerdns='0'
network.wan.dns='9.9.9.10' '149.112.112.10' '2620:fe::10' '2620:fe::fe:10'
commit network
EOF
```
The interface **wan** (previously broadband) changed name because of the firewall. With the name **wan** the interface is added automatically in the firewall *wan*.
Like we can see on:
```
root@OpenWrt:~# uci show firewall
...
firewall.@zone[1].name='wan'
firewall.@zone[1].input='REJECT'
firewall.@zone[1].output='ACCEPT'
firewall.@zone[1].forward='REJECT'
firewall.@zone[1].masq='1'
firewall.@zone[1].mtu_fix='1'
firewall.@zone[1].network='wan' 'wan6'
...
```
### ModemManager config deprecated
We append the following to ModemManager:

@ -35,13 +35,19 @@ bootipq
Copy the firmware in router's `/tmp`.
Why `/tmp`? Your router has more volatile storage than persistent one, moreover you will overwrite the persistent storage.
So, copy the firmware in `/tmp`!
So, copy the firmware in `/tmp`!
If you have a ssh connection, you can use `scp ./path/source/ userDest@ipDest:/tmp`
Next, we will use the `sysupgrade` command. `-v` is verbose, `-n` ask openwrt to erase configuration files (ie. ask for a factory reset).
```
sysupgrade -v -n /tmp/openwrt-ipq40xx-generic-compex_wpj428-squashfs-sysupgrade.bin
```
## Flash OpenWRT from LuCi
With your binary image, you can flash from LuCi interface.
*System -> Backup/Flash Firmware*
You can **Uncheck** the **"Keep Settings"**, if you suppose than the problem come from a corruption of settings or you want erase the settings.
## Flash OpenWRT from Compex ROM (MimoAP)
*Not written*

@ -0,0 +1,12 @@
uci -q batch <<EOF
network.wan=interface
network.wan.device='/sys/devices/platform/soc/60f8800.usb2/6000000.dwc3/xhci-hcd.1.auto/usb3/3-1'
network.wan.proto='modemmanager'
network.wan.apn='free'
network.wan.iptype='ipv4v6'
network.wan.auth='none'
network.wan.peerdns='0'
network.wan.dns='9.9.9.10' '149.112.112.10' '2620:fe::10' '2620:fe::fe:10'
commit network
EOF
Loading…
Cancel
Save