error: couldn't close device: Transaction timed out

Joe joe.on.list at gmail.com
Wed Jun 3 09:19:20 PDT 2015


On Monday 01 June 2015 10:39:07 you wrote:
> On Mon, Jun 1, 2015 at 10:14 AM, Joe <joe.on.list at gmail.com> wrote:
> >
> > What do you think about the fact that it works good
> > on Slackware-14.0 (kernel updated to 3.19.4) and fails on Debian Jessie
> > (kernel updated to 4.0.4)?
> 
> Hard to say without looking at debug logs in both systems and comparing... 
:/

Finally upgraded libmbim to 1.13.0 development version also on Debian
Jessie.
I've also created a littl bash script to produce a log of commands
launched:

-------------------------
$ cat olicard-mbimcli.sh 
#!/bin/sh
set -x
mbimcli --verbose -d /dev/cdc-wdm0 --query-radio-state
mbimcli --verbose -d /dev/cdc-wdm0 --set-radio-state on
mbimcli --verbose -d /dev/cdc-wdm0 --register-automatic
mbimcli --verbose -d /dev/cdc-wdm0 --connect=ibox.tim.it --no-close
-------------------------------------------------------------------

I launched it as follows:

# olicard-mbimcli.sh &> olicard-debian.log

Log file "olicard-debian.log" is attached to this message.

As regard same test under slackware I had to edit the script a little:

- $DEV var introduced cause olicard dongle is linked to /dev/cdc-wdm1
  instead of cdc-wdm0. Same commands as above anyway...

"-slackware" Log generated in the same way of debian system:

# olicard-mbimcli.sh &> olicard-slackware.log

And attached to this message.

Hope you could say something more by compare these to logs.



> > Possible som trouble with usb drivers?
> 
> Hard to say... Not sure if there were many changes in those drivers
> between 3.19 and 4.0.

Or perahps some different lower level package as libusb for example...
Anyway I can immagine it was not easy di say...


I'll waiting for your answer!
Thank again,
See you







-------------
PS. OT
-------------

> > Almost-OT:
> > An other question... I'm not a debian user, how can I try your
> > patched git version building a debian like package?
> > (I know well enough slackbuilds but I'm at first experience on
> > a debian like system).
> 
> I think it should be something like "apt-get source libmbim", then
> adding the patch file in the proper place of the debian/ directory
> there. It's been a long time since I've done debian packaging tasks...
> you can likely get better help googling about it.


Yes, I understand your hint just now, after have read something about
debian packages:

1. Obtain libmbim development sources tarball from git:
-------------------------------------------------------
git clone git://anongit.freedesktop.org/libmbim/libmbim
cd libmbim
NOCONFIGURE=1 ./autogen.sh
./configure --enable-gtk-doc
make
make distcheck
---------------

2. Obtain last (unstable) libmbim debian source package:
------
# pwd
/build/libmbim/1.12.2
# apt-get build-dep libmbim
# apt-get source libmbim
# ls
libmbim-1.12.2  libmbim_1.12.2-2.debian.tar.xz  libmbim_1.12.2-2.dsc
libmbim_1.12.2.orig.tar.xz
---------------------------

3. Copy "debian" subdirectory from debian sources to new vanilla sources
------------------------
/build/libmbim# ls -F *
1.12.2:
libmbim-1.12.2/  libmbim_1.12.2-2.debian.tar.xz  libmbim_1.12.2-2.dsc
libmbim_1.12.2.orig.tar.xz

1.13.0:

/build/libmbim/1.13.0# cd 1.13.0

/build/libmbim/1.13.0# tar xvJf /build/git/libmbim/libmbim-1.13.0.tar.xz

/build/libmbim/1.13.0# ls
libmbim-1.13.0

/build/libmbim/1.13.0# cp ../1.12.2/libmbim-1.12.2/debian libmbim-1.13.0/

/build/libmbim/1.13.0# cd libmbim-1.13.0/
-----------------------------------------

3. Change package version editing "debian/changelog".. I've edited it by
hand but there was a command to do that:

----------------------------------------------------------
/build/libmbim/1.13.0/libmbim-1.13.0# debchange -v 1.13.0
---------------------------------------------------------

4. Rebuild debian binary packages
--------------------------------

/build/libmbim/1.13.0/libmbim-1.13.0# fakeroot debian/rules clean
/build/libmbim/1.13.0/libmbim-1.13.0# fakeroot debian/rules binary

/build/libmbim/1.13.0/libmbim-1.13.0# ls ..
libmbim-1.13.0                      libmbim-glib-doc_1.13.0-1_all.deb
libmbim-glib4_1.13.0-1_i386.deb  libmbim-utils_1.13.0-1_i386.deb
libmbim-glib-dev_1.13.0-1_i386.deb  libmbim-glib4-dbg_1.13.0-1_i386.deb
libmbim-proxy_1.13.0-1_i386.deb

5. Finally install them and solve some deps if needed:
-------------------------------------
/build/libmbim/1.13.0/# dpkg -i *deb
/build/libmbim/1.13.0/# apt-get install -f
# dpkg -l |grep libmbim
-----------------------

Last to verify packages installed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olicard-debian.log
Type: text/x-log
Size: 14664 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libmbim-devel/attachments/20150603/ecc57583/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: olicard-slackware.log
Type: text/x-log
Size: 19666 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libmbim-devel/attachments/20150603/ecc57583/attachment-0003.bin>


More information about the libmbim-devel mailing list