Probleme mit WLan-Client

Rund um die Hardware des Revolution Pi
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Probleme mit WLan-Client

Post by Hannes »

Liebe Community,

bislang habe ich mich immer wieder einmal lesend im Hintergrund aufgehalten. Jetzt allerdings stelle ich selbst einmal eine Frage.

Ich habe kuriose Probleme mit einem WLan-Client der Firma LyconSys. Der Link zum Client ist wie folgt:

http://www.lyconsys.com/index.php/de/pr ... lanadapter

(Der RevPi ist in einem Gehäuse auf Hutschiene verbaut, der Wlan-Client ist per USB verbunden.)

Wenn ich das System "kaltstarte", also ganz normal boote, dann startet der Client, aber geht noch während des Bootvorganges des RevPis in den inaktiven Zustand. Er macht einfach gar nichts mehr bzw. die Status-LED des Gerätes ist tot. Keine Netzsuche, kein Verbindungsaufbau und schon gar keine Verbindung.
Es gibt zwei Möglichkeiten dieses Problem zu lösen, die allerdings wesentlich unpraktikabel sind:

1. USB-Kabel ziehen und wieder einstecken --> Verbindung zum WLAN wird aufgebaut.
2. Reboot (sudo shutdown -r now) --> RevPi startet neu und schon während des Bootvorganges baut der Client die Verbindung zum Netzwerk auf.

Ich habe schon mit dem Hersteller des Clients telefoniert und bis auf den Anschlag google bemüht, aber ich komme nicht mehr weiter. Zuletzt lagen meine Versuche im Bereich Powermanagement, bzw. autosuspend, aber das hat zum Einen nicht funktioniert und zum Anderen macht es irgend wie wenig Sinn...

Ich hoffe Ihr könnt mir weiterhelfen und ich freue mich auf Eure Antworten.

Viele Grüße

Hannes
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29

Re: Probleme mit WLan-Client

Post by lukas »

Bitte mal den Output von "sudo dmesg" posten nach einem Kaltstart und nach einem Warmstart.
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Re: Probleme mit WLan-Client

Post by Hannes »

Hallo Lukas,

werde ich gleich morgen früh machen, wenn ich das System wieder vor mir habe!

Bis dahin und viele Grüße

Hannes
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Re: Probleme mit WLan-Client

Post by Hannes »

Guten Morgen Community,

hier kommen, wie gestern gewünscht, die Ausgaben von "sudo dmesg" nach Kalt- und Warmstart:

Kaltstart:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.13-rt15+ (md@pc-mduckeck) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #4 PREEMPT RT Mon Aug 8 14:46:27 CEST 2016
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Compute Module Rev 1.0
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c0874854, node_mem_map db010000
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708.boardrev=0x14 bcm2708.serial=0xe9d04370 bcm2708_fb.fbswap=1 bcm2708.uart_clock=3000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait smsc95xx.macaddr=c8:3e:a7:00:0e:d1
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 436556K/458752K available (5977K kernel code, 504K rwdata, 1812K rodata, 352K init, 760K bss, 14004K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07a3950   (7791 kB)
[    0.000000]       .init : 0xc07a4000 - 0xc07fc000   ( 352 kB)
[    0.000000]       .data : 0xc07fc000 - 0xc087a1b4   ( 505 kB)
[    0.000000]        .bss : 0xc087a1b4 - 0xc0938418   ( 761 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:522
[    0.000000] clocksource stc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000016] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000047] Switching to timer-based delay loop, resolution 1000ns
[    0.000325] Console: colour dummy device 80x30
[    0.001934] console [tty1] enabled
[    0.001974] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=1000)
[    0.001981] pid_max: default: 32768 minimum: 301
[    0.002384] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002399] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003557] Initializing cgroup subsys blkio
[    0.003577] Initializing cgroup subsys memory
[    0.003603] Initializing cgroup subsys devices
[    0.003621] Initializing cgroup subsys freezer
[    0.003639] Initializing cgroup subsys net_cls
[    0.003774] CPU: Testing write buffer coherency: ok
[    0.003787] ftrace: allocating 19834 entries in 59 pages
[    0.114007] Setting up static identity map for 0x81c0 - 0x81f8
[    0.118731] devtmpfs: initialized
[    0.132312] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.132809] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.135415] pinctrl core: initialized pinctrl subsystem
[    0.136687] NET: Registered protocol family 16
[    0.142428] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.144235] bcm2708.uart_clock = 3000000
[    0.151709] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.151806] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.152160] Serial: AMBA PL011 UART driver
[    0.152492] 20201000.uart: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev2
[    0.153729] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.210649] bcm2708-dmaengine 20007000.dma: DMA legacy API manager at f2007000, dmachans=0xf35
[    0.210827] bcm2708-dmaengine 20007000.dma: Initialized 7 DMA channels (+ 1 legacy)
[    0.211959] bcm2708-dmaengine 20007000.dma: Load BCM2835 DMA engine driver
[    0.212144] bcm2708-dmaengine 20007000.dma: dma_debug:0
[    0.213310] SCSI subsystem initialized
[    0.213756] usbcore: registered new interface driver usbfs
[    0.213952] usbcore: registered new interface driver hub
[    0.214372] usbcore: registered new device driver usb
[    0.215553] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-03-15 14:47
[    0.243463] Switched to clocksource stc
[    0.305818] FS-Cache: Loaded
[    0.306304] CacheFiles: Loaded
[    0.326835] NET: Registered protocol family 2
[    0.328813] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.329023] TCP bind hash table entries: 4096 (order: 4, 98304 bytes)
[    0.329383] TCP: Hash tables configured (established 4096 bind 4096)
[    0.329659] UDP hash table entries: 256 (order: 2, 16384 bytes)
[    0.329785] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
[    0.330335] NET: Registered protocol family 1
[    0.331333] RPC: Registered named UNIX socket transport module.
[    0.331427] RPC: Registered udp transport module.
[    0.331656] RPC: Registered tcp transport module.
[    0.331713] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.333203] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.335086] futex hash table entries: 256 (order: 1, 8192 bytes)
[    0.357870] VFS: Disk quotas dquot_6.6.0
[    0.358368] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.362289] FS-Cache: Netfs 'nfs' registered for caching
[    0.363925] NFS: Registering the id_resolver key type
[    0.364107] Key type id_resolver registered
[    0.364162] Key type id_legacy registered
[    0.369275] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.370009] io scheduler noop registered
[    0.370108] io scheduler deadline registered (default)
[    0.370270] io scheduler cfq registered
[    0.374339] BCM2708FB: allocated DMA memory 5b800000
[    0.374911] BCM2708FB: allocated DMA channel 0 @ f2007000
[    0.381260] Console: switching to colour frame buffer device 80x30
[    0.387959] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[    0.392352] vc-cma: Videocore CMA driver
[    0.394803] vc-cma: vc_cma_base      = 0x00000000
[    0.397002] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.399120] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.401730] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.433069] brd: module loaded
[    0.448137] loop: module loaded
[    0.451754] vchiq: vchiq_init_state: slot_zero = 0xdb880000, is_master = 0
[    0.456645] Loading iSCSI transport class v2.0-870.
[    0.461087] usbcore: registered new interface driver smsc95xx
[    0.464086] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.666915] Core Release: 2.80a
[    0.669044] Setting default values for core params
[    0.671154] Finished setting default values for core params
[    0.873845] Using Buffer DMA mode
[    0.875929] Periodic Transfer Interrupt Enhancement - disabled
[    0.877948] Multiprocessor Interrupt Enhancement - disabled
[    0.879975] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.882010] Dedicated Tx FIFOs mode
[    0.884981] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    0.889287] FIQ FSM acceleration enabled for :
[    0.889287] Non-periodic Split Transactions
[    0.889287] Periodic Split Transactions
[    0.889287] High-Speed Isochronous Endpoints
[    0.897423] dwc_otg: Microframe scheduler enabled
[    0.897641] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0405b38
[    0.897651] WARN::hcd_init_fiq:413: FIQ ASM at 0xc0405e10 length 36
[    0.897673] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc896000
[    0.897739] dwc_otg 20980000.usb: DWC OTG Controller
[    0.906263] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.910852] dwc_otg 20980000.usb: irq 32, io mem 0x00000000
[    0.913127] Init: Port Power? op_state=1
[    0.915251] Init: Power Port (0)
[    0.917882] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.920075] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.924235] usb usb1: Product: DWC OTG Controller
[    0.926388] usb usb1: Manufacturer: Linux 4.1.13-rt15+ dwc_otg_hcd
[    0.928629] usb usb1: SerialNumber: 20980000.usb
[    0.932126] hub 1-0:1.0: USB hub found
[    0.934642] hub 1-0:1.0: 1 port detected
[    0.937752] dwc_otg: FIQ enabled
[    0.937779] dwc_otg: NAK holdoff enabled
[    0.937793] dwc_otg: FIQ split-transaction FSM enabled
[    0.937865] Module dwc_common_port init
[    0.938626] usbcore: registered new interface driver usb-storage
[    0.941297] mousedev: PS/2 mouse device common for all mice
[    0.945029] bcm2835-cpufreq: min=700000 max=700000
[    0.947800] sdhci: Secure Digital Host Controller Interface driver
[    0.949949] sdhci: Copyright(c) Pierre Ossman
[    0.952876] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.955106] mmc-bcm2835 20300000.mmc: mmc-bcm2835: Unable to initialise DMA channels. Falling back to PIO
[    0.981962] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.985240] hidraw: raw HID events driver (C) Jiri Kosina
[    0.991698] usbcore: registered new interface driver usbhid
[    0.994196] usbhid: USB HID core driver
[    1.005759] Initializing XFRM netlink socket
[    1.016994] NET: Registered protocol family 17
[    1.019845] Key type dns_resolver registered
[    1.024265] registered taskstats version 1
[    1.026893] vc-sm: Videocore shared memory driver
[    1.029173] [vc_sm_connected_init]: start
[    1.032751] [vc_sm_connected_init]: end - returning 0
[    1.038925] Waiting for root device /dev/mmcblk0p2...
[    1.045928] mmc0: MAN_BKOPS_EN bit is not set
[    1.050252] mmc0: new high speed MMC card at address 0001
[    1.053323] mmcblk0: mmc0:0001 4FEACB 3.64 GiB
[    1.056002] mmcblk0boot0: mmc0:0001 4FEACB partition 1 4.00 MiB
[    1.058724] mmcblk0boot1: mmc0:0001 4FEACB partition 2 4.00 MiB
[    1.061266] mmcblk0rpmb: mmc0:0001 4FEACB partition 3 512 KiB
[    1.069330]  mmcblk0: p1 p2
[    1.136727] Indeed it is in host mode hprt0 = 00021501
[    1.160643] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.166795] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.173026] devtmpfs: mounted
[    1.179305] Freeing unused kernel memory: 352K (c07a4000 - c07fc000)
[    1.368966] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.376081] Indeed it is in host mode hprt0 = 00001101
[    1.678311] random: nonblocking pool is initialized
[    1.702069] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.708081] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.743322] hub 1-1:1.0: USB hub found
[    1.775694] hub 1-1:1.0: 5 ports detected
[    2.103822] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.192102] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.194722] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.209643] smsc95xx v1.0.4
[    2.271397] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, c8:3e:a7:00:0e:d1
[    2.479631] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    2.605046] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    2.607729] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.621720] usb 1-1.2: Product: HP Basic USB Keyboard
[    2.626407] usb 1-1.2: Manufacturer: CHICONY
[    2.667965] input: CHICONY HP Basic USB Keyboard as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:0024.0001/input/input0
[    2.737949] hid-generic 0003:03F0:0024.0001: input,hidraw0: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-20980000.usb-1.2/input0
[    3.893358] udevd[176]: starting version 175
[    7.187907] bcm2835-rng 20104000.rng: hwrng registered
[    7.380781] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    7.476982] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    7.581654] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    7.691276] usb 1-1.3: New USB device found, idVendor=148f, idProduct=5370
[    7.691293] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.691302] usb 1-1.3: Product: 802.11 n WLAN
[    7.691311] usb 1-1.3: Manufacturer: Ralink
[    7.691319] usb 1-1.3: SerialNumber: 1.0
[    9.709018] usb 1-1.3: USB disconnect, device number 5
[   10.259404] rtc-pcf2127 1-0051: chip found, driver version 0.0.1
[   10.282899] rtc-pcf2127 1-0051: rtc core: registered rtc-pcf2127 as rtc0
[   10.567771] cfg80211: Calling CRDA to update world regulatory domain
[   10.893930] usbcore: registered new interface driver rt2800usb
[   13.716802] cfg80211: Calling CRDA to update world regulatory domain
[   14.628926] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   15.219759] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   16.706203] i2c /dev entries driver
[   16.863671] cfg80211: Calling CRDA to update world regulatory domain
[   20.010661] cfg80211: Calling CRDA to update world regulatory domain
[   23.154706] cfg80211: Calling CRDA to update world regulatory domain
[   26.302642] cfg80211: Calling CRDA to update world regulatory domain
[   28.792704] smsc95xx 1-1.1:1.0 eth0: hardware isn t capable of remote wakeup
[   29.450647] cfg80211: Calling CRDA to update world regulatory domain
[   32.592602] cfg80211: Calling CRDA to update world regulatory domain
[   35.514384] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   35.734668] cfg80211: Calling CRDA to update world regulatory domain
[   38.692410] piControl: built: Mon Nov 7 10:58:58 CET 2016
[   38.692597] piControl: MAJOR-No.  : 243
[   38.697159] piControl: MAJOR-No.  : 243  MINOR-No.  : 0
[   38.709717] uart-pl011 20201000.uart: no DMA platform data
[   38.749020] piControl: vfs_read returned 0: da6e8f00, 13976
[   38.749158] piControl: 4 devices found
[   38.749175] piControl: 225 entries in total
[   38.759092] piControl: copylist has 3 entries
[   38.876640] cfg80211: Calling CRDA to update world regulatory domain
[   38.880842] spi spi0.0: setting up native-CS0 as GPIO 8
[   38.919684] piControl: mGate thread started
[   38.924841] piControl: Module 0: Link check   piControl: Module 1: Link check
[   38.932551] piIO thread started
[   38.932594] RevPiDevice_init()
[   38.932610] piControl: Enter Init State
[   38.932626] piControl: sniff1A: mode 0 value 0
[   38.932653] piControl: sniff1B: mode 0 value 0
[   38.932673] piControl: sniff2A: mode 0 value 0
[   38.932689] piControl: sniff2B: mode 0 value 0
[   38.933611] piControl: Enter PresentSignalling1 State
[   38.933648] piControl: sniff2A: mode 1 value 1
[   38.933676] piControl: sniff2B: mode 1 value 1
[   38.934878] piControl: piControlInit done
[   38.942611] piControl: Enter PresentSignalling2 State
[   38.942658] piControl: sniff2A: mode 0 value 0
[   38.942686] piControl: sniff2B: mode 0 value 0
[   38.973611] piControl: Enter InitialSlaveDetectionRight State
[   38.973661] piControl: sniff2B: input value 1
[   38.974610] piControl: Enter ConfigRightStart State
[   38.974648] piControl: sniff1B: mode 1 value 0
[   38.985615] piControl: Enter ConfigDialogueRight State
[   39.032753] piControl: found 2. device on right side. Moduletype 96. Designated address 32
[   39.032792] piControl: input offset      2  len  70
[   39.032806] piControl: output offset    72  len  18
[   39.033422] piControl: Enter SlaveDetectionRight State
[   39.033520] piControl: sniff2B: input value 1
[   39.034442] piControl: Enter ConfigDialogueRight State
[   39.055920] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 4
[   39.074645] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 4
[   39.096766] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 3
[   39.115679] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 4
[   39.137687] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 3
[   39.248757] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.249382] piControl: Enter InitialSlaveDetectionLeft State
[   39.249410] piControl: sniff1B: mode 0 value 0
[   39.249508] piControl: sniff2A: input value 1
[   39.250386] piControl: Enter ConfigLeftStart State
[   39.250422] piControl: sniff1A: mode 1 value 0
[   39.262383] piControl: Enter ConfigDialogueLeft State
[   39.309690] piControl: found 3. device on left side. Moduletype 97. Designated address 31
[   39.309745] piControl: input offset     90  len  70
[   39.309761] piControl: output offset   160  len  18
[   39.310361] piControl: Enter SlaveDetectionLeft State
[   39.310401] piControl: sniff2A: input value 1
[   39.311371] piControl: Enter ConfigDialogueLeft State
[   39.422686] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.533688] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.644660] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.755648] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.866674] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.977685] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   39.978307] piControl: Enter EndOfConfig State
[   39.978307]
[   39.978346] piControl: Device  0: Addr 0 Type 95  Act 1  In 1 Out 1
[   39.978361] piControl:            input offset      0  len   1
[   39.978374] piControl:            output offset     1  len   1
[   39.978389] piControl: Device  1: Addr 32 Type 96  Act 1  In 70 Out 18
[   39.978402] piControl:            input offset      2  len  70
[   39.978416] piControl:            output offset    72  len  18
[   39.978432] piControl: Device  2: Addr 31 Type 97  Act 1  In 70 Out 18
[   39.978510] piControl:            input offset     90  len  70
[   39.978527] piControl:            output offset   160  len  18
[   39.978540] piControl:
[   39.978552] piControl: sniff1A: mode 0 value 0
[   39.978586] piControl: Adjust: base 0 in 0 out 1 conf 0
[   39.978604] piControl: Adjust: base 2 in 2 out 72 conf 90
[   39.978619] piControl: After Adjustment
[   39.978634] piControl: Device  0: Addr 0 Type 95  Act 1  In 1 Out 1
[   39.978647] piControl:            input offset      0  len   1
[   39.978662] piControl:            output offset     1  len   1
[   39.978677] piControl: Device  1: Addr 32 Type 96  Act 1  In 70 Out 18
[   39.978689] piControl:            input offset      2  len  70
[   39.978701] piControl:            output offset    72  len  18
[   39.978717] piControl: Device  2: Addr 31 Type 97  Act 0  In 70 Out 18
[   39.978729] piControl:            input offset     90  len  70
[   39.978741] piControl:            output offset   160  len  18
[   39.978757] piControl: Device  3: Addr 33 Type 32865  Act 0  In 70 Out 18
[   39.978768] piControl:            input offset    115  len  70
[   39.978781] piControl:            output offset   185  len  18
[   39.978796] piControl: Device  4: Addr 0 Type 32768  Act 0  In 32 Out 32
[   39.978809] piControl:            input offset    228  len  32
[   39.978821] piControl:            output offset   260  len  32
[   39.978831] piControl:
[   40.079662] piControl: start data exchange
[   40.285880] piControl: set BridgeState to running
[   42.026647] cfg80211: Calling CRDA to update world regulatory domain
[   45.168631] cfg80211: Exceeded CRDA call max attempts. Not calling CRDA
[   52.650841] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS
[   69.164581] piControl piControl0: piControlOpen
[   69.164591] piControl: opened instance 1
Warmstart:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.13-rt15+ (md@pc-mduckeck) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #4 PREEMPT RT Mon Aug 8 14:46:27 CEST 2016
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Compute Module Rev 1.0
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c0874854, node_mem_map db010000
[    0.000000]   Normal zone: 1008 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113680
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0x14 bcm2708.serial=0xe9d04370 bcm2708_fb.fbswap=1 bcm2708.uart_clock=3000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait smsc95xx.macaddr=c8:3e:a7:00:0e:d1
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 436556K/458752K available (5977K kernel code, 504K rwdata, 1812K rodata, 352K init, 760K bss, 14004K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07a3950   (7791 kB)
[    0.000000]       .init : 0xc07a4000 - 0xc07fc000   ( 352 kB)
[    0.000000]       .data : 0xc07fc000 - 0xc087a1b4   ( 505 kB)
[    0.000000]        .bss : 0xc087a1b4 - 0xc0938418   ( 761 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:522
[    0.000000] clocksource stc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[    0.000015] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[    0.000046] Switching to timer-based delay loop, resolution 1000ns
[    0.000327] Console: colour dummy device 80x30
[    0.001936] console [tty1] enabled
[    0.001976] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=1000)
[    0.001983] pid_max: default: 32768 minimum: 301
[    0.002388] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002402] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003564] Initializing cgroup subsys blkio
[    0.003584] Initializing cgroup subsys memory
[    0.003610] Initializing cgroup subsys devices
[    0.003629] Initializing cgroup subsys freezer
[    0.003646] Initializing cgroup subsys net_cls
[    0.003781] CPU: Testing write buffer coherency: ok
[    0.003796] ftrace: allocating 19834 entries in 59 pages
[    0.114053] Setting up static identity map for 0x81c0 - 0x81f8
[    0.118783] devtmpfs: initialized
[    0.132302] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.132802] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.135285] pinctrl core: initialized pinctrl subsystem
[    0.136686] NET: Registered protocol family 16
[    0.142430] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.144236] bcm2708.uart_clock = 3000000
[    0.151713] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.151811] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.152166] Serial: AMBA PL011 UART driver
[    0.152499] 20201000.uart: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev2
[    0.153745] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[    0.210694] bcm2708-dmaengine 20007000.dma: DMA legacy API manager at f2007000, dmachans=0xf35
[    0.210870] bcm2708-dmaengine 20007000.dma: Initialized 7 DMA channels (+ 1 legacy)
[    0.212018] bcm2708-dmaengine 20007000.dma: Load BCM2835 DMA engine driver
[    0.212205] bcm2708-dmaengine 20007000.dma: dma_debug:0
[    0.213362] SCSI subsystem initialized
[    0.213810] usbcore: registered new interface driver usbfs
[    0.214007] usbcore: registered new interface driver hub
[    0.214427] usbcore: registered new device driver usb
[    0.215619] raspberrypi-firmware soc:firmware: Attached to firmware from 2016-03-15 14:47
[    0.243521] Switched to clocksource stc
[    0.305883] FS-Cache: Loaded
[    0.306374] CacheFiles: Loaded
[    0.326876] NET: Registered protocol family 2
[    0.328863] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.329070] TCP bind hash table entries: 4096 (order: 4, 98304 bytes)
[    0.329430] TCP: Hash tables configured (established 4096 bind 4096)
[    0.329705] UDP hash table entries: 256 (order: 2, 16384 bytes)
[    0.329830] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
[    0.330379] NET: Registered protocol family 1
[    0.331368] RPC: Registered named UNIX socket transport module.
[    0.331461] RPC: Registered udp transport module.
[    0.331690] RPC: Registered tcp transport module.
[    0.331750] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.333254] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[    0.335132] futex hash table entries: 256 (order: 1, 8192 bytes)
[    0.357971] VFS: Disk quotas dquot_6.6.0
[    0.358469] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.362410] FS-Cache: Netfs 'nfs' registered for caching
[    0.364029] NFS: Registering the id_resolver key type
[    0.364197] Key type id_resolver registered
[    0.364252] Key type id_legacy registered
[    0.369376] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.370080] io scheduler noop registered
[    0.370176] io scheduler deadline registered (default)
[    0.370336] io scheduler cfq registered
[    0.374404] BCM2708FB: allocated DMA memory 5b800000
[    0.374972] BCM2708FB: allocated DMA channel 0 @ f2007000
[    0.395069] Console: switching to colour frame buffer device 160x64
[    0.409987] Serial: 8250/16550 driver, 0 ports, IRQ sharing disabled
[    0.412314] vc-cma: Videocore CMA driver
[    0.412466] vc-cma: vc_cma_base      = 0x00000000
[    0.412815] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.412953] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.413719] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    0.442211] brd: module loaded
[    0.455482] loop: module loaded
[    0.457122] vchiq: vchiq_init_state: slot_zero = 0xdb880000, is_master = 0
[    0.460082] Loading iSCSI transport class v2.0-870.
[    0.462230] usbcore: registered new interface driver smsc95xx
[    0.462794] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.663456] Core Release: 2.80a
[    0.663737] Setting default values for core params
[    0.663909] Finished setting default values for core params
[    0.864710] Using Buffer DMA mode
[    0.864843] Periodic Transfer Interrupt Enhancement - disabled
[    0.864989] Multiprocessor Interrupt Enhancement - disabled
[    0.865125] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.865246] Dedicated Tx FIFOs mode
[    0.866320] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    0.866728] FIQ FSM acceleration enabled for :
[    0.866728] Non-periodic Split Transactions
[    0.866728] Periodic Split Transactions
[    0.866728] High-Speed Isochronous Endpoints
[    0.867108] dwc_otg: Microframe scheduler enabled
[    0.867227] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0405b38
[    0.867236] WARN::hcd_init_fiq:413: FIQ ASM at 0xc0405e10 length 36
[    0.867260] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc896000
[    0.867326] dwc_otg 20980000.usb: DWC OTG Controller
[    0.873488] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[    0.879646] dwc_otg 20980000.usb: irq 32, io mem 0x00000000
[    0.885275] Init: Port Power? op_state=1
[    0.890858] Init: Power Port (0)
[    0.896870] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.902427] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.908041] usb usb1: Product: DWC OTG Controller
[    0.913603] usb usb1: Manufacturer: Linux 4.1.13-rt15+ dwc_otg_hcd
[    0.919076] usb usb1: SerialNumber: 20980000.usb
[    0.926002] hub 1-0:1.0: USB hub found
[    0.931963] hub 1-0:1.0: 1 port detected
[    0.938416] dwc_otg: FIQ enabled
[    0.938442] dwc_otg: NAK holdoff enabled
[    0.938457] dwc_otg: FIQ split-transaction FSM enabled
[    0.938653] Module dwc_common_port init
[    0.939306] usbcore: registered new interface driver usb-storage
[    0.945791] mousedev: PS/2 mouse device common for all mice
[    0.952988] bcm2835-cpufreq: min=700000 max=700000
[    0.959152] sdhci: Secure Digital Host Controller Interface driver
[    0.964767] sdhci: Copyright(c) Pierre Ossman
[    0.971071] mmc-bcm2835 20300000.mmc: mmc_debug:0 mmc_debug2:0
[    0.976706] mmc-bcm2835 20300000.mmc: mmc-bcm2835: Unable to initialise DMA channels. Falling back to PIO
[    1.005057] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.015491] hidraw: raw HID events driver (C) Jiri Kosina
[    1.038870] usbcore: registered new interface driver usbhid
[    1.045075] usbhid: USB HID core driver
[    1.051092] Initializing XFRM netlink socket
[    1.057692] NET: Registered protocol family 17
[    1.063389] Key type dns_resolver registered
[    1.067931] mmc0: MAN_BKOPS_EN bit is not set
[    1.070231] mmc0: new high speed MMC card at address 0001
[    1.073663] mmcblk0: mmc0:0001 4FEACB 3.64 GiB
[    1.075670] mmcblk0boot0: mmc0:0001 4FEACB partition 1 4.00 MiB
[    1.077669] mmcblk0boot1: mmc0:0001 4FEACB partition 2 4.00 MiB
[    1.079670] mmcblk0rpmb: mmc0:0001 4FEACB partition 3 512 KiB
[    1.081476]  mmcblk0: p1 p2
[    1.120991] registered taskstats version 1
[    1.126993] vc-sm: Videocore shared memory driver
[    1.132868] [vc_sm_connected_init]: start
[    1.137808] Indeed it is in host mode hprt0 = 00021501
[    1.157166] [vc_sm_connected_init]: end - returning 0
[    1.208746] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.217504] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.231463] devtmpfs: mounted
[    1.244308] Freeing unused kernel memory: 352K (c07a4000 - c07fc000)
[    1.352892] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.410153] Indeed it is in host mode hprt0 = 00001101
[    1.676867] random: nonblocking pool is initialized
[    1.751352] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.777971] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.818839] hub 1-1:1.0: USB hub found
[    1.902500] hub 1-1:1.0: 5 ports detected
[    2.240740] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.338915] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.356401] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.382469] smsc95xx v1.0.4
[    2.455392] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-20980000.usb-1.1, smsc95xx USB 2.0 Ethernet, c8:3e:a7:00:0e:d1
[    2.654770] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    2.786961] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0024
[    2.797461] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.812483] usb 1-1.2: Product: HP Basic USB Keyboard
[    2.826375] usb 1-1.2: Manufacturer: CHICONY
[    2.871097] input: CHICONY HP Basic USB Keyboard as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:0024.0001/input/input0
[    2.944187] hid-generic 0003:03F0:0024.0001: input,hidraw0: USB HID v1.11 Keyboard [CHICONY HP Basic USB Keyboard] on usb-20980000.usb-1.2/input0
[    4.189901] udevd[175]: starting version 175
[    7.660240] bcm2835-rng 20104000.rng: hwrng registered
[    7.900276] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[    8.069316] bcm2708_i2c 20804000.i2c: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    8.744715] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    8.869279] usb 1-1.3: New USB device found, idVendor=148f, idProduct=5370
[    8.881229] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.897033] usb 1-1.3: Product: 802.11 n WLAN
[    8.913835] usb 1-1.3: Manufacturer: Ralink
[    8.937003] usb 1-1.3: SerialNumber: 1.0
[   10.843832] rtc-pcf2127 1-0051: chip found, driver version 0.0.1
[   10.883404] rtc-pcf2127 1-0051: rtc core: registered rtc-pcf2127 as rtc0
[   11.165116] cfg80211: Calling CRDA to update world regulatory domain
[   11.565634] usb 1-1.3: reset high-speed USB device number 5 using dwc_otg
[   11.672703] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0503 detected
[   11.759837] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[   11.898024] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   11.906270] usbcore: registered new interface driver rt2800usb
[   14.320769] cfg80211: Calling CRDA to update world regulatory domain
[   16.304183] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   16.926032] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   17.479709] cfg80211: Calling CRDA to update world regulatory domain
[   18.745481] i2c /dev entries driver
[   20.639891] cfg80211: Calling CRDA to update world regulatory domain
[   23.799700] cfg80211: Calling CRDA to update world regulatory domain
[   26.961716] cfg80211: Calling CRDA to update world regulatory domain
[   30.119717] cfg80211: Calling CRDA to update world regulatory domain
[   32.574032] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   32.616955] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[   33.331439] cfg80211: Calling CRDA to update world regulatory domain
[   33.586439] smsc95xx 1-1.1:1.0 eth0: hardware isn t capable of remote wakeup
[   35.141062] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   36.391842] cfg80211: Calling CRDA to update world regulatory domain
[   36.473628] cfg80211: Calling CRDA to update world regulatory domain
[   36.678340] wlan0: authenticate with bc:05:43:97:59:b5
[   36.730642] wlan0: send auth to bc:05:43:97:59:b5 (try 1/3)
[   36.733859] wlan0: authenticated
[   36.736669] wlan0: associate with bc:05:43:97:59:b5 (try 1/3)
[   36.761519] wlan0: RX AssocResp from bc:05:43:97:59:b5 (capab=0x431 status=0 aid=1)
[   36.783302] wlan0: associated
[   39.615630] cfg80211: Calling CRDA to update world regulatory domain
[   42.757710] cfg80211: Calling CRDA to update world regulatory domain
[   45.899850] cfg80211: Exceeded CRDA call max attempts. Not calling CRDA
[   54.137982] piControl: built: Mon Nov 7 10:58:58 CET 2016
[   54.138037] piControl: MAJOR-No.  : 243
[   54.145153] piControl: MAJOR-No.  : 243  MINOR-No.  : 0
[   54.163845] uart-pl011 20201000.uart: no DMA platform data
[   54.205757] piControl: vfs_read returned 0: da7593c0, 13976
[   54.205912] piControl: 4 devices found
[   54.205931] piControl: 225 entries in total
[   54.214797] piControl: copylist has 3 entries
[   54.336840] spi spi0.0: setting up native-CS0 as GPIO 8
[   54.341987] overtime 4388 us
[   54.378791] piControl: mGate thread started
[   54.383953] piControl: Module 0: Link check   piControl: Module 1: Link check
[   54.391774] piIO thread started
[   54.391819] RevPiDevice_init()
[   54.391836] piControl: Enter Init State
[   54.391851] piControl: sniff1A: mode 0 value 0
[   54.391878] piControl: sniff1B: mode 0 value 0
[   54.391898] piControl: sniff2A: mode 0 value 0
[   54.391915] piControl: sniff2B: mode 0 value 0
[   54.391964] piControl: piControlInit done
[   54.392828] piControl: Enter PresentSignalling1 State
[   54.392856] piControl: sniff2A: mode 1 value 1
[   54.392883] piControl: sniff2B: mode 1 value 1
[   54.401841] piControl: Enter PresentSignalling2 State
[   54.401887] piControl: sniff2A: mode 0 value 0
[   54.401918] piControl: sniff2B: mode 0 value 0
[   54.432834] piControl: Enter InitialSlaveDetectionRight State
[   54.432886] piControl: sniff2B: input value 1
[   54.433835] piControl: Enter ConfigRightStart State
[   54.433874] piControl: sniff1B: mode 1 value 0
[   54.444941] piControl: Enter ConfigDialogueRight State
[   54.491740] piControl: found 2. device on right side. Moduletype 96. Designated address 32
[   54.491780] piControl: input offset      2  len  70
[   54.491795] piControl: output offset    72  len  18
[   54.492488] piControl: Enter SlaveDetectionRight State
[   54.492603] piControl: sniff2B: input value 1
[   54.493389] piControl: Enter ConfigDialogueRight State
[   54.540736] piControl: found 3. device on right side. Moduletype 97. Designated address 33
[   54.540774] piControl: input offset     90  len  70
[   54.540816] piControl: output offset   160  len  18
[   54.541415] piControl: Enter SlaveDetectionRight State
[   54.541451] piControl: sniff2B: input value 0
[   54.542488] piControl: Enter InitialSlaveDetectionLeft State
[   54.542615] piControl: sniff1B: mode 0 value 0
[   54.542648] piControl: sniff2A: input value 1
[   54.543416] piControl: Enter ConfigLeftStart State
[   54.543448] piControl: sniff1A: mode 1 value 0
[   54.554414] piControl: Enter ConfigDialogueLeft State
[   54.665757] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   54.776749] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   54.887735] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   54.998796] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   55.109756] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   55.220763] piControl: piIoComm_sendRS485Tel(GetDeviceInfo) failed 2
[   55.221389] piControl: Enter EndOfConfig State
[   55.221389]
[   55.221428] piControl: Device  0: Addr 0 Type 95  Act 1  In 1 Out 1
[   55.221443] piControl:            input offset      0  len   1
[   55.221456] piControl:            output offset     1  len   1
[   55.221472] piControl: Device  1: Addr 32 Type 96  Act 1  In 70 Out 18
[   55.221485] piControl:            input offset      2  len  70
[   55.221498] piControl:            output offset    72  len  18
[   55.221585] piControl: Device  2: Addr 33 Type 97  Act 1  In 70 Out 18
[   55.221601] piControl:            input offset     90  len  70
[   55.221615] piControl:            output offset   160  len  18
[   55.221627] piControl:
[   55.221641] piControl: sniff1A: mode 0 value 0
[   55.221674] piControl: Adjust: base 0 in 0 out 1 conf 0
[   55.221692] piControl: Adjust: base 2 in 2 out 72 conf 90
[   55.221707] piControl: Adjust: base 115 in 115 out 185 conf 203
[   55.221722] piControl: After Adjustment
[   55.221738] piControl: Device  0: Addr 0 Type 95  Act 1  In 1 Out 1
[   55.221753] piControl:            input offset      0  len   1
[   55.221766] piControl:            output offset     1  len   1
[   55.221781] piControl: Device  1: Addr 32 Type 96  Act 1  In 70 Out 18
[   55.221793] piControl:            input offset      2  len  70
[   55.221805] piControl:            output offset    72  len  18
[   55.221821] piControl: Device  2: Addr 33 Type 97  Act 1  In 70 Out 18
[   55.221834] piControl:            input offset    115  len  70
[   55.221847] piControl:            output offset   185  len  18
[   55.221863] piControl: Device  3: Addr 0 Type 32768  Act 0  In 32 Out 32
[   55.221877] piControl:            input offset    228  len  32
[   55.221890] piControl:            output offset   260  len  32
[   55.221899] piControl:
[   55.322748] piControl: start data exchange
[   55.532956] piControl: set BridgeState to running
[   64.658683] Adding 102396k swap on /var/swap.  Priority:-1 extents:2 across:2134012k SSFS
[   86.652524] piControl piControl0: piControlOpen
[   86.652535] piControl: opened instance 1
Offensichtlich liegt das Problem bei dem Kaltstart hier:

Code: Select all

[    7.581654] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    7.691276] usb 1-1.3: New USB device found, idVendor=148f, idProduct=5370
[    7.691293] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.691302] usb 1-1.3: Product: 802.11 n WLAN
[    7.691311] usb 1-1.3: Manufacturer: Ralink
[    7.691319] usb 1-1.3: SerialNumber: 1.0
[    9.709018] usb 1-1.3: USB disconnect, device number 5
Denn das "USB disconnect..." bleibt bei dem Warmstart aus. Aber warum?!

Viele Grüße

Hannes
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29

Re: Probleme mit WLan-Client

Post by lukas »

Beim Warmstart kommt stattdessen die Meldung:

Code: Select all

[   11.565634] usb 1-1.3: reset high-speed USB device number 5 using dwc_otg
In beiden Fällen dauert es sehr lange, bis das Gerät reagiert: Beim Kaltstart vergehen 2 Sekunden, bis das Gerät vom Bus runterfällt, beim Warmstart vergehen 2,5 Sekunden bis die obige reset-Meldung erscheint.

Die Meldung scheint aus drivers/usb/core/hub.c:hub_port_init() zu kommen:
http://elixir.free-electrons.com/linux/ ... ub.c#L4289

Wenn man sich das genauer anschaut sieht man dass hub_port_init() von hub_port_connect() bis zu zwei mal (SET_CONFIG_TRIES) aufgerufen wird, beim ersten Aufruf kommt es zu der Meldung:

Code: Select all

[    8.744715] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
Und beim zweiten Aufruf zu der reset-Meldung oben. Der Hintergrund wird in folgendem Kommentar erklärt:

Code: Select all

/*
 * As of 2.6.10 we introduce a new USB device initialization scheme which
 * closely resembles the way Windows works.  Hopefully it will be compatible
 * with a wider range of devices than the old scheme.  However some previously
 * working devices may start giving rise to "device not accepting address"
 * errors; if that happens the user can try the old scheme by adjusting the
 * following module parameters.
 *
 * For maximum flexibility there are two boolean parameters to control the
 * hub driver's behavior.  On the first initialization attempt, if the
 * "old_scheme_first" parameter is set then the old scheme will be used,
 * otherwise the new scheme is used.  If that fails and "use_both_schemes"
 * is set, then the driver will make another attempt, using the other scheme.
 */
Offenbar reagiert der LyconSys WLAN-Adapter bei Verwendung des "new scheme" generell gar nicht und bei Verwendung des "old scheme" nur beim Warmstart.

Füg doch mal in /boot/cmdline.txt folgenden Parameter hinzu:

Code: Select all

usbcore.old_scheme_first=1
Wenn das nichts hilft, könntest du es auch mal mit dem neueren 4.4.50 Kernel in unserem jessie Image probieren, es gab einige wenige Fixes seit 4.1.13 (im wheezy Image) für die USB-Initialisierung, ein Kandidat wäre z.B.:

https://git.kernel.org/pub/scm/linux/ke ... 4df20311f6

Aber der old_scheme_first Parameter wäre jetzt das erste was ich versuchen würde.
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Re: Probleme mit WLan-Client

Post by Hannes »

Hallo lukas,

vielen Dank für Deine Antwort!

Die einfache Variante funktioniert schonmal leider nicht. D.h. ich muss mich jetzt mit der komplizierteren außeinander setzen.

Was muss ich tun, wenn ich es mit dem von Dir genannten Kernel probieren möchte? Ich habe bislang für Updates immer mit "sudo apt-get update / upgrade" gearbeitet. Allerdings noch nie mit einem "definierten Paket".

Viele Grüße

Hannes
User avatar
lukas
Expert
Posts: 186
Joined: 13 Feb 2017, 10:29

Re: Probleme mit WLan-Client

Post by lukas »

Hm, wie sieht denn der dmesg Output (um die USB-Initialisierung vom WLAN Adapter herum) mit "usbcore.old_scheme_first=1" aus?

Fürs Testen mit dem neueren Kernel wäre ein möglicher Weg, ein Backup-Image vom eMMC anzufertigen, dann das jessie-Image aufzuspielen, und nach dem Testen ggf. wieder das Backup-Image aufzuspielen.

Vielleicht hat LyconSys schon mal von dem Problem gehört und weiß eine Empfehlung?
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Re: Probleme mit WLan-Client

Post by Hannes »

Um die Initialisierung herum sieht es mit usbcore.old_scheme_first=1 wie folgt aus:

Code: Select all

[    8.637686] usb 1-1.3: new high-speed USB device number 5 using dwc_otg
[    8.682452] usb 1-1.3: New USB device found, idVendor=148f, idProduct=5370
[    8.694206] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber                                                                                                             =3
[    8.710123] usb 1-1.3: Product: 802.11 n WLAN
[    8.726115] usb 1-1.3: Manufacturer: Ralink
[    8.741389] usb 1-1.3: SerialNumber: 1.0
[   10.507158] usb 1-1.3: USB disconnect, device number 5
Ich habe mit LyconSys bislang nur kurz telefoniert, werde aber noch einmal um Rat bitten.

Momentan denke ich ebenfalls über die Variante nach den Wlan-Adapter per Zeitrelais einschaltverzögert zu aktivieren, da es ja definitiv funktioniert, wenn ich das Gerät später zuschalte. Würde ich mir allerdings gerne mit einfachen Mitteln ersparen.
Hannes
Posts: 29
Joined: 24 Nov 2016, 08:35

Re: Probleme mit WLan-Client

Post by Hannes »

Der zweite Lösungsvorschlag war auch keine Option. Jessie aufgespielt --> dasselbe Problem wie vorher.

Ich spiele jetzt das Backup wieder auf und hoffe, dass ich am Montag weiter komme. Wenn es keine Vorschläge mehr gibt, dann muss ich wohl die Relaisvariante in Betracht ziehen oder mal versuchen den Wlan-Adapter dauerhaft mit Spannung zu versorgen, was ich allerdings auch suboptimal finde...
User avatar
volker
Posts: 1046
Joined: 09 Nov 2016, 15:41

Re: Probleme mit WLan-Client

Post by volker »

Hallo Hannes,
ich kenne ja Deine konkrete Anwendung nicht und auch nicht, welche Hardware Du insgesamt verwendest. Allerdings kenne ich andere insudtrielle Applikationen mit RevPi und WLAN. Dort besteht öfters zwar aus anderen Gründen aber dennoch auch die Notwendigkeit, den WLAN-Adapter im laufenden Betrieb einen Reset durchführen zu lassen. Die sicherste Methode Anlagen, die völlig remote irgendwo fern ab jeder Zivilisation laufen müssen am Netz zu halten sind Watchdogs und am besten Watchdogs, die radikal ein Reset per Power-On erzwingen, wenn die Kontrolle über das System nicht mehr gegeben ist. Dies kann (anders als bei WLAN USB-Sticks) bei dem Hutschienen-Modul sehr gut mit einem unserer DIOs gelöst werden: Die 24 V Ausgänge können im Highside Mode bis zu 500 mA liefern. Das sind satte 12 Watt, die dem WLAN Modul mehr als reichen. So bekommt das Gerät dann durch die Software eine Reset-Fähigkeit, die einer reinen Softwarelösung an Zuverlässigkeit weit überlegen ist.
Für den RevPi Core haben wir übrigens eine USV-Einheit in Planung, die genau solch eine Watchdogfunktion auch für den Core bereitstellen soll. Wenn sich in einem solchen System die Software mal "festfrisst" wird beim Core im Prinzip ein Kaltstart durch Unterbrechung der Stromversorgung erzwungen.
Viel Erfolg bei der weiteren Suche nach einer Lösung. Schade, dass Lukas Dir mit seinen Vorschlägen nicht weiterhelfen konnte. Wenn Du dann doch irgendwie den Treiber so konfiguriert bekommst, dass alles problemlos läuft, würde sich die Community sicher freuen, wenn Du hier für alle kurz beschreibst, wie Du Dein Problem gelöst hast.
Schönes Wochenende,
Volker.
Unser RevPi Motto: Don't just claim it - make it!
Post Reply