We have moved to a new Sailfish OS Forum. Please start new discussions there.
10

Could be 'cdc-wdm' and 'qmi_wwan' drivers support included in the next kernel build?

asked 2015-11-07 14:40:47 +0300

Krum Nevelsen gravatar image

updated 2015-11-09 17:38:41 +0300

Hey, it will be cool to have cdc-wdm and qmi_wwan modules in our kernel, so that one will be able to use libqmi to create incredible cellular network monitor application. Pleeeeaaase...

P.S. It's pretty simple to compile libqmi on the Jolla Phone, but it also would be very nice to include pre-compiled library in the next SailfishOS release too.

edit retag flag offensive close delete

Comments

2

you should be able to compile the kernel module yourself with the kernel sources and a Mer Platform SDK.

r0kk3rz ( 2015-11-07 16:30:47 +0300 )edit

Thank you for pointing me to this info.

Krum Nevelsen ( 2015-11-08 01:33:13 +0300 )edit
3

Please test https://dl.dropbox.com/s/63vddpabt07t1ze/cdc-wdm.ko (copy it to the device, then do devel-su insmod cdc-wdm.ko inside of the folder you copied it to). Please note that this is compiled for SfOS 2.0.0.10.

If it works for you I'll release it at openrepos.

V10lator ( 2015-11-09 15:15:23 +0300 )edit
1

@V10lator, if you feel like documenting your procedure, theres a spot for it on the merwiki here https://wiki.merproject.org/wiki/Compiling_Jolla_kernel

r0kk3rz ( 2015-11-09 15:33:49 +0300 )edit
2

@r0kk3rz The wiki talks about using Mer SDK but I'm doing this directly on the phone. What I do is basically:

  1. Setup a NFS share on my (Linux) PC
  2. Mount the share like this: mount -t nfs4 -o addr=192.168.2.5 nfs-share:/ /home/nemo/nfs
  3. Get the kernel sources and extract them to /home/nemo/nfs
  4. Configure the kernel to your likings while adding everything you want as a module (like cdc-wdm in that example)
  5. Do make -j3 (warning: This is heavy. It's probably better to just do make)
  6. Copy out the .ko files
  7. Try to load them with insmod

Hope this helps. Also feel free to add this to the wiki if you think it fits there. :)

Also, if you want to have an example for a spec file to release such a module on openrepos, here's the one I use for f2fs (with f2fs there's ofc. another step before configuring the kernel: Patching it) :

Name:          f2fs
Version:       0.3
Release:       0
Summary:       f2fs kernel module
Group:         Driver/Filesystem
Vendor:        V10lator
Distribution:  SailfishOS
Packager:      V10lator <v10lator@myway.de>
URL:           www.v10lator.de

License:       GPLv2

%description
f2fs kernel module

%files
%defattr(744,root,root,-)
/lib/modules/3.4.106.20150416.1/extra/fs/f2fs/f2fs.ko
/lib/modules/3.4.108.20150901.1/extra/fs/f2fs/f2fs.ko

%post
depmod -a

%postun
if [ $1 = 0 ]; then
    // Do stuff specific to uninstalls
    rm -rf /lib/modules/3.4.106.20150416.1/extra/fs/f2fs
    rm -rf /lib/modules/3.4.108.20150901.1/extra/fs/f2fs
fi

%changelog
* Sat Oct 24 2015 V10lator <v10lator@myway.de> 0.3-0
- Add module for kernel 3.4.108.20150901.1

* Sat Jul 04 2015 V10lator <v10lator@myway.de> 0.2-1
- Remove duplicated code.

* Sat Jul 04 2015 V10lator <v10lator@myway.de> 0.1-1
- First release.
V10lator ( 2015-11-09 15:43:50 +0300 )edit

1 Answer

Sort by » oldest newest most voted
6

answered 2015-11-07 17:42:53 +0300

Philippe De Swert gravatar image

Well at least looks like it compiles. Let's see if it can be added as a module by default. Can't promise when that happens. In the meantime you can recompile the kernel and enable it yourself.

edit flag offensive delete publish link more

Comments

Thanks in advance! It will be very cool to have such a great feature enabled by default.

Krum Nevelsen ( 2015-11-08 01:32:31 +0300 )edit
2

It turned out that qmi_wwan (./drivers/net/usb/) module should be present as well as cdc-wdm. I'm sorry for late understanding of this fact, but it does make sense. It would be great to get the kernel with these modules included in the next SailfishOS release...

Krum Nevelsen ( 2015-11-09 17:36:36 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2015-11-07 14:40:47 +0300

Seen: 1,050 times

Last updated: Nov 09 '15