Welcome to our peer-to-peer forums, where owners help owners. Need help now? Visit eSupport here.

English Community

Linux Operating SystemsOther Linux Discussions
All Forum Topics
Options

186 Posts

11-07-2009

United States of America

173 Signins

1339 Page Views

  • Posts: 186
  • Registered: ‎11-07-2009
  • Location: United States of America
  • Views: 1339
  • Message 1 of 4

Finally X55 5G modem works under linux

2021-06-02, 7:50 AM

Here is an example based on rpm, the following steps need log in as root:

 

1) Download latest kernel 5.13, although 5.12 has mhi driver but it has not been enabled:

    dnf update kernel --release=35

2)  create rpm tree:

    rpmdev-setuptree

3) download latest libmbim, libqmi and ModemMananger, only master branch will work:

      https://github.com/freedesktop/libmbim/archive/refs/heads/master.zip

      https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/archive/master/libqmi-master.zip

      https://github.com/freedesktop/ModemManager/archive/refs/heads/master.zip

4) prepare source packages:

    --unzip those zip files

    --go to each folder, run autogen.sh --prefix=/usr

   --rename the folder to the following name:

      libmbim -->libmbim-1.25.5

      libqmi-->libqmi-1.29.7

      ModemManager--> ModemManager-1.17 

    --create xz file : 

       tar cfJ libmbim-1.25.5.tar.xz libmbim-1.25.5

       tar cfJ libqmi-1.29.7.tar.xz libqmi-1.29.7

       tar cfJ ModemManager-1.17.tar.xz ModemManager-1.17  

    --Move three xz files to  rpmbuild/SOURCES folder

 5) Prepare spec files:

      ModemManager: https://src.fedoraproject.org/rpms/ModemManager/blob/rawhide/f/ModemManager.spec

      libmbim: https://src.fedoraproject.org/rpms/libmbim/blob/rawhide/f/libmbim.spec

      libqmi: https://src.fedoraproject.org/rpms/libqmi/blob/rawhide/f/libqmi.spec

    --Save all three SPEC file to rpmbuild/SPEC folder

    --Edit all versions inside SPEC files  to the current version, that is:

       ModemManager -->1.17

       libqmi -->1.29.7

       libmbim-->1.25.5

 

  --There is a bug in libmbim spec file, need add the following two lines to:

 

      under %file, add line: %{_libdir}/girespository-1.0/Mbim-1.0.typelib

 

      under %files devel, add line:  %{_datadir}/gir-1.0/*.gir

 

6) Make rpms, must in this order:

   rpmbuild -ba rpmbuild/SPECS/libmbim.spec

 

   then install libmbim rpm (libqmi need these!)

   dnf install rpmbuild/RPMS/x86_64/libmbim*,  rpmbuild/RPMS/x86_64/libmbim-devel*,  rpmbuild/RPMS/x86_64/libmbim-utils*

   

   rpmbuild -ba rpmbuild/SPECS/libqmi.spec

 

   then install libqmi rpm:

   dnf install rpmbuild/RPMS/x86_64/libqmi*, l rpmbuild/RPMS/x86_64/ibqmi-devel*,  rpmbuild/RPMS/x86_64/libqmi-utils*

 

   rpmbuild -ba rpmbuild/SPECS/ModemManager.spec

  

   then install ModemManager and ModemManager-glib

 

 7) Reboot. After reboot normally you should see "Foxconn Qualcomm Snapdragon X55 5G" modem. Depends on your system, your SElinux may block ModemManager to access /dev/wwan0p2MBIM port,  you might need allow ModemManager:  ausearch -c ‘ModemManager' --raw|audit2allow -M my-ModemManager and then run semodule -i my-ModemManager.pp

 

 

Kernel 5.13 is not as stable as 5.12 but this is the only option if you want 5G modem running.

 

 

 

  

 

 

 

     

   

Reply
Options

4 Posts

05-22-2021

United States of America

3 Signins

10 Page Views

  • Posts: 4
  • Registered: ‎05-22-2021
  • Location: United States of America
  • Views: 10
  • Message 2 of 4

Re:Finally X55 5G modem works under linux

2021-06-16, 0:10 AM

Thank you so much for this post!

 

You don't assume this will be any different in AARCH64 architecture on a snapdragon CPU, right?

Reply
Options

186 Posts

11-07-2009

United States of America

173 Signins

1339 Page Views

  • Posts: 186
  • Registered: ‎11-07-2009
  • Location: United States of America
  • Views: 1339
  • Message 3 of 4

Re:Finally X55 5G modem works under linux

2021-06-16, 0:20 AM

Will only take you about 15min to compile, why not give a try?

 

 

 

@ Edgy1_MT wrote:

Thank you so much for this post!

 

You don' assume this will be any different in AARCH64 architecture on a snapdragon CPU, right?

 

Reply
Options

4 Posts

05-22-2021

United States of America

3 Signins

10 Page Views

  • Posts: 4
  • Registered: ‎05-22-2021
  • Location: United States of America
  • Views: 10
  • Message 4 of 4

Re:Finally X55 5G modem works under linux

2021-06-16, 0:22 AM
Didn't want to get rid of windows if it wasn't going to work, but i'll give it a shot anyway. Thanks again!
Reply
Forum Home

Community Guidelines

Please review our Guidelines before posting.

Learn More

Check out current deals!

Go Shop
X

Save

X

Delete

X

No, I don’t want to share ideas Yes, I agree to these terms

Most Liked Authors

(Last 7 days)

View All