Re: [OpenWrt-Devel] Issue connecting with Quectel EM20-G modem on openwrt
I am also running on the appropriate master branches of libqmi and modemmanager, so I am not sure what I am doing wrong. My guess is I backported support for the EM20-G to the qmi_wwan driver wrong. I couldn't find a commit in linux master that explicitly supported the EM20-G, so I copied the changes in the commits for RM500Q support, which I hear has the same controller as the EM20-G. Is there a better way to add support for this modem on an older (4.14) kernel? On 2020-05-25 00:55, Nick via openwrt-devel wrote: FWIW, I’m able to use this modem just fine on a USB3.0 M.2 slot with the current version of MM and libqmi. Let me know if you need any details. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Quectel RM500Q failing to get ip address assignment with netifd and modemmanager
On Sat, 16 May 2020 09:18:46 +0200 Aleksander Morgado wrote: > Hey! > > > > > > root@localhost:~# mmcli -b 2 > > > > > > > > > > General| dbus path: > > > > > /org/freedesktop/ModemManager1/Bearer/2 > > > > > | type: default > > > > > > > > > > Status | connected: yes > > > > > | suspended: no > > > > > | interface: wwan0 > > > > > | ip timeout: 20 > > > > > > > > > > Properties |roaming: allowed > > > > > > > > > > IPv4 configuration | method: dhcp > > > > > > > > This is the issue here. It shouldn't say DHCP, it should say > > > > "static", because the WWAN network interface of all the new 5G > > > > modules are always in raw-ip instead of 802.3, and therefore MM > > > > should fallback to request static IP addressing instead of DHCP. > > > > > > > > Please try to backport the following fix: > > > > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/a8fd33ebaa80a0844c375fdb39173736d18f71cb > > > > > > > > I really haven't spent much time backporting 5G related fixes > > > > to the 1.12 branch, because they will all be released together > > > > in 1.14 soon. > > > > > > > > > > I found it easier to switch my own setup to use the libqmi master > > > branch and modemmanager from the commit you mentioned. It works > > > just fine so far, wwan0 gets the correct address and the modem > > > can ping fine now. > > > > > > I attached the makefiles and patches I used for my openwrt build > > > if anyone needs them. In order to build the master branch, I also > > > needed to add > > > > > > https://github.com/autoconf-archive/autoconf-archive > > > > > > as a build dependency. > > > > > > > > > > > > I have another quick question about modemmanager support for the > > Quectel RM500Q. The commit a8fd33ebaa80a0844c375fdb39173736d18f71cb > > on the modemmanager git isn't in the current release. Will it be > > slated for the next release, and if so is there a rough time > > estimate as to when that will be? > > > > If enough testing gets done with git master in the following weeks, we > can probably have a new stable 1.14 release at the beginning of June > or so. Please test with git master as much as you can! > Ok, thanks a lot. I will let everyone here know if I find anything wrong with master. ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Quectel RM500Q failing to get ip address assignment with netifd and modemmanager
On Wed, 13 May 2020 16:33:57 -0500 Alex Ballmer wrote: > On Tue, 12 May 2020 10:41:36 +0200 > Aleksander Morgado wrote: > > > Hey, > > > > > > > > root@localhost:~# mmcli -b 2 > > > > > > General| dbus path: > > > /org/freedesktop/ModemManager1/Bearer/2 > > > | type: default > > > > > > Status | connected: yes > > > | suspended: no > > > | interface: wwan0 > > > | ip timeout: 20 > > > > > > Properties |roaming: allowed > > > > > > IPv4 configuration | method: dhcp > > > > This is the issue here. It shouldn't say DHCP, it should say > > "static", because the WWAN network interface of all the new 5G > > modules are always in raw-ip instead of 802.3, and therefore MM > > should fallback to request static IP addressing instead of DHCP. > > > > Please try to backport the following fix: > > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/a8fd33ebaa80a0844c375fdb39173736d18f71cb > > > > I really haven't spent much time backporting 5G related fixes to the > > 1.12 branch, because they will all be released together in 1.14 > > soon. > > > > I found it easier to switch my own setup to use the libqmi master > branch and modemmanager from the commit you mentioned. It works just > fine so far, wwan0 gets the correct address and the modem can ping > fine now. > > I attached the makefiles and patches I used for my openwrt build if > anyone needs them. In order to build the master branch, I also needed > to add > > https://github.com/autoconf-archive/autoconf-archive > > as a build dependency. I have another quick question about modemmanager support for the Quectel RM500Q. The commit a8fd33ebaa80a0844c375fdb39173736d18f71cb on the modemmanager git isn't in the current release. Will it be slated for the next release, and if so is there a rough time estimate as to when that will be? Thanks ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Quectel RM500Q failing to get ip address assignment with netifd and modemmanager
On Tue, 12 May 2020 10:41:36 +0200 Aleksander Morgado wrote: > Hey, > > > > > root@localhost:~# mmcli -b 2 > > > > General| dbus path: > > /org/freedesktop/ModemManager1/Bearer/2 > > | type: default > > > > Status | connected: yes > > | suspended: no > > | interface: wwan0 > > | ip timeout: 20 > > > > Properties |roaming: allowed > > > > IPv4 configuration | method: dhcp > > This is the issue here. It shouldn't say DHCP, it should say "static", > because the WWAN network interface of all the new 5G modules are > always in raw-ip instead of 802.3, and therefore MM should fallback to > request static IP addressing instead of DHCP. > > Please try to backport the following fix: > https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/commit/a8fd33ebaa80a0844c375fdb39173736d18f71cb > > I really haven't spent much time backporting 5G related fixes to the > 1.12 branch, because they will all be released together in 1.14 soon. > I found it easier to switch my own setup to use the libqmi master branch and modemmanager from the commit you mentioned. It works just fine so far, wwan0 gets the correct address and the modem can ping fine now. I attached the makefiles and patches I used for my openwrt build if anyone needs them. In order to build the master branch, I also needed to add https://github.com/autoconf-archive/autoconf-archive as a build dependency. # # Copyright (C) 2016 Velocloud Inc. # Copyright (C) 2016 Aleksander Morgado # # This is free software, licensed under the GNU General Public License v2. # include $(TOPDIR)/rules.mk PKG_NAME:=libqmi PKG_VERSION:=master PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=cabe90c3f9f067db464b085333aaa824ed19758a PKG_SOURCE_URL:=git://anongit.freedesktop.org/libqmi PKG_MAINTAINER:=Nicholas Smith PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_BUILD_DEPENDS:=autoconf-archive/host include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/nls.mk define Package/libqmi SECTION:=libs CATEGORY:=Libraries DEPENDS:=+libmbim TITLE:=Helper library to talk to QMI enabled modems URL:=https://www.freedesktop.org/wiki/Software/libqmi LICENSE:=LGPL-2.0-or-later LICENSE_FILES:=COPYING.LIB endef define Package/libqmi/description Helper library talk to QMI enabled modems. Add qmi-utils for extra utilities. endef define Package/qmi-utils SECTION:=utils CATEGORY:=Utilities DEPENDS:=+libqmi TITLE:=Utilities to talk to QMI enabled modems URL:=https://www.freedesktop.org/wiki/Software/libqmi LICENSE:=GPL-2.0-or-later LICENSE_FILES:=COPYING endef define Package/libqmi-utils/description Utils to talk to QMI enabled modems endef CONFIGURE_ARGS += \ --disable-static \ --disable-gtk-doc \ --disable-gtk-doc-html \ --disable-gtk-doc-pdf \ --disable-silent-rules \ --enable-firmware-update \ --enable-mbim-qmux \ --enable-more-warnings=yes \ --without-udev \ --without-udev-base-dir define Build/Prepare $(call Build/Prepare/Default) ( cd $(PKG_BUILD_DIR); env NOCONFIGURE=1 ./autogen.sh ) endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) \ $(PKG_INSTALL_DIR)/usr/include/libqmi-glib \ $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so* \ $(1)/usr/lib/ $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/qmi-glib.pc \ $(1)/usr/lib/pkgconfig endef define Package/libqmi/install $(INSTALL_DIR) $(1)/usr/lib $(CP) \ $(PKG_INSTALL_DIR)/usr/lib/libqmi*.so.* \ $(1)/usr/lib/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/qmi-proxy $(1)/usr/lib/ endef define Package/qmi-utils/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmicli $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-network $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/qmi-firmware-update $(1)/usr/bin/ endef $(eval $(call BuildPackage,libqmi)) $(eval $(call BuildPackage,qmi-utils)) # # Copyright (C) 2016 Velocloud Inc. # Copyright (C) 2016 Aleksander Morgado # # This is free software, licensed under the GNU General Public License v2. # include $(TOPDIR)/rules.mk PKG_NAME:=modemmanager PKG_VERSION:=1.12.10 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=a8fd33ebaa80a0844c375fdb39173736d18f71cb PKG_SOURCE_URL:=https://gitlab.freedesktop.org/mobile-broadband/ModemManager.git PKG_MIRROR_HASH:=3953a7a03d7d816860101ee331b8a485b6f98a23d97abff5a0a86fd743c3a0b0 PKG_BUILD_DIR:=$(BUILD_DIR)/modemmanager-$(PKG_VERSION) PKG_MAINTAINER:=Nicholas Smith PKG_LICENSE:=GPL-2.0-or-later PKG_LICENSE_FILES:=COPYING PKG_FIXUP:=autoreconf PKG_INSTALL:=1 PKG_BUILD_PARALLEL:=1 PKG_BUILD_DEPENDS:=glib2/host libxslt/host resolveip autoconf-a