On 24/06/11 15:59, Christian Gagneraud wrote:
Hi,

I'm trying to use a USB broadband modem with ofono and connman, when i
plug the modem, i get an error from systemd "Failed to load device unit:
Invalid argument" (full log below).

Is it looking for a dev-tty@.device file?

root@tmbbv3:~ systemctl --no-pager list-units
UNIT                      LOAD   ACTIVE SUB       JOB
dev-hugepages.automount loaded active waiting Huge Pages File System Aut dev-mqueue.automount loaded active waiting POSIX Message Queue File S
sys-devi...ttyUSB0.device loaded active plugged       HUAWEI_Mobile
sys-devi...ttyUSB1.device loaded active plugged       HUAWEI_Mobile
sys-devi...ttyUSB2.device loaded active plugged       HUAWEI_Mobile
[...]

So it seems to work... In that case why this error message?

Chris

As i'm having trouble to get ofono working, I wonder if the problem
doesn't come from here instead, or even perhaps it's due to the
manufaturer and serial number of the USB device being garbage...

Any hints or directions would be greatly appreciated.

thanks,
Chris

PS: I'm using systemd-29, kernel 2.6.39 on an embedded ARM based device,
and hand crafted distro with ptxdist
(http://www.ptxdist.org/software/ptxdist/index_en.html)

[ 2386.720000] usb 1-2: new full speed USB device number 8 using at91_ohci
[ 2386.900000] usb 1-2: New USB device found, idVendor=12d1, idProduct=1001
[ 2386.900000] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=1
[ 2386.900000] usb 1-2: Product: HUAWEI Mobile
[ 2386.900000] usb 1-2: Manufacturer:
�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ
[ 2386.900000] usb 1-2: SerialNumber:
�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ
[ 2386.910000] scsi14 : usb-storage 1-2:1.0
[ 2386.910000] usb 1-2: USB disconnect, device number 8
[ 2387.410000] usb 1-2: new full speed USB device number 9 using at91_ohci
[ 2387.590000] usb 1-2: New USB device found, idVendor=12d1, idProduct=1001
[ 2387.590000] usb 1-2: New USB device strings: Mfr=1, Product=2,
SerialNumber=1
[ 2387.590000] usb 1-2: Product: HUAWEI Mobile
[ 2387.590000] usb 1-2: Manufacturer:
�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ
[ 2387.590000] usb 1-2: SerialNumber:
�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ�ÿ
[ 2387.600000] option 1-2:1.0: GSM modem (1-port) converter detected
[ 2387.610000] usb 1-2: GSM modem (1-port) converter now attached to
ttyUSB0
[ 2387.610000] option 1-2:1.1: GSM modem (1-port) converter detected
[ 2387.610000] usb 1-2: GSM modem (1-port) converter now attached to
ttyUSB1
[ 2387.610000] option 1-2:1.2: GSM modem (1-port) converter detected
[ 2387.610000] usb 1-2: GSM modem (1-port) converter now attached to
ttyUSB2
[ 2387.620000] scsi18 : usb-storage 1-2:1.3
 >[ 2387.730000] systemd[1]: Failed to load device unit: Invalid argument
 >[ 2387.740000] systemd[1]: dev-ttyUSB2.device changed dead -> plugged
 >[ 2387.750000] systemd[1]:
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.2-ttyUSB2-tty-ttyUSB2.device
changed dead -> plugged
 >[ 2387.750000] systemd[1]: Running GC...
 >[ 2387.750000] systemd[1]: Collecting
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.3-host13-target13:0:0-13:0:0:1-block-sda.device

 >[ 2387.750000] systemd[1]: Collecting dev-sda.device
 >[ 2387.750000] systemd[1]: Collecting
dev-disk-by\x2did-usb\x2dHUAWEI_SD_Storage_\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xe

 >[ 2387.750000] systemd[1]: Collecting
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.0-ttyUSB0-tty-ttyUSB0.device

 >[ 2387.750000] systemd[1]: Collecting dev-ttyUSB0.device
 >[ 2387.750000] systemd[1]: Collecting
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.1-ttyUSB1-tty-ttyUSB1.device

 >[ 2387.750000] systemd[1]: Collecting dev-ttyUSB1.device
 >[ 2387.770000] systemd[1]: Failed to load device unit: Invalid argument
 >[ 2387.790000] systemd[1]: dev-ttyUSB0.device changed dead -> plugged
 >[ 2387.790000] systemd[1]:
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.0-ttyUSB0-tty-ttyUSB0.device
changed dead -> plugged
 >[ 2387.790000] systemd[1]: Failed to load device unit: Invalid argument
 >[ 2387.800000] systemd[1]: dev-ttyUSB1.device changed dead -> plugged
 >[ 2387.800000] systemd[1]:
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.1-ttyUSB1-tty-ttyUSB1.device
changed dead -> plugged
[ 2388.630000] scsi 18:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2388.640000] scsi 18:0:0:1: Direct-Access HUAWEI SD Storage 2.31 PQ: 0
ANSI: 2
[ 2388.700000] sd 18:0:0:1: [sda] Attached SCSI removable disk
 >[ 2388.800000] systemd[1]:
dev-disk-by\x2did-usb\x2dHUAWEI_SD_Storage_\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\xc3\xbf\d

 >[ 2388.800000] systemd[1]: dev-sda.device changed dead -> plugged
 >[ 2388.800000] systemd[1]:
sys-devices-platform-at91_ohci-usb1-1\x2d2-1\x2d2:1.3-host18-target18:0:0-18:0:0:1-block-sda.device
changed dead -> plugged
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to