alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

RPI hangs when i open ttyUSB ports

Tue Oct 18, 2016 7:45 pm

RPI hangs when i consequently open ttyUSB ports on 3 gsm modems
It is stay freeze until i remove usb modems

each modem has 3 ttyUSB serial ports
for example huawei e153
/dev/ttyUSB0 - modem port
/dev/ttyUSB1 - data port
/dev/ttyUSB2 - audio port
This gsm modem uses "option" kernel module


i wrote simple c program to easily represent the issue
source code:

Code: Select all

//usb_test.c

#include <fcntl.h>			/* O_RDWR  */
#include <stdio.h>
#include <unistd.h> 
#include <string.h>


int open_port(char * portname) {

        int fd;

        sleep(1);
        printf( "open [%s] \n", portname);
		fd = open(portname, O_RDWR);
		if( fd == -1) {
			printf( "failed to open [%s] \n", portname);
			return -1;
		}
        return fd;
}

int main() {
    //1st usb modem
    open_port("/dev/ttyUSB0");
    open_port("/dev/ttyUSB1");
    open_port("/dev/ttyUSB2");

    //2nd usb modem
    open_port("/dev/ttyUSB3");
    open_port("/dev/ttyUSB4");
    open_port("/dev/ttyUSB5");

    //3 usb modem
    open_port("/dev/ttyUSB6");
    open_port("/dev/ttyUSB7");
    open_port("/dev/ttyUSB8");

    //4 usb modem
    open_port("/dev/ttyUSB9");
    open_port("/dev/ttyUSB10");
    open_port("/dev/ttyUSB11");

    //5 usb modem
    open_port("/dev/ttyUSB12");
    open_port("/dev/ttyUSB13");
    open_port("/dev/ttyUSB14");
}
compile: gcc usb_test.c -o usb_test


sudo ./usb_test
open [/dev/ttyUSB0]
open [/dev/ttyUSB1]
open [/dev/ttyUSB2]
open [/dev/ttyUSB3]
open [/dev/ttyUSB4]
open [/dev/ttyUSB5]
open [/dev/ttyUSB6]
open [/dev/ttyUSB7]
here RPI get stuck(keyboard, network are unresponsive)

This issue is only RPI related, on PC and even on OpenWRT MIPS devices this test works as intended.

I tried different gsm modems (huawei e153 e173 e220 and some ZTE gsm modems) - issue still there
I tried different branded, self powered usb hubs - no effect
I tried different RPI boards (models RPI B+, RPI2 B ) - the same
I tried different PSU(10A) - the same
Rasbian, Ubuntu - the same

For sure its not a power issue because i use fair 5v 10A PSU and self powered usb hub


Please help me to get managed this bug

alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Wed Oct 19, 2016 1:43 pm

lsusb:

Code: Select all

Bus 001 Device 004: ID 413c:2107 Dell Computer Corp. 
Bus 001 Device 008: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 010: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 011: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 009: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -t:

Code: Select all

/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
        |__ Port 2: Dev 5, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 1: Dev 6, If 0, Class=Hub, Driver=hub/4p, 480M
                |__ Port 1: Dev 9, If 0, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 1: Dev 9, If 1, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 1: Dev 9, If 2, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 2: Dev 11, If 0, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 2: Dev 11, If 1, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 2: Dev 11, If 2, Class=Vendor Specific Class, Driver=option, 480M
            |__ Port 2: Dev 7, If 0, Class=Hub, Driver=hub/4p, 480M
                |__ Port 3: Dev 10, If 0, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 3: Dev 10, If 1, Class=Vendor Specific Class, Driver=option, 480M
                |__ Port 3: Dev 10, If 2, Class=Vendor Specific Class, Driver=option, 480M
            |__ Port 4: Dev 8, If 0, Class=Vendor Specific Class, Driver=option, 480M
            |__ Port 4: Dev 8, If 1, Class=Vendor Specific Class, Driver=option, 480M
            |__ Port 4: Dev 8, If 2, Class=Vendor Specific Class, Driver=option, 480M
        |__ Port 4: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M

lsusb -v

Code: Select all

Bus 001 Device 004: ID 413c:2107 Dell Computer Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x413c Dell Computer Corp.
  idProduct          0x2107 
  bcdDevice            1.15
  iManufacturer           1 Dell
  iProduct                2 Dell USB Entry Keyboard
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.10
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      65
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Status:     0x0000
  (Bus Powered)

Bus 001 Device 008: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1001 E169/E620/E800 HSDPA Modem
  bcdDevice            0.00
  iManufacturer           3 HUAWEI Technology
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          1 Qualcomm Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 010: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1001 E169/E620/E800 HSDPA Modem
  bcdDevice            0.00
  iManufacturer           3 HUAWEI Technology
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          1 Qualcomm Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1a40 Terminus Technology Inc.
  idProduct          0x0101 4-Port HUB
  bcdDevice            1.11
  iManufacturer           0 
  iProduct                1 USB 2.0 Hub
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0000
    Ganged power switching
    Ganged overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0100 power
   Port 3: 0000.0503 highspeed power enable connect
   Port 4: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 011: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1001 E169/E620/E800 HSDPA Modem
  bcdDevice            0.00
  iManufacturer           3 HUAWEI Technology
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          1 Qualcomm Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 009: ID 12d1:1001 Huawei Technologies Co., Ltd. E169/E620/E800 HSDPA Modem
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x12d1 Huawei Technologies Co., Ltd.
  idProduct          0x1001 E169/E620/E800 HSDPA Modem
  bcdDevice            0.00
  iManufacturer           3 HUAWEI Technology
  iProduct                2 HUAWEI Mobile
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           85
    bNumInterfaces          3
    bConfigurationValue     1
    iConfiguration          1 Qualcomm Configuration
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               5
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x82  EP 2 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        2
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval              32
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1a40 Terminus Technology Inc.
  idProduct          0x0101 4-Port HUB
  bcdDevice            1.11
  iManufacturer           0 
  iProduct                1 USB 2.0 Hub
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0000
    Ganged power switching
    Ganged overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0100 power
   Port 4: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1a40 Terminus Technology Inc.
  idProduct          0x0101 4-Port HUB
  bcdDevice            1.11
  iManufacturer           0 
  iProduct                1 USB 2.0 Hub
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             4
  wHubCharacteristic 0x0000
    Ganged power switching
    Ganged overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0100 power
   Port 4: 0000.0503 highspeed power enable connect
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0xec00 SMSC9512/9514 Fast Ethernet Adapter
  bcdDevice            2.00
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol    255 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0010  1x 16 bytes
        bInterval               4
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0 
  bDeviceProtocol         1 
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         2 TT per port
  bMaxPacketSize0        64
  idVendor           0x0424 Standard Microsystems Corp.
  idProduct          0x9514 
  bcdDevice            2.00
  iManufacturer           0 
  iProduct                0 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      1 Single TT
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       1
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      2 TT per port
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             5
  wHubCharacteristic 0x000d
    Per-port power switching
    Compound device
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent      1 milli Ampere
  DeviceRemovable    0x02
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
   Port 2: 0000.0503 highspeed power enable connect
   Port 3: 0000.0100 power
   Port 4: 0000.0303 lowspeed power enable connect
   Port 5: 0000.0100 power
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0        64
  bNumConfigurations      1
Device Status:     0x0001
  Self Powered

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         1 Single TT
  bMaxPacketSize0        64
  idVendor           0x1d6b Linux Foundation
  idProduct          0x0002 2.0 root hub
  bcdDevice            4.04
  iManufacturer           3 Linux 4.4.22-v7+ dwc_otg_hcd
  iProduct                2 DWC OTG Controller
  iSerial                 1 3f980000.usb
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0004  1x 4 bytes
        bInterval              12
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             1
  wHubCharacteristic 0x0008
    Ganged power switching
    Per-port overcurrent protection
    TT think time 8 FS bits
  bPwrOn2PwrGood        1 * 2 milli seconds
  bHubContrCurrent      0 milli Ampere
  DeviceRemovable    0x00
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0503 highspeed power enable connect
Device Status:     0x0001
  Self Powered


alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Wed Oct 19, 2016 5:46 pm

dmesg shows nothing when RPI hangs


dmesg:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.22-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #912 SMP Mon Sep 26 19:04:59 BST 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x3a800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 808c2f40, node_mem_map b9fa6000
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 13 pages/cpu @b9f62000 s22592 r8192 d22464 u53248
[    0.000000] pcpu-alloc: s22592 r8192 d22464 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2709.boardrev=0xa21041 bcm2709.serial=0xcc4ca211 smsc95xx.macaddr=B8:27:EB:4C:BC:79 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939072K/966656K available (6348K kernel code, 432K rwdata, 1716K rodata, 476K init, 764K bss, 19392K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
    lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x807e8550   (8066 kB)
      .init : 0x807e9000 - 0x80860000   ( 476 kB)
      .data : 0x80860000 - 0x808cc250   ( 433 kB)
       .bss : 0x808cf000 - 0x8098e1ec   ( 765 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000032] Switching to timer-based delay loop, resolution 52ns
[    0.000349] Console: colour dummy device 80x30
[    0.001529] console [tty1] enabled
[    0.001581] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001658] pid_max: default: 32768 minimum: 301
[    0.002075] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002127] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003347] Disabling cpuset control group subsystem
[    0.003426] Initializing cgroup subsys io
[    0.003486] Initializing cgroup subsys memory
[    0.003569] Initializing cgroup subsys devices
[    0.003619] Initializing cgroup subsys freezer
[    0.003669] Initializing cgroup subsys net_cls
[    0.003760] CPU: Testing write buffer coherency: ok
[    0.003871] ftrace: allocating 21222 entries in 63 pages
[    0.056245] CPU0: update cpu_capacity 1024
[    0.056323] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.056362] [bcm2709_smp_prepare_cpus] enter
[    0.056526] Setting up static identity map for 0x8240 - 0x8274
[    0.058892] [bcm2709_boot_secondary] cpu:1 started (0) 16
[    0.059332] [bcm2709_secondary_init] enter cpu:1
[    0.059389] CPU1: update cpu_capacity 1024
[    0.059397] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.059960] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.060311] [bcm2709_secondary_init] enter cpu:2
[    0.060340] CPU2: update cpu_capacity 1024
[    0.060348] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.060879] [bcm2709_boot_secondary] cpu:3 started (0) 18
[    0.061134] [bcm2709_secondary_init] enter cpu:3
[    0.061165] CPU3: update cpu_capacity 1024
[    0.061173] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.061260] Brought up 4 CPUs
[    0.061370] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.061404] CPU: All CPU(s) started in HYP mode.
[    0.061433] CPU: Virtualization extensions available.
[    0.062361] devtmpfs: initialized
[    0.075909] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.076407] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.077448] pinctrl core: initialized pinctrl subsystem
[    0.078259] NET: Registered protocol family 16
[    0.084069] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.092442] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.092505] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.092733] Serial: AMBA PL011 UART driver
[    0.093077] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.596816] console [ttyAMA0] enabled
[    0.601125] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.680465] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
[    0.689211] SCSI subsystem initialized
[    0.693228] usbcore: registered new interface driver usbfs
[    0.698879] usbcore: registered new interface driver hub
[    0.704366] usbcore: registered new device driver usb
[    0.719545] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-09-21 13:13
[    0.755295] clocksource: Switched to clocksource arch_sys_counter
[    0.814121] FS-Cache: Loaded
[    0.817472] CacheFiles: Loaded
[    0.837078] NET: Registered protocol family 2
[    0.842702] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.849981] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.856659] TCP: Hash tables configured (established 8192 bind 8192)
[    0.863184] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.869213] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.875948] NET: Registered protocol family 1
[    0.880804] RPC: Registered named UNIX socket transport module.
[    0.886800] RPC: Registered udp transport module.
[    0.891526] RPC: Registered tcp transport module.
[    0.896270] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.904151] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.914017] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.936000] VFS: Disk quotas dquot_6.6.0
[    0.940323] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.950113] FS-Cache: Netfs 'nfs' registered for caching
[    0.956643] NFS: Registering the id_resolver key type
[    0.961784] Key type id_resolver registered
[    0.966056] Key type id_legacy registered
[    0.973289] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.980981] io scheduler noop registered
[    0.984944] io scheduler deadline registered (default)
[    0.990213] io scheduler cfq registered
[    0.997060] BCM2708FB: allocated DMA memory fac00000
[    1.002085] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.018107] Console: switching to colour frame buffer device 80x30
[    1.985811] bcm2835-rng 3f104000.rng: hwrng registered
[    1.994280] vc-cma: Videocore CMA driver
[    2.001341] vc-cma: vc_cma_base      = 0x00000000
[    2.009119] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    2.017545] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    2.026215] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    2.061214] brd: module loaded
[    2.078574] loop: module loaded
[    2.085831] vchiq: vchiq_init_state: slot_zero = 0xbac80000, is_master = 0
[    2.097516] Loading iSCSI transport class v2.0-870.
[    2.106354] usbcore: registered new interface driver smsc95xx
[    2.115145] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.324250] Core Release: 2.80a
[    2.330336] Setting default values for core params
[    2.338109] Finished setting default values for core params
[    2.547148] Using Buffer DMA mode
[    2.553374] Periodic Transfer Interrupt Enhancement - disabled
[    2.562156] Multiprocessor Interrupt Enhancement - disabled
[    2.570707] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.578074] Dedicated Tx FIFOs mode
[    2.584945] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024
[    2.601038] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    2.638637] dwc_otg: Microframe scheduler enabled
[    2.638718] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x80447410
[    2.647870] WARN::hcd_init_fiq:414: FIQ ASM at 0x80447780 length 36
[    2.657300] WARN::hcd_init_fiq:439: MPHI regs_base at 0xbb87e000
[    2.666435] dwc_otg 3f980000.usb: DWC OTG Controller
[    2.674530] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.688122] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    2.696924] Init: Port Power? op_state=1
[    2.703947] Init: Power Port (0)
[    2.710498] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.720478] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.733888] usb usb1: Product: DWC OTG Controller
[    2.741752] usb usb1: Manufacturer: Linux 4.4.22-v7+ dwc_otg_hcd
[    2.750938] usb usb1: SerialNumber: 3f980000.usb
[    2.759723] hub 1-0:1.0: USB hub found
[    2.766602] hub 1-0:1.0: 1 port detected
[    2.774313] dwc_otg: FIQ enabled
[    2.774329] dwc_otg: NAK holdoff enabled
[    2.774340] dwc_otg: FIQ split-transaction FSM enabled
[    2.774382] Module dwc_common_port init
[    2.774738] usbcore: registered new interface driver usb-storage
[    2.784203] mousedev: PS/2 mouse device common for all mice
[    2.793704] bcm2835-cpufreq: min=600000 max=900000
[    2.801857] sdhci: Secure Digital Host Controller Interface driver
[    2.811126] sdhci: Copyright(c) Pierre Ossman
[    2.818943] sdhost: log_buf @ bac13000 (fac13000)
[    2.885344] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.894252] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.903814] ledtrig-cpu: registered to indicate activity on CPUs
[    2.913258] hidraw: raw HID events driver (C) Jiri Kosina
[    2.922151] usbcore: registered new interface driver usbhid
[    2.930951] usbhid: USB HID core driver
[    2.938629] Initializing XFRM netlink socket
[    2.942535] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.944533] mmc0: new high speed SDHC card at address 59b4
[    2.945414] mmcblk0: mmc0:59b4 USDU1 15.0 GiB
[    2.961011]  mmcblk0: p1 p2 p3
[    2.982985] Indeed it is in host mode hprt0 = 00021501
[    2.985445] NET: Registered protocol family 17
[    2.985651] Key type dns_resolver registered
[    2.986239] Registering SWP/SWPB emulation handler
[    2.987445] registered taskstats version 1
[    2.987693] vc-sm: Videocore shared memory driver
[    2.987705] [vc_sm_connected_init]: start
[    2.991869] [vc_sm_connected_init]: end - returning 0
[    2.992143] of_cfs_init
[    2.992260] of_cfs_init: OK
[    3.058622] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.071863] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.235352] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.245167] Indeed it is in host mode hprt0 = 00001101
[    3.445690] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    3.455626] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.455751] EXT4-fs (mmcblk0p2): recovery complete
[    3.466435] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.466509] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.469461] devtmpfs: mounted
[    3.470243] Freeing unused kernel memory: 476K (807e9000 - 80860000)
[    3.515201] hub 1-1:1.0: USB hub found
[    3.522403] hub 1-1:1.0: 5 ports detected
[    3.805366] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.869039] random: systemd: uninitialized urandom read (16 bytes read, 73 bits of entropy available)
[    3.890544] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    3.911593] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.911993] systemd[1]: Detected architecture 'arm'.
[    3.931056] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.946537] smsc95xx v1.0.4
[    4.009583] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:4c:BC:79
[    4.098667] NET: Registered protocol family 10
[    4.108963] systemd[1]: Inserted module 'ipv6'
[    4.120443] systemd[1]: Set hostname to <raspberrypi>.
[    4.287328] uart-pl011 3f201000.uart: no DMA platform data
[    4.331861] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 79 bits of entropy available)
[    4.589491] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.607805] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.626709] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.680787] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.698842] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.715991] random: systemd: uninitialized urandom read (16 bytes read, 81 bits of entropy available)
[    4.772359] random: systemd: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
[    4.811571] random: systemd: uninitialized urandom read (16 bytes read, 82 bits of entropy available)
[    4.982624] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    4.999614] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.016180] systemd[1]: Expecting device dev-ttyAMA0.device...
[    5.031947] systemd[1]: Starting Remote File Systems (Pre).
[    5.047222] systemd[1]: Reached target Remote File Systems (Pre).
[    5.058017] systemd[1]: Starting Encrypted Volumes.
[    5.072130] systemd[1]: Reached target Encrypted Volumes.
[    5.082105] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    5.104670] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.122729] systemd[1]: Starting Swap.
[    5.135175] systemd[1]: Reached target Swap.
[    5.143601] systemd[1]: Expecting device dev-mmcblk0p1.device...
[    5.158012] systemd[1]: Starting Root Slice.
[    5.170419] systemd[1]: Created slice Root Slice.
[    5.178932] systemd[1]: Starting User and Session Slice.
[    5.192172] systemd[1]: Created slice User and Session Slice.
[    5.201591] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    5.216031] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    5.226733] systemd[1]: Starting Delayed Shutdown Socket.
[    5.239848] systemd[1]: Listening on Delayed Shutdown Socket.
[    5.249305] systemd[1]: Starting Journal Socket (/dev/log).
[    5.262654] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.272341] systemd[1]: Starting udev Control Socket.
[    5.284960] systemd[1]: Listening on udev Control Socket.
[    5.293921] systemd[1]: Starting udev Kernel Socket.
[    5.306118] systemd[1]: Listening on udev Kernel Socket.
[    5.314922] systemd[1]: Starting Journal Socket.
[    5.326956] systemd[1]: Listening on Journal Socket.
[    5.335471] systemd[1]: Starting System Slice.
[    5.347276] systemd[1]: Created slice System Slice.
[    5.355689] systemd[1]: Starting File System Check on Root Device...
[    5.406148] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    5.420370] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.430403] systemd[1]: Starting system-autologin.slice.
[    5.443551] systemd[1]: Created slice system-autologin.slice.
[    5.453110] systemd[1]: Starting system-serial\x2dgetty.slice.
[    5.466697] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.476678] systemd[1]: Starting Increase datagram queue length...
[    5.494163] systemd[1]: Starting Restore / save the current clock...
[    5.526298] systemd[1]: Starting Load Kernel Modules...
[    5.555781] systemd[1]: Started Set Up Additional Binary Formats.
[    5.566906] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    5.589061] fuse init (API version 7.23)
[    5.592814] systemd[1]: Mounting Debug File System...
[    5.620401] systemd[1]: Mounting POSIX Message Queue File System...
[    5.640121] systemd[1]: Mounted Huge Pages File System.
[    5.649739] systemd[1]: Starting udev Coldplug all Devices...
[    5.654541] i2c /dev entries driver
[    5.677027] systemd[1]: Starting Slices.
[    5.689404] systemd[1]: Reached target Slices.
[    5.705222] systemd[1]: Mounted POSIX Message Queue File System.
[    5.719751] systemd[1]: Mounted Debug File System.
[    5.734928] systemd[1]: Started File System Check on Root Device.
[    5.761902] systemd[1]: Started Increase datagram queue length.
[    5.777234] systemd[1]: Started Restore / save the current clock.
[    5.792603] systemd[1]: Started Load Kernel Modules.
[    5.806825] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    5.875623] systemd[1]: Time has been changed
[    5.939318] systemd[1]: Started udev Coldplug all Devices.
[    6.101163] systemd[1]: Starting Create Static Device Nodes in /dev...
[    6.146295] systemd[1]: Mounting FUSE Control File System...
[    6.164484] systemd[1]: Starting Apply Kernel Variables...
[    6.184219] systemd[1]: Mounting Configuration File System...
[    6.202953] systemd[1]: Starting Syslog Socket.
[    6.216974] systemd[1]: Listening on Syslog Socket.
[    6.226450] systemd[1]: Starting Journal Service...
[    6.240932] systemd[1]: Started Journal Service.
[    6.427734] systemd-udevd[137]: starting version 215
[    6.911421] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    6.937122] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    7.178384] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    7.859355] systemd-journald[135]: Received request to flush runtime journal from PID 1
[    8.637324] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    8.637615] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.436654] cfg80211: World regulatory domain updated:
[    9.436684] cfg80211:  DFS Master region: unset
[    9.436694] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    9.436708] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    9.436718] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    9.436729] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    9.436742] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    9.436754] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    9.436765] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    9.436775] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    9.436786] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    9.445978] Adding 102396k swap on /var/swap.  Priority:-1 extents:5 across:2019324k SSFS
[   10.018468] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.044407] nf_conntrack version 0.5.0 (14808 buckets, 59232 max)
[   10.753533] tun: Universal TUN/TAP device driver, 1.6
[   10.753556] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   12.151004] random: nonblocking pool is initialized
[   26.235488] usb 1-1.4: new low-speed USB device number 4 using dwc_otg
[   26.362225] usb 1-1.4: New USB device found, idVendor=413c, idProduct=2107
[   26.362248] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   26.362260] usb 1-1.4: Product: Dell USB Entry Keyboard
[   26.362270] usb 1-1.4: Manufacturer: Dell
[   26.383496] input: Dell Dell USB Entry Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/0003:413C:2107.0001/input/input0
[   26.436880] hid-generic 0003:413C:2107.0001: input,hidraw0: USB HID v1.10 Keyboard [Dell Dell USB Entry Keyboard] on usb-3f980000.usb-1.4/input0
[   65.405611] usb 1-1.2: new high-speed USB device number 5 using dwc_otg
[   65.506118] usb 1-1.2: New USB device found, idVendor=1a40, idProduct=0101
[   65.506146] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   65.506164] usb 1-1.2: Product: USB 2.0 Hub
[   65.509240] hub 1-1.2:1.0: USB hub found
[   65.510140] hub 1-1.2:1.0: 4 ports detected
[   65.785623] usb 1-1.2.1: new high-speed USB device number 6 using dwc_otg
[   65.886173] usb 1-1.2.1: New USB device found, idVendor=1a40, idProduct=0101
[   65.886220] usb 1-1.2.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   65.886238] usb 1-1.2.1: Product: USB 2.0 Hub
[   65.888298] hub 1-1.2.1:1.0: USB hub found
[   65.888470] hub 1-1.2.1:1.0: 4 ports detected
[   65.965645] usb 1-1.2.2: new high-speed USB device number 7 using dwc_otg
[   66.066176] usb 1-1.2.2: New USB device found, idVendor=1a40, idProduct=0101
[   66.066201] usb 1-1.2.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   66.066219] usb 1-1.2.2: Product: USB 2.0 Hub
[   66.067775] hub 1-1.2.2:1.0: USB hub found
[   66.068198] hub 1-1.2.2:1.0: 4 ports detected
[   66.145616] usb 1-1.2.4: new high-speed USB device number 8 using dwc_otg
[   66.256754] usb 1-1.2.4: New USB device found, idVendor=12d1, idProduct=1001
[   66.256780] usb 1-1.2.4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   66.256797] usb 1-1.2.4: Product: HUAWEI Mobile
[   66.256813] usb 1-1.2.4: Manufacturer: HUAWEI Technology
[   66.262270] usb-storage 1-1.2.4:1.0: USB Mass Storage device detected
[   66.263802] usb-storage 1-1.2.4:1.1: USB Mass Storage device detected
[   66.265002] usb-storage 1-1.2.4:1.2: USB Mass Storage device detected
[   66.313861] usbcore: registered new interface driver usbserial
[   66.314012] usbcore: registered new interface driver usbserial_generic
[   66.314123] usbserial: USB Serial support registered for generic
[   66.325827] usb 1-1.2.1.1: new high-speed USB device number 9 using dwc_otg
[   66.332254] usbcore: registered new interface driver option
[   66.332478] usbserial: USB Serial support registered for GSM modem (1-port)
[   66.333498] option 1-1.2.4:1.0: GSM modem (1-port) converter detected
[   66.334288] usb 1-1.2.4: GSM modem (1-port) converter now attached to ttyUSB0
[   66.334458] option 1-1.2.4:1.1: GSM modem (1-port) converter detected
[   66.335191] usb 1-1.2.4: GSM modem (1-port) converter now attached to ttyUSB1
[   66.335373] option 1-1.2.4:1.2: GSM modem (1-port) converter detected
[   66.336071] usb 1-1.2.4: GSM modem (1-port) converter now attached to ttyUSB2
[   66.436906] usb 1-1.2.1.1: New USB device found, idVendor=12d1, idProduct=1001
[   66.436931] usb 1-1.2.1.1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   66.436943] usb 1-1.2.1.1: Product: HUAWEI Mobile
[   66.436953] usb 1-1.2.1.1: Manufacturer: HUAWEI Technology
[   66.442408] usb-storage 1-1.2.1.1:1.0: USB Mass Storage device detected
[   66.442990] option 1-1.2.1.1:1.0: GSM modem (1-port) converter detected
[   66.443510] usb 1-1.2.1.1: GSM modem (1-port) converter now attached to ttyUSB3
[   66.444086] usb-storage 1-1.2.1.1:1.1: USB Mass Storage device detected
[   66.444517] option 1-1.2.1.1:1.1: GSM modem (1-port) converter detected
[   66.444960] usb 1-1.2.1.1: GSM modem (1-port) converter now attached to ttyUSB4
[   66.445426] usb-storage 1-1.2.1.1:1.2: USB Mass Storage device detected
[   66.446997] option 1-1.2.1.1:1.2: GSM modem (1-port) converter detected
[   66.447539] usb 1-1.2.1.1: GSM modem (1-port) converter now attached to ttyUSB5
[   66.505698] usb 1-1.2.2.3: new high-speed USB device number 10 using dwc_otg
[   66.616775] usb 1-1.2.2.3: New USB device found, idVendor=12d1, idProduct=1001
[   66.616797] usb 1-1.2.2.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   66.616809] usb 1-1.2.2.3: Product: HUAWEI Mobile
[   66.616820] usb 1-1.2.2.3: Manufacturer: HUAWEI Technology
[   66.621136] usb-storage 1-1.2.2.3:1.0: USB Mass Storage device detected
[   66.621632] option 1-1.2.2.3:1.0: GSM modem (1-port) converter detected
[   66.622087] usb 1-1.2.2.3: GSM modem (1-port) converter now attached to ttyUSB6
[   66.622691] usb-storage 1-1.2.2.3:1.1: USB Mass Storage device detected
[   66.623049] option 1-1.2.2.3:1.1: GSM modem (1-port) converter detected
[   66.623450] usb 1-1.2.2.3: GSM modem (1-port) converter now attached to ttyUSB7
[   66.623855] usb-storage 1-1.2.2.3:1.2: USB Mass Storage device detected
[   66.624191] option 1-1.2.2.3:1.2: GSM modem (1-port) converter detected
[   66.624575] usb 1-1.2.2.3: GSM modem (1-port) converter now attached to ttyUSB8
[   66.695679] usb 1-1.2.1.2: new high-speed USB device number 11 using dwc_otg
[   66.806817] usb 1-1.2.1.2: New USB device found, idVendor=12d1, idProduct=1001
[   66.806839] usb 1-1.2.1.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   66.806851] usb 1-1.2.1.2: Product: HUAWEI Mobile
[   66.806862] usb 1-1.2.1.2: Manufacturer: HUAWEI Technology
[   66.811203] usb-storage 1-1.2.1.2:1.0: USB Mass Storage device detected
[   66.811738] option 1-1.2.1.2:1.0: GSM modem (1-port) converter detected
[   66.812195] usb 1-1.2.1.2: GSM modem (1-port) converter now attached to ttyUSB9
[   66.812718] usb-storage 1-1.2.1.2:1.1: USB Mass Storage device detected
[   66.813091] option 1-1.2.1.2:1.1: GSM modem (1-port) converter detected
[   66.813491] usb 1-1.2.1.2: GSM modem (1-port) converter now attached to ttyUSB10
[   66.813901] usb-storage 1-1.2.1.2:1.2: USB Mass Storage device detected
[   66.814290] option 1-1.2.1.2:1.2: GSM modem (1-port) converter detected
[   66.814715] usb 1-1.2.1.2: GSM modem (1-port) converter now attached to ttyUSB11
!!!RPI STUCK HERE!!!
I DISCONNECT MODEMS AND THEN RPI IS ALIVE AGAIN
[  271.071594] usb 1-1.2.2.3: USB disconnect, device number 10
[  271.072903] option1 ttyUSB6: GSM modem (1-port) converter now disconnected from ttyUSB6
[  271.073037] option 1-1.2.2.3:1.0: device disconnected
[  271.074039] option1 ttyUSB7: GSM modem (1-port) converter now disconnected from ttyUSB7
[  271.074236] option 1-1.2.2.3:1.1: device disconnected
[  271.084599] option1 ttyUSB8: GSM modem (1-port) converter now disconnected from ttyUSB8
[  271.084738] option 1-1.2.2.3:1.2: device disconnected
[  272.195025] usb 1-1.2.1.2: USB disconnect, device number 11
[  272.195920] option1 ttyUSB9: GSM modem (1-port) converter now disconnected from ttyUSB9
[  272.196016] option 1-1.2.1.2:1.0: device disconnected
[  272.196877] option1 ttyUSB10: GSM modem (1-port) converter now disconnected from ttyUSB10
[  272.196974] option 1-1.2.1.2:1.1: device disconnected
[  272.197694] option1 ttyUSB11: GSM modem (1-port) converter now disconnected from ttyUSB11
[  272.197793] option 1-1.2.1.2:1.2: device disconnected
[  273.731229] usb 1-1.2.1.1: USB disconnect, device number 9
[  273.732131] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[  273.732226] option 1-1.2.1.1:1.0: device disconnected
[  273.732902] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[  273.732982] option 1-1.2.1.1:1.1: device disconnected
[  273.733620] option1 ttyUSB5: GSM modem (1-port) converter now disconnected from ttyUSB5
[  273.733701] option 1-1.2.1.1:1.2: device disconnected
[  274.884398] usb 1-1.2.4: USB disconnect, device number 8
[  274.885293] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  274.885387] option 1-1.2.4:1.0: device disconnected
[  274.886043] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  274.886121] option 1-1.2.4:1.1: device disconnected
[  274.888357] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  274.888471] option 1-1.2.4:1.2: device disconnected

alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Thu Oct 20, 2016 9:46 am

i added dwc_otg.speed=1 to /boot/cmdline.txt as suggested here viewtopic.php?f=28&t=53832 but problem still exists

dmesg:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.4.22-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #912 SMP Mon Sep 26 19:04:59 BST 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Raspberry Pi 2 Model B Rev 1.1
[    0.000000] cma: Reserved 8 MiB at 0x3a800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 808c2f40, node_mem_map b9fa6000
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] [bcm2709_smp_init_cpus] enter (9520->f3003010)
[    0.000000] [bcm2709_smp_init_cpus] ncores=4
[    0.000000] PERCPU: Embedded 13 pages/cpu @b9f62000 s22592 r8192 d22464 u53248
[    0.000000] pcpu-alloc: s22592 r8192 d22464 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2709.boardrev=0xa21041 bcm2709.serial=0xcc4ca211 smsc95xx.macaddr=b8:27:eb:4c:BC:79 bcm2708_fb.fbswap=1 bcm2709.uart_clock=48000000 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.speed=1 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 939072K/966656K available (6348K kernel code, 432K rwdata, 1716K rodata, 476K init, 764K bss, 19392K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
    lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x807e8550   (8066 kB)
      .init : 0x807e9000 - 0x80860000   ( 476 kB)
      .data : 0x80860000 - 0x808cc250   ( 433 kB)
       .bss : 0x808cf000 - 0x8098e1ec   ( 765 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000011] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000032] Switching to timer-based delay loop, resolution 52ns
[    0.000347] Console: colour dummy device 80x30
[    0.001530] console [tty1] enabled
[    0.001584] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001661] pid_max: default: 32768 minimum: 301
[    0.002072] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002125] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003347] Disabling cpuset control group subsystem
[    0.003426] Initializing cgroup subsys io
[    0.003489] Initializing cgroup subsys memory
[    0.003574] Initializing cgroup subsys devices
[    0.003625] Initializing cgroup subsys freezer
[    0.003675] Initializing cgroup subsys net_cls
[    0.003770] CPU: Testing write buffer coherency: ok
[    0.003884] ftrace: allocating 21222 entries in 63 pages
[    0.056311] CPU0: update cpu_capacity 1024
[    0.056391] CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
[    0.056431] [bcm2709_smp_prepare_cpus] enter
[    0.056593] Setting up static identity map for 0x8240 - 0x8274
[    0.058987] [bcm2709_boot_secondary] cpu:1 started (0) 17
[    0.059420] [bcm2709_secondary_init] enter cpu:1
[    0.059480] CPU1: update cpu_capacity 1024
[    0.059488] CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
[    0.060064] [bcm2709_boot_secondary] cpu:2 started (0) 18
[    0.060415] [bcm2709_secondary_init] enter cpu:2
[    0.060446] CPU2: update cpu_capacity 1024
[    0.060454] CPU2: thread -1, cpu 2, socket 15, mpidr 80000f02
[    0.060983] [bcm2709_boot_secondary] cpu:3 started (0) 18
[    0.061236] [bcm2709_secondary_init] enter cpu:3
[    0.061267] CPU3: update cpu_capacity 1024
[    0.061275] CPU3: thread -1, cpu 3, socket 15, mpidr 80000f03
[    0.061362] Brought up 4 CPUs
[    0.061473] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.061506] CPU: All CPU(s) started in HYP mode.
[    0.061535] CPU: Virtualization extensions available.
[    0.062457] devtmpfs: initialized
[    0.076038] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.076541] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.077588] pinctrl core: initialized pinctrl subsystem
[    0.078396] NET: Registered protocol family 16
[    0.084248] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.092672] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.092735] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.092961] Serial: AMBA PL011 UART driver
[    0.093308] 3f201000.uart: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.598431] console [ttyAMA0] enabled
[    0.602743] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.682102] bcm2835-dma 3f007000.dma: DMA legacy API manager at f3007000, dmachans=0x1
[    0.690846] SCSI subsystem initialized
[    0.694858] usbcore: registered new interface driver usbfs
[    0.700511] usbcore: registered new interface driver hub
[    0.705994] usbcore: registered new device driver usb
[    0.721168] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-09-21 13:13
[    0.756944] clocksource: Switched to clocksource arch_sys_counter
[    0.815791] FS-Cache: Loaded
[    0.819144] CacheFiles: Loaded
[    0.838749] NET: Registered protocol family 2
[    0.844376] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.851658] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.858338] TCP: Hash tables configured (established 8192 bind 8192)
[    0.864866] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.870898] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.877632] NET: Registered protocol family 1
[    0.882491] RPC: Registered named UNIX socket transport module.
[    0.888492] RPC: Registered udp transport module.
[    0.893219] RPC: Registered tcp transport module.
[    0.897963] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.905884] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.915760] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.937738] VFS: Disk quotas dquot_6.6.0
[    0.942068] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.951851] FS-Cache: Netfs 'nfs' registered for caching
[    0.958395] NFS: Registering the id_resolver key type
[    0.963539] Key type id_resolver registered
[    0.967779] Key type id_legacy registered
[    0.974884] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.982607] io scheduler noop registered
[    0.986570] io scheduler deadline registered (default)
[    0.991827] io scheduler cfq registered
[    0.998681] BCM2708FB: allocated DMA memory fac00000
[    1.003708] BCM2708FB: allocated DMA channel 0 @ f3007000
[    1.019806] Console: switching to colour frame buffer device 80x30
[    1.977615] bcm2835-rng 3f104000.rng: hwrng registered
[    1.986124] vc-cma: Videocore CMA driver
[    1.993175] vc-cma: vc_cma_base      = 0x00000000
[    2.000942] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    2.009360] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    2.018054] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    2.053022] brd: module loaded
[    2.070290] loop: module loaded
[    2.077585] vchiq: vchiq_init_state: slot_zero = 0xbac80000, is_master = 0
[    2.089248] Loading iSCSI transport class v2.0-870.
[    2.098051] usbcore: registered new interface driver smsc95xx
[    2.106844] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    2.315968] Core Release: 2.80a
[    2.322053] Setting default values for core params
[    2.329826] Finished setting default values for core params
[    2.538871] Using Buffer DMA mode
[    2.545101] Periodic Transfer Interrupt Enhancement - disabled
[    2.553885] Multiprocessor Interrupt Enhancement - disabled
[    2.562439] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.569831] Dedicated Tx FIFOs mode
[    2.576702] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xbac14000 dma = 0xfac14000 len=9024
[    2.592801] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    2.630397] dwc_otg: Microframe scheduler enabled
[    2.630482] WARN::hcd_init_fiq:413: FIQ on core 1 at 0x80447410
[    2.639636] WARN::hcd_init_fiq:414: FIQ ASM at 0x80447780 length 36
[    2.649064] WARN::hcd_init_fiq:439: MPHI regs_base at 0xbb87e000
[    2.658202] dwc_otg 3f980000.usb: DWC OTG Controller
[    2.666299] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    2.679892] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    2.688696] Init: Port Power? op_state=1
[    2.695725] Init: Power Port (0)
[    2.702294] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.712278] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.725698] usb usb1: Product: DWC OTG Controller
[    2.733567] usb usb1: Manufacturer: Linux 4.4.22-v7+ dwc_otg_hcd
[    2.742759] usb usb1: SerialNumber: 3f980000.usb
[    2.751533] hub 1-0:1.0: USB hub found
[    2.758420] hub 1-0:1.0: 1 port detected
[    2.766103] dwc_otg: FIQ enabled
[    2.766117] dwc_otg: NAK holdoff enabled
[    2.766127] dwc_otg: FIQ split-transaction FSM enabled
[    2.766168] Module dwc_common_port init
[    2.766546] usbcore: registered new interface driver usb-storage
[    2.776017] mousedev: PS/2 mouse device common for all mice
[    2.785509] bcm2835-cpufreq: min=600000 max=900000
[    2.793669] sdhci: Secure Digital Host Controller Interface driver
[    2.802949] sdhci: Copyright(c) Pierre Ossman
[    2.810797] sdhost: log_buf @ bac13000 (fac13000)
[    2.876987] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    2.885884] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.895445] ledtrig-cpu: registered to indicate activity on CPUs
[    2.904878] hidraw: raw HID events driver (C) Jiri Kosina
[    2.913761] usbcore: registered new interface driver usbhid
[    2.922560] usbhid: USB HID core driver
[    2.930222] Initializing XFRM netlink socket
[    2.934168] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.936169] mmc0: new high speed SDHC card at address 59b4
[    2.937041] mmcblk0: mmc0:59b4 USDU1 15.0 GiB
[    2.952615]  mmcblk0: p1 p2 p3
[    2.974626] NET: Registered protocol family 17
[    2.974662] Indeed it is in host mode hprt0 = 00021501
[    2.990665] Key type dns_resolver registered
[    2.998659] Registering SWP/SWPB emulation handler
[    3.007745] registered taskstats version 1
[    3.015206] vc-sm: Videocore shared memory driver
[    3.023086] [vc_sm_connected_init]: start
[    3.030922] [vc_sm_connected_init]: end - returning 0
[    3.039382] of_cfs_init
[    3.044967] of_cfs_init: OK
[    3.054791] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.068076] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.147037] usb 1-1: new full-speed USB device number 2 using dwc_otg
[    3.156968] Indeed it is in host mode hprt0 = 00021501
[    3.357262] usb 1-1: not running at top speed; connect to a high speed hub
[    3.367710] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    3.377656] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.389084] hub 1-1:1.0: USB hub found
[    3.396178] hub 1-1:1.0: 5 ports detected
[    3.559793] EXT4-fs (mmcblk0p2): recovery complete
[    3.579127] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.593335] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.606482] devtmpfs: mounted
[    3.613472] Freeing unused kernel memory: 476K (807e9000 - 80860000)
[    3.697011] usb 1-1.1: new full-speed USB device number 3 using dwc_otg
[    3.807395] usb 1-1.1: not running at top speed; connect to a high speed hub
[    3.818297] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.828686] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.845936] smsc95xx v1.0.4
[    3.912273] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:4c:BC:79
[    3.964309] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
[    3.986483] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    4.007018] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[    4.018639] systemd[1]: Detected architecture 'arm'.
[    4.117281] usb 1-1.3: not running at top speed; connect to a high speed hub
[    4.128886] usb 1-1.3: New USB device found, idVendor=1a40, idProduct=0101
[    4.139688] usb 1-1.3: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.154585] usb 1-1.3: Product: USB 2.0 Hub
[    4.163863] hub 1-1.3:1.0: USB hub found
[    4.171767] hub 1-1.3:1.0: 4 ports detected
[    4.175816] NET: Registered protocol family 10
[    4.178068] systemd[1]: Inserted module 'ipv6'
[    4.181483] systemd[1]: Set hostname to <raspberrypi>.
[    4.328187] uart-pl011 3f201000.uart: no DMA platform data
[    4.379861] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 20 bits of entropy available)
[    4.506996] usb 1-1.3.1: new full-speed USB device number 5 using dwc_otg
[    4.603064] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.621395] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.638062] usb 1-1.3.1: not running at top speed; connect to a high speed hub
[    4.639888] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.669478] usb 1-1.3.1: New USB device found, idVendor=1a40, idProduct=0101
[    4.678332] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.679390] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.679611] random: systemd: uninitialized urandom read (16 bytes read, 23 bits of entropy available)
[    4.719268] random: systemd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[    4.740432] random: systemd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
[    4.766635] usb 1-1.3.1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.783135] usb 1-1.3.1: Product: USB 2.0 Hub
[    4.793189] hub 1-1.3.1:1.0: USB hub found
[    4.801965] hub 1-1.3.1:1.0: 4 ports detected
[    4.897759] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    4.907066] usb 1-1.3.2: new full-speed USB device number 6 using dwc_otg
[    4.926337] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    4.942501] systemd[1]: Expecting device dev-ttyAMA0.device...
[    4.957835] systemd[1]: Starting Remote File Systems (Pre).
[    4.972226] systemd[1]: Reached target Remote File Systems (Pre).
[    4.982629] systemd[1]: Starting Encrypted Volumes.
[    4.996005] systemd[1]: Reached target Encrypted Volumes.
[    5.005626] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    5.027394] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.044742] systemd[1]: Starting Swap.
[    5.052698] usb 1-1.3.2: device descriptor read/all, error -71
[    5.066521] systemd[1]: Reached target Swap.
[    5.074659] systemd[1]: Expecting device dev-mmcblk0p1.device...
[    5.089004] systemd[1]: Starting Root Slice.
[    5.101473] systemd[1]: Created slice Root Slice.
[    5.110003] systemd[1]: Starting User and Session Slice.
[    5.123272] systemd[1]: Created slice User and Session Slice.
[    5.132754] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    5.146982] usb 1-1.3.1.3: new full-speed USB device number 7 using dwc_otg
[    5.158181] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    5.168971] systemd[1]: Starting Delayed Shutdown Socket.
[    5.182480] systemd[1]: Listening on Delayed Shutdown Socket.
[    5.192056] systemd[1]: Starting Journal Socket (/dev/log).
[    5.205612] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.215303] systemd[1]: Starting udev Control Socket.
[    5.228018] systemd[1]: Listening on udev Control Socket.
[    5.237129] systemd[1]: Starting udev Kernel Socket.
[    5.249555] systemd[1]: Listening on udev Kernel Socket.
[    5.258462] systemd[1]: Starting Journal Socket.
[    5.267318] usb 1-1.3.1.3: not running at top speed; connect to a high speed hub
[    5.267619] usb 1-1.3.1.3: New USB device found, idVendor=0424, idProduct=2412
[    5.267631] usb 1-1.3.1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    5.268672] hub 1-1.3.1.3:1.0: USB hub found
[    5.268820] hub 1-1.3.1.3:1.0: 2 ports detected
[    5.331226] systemd[1]: Listening on Journal Socket.
[    5.339997] systemd[1]: Starting System Slice.
[    5.352155] systemd[1]: Created slice System Slice.
[    5.360734] systemd[1]: Starting File System Check on Root Device...
[    5.387056] usb 1-1.3.2: new full-speed USB device number 8 using dwc_otg
[    5.427842] systemd[1]: Starting system-systemd\x2dfsck.slice.
[    5.442461] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[    5.452866] systemd[1]: Starting system-autologin.slice.
[    5.467024] systemd[1]: Created slice system-autologin.slice.
[    5.476786] systemd[1]: Starting system-serial\x2dgetty.slice.
[    5.491632] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.502042] systemd[1]: Starting Increase datagram queue length...
[    5.520040] systemd[1]: Starting Restore / save the current clock...
[    5.537517] usb 1-1.3.2: not running at top speed; connect to a high speed hub
[    5.547221] systemd[1]: Starting Load Kernel Modules...
[    5.562617] usb 1-1.3.2: New USB device found, idVendor=1a40, idProduct=0101
[    5.562630] usb 1-1.3.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    5.562639] usb 1-1.3.2: Product: USB 2.0 Hub
[    5.577489] hub 1-1.3.2:1.0: USB hub found
[    5.577683] hub 1-1.3.2:1.0: 4 ports detected
[    5.618800] usb 1-1.3.1.3.1: new low-speed USB device number 9 using dwc_otg
[    5.693343] systemd[1]: Started Set Up Additional Binary Formats.
[    5.707773] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    5.734107] systemd[1]: Mounting Debug File System...
[    5.751874] systemd[1]: Mounting POSIX Message Queue File System...
[    5.771319] systemd[1]: Mounted Huge Pages File System.
[    5.775299] fuse init (API version 7.23)
[    5.789188] systemd[1]: Starting udev Coldplug all Devices...
[    5.808645] systemd[1]: Starting Slices.
[    5.822755] systemd[1]: Reached target Slices.
[    5.839848] systemd[1]: Mounted POSIX Message Queue File System.
[    5.853843] systemd[1]: Mounted Debug File System.
[    5.867231] i2c /dev entries driver
[    5.875381] systemd[1]: Started Increase datagram queue length.
[    5.910286] systemd[1]: Started Restore / save the current clock.
[    5.927263] systemd[1]: Started Load Kernel Modules.
[    5.941696] systemd[1]: Started File System Check on Root Device.
[    5.957730] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    6.017465] systemd[1]: Time has been changed
[    6.087099] usb 1-1.3.1.3.1: new low-speed USB device number 10 using dwc_otg
[    6.101535] systemd[1]: Started udev Coldplug all Devices.
[    6.250931] systemd[1]: Starting Create Static Device Nodes in /dev...
[    6.307944] systemd[1]: Mounting FUSE Control File System...
[    6.326215] systemd[1]: Starting Apply Kernel Variables...
[    6.345926] systemd[1]: Mounting Configuration File System...
[    6.364544] systemd[1]: Starting Syslog Socket.
[    6.378556] systemd[1]: Listening on Syslog Socket.
[    6.387711] systemd[1]: Starting Journal Service...
[    6.409847] systemd[1]: Started Journal Service.
[    6.547091] usb 1-1.3.1.3.1: new low-speed USB device number 11 using dwc_otg
[    6.615266] systemd-udevd[137]: starting version 215
[    7.047077] usb 1-1.3.1.3.1: new low-speed USB device number 12 using dwc_otg
[    7.409948] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    7.547033] usb 1-1.3.1.3.2: new low-speed USB device number 13 using dwc_otg
[    8.006978] usb 1-1.3.1.3.2: new low-speed USB device number 14 using dwc_otg
[    8.466980] usb 1-1.3.1.3.2: new low-speed USB device number 15 using dwc_otg
[    8.966978] usb 1-1.3.1.3.2: new low-speed USB device number 16 using dwc_otg
[    9.476006] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    9.487351] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[   10.220473] systemd-journald[134]: Received request to flush runtime journal from PID 1
[   11.030620] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   11.030970] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.928600] Adding 102396k swap on /var/swap.  Priority:-1 extents:5 across:2019324k SSFS
[   11.943289] cfg80211: World regulatory domain updated:
[   11.943317] cfg80211:  DFS Master region: unset
[   11.943326] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.943340] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.943351] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.943361] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.943374] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   11.943387] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   11.943397] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   11.943408] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.943418] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   12.618978] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.660960] nf_conntrack version 0.5.0 (14808 buckets, 59232 max)
[   13.157831] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.159316] smsc95xx 1-1.1:1.0 eth0: link up, 10Mbps, half-duplex, lpa 0x0020
[   13.384547] tun: Universal TUN/TAP device driver, 1.6
[   13.384573] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   14.957625] random: nonblocking pool is initialized
[   85.117328] usb 1-1.3.4: new full-speed USB device number 17 using dwc_otg
[   85.240914] usb 1-1.3.4: not running at top speed; connect to a high speed hub
[   85.251426] usb 1-1.3.4: New USB device found, idVendor=12d1, idProduct=1001
[   85.251451] usb 1-1.3.4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   85.251469] usb 1-1.3.4: Product: HUAWEI Mobile
[   85.251484] usb 1-1.3.4: Manufacturer: HUAWEI Technology
[   85.256120] usb-storage 1-1.3.4:1.0: USB Mass Storage device detected
[   85.259890] usb-storage 1-1.3.4:1.1: USB Mass Storage device detected
[   85.261384] usb-storage 1-1.3.4:1.2: USB Mass Storage device detected
[   85.317777] usbcore: registered new interface driver usbserial
[   85.317933] usbcore: registered new interface driver usbserial_generic
[   85.318055] usbserial: USB Serial support registered for generic
[   85.335916] usbcore: registered new interface driver option
[   85.336113] usbserial: USB Serial support registered for GSM modem (1-port)
[   85.337024] option 1-1.3.4:1.0: GSM modem (1-port) converter detected
[   85.340109] usb 1-1.3.4: GSM modem (1-port) converter now attached to ttyUSB0
[   85.340318] option 1-1.3.4:1.1: GSM modem (1-port) converter detected
[   85.340924] usb 1-1.3.4: GSM modem (1-port) converter now attached to ttyUSB1
[   85.341059] option 1-1.3.4:1.2: GSM modem (1-port) converter detected
[   85.341583] usb 1-1.3.4: GSM modem (1-port) converter now attached to ttyUSB2
[   91.787355] usb 1-1.3.1.1: new full-speed USB device number 18 using dwc_otg
[   91.910919] usb 1-1.3.1.1: not running at top speed; connect to a high speed hub
[   91.921651] usb 1-1.3.1.1: New USB device found, idVendor=12d1, idProduct=1001
[   91.921675] usb 1-1.3.1.1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   91.921692] usb 1-1.3.1.1: Product: HUAWEI Mobile
[   91.921708] usb 1-1.3.1.1: Manufacturer: HUAWEI Technology
[   91.926944] usb-storage 1-1.3.1.1:1.0: USB Mass Storage device detected
[   91.928640] option 1-1.3.1.1:1.0: GSM modem (1-port) converter detected
[   91.929372] usb 1-1.3.1.1: GSM modem (1-port) converter now attached to ttyUSB3
[   91.930259] usb-storage 1-1.3.1.1:1.1: USB Mass Storage device detected
[   91.930956] option 1-1.3.1.1:1.1: GSM modem (1-port) converter detected
[   91.931573] usb 1-1.3.1.1: GSM modem (1-port) converter now attached to ttyUSB4
[   91.932310] usb-storage 1-1.3.1.1:1.2: USB Mass Storage device detected
[   91.932921] option 1-1.3.1.1:1.2: GSM modem (1-port) converter detected
[   91.933518] usb 1-1.3.1.1: GSM modem (1-port) converter now attached to ttyUSB5
[   94.097341] usb 1-1.3.2.4: new full-speed USB device number 19 using dwc_otg
[   94.220664] usb 1-1.3.2.4: not running at top speed; connect to a high speed hub
[   94.231229] usb 1-1.3.2.4: New USB device found, idVendor=12d1, idProduct=1001
[   94.231245] usb 1-1.3.2.4: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   94.231256] usb 1-1.3.2.4: Product: HUAWEI Mobile
[   94.231267] usb 1-1.3.2.4: Manufacturer: HUAWEI Technology
[   94.234608] usb-storage 1-1.3.2.4:1.0: USB Mass Storage device detected
[   94.235147] option 1-1.3.2.4:1.0: GSM modem (1-port) converter detected
[   94.235590] usb 1-1.3.2.4: GSM modem (1-port) converter now attached to ttyUSB6
[   94.236189] usb-storage 1-1.3.2.4:1.1: USB Mass Storage device detected
[   94.236561] option 1-1.3.2.4:1.1: GSM modem (1-port) converter detected
[   94.236998] usb 1-1.3.2.4: GSM modem (1-port) converter now attached to ttyUSB7
[   94.238138] usb-storage 1-1.3.2.4:1.2: USB Mass Storage device detected
[   94.238613] option 1-1.3.2.4:1.2: GSM modem (1-port) converter detected
[   94.239114] usb 1-1.3.2.4: GSM modem (1-port) converter now attached to ttyUSB8
[   96.307350] usb 1-1.3.2.2: new full-speed USB device number 20 using dwc_otg
[   96.430790] usb 1-1.3.2.2: not running at top speed; connect to a high speed hub
[   96.441113] usb 1-1.3.2.2: New USB device found, idVendor=12d1, idProduct=1001
[   96.441131] usb 1-1.3.2.2: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[   96.441142] usb 1-1.3.2.2: Product: HUAWEI Mobile
[   96.441153] usb 1-1.3.2.2: Manufacturer: HUAWEI Technology
[   96.444571] usb-storage 1-1.3.2.2:1.0: USB Mass Storage device detected
[   96.445091] option 1-1.3.2.2:1.0: GSM modem (1-port) converter detected
[   96.445565] usb 1-1.3.2.2: GSM modem (1-port) converter now attached to ttyUSB9
[   96.446106] usb-storage 1-1.3.2.2:1.1: USB Mass Storage device detected
[   96.446479] option 1-1.3.2.2:1.1: GSM modem (1-port) converter detected
[   96.446882] usb 1-1.3.2.2: GSM modem (1-port) converter now attached to ttyUSB10
[   96.447378] usb-storage 1-1.3.2.2:1.2: USB Mass Storage device detected
[   96.448608] option 1-1.3.2.2:1.2: GSM modem (1-port) converter detected
[   96.449142] usb 1-1.3.2.2: GSM modem (1-port) converter now attached to ttyUSB11
[  133.257515] ------------[ cut here ]------------
[  133.257587] WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:306 dev_watchdog+0x2a4/0x2b0()
[  133.257624] NETDEV WATCHDOG: eth0 (smsc95xx): transmit queue 0 timed out
[  133.257641] Modules linked in: option usb_wwan usbserial tun xt_REDIRECT nf_nat_redirect xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack ip_tables x_tables binfmt_misc cfg80211 rfkill snd_bcm2835 snd_pcm snd_timer bcm2835_gpiomem snd bcm2835_wdt uio_pdrv_genirq uio i2c_dev fuse ipv6
[  133.257845] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.22-v7+ #912
[  133.257864] Hardware name: BCM2709
[  133.257912] [<80018784>] (unwind_backtrace) from [<80014058>] (show_stack+0x20/0x24)
[  133.257965] [<80014058>] (show_stack) from [<80321064>] (dump_stack+0xd4/0x118)
[  133.257999] [<80321064>] (dump_stack) from [<800253c0>] (warn_slowpath_common+0x98/0xc8)
[  133.258032] [<800253c0>] (warn_slowpath_common) from [<80025430>] (warn_slowpath_fmt+0x40/0x48)
[  133.258058] [<80025430>] (warn_slowpath_fmt) from [<804f9640>] (dev_watchdog+0x2a4/0x2b0)
[  133.258095] [<804f9640>] (dev_watchdog) from [<80081db0>] (call_timer_fn+0x40/0x1a0)
[  133.258119] [<80081db0>] (call_timer_fn) from [<800820d0>] (run_timer_softirq+0x1c0/0x324)
[  133.258155] [<800820d0>] (run_timer_softirq) from [<80029110>] (__do_softirq+0x18c/0x3cc)
[  133.258177] [<80029110>] (__do_softirq) from [<800296f0>] (irq_exit+0xdc/0x140)
[  133.258215] [<800296f0>] (irq_exit) from [<80071274>] (__handle_domain_irq+0x70/0xc4)
[  133.258241] [<80071274>] (__handle_domain_irq) from [<80010a74>] (handle_IRQ+0x2c/0x30)
[  133.258279] [<80010a74>] (handle_IRQ) from [<8000951c>] (bcm2836_arm_irqchip_handle_irq+0xb8/0xbc)
[  133.258306] [<8000951c>] (bcm2836_arm_irqchip_handle_irq) from [<805ba784>] (__irq_svc+0x44/0x5c)
[  133.258332] Exception stack(0x80861f08 to 0x80861f50)
[  133.258351] 1f00:                   00000000 b9f623c8 00000000 00000000 80860000 808625dc
[  133.258379] 1f20: 80862500 80862580 805bee5c 808c68d8 ba7ff6c0 80861f64 808634f8 80861f58
[  133.258395] 1f40: 80010b34 80010b38 60000013 ffffffff
[  133.258435] [<805ba784>] (__irq_svc) from [<80010b38>] (arch_cpu_idle+0x34/0x4c)
[  133.258472] [<80010b38>] (arch_cpu_idle) from [<80063fa0>] (default_idle_call+0x34/0x48)
[  133.258499] [<80063fa0>] (default_idle_call) from [<800641c8>] (cpu_startup_entry+0x214/0x2b0)
[  133.258536] [<800641c8>] (cpu_startup_entry) from [<805b503c>] (rest_init+0x88/0x8c)
[  133.258563] [<805b503c>] (rest_init) from [<807e9d34>] (start_kernel+0x3dc/0x3e8)
[  133.258628] ---[ end trace c60781dd79e330e3 ]---
[  150.073181] usb 1-1.3.1.1: USB disconnect, device number 18
[  150.074566] option1 ttyUSB3: GSM modem (1-port) converter now disconnected from ttyUSB3
[  150.074663] option 1-1.3.1.1:1.0: device disconnected
[  150.077296] option1 ttyUSB4: GSM modem (1-port) converter now disconnected from ttyUSB4
[  150.077458] option 1-1.3.1.1:1.1: device disconnected
[  150.079836] usb 1-1.3.4: USB disconnect, device number 17
[  150.081098] option1 ttyUSB5: GSM modem (1-port) converter now disconnected from ttyUSB5
[  150.081217] option 1-1.3.1.1:1.2: device disconnected
[  150.082025] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[  150.082155] option 1-1.3.4:1.0: device disconnected
[  150.083891] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[  150.084136] option 1-1.3.4:1.1: device disconnected
[  150.085298] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[  150.085420] option 1-1.3.4:1.2: device disconnected
[  153.912470] usb 1-1.3.2.4: USB disconnect, device number 19
[  153.913372] option1 ttyUSB6: GSM modem (1-port) converter now disconnected from ttyUSB6
[  153.913471] option 1-1.3.2.4:1.0: device disconnected
[  153.914271] option1 ttyUSB7: GSM modem (1-port) converter now disconnected from ttyUSB7
[  153.914378] option 1-1.3.2.4:1.1: device disconnected
[  153.915535] option1 ttyUSB8: GSM modem (1-port) converter now disconnected from ttyUSB8
[  153.915677] option 1-1.3.2.4:1.2: device disconnected
[  157.373521] usb 1-1.3.2.2: USB disconnect, device number 20
[  157.374406] option1 ttyUSB9: GSM modem (1-port) converter now disconnected from ttyUSB9
[  157.374506] option 1-1.3.2.2:1.0: device disconnected
[  157.375352] option1 ttyUSB10: GSM modem (1-port) converter now disconnected from ttyUSB10
[  157.375462] option 1-1.3.2.2:1.1: device disconnected
[  157.376642] option1 ttyUSB11: GSM modem (1-port) converter now disconnected from ttyUSB11
[  157.376787] option 1-1.3.2.2:1.2: device disconnected

alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Thu Oct 20, 2016 1:21 pm

I decided to trace usb data with wireshark

when i open ttyUSB serial port there is plenty of "URB_BULK in" messages infinitely go to wireshark
here is pcap file
Attachments
usb_modems_dump_usb_rpi_split1000.pcapng.tar.bz2
usb trace
(60.04 KiB) Downloaded 54 times

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: RPI hangs when i open ttyUSB ports

Mon Oct 24, 2016 10:36 am

Interesting, but probably frustrating problem. I think you need to catch the attention of someone who have done some work with the kernel/firmware/usb to get some progress.

I have a question, does it behave differently if you open just one port on each modem. in stead of doing 0,1,2,3,4,5,6,7,8... do 0,3,6,9,1,4,7,10. ?

alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Tue Oct 25, 2016 10:08 am

topguy wrote: I have a question, does it behave differently if you open just one port on each modem. in stead of doing 0,1,2,3,4,5,6,7,8... do 0,3,6,9,1,4,7,10. ?
Nope, it doesn't make any difference.


The limitation is in the SoC USB peripheral, only 8 USB host channels are supported. i.e you can use max 7 USB serial ports at once (actually any endpoint which use "BULK transfer"). Once you exceeded that limit your PI will live without USB (network, keyboard, mouse etc...).

https://github.com/raspberrypi/linux/issues/1692

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: RPI hangs when i open ttyUSB ports

Tue Oct 25, 2016 11:47 am

It did answer what I was looking for, its the number of open endpoints that matter, not the number of modems.

I don't know what your usecase for the modems are, do you need to open all three ports per modem all the time ?

alex_nikropenko
Posts: 8
Joined: Tue Oct 18, 2016 7:40 pm

Re: RPI hangs when i open ttyUSB ports

Thu Oct 27, 2016 6:52 pm

topguy wrote:It did answer what I was looking for, its the number of open endpoints that matter, not the number of modems.

I don't know what your usecase for the modems are, do you need to open all three ports per modem all the time ?
Sorry for the delay

My project requires at least 5 modems (2 serial ports per modem) to be opened at the same time, so this seems to be impossible with RPI. Even 2 modems (4 serial ports) + wifi adapter don't work consistently.

indee
Posts: 10
Joined: Fri Oct 14, 2016 8:48 am

Re: RPI hangs when i open ttyUSB ports

Fri Oct 28, 2016 6:27 am

I tested many USB to Serial adapters and seems even 3 Serial ports do not work reliable. :x
viewtopic.php?f=33&t=162770

Return to “Troubleshooting”