RE: [PATCH] dwc3: gadget: fix for no-resource condition in dwc3 device controller

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(please break your lines at 80 characters ;-)

"B, Ravi" <ravibabu@xxxxxx> writes:
> Felipe
>
>>hi,
>
>>Ravi Babu <ravibabu@xxxxxx> writes:
>>> The "no-resource" error occurs when the driver issues DEPSTRTXFER
>>> command to start data transfer on specific endpoint, and dwc3
>
>>this seems to imply that simply sending Start Transfer command would
>>trigger no-resource which is untrue. The error you mention happens
>>when there's a transfer ongoing and another Start Transfer is sent.
>
> Yes, when there is on-going transfer on one endpoint in in/out
> direction (say ep1-in), then trying to start transfer on another
> endpoint in same direction (say ep2-in), leads to resource conflict.

that shouldn't be the case. Resources for EP1 are different than those
of EP2.

>>> core throws error "no resource" available to process the request.
>>>
>>> This condition is occurs in composite gadget scenario where there are 
>>> multiple interfaces selected by host and during simulateneous data 
>>> traffic on multiple endpoints on these interfaces, the issue
>
>>having several interfaces using different endpoints has no implication
>>into how Start Transfer command is sent, so this shouldn't happen. Are
>>you having issues with one particular interface, perhaps ?
>
> Issue occurs, during simultaneous transfer happen on endpoints on
> multiple interfaces in same direction, say ep1-in on interface-1 is
> busy by dwc3 and start transfer on ep2-in on interface-2.

this makes no sense to me. Something else must be going on because
resources are different.

>>> occur when software/driver issues DEPSTRTXFER command to specific 
>>> endpoint in same direction (in/out) and other endpoint in the same 
>>> direction (in/out) is busy or executed by dwc3 controller.
>
>>we have DWC3_EP_BUSY keeping track of that, I fail to see how you're
>>triggering this condition. Any logs available ? Also, which kernel are
>>you using to test this ? v4.4 ? v4.5-rc ?
>
> Yes, I have monitored this flag and found that issue occurs only when
> ep1-in is busy(DWC3_EP_BUSY) and issue start transfer on ep2-in. (same
> applicable for out transfer).  The issue was reproducible on 4.5-rc1.

Something else is getting goofed up. Unfortunately I don't have HW to
test right now, but if you could send some trace output showing this
failure, then it would be easy to see what's going one. Just make sure
to use some gigantic buffer, e.g. 4096 KB (yes, 4 MB :-)

>>> example: if dwc3 core is busy in transferring the request on ep1-in 
>>> during this scenario, if software/driver queues another request on 
>>> ep2-in and issue start transfer (DEPSTRTXFER command), then dwc3 
>>> throws error "no-resource". The same applicable to OUT transfer. 
>
>>this is wrong. EP1's resources are not related to EP2's resources. I
>>have feeling you haven't really understood the problem you're facing.
>
> This issue occurs, because of same resource allocated for both ep1-in
> and ep2-in, due to DEPSTARTCFG issued twice. The RTL designer
> (synopsis) confirmed that DEPSTARTCFG must be issued only once for one
> configuration, otherwise each time DEPSTARTCFG issued, the dwc3 core
> reset its resource allocation scheme, allocates the same resource
> allocated to endpoints of previous interfaces.

This is not what documentation says, neither is this what the commit
mentioned before (written by Synopsys :-) says. John, any comments here ?

>>> The issue is root caused that software issue DEPSTARTCFG "START NEW 
>>> CONFIGURATION" command twice during the SET_INTERFACE request received 
>>> from host while selecting multiple interface.
>
>>which is expected. See commit aebda61871815 ("usb: dwc3: Reset the
>>transfer resource index on SET_INTERFACE"). In fact, this commit
>>regresses what previous commit fixed.
>
>>This is a clear NAK, sorry.
>
>>> In single configuration with two parallel interfaces, say the
>>> interface-1 has two endpoints, ep1-in & ep1-out, and interface-2 has 
>>> two endpoints ep2-in and ep2-out. The additional DEPSTARTCFG will make 
>>> the core too allocate the same resource, say for ep2-in and ep2-out 
>>> which were previously assigned to ep1-in and ep1-out.
>>>
>>> Therefore during the simulataneous traffic on endpoints on same 
>>> direction leads to resource conflict and dwc3 core throws the 
>>> "no-resource" error when DEPSTARTCFG command while issuing the start 
>>> transfer request.
>>>
>>> Hence the DEPSTARTCFG must be issued only once after reset and during 
>>> SET_CONFIG request from host to allocate the transfer resource 
>>> properly for all endpoints on multiple interfaces in composite gadget 
>>> scenario. 
>
>>Did you read Synopsys databook ? Did you go through git log to see
>>what that particular line was added ?
>
> Yes, synopsis book says, DEPSTARTCFG should be issued for
> SET-CONFIGURATION --OR-- SET_INTERFACE, does not specify for both.
> This has been confirmed by Synopsis RTL designer.

Right, but look at what commit mentioned before says. Did you test that
specific case after this change of yours ?

>>> The issue is reproducible in composite gadget (ACM + NCM) enabled 
>>> through CONFIGFS.
>
>>any scripts available to reproduce this with some recent kernel ?
>
> Yes, attached configfs script to enabled NCM+ACM. But I have tested by
> transmitting/receving data over ACM between EVM and Ubuntu host, in
> parallel do NCM transfer.

ok, once I have HW again, I'll test this out. Unless John can help here.

> 1) Start ACM serial transfer on both EVM and host. 
> 2) just do ifconfig usb0, the issue is reproducible. 
>
>>If you can show a large trace output showing the error, that would be
>>great. In fact, if you could annotate it with what you think is wrong,
>>that would be even better ;-)
>
> 1) I have attached complete kernel log.

dwc3 is almost completely silent nowadays. Debugging is done via
tracepoints only.

> 2) The have added below error print line which was removed in 4.5-rc1,
> in __dwc3_gadget_kick_transfer() function in
> drivers/usb/dwc3/gadget.c.
>
> [  107.377682] failed to send STARTTRANSFER command ret=-22
> [  107.873028] failed to send STARTTRANSFER command ret=-22
> [  107.878652] failed to send STARTTRANSFER command ret=-22
> [  107.884574] failed to send STARTTRANSFER command ret=-22
> [  107.890567] failed to send STARTTRANSFER command ret=-22
> [  107.896371] failed to send STARTTRANSFER command ret=-22
> [  107.902203] failed to send STARTTRANSFER command ret=-22
> [  107.907871] failed to send STARTTRANSFER command ret=-22
>
> Let me know if any more details required.

the trace output :-)

> Thanks & Regards
> Ravi 
> 3661200 bytes read in 215 ms (16.2 MiB/s)
> 82149 bytes read in 51 ms (1.5 MiB/s)
> Booting from mmc0 ...
> Kernel image @ 0x82000000 [ 0x000000 - 0x37dd90 ]
> ## Flattened Device Tree blob at 88000000
>    Booting using the fdt blob at 0x88000000
>    Loading Device Tree to 8ffe8000, end 8ffff0e4 ... OK
>
> Starting kernel ...
>
> [    0.000000] Booting Linux on physical CPU 0x0
> [    0.000000] Linux version 4.4.0-10066-g93270db-dirty (a0393587@uda0393587) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG 
                                     ^^^^^
                               you really have 10k patches on top of
                               v4.4.0 ? _And_ it is dirty ? I need you
                               test with a tag from Linus or from the
                               Stable tree. This kernel I cannot trust
                               not to have changes on dwc3 ;-)

> linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #4 SMP Wed Jan 27 20:42:24 IST 2016
> [    0.000000] CPU: ARMv7 Processor [412fc0f2] revision 2 (ARMv7), cr=10c5387d
> [    0.000000] CPU: div instructions available: patching division code
> [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
> [    0.000000] Machine model: TI DRA742
> [    0.000000] cma: Reserved 64 MiB at 0xdb800000
> [    0.000000] Memory policy: Data cache writealloc
> [    0.000000] DRA752 ES1.1
> [    0.000000] PERCPU: Embedded 14 pages/cpu @ef1f9000 s24832 r8192 d24320 u57344
> [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 390976
> [    0.000000] Kernel command line: console=ttyO0,115200n8 elevator=noop root=PARTUUID=1cc37260-02 rw rootwait earlyprintk fixrtc oma
> pdrm.num_crtc=2 consoleblank=0 cma=64M rootfstype=ext4 snd.slots_reserved=1,1
> [    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: 1471540K/1570816K available (6699K kernel code, 770K rwdata, 2280K rodata, 464K init, 8267K bss, 33740K reserv
> ed, 65536K cma-reserved, 718848K highmem)
> [    0.000000] Virtual kernel memory layout:
> [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
> [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
> [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
> [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
> [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
> [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
> [    0.000000]       .text : 0xc0008000 - 0xc08cd068   (8981 kB)
> [    0.000000]       .init : 0xc08ce000 - 0xc0942000   ( 464 kB)
> [    0.000000]       .data : 0xc0942000 - 0xc0a02a34   ( 771 kB)
> [    0.000000]        .bss : 0xc0a05000 - 0xc1217fe0   (8268 kB)
> [    0.000000] Running RCU self tests
> [    0.000000] Hierarchical RCU implementation.
> [    0.000000]  RCU lockdep checking is enabled.
> [    0.000000]  Build-time adjustment of leaf fanout to 32.
> [    0.000000] NR_IRQS:16 nr_irqs:16 16
> [    0.000000] OMAP clockevent source: timer1 at 32768 Hz
> [    0.000000] Architected cp15 timer(s) running at 6.14MHz (virt).
> [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x16af5adb9, max_idle_ns: 440795202250 ns
> [    0.000004] sched_clock: 56 bits at 6MHz, resolution 162ns, wraps every 4398046511023ns
> [    0.000016] Switching to timer-based delay loop, resolution 162ns
> [    0.000451] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
> [    0.000461] OMAP clocksource: 32k_counter at 32768 Hz
> [    0.001446] Console: colour dummy device 80x30
> [    0.001481] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
> [    0.001488] ... MAX_LOCKDEP_SUBCLASSES:  8
> [    0.001495] ... MAX_LOCK_DEPTH:          48
> [    0.001501] ... MAX_LOCKDEP_KEYS:        8191
> [    0.001507] ... CLASSHASH_SIZE:          4096
> [    0.001513] ... MAX_LOCKDEP_ENTRIES:     32768
> [    0.001519] ... MAX_LOCKDEP_CHAINS:      65536
> [    0.001525] ... CHAINHASH_SIZE:          32768
> [    0.001531]  memory used by lock dependency info: 5167 kB
> [    0.001538]  per task-struct memory footprint: 1536 bytes
> [    0.001556] Calibrating delay loop (skipped), value calculated using timer frequency.. 12.29 BogoMIPS (lpj=61475)
> [    0.001569] pid_max: default: 32768 minimum: 301
> [    0.001891] Security Framework initialized
> [    0.001993] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.002005] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.004437] CPU: Testing write buffer coherency: ok
> [    0.005596] /cpus/cpu@0 missing clock-frequency property
> [    0.005642] /cpus/cpu@1 missing clock-frequency property
> [    0.005652] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
> [    0.005706] Setting up static identity map for 0x80008280 - 0x800082f0
> [    0.009921] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
> [    0.010335] Brought up 2 CPUs
> [    0.010348] SMP: Total of 2 processors activated (24.59 BogoMIPS).
> [    0.010355] CPU: All CPU(s) started in SVC mode.
> [    0.012817] devtmpfs: initialized
> [    0.073701] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
> [    0.074299] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [    0.075956] pinctrl core: initialized pinctrl subsystem
> [    0.079528] NET: Registered protocol family 16
> [    0.083134] DMA: preallocated 256 KiB pool for atomic coherent allocations
> [    0.084702] omap_hwmod: l3_main_2 using broken dt data from ocp
> [    0.340726] cpuidle: using governor menu
> [    0.352889] OMAP GPIO hardware version 0.1
> [    0.365373] irq: no irq domain found for /ocp/l4@4a000000/scm@2000/pinmux@1400 !
> [    0.385681] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/nand_flash_x16, deferri
> ng probe
> [    0.392207] No ATAGs?
> [    0.392267] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
> [    0.392276] hw-breakpoint: maximum watchpoint size is 8 bytes.
> [    0.392727] omap4_sram_init:Unable to allocate sram needed to handle errata I688
> [    0.392736] omap4_sram_init:Unable to get sram pool needed to handle errata I688
> [    0.394080] OMAP DMA hardware revision 0.0
> [    0.441757] omap-dma-engine 4a056000.dma-controller: OMAP DMA engine driver
> [    0.447758] SCSI subsystem initialized
> [    0.448953] omap_i2c 48070000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c1_pins, deferri
> ng probe
> [    0.449013] omap_i2c 48072000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c2_pins, deferri
> ng probe
> [    0.449070] omap_i2c 48060000.i2c: could not find pctldev for node /ocp/l4@4a000000/scm@2000/pinmux@1400/pinmux_i2c3_pins, deferri
> ng probe
> [    0.449298] pps_core: LinuxPPS API ver. 1 registered
> [    0.449305] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@xxxxxxxx>
> [    0.449346] PTP clock support registered
> [    0.451995] clocksource: Switched to clocksource arch_sys_counter
> [    0.533386] VFS: Disk quotas dquot_6.6.0
> [    0.533496] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.556787] NET: Registered protocol family 2
> [    0.558062] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
> [    0.558190] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
> [    0.560518] TCP: Hash tables configured (established 8192 bind 8192)
> [    0.560660] UDP hash table entries: 512 (order: 3, 40960 bytes)
> [    0.560971] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
> [    0.561860] NET: Registered protocol family 1
> [    0.562827] RPC: Registered named UNIX socket transport module.
> [    0.562837] RPC: Registered udp transport module.
> [    0.562844] RPC: Registered tcp transport module.
> [    0.562851] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.565026] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available
> [    0.568730] futex hash table entries: 512 (order: 3, 32768 bytes)
> [    0.568983] audit: initializing netlink subsys (disabled)
> [    0.569094] audit: type=2000 audit(0.559:1): initialized
> [    0.573636] NFS: Registering the id_resolver key type
> [    0.573863] Key type id_resolver registered
> [    0.573872] Key type id_legacy registered
> [    0.573985] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
> [    0.577405] bounce: pool size: 64 pages
> [    0.577457] io scheduler noop registered (default)
> [    0.577474] io scheduler deadline registered
> [    0.577506] io scheduler cfq registered
> [    0.584244] pinctrl-single 4a003400.pinmux: 282 pins at pa fc003400 size 1128
> [    0.590137] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
> [    0.594822] 4806a000.serial: ttyO0 at MMIO 0x4806a000 (irq = 296, base_baud = 3000000) is a OMAP UART0
> [    1.361984] console [ttyO0] enabled
> [    1.366696] omap_uart 4806c000.serial: no wakeirq for uart1
> [    1.372744] 4806c000.serial: ttyO1 at MMIO 0x4806c000 (irq = 297, base_baud = 3000000) is a OMAP UART1
> [    1.383339] omap_uart 48020000.serial: no wakeirq for uart2
> [    1.389352] 48020000.serial: ttyO2 at MMIO 0x48020000 (irq = 298, base_baud = 3000000) is a OMAP UART2
> [    1.423269] brd: module loaded
> [    1.441484] loop: module loaded
> [    1.446919] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
> [    1.453966] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
> [    1.462901] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst 
> [    1.475105] scsi host0: ahci
> [    1.478957] ata1: SATA max UDMA/133 mmio [mem 0x4a140000-0x4a1410ff] port 0x100 irq 327
> [    1.488171] mtdoops: mtd device (mtddev=name/number) must be supplied
> [    1.561993] davinci_mdio 48485000.mdio: davinci mdio revision 1.6
> [    1.568366] davinci_mdio 48485000.mdio: detected phy mask fffffff3
> [    1.580269] libphy: 48485000.mdio: probed
> [    1.584485] davinci_mdio 48485000.mdio: phy[2]: device 48485000.mdio:02, driver unknown
> [    1.592862] davinci_mdio 48485000.mdio: phy[3]: device 48485000.mdio:03, driver unknown
> [    1.602136] cpsw 48484000.ethernet: Detected MACID = b4:99:4c:0b:fa:84
> [    1.610696] cpsw 48484000.ethernet: cpsw: Detected MACID = b4:99:4c:0b:fa:85
> [    1.620778] mousedev: PS/2 mouse device common for all mice
> [    1.626636] i2c /dev entries driver
> [    1.631404] omap_hsmmc 4809c000.mmc: Got CD GPIO
> [    1.702278] ledtrig-cpu: registered to indicate activity on CPUs
> [    1.710695] oprofile: using timer interrupt.
> [    1.715615] Initializing XFRM netlink socket
> [    1.720341] NET: Registered protocol family 10
> [    1.727284] sit: IPv6 over IPv4 tunneling driver
> [    1.733614] NET: Registered protocol family 17
> [    1.738349] NET: Registered protocol family 15
> [    1.743253] Key type dns_resolver registered
> [    1.747917] omap_voltage_late_init: Voltage driver support not added
> [    1.754617] sr_dev_init: Unable to get voltage domain pointer for VDD core
> [    1.761844] sr_dev_init: Unable to get voltage domain pointer for VDD mpu
> [    1.769640] Power Management for TI OMAP4+ devices.
> [    1.775126] ThumbEE CPU extension supported.
> [    1.779663] Registering SWP/SWPB emulation handler
> [    1.784721] SmartReflex Class3 initialized
> [    1.792347] omap-gpmc 50000000.gpmc: GPMC revision 6.0
> [    1.797804] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
> [    1.805226] nand: No NAND device found
> [    1.806353] ata1: SATA link down (SStatus 0 SControl 300)
> [    1.814847] omap2-nand omap2-nand.0: scan failed, may be bus-width mismatch
> [    1.826400] palmas 0-0058: IRQ missing: skipping irq request
> [    1.835389] mmc0: MAN_BKOPS_EN bit is not set
> [    1.843385] mmc0: new high speed MMC card at address 0001
> [    1.850702] mmcblk0: mmc0:0001 MMC08G 7.25 GiB 
> [    1.852826] palmas 0-0058: Muxing GPIO 2e, PWM 0, LED 0
> [    1.861732] mmcblk0boot0: mmc0:0001 MMC08G partition 1 8.00 MiB
> [    1.868538] mmcblk0boot1: mmc0:0001 MMC08G partition 2 8.00 MiB
> [    1.879294] Alternate GPT is invalid, using primary GPT.
> [    1.884922]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13
> [    1.895210] pcf857x 0-0020: probed
> [    1.900889] pcf857x 0-0021: probed
> [    1.904829] omap_i2c 48070000.i2c: bus 0 rev0.12 at 400 kHz
> [    1.932476] GPIO line 465 (vin6_sel_s0) hogged as output/low
> [    1.938669] pcf857x 1-0026: probed
> [    1.942307] omap_i2c 48072000.i2c: bus 1 rev0.12 at 400 kHz
> [    1.949485] omap_i2c 48060000.i2c: bus 2 rev0.12 at 400 kHz
> [    1.955828] omap_hsmmc 4809c000.mmc: Got CD GPIO
> [    1.960953] omap_hsmmc 4809c000.mmc: omap_device: omap_device_enable() called from invalid state 1
> [    1.994839] omap_hsmmc 4809c000.mmc: Got CD GPIO
> [    2.044032] hctosys: unable to open rtc device (rtc0)
> [    2.049339] sr_init: No PMIC hook to init smartreflex
> [    2.054851] sr_init: platform driver register failed for SR
> [    2.105300] aic_dvdd: disabling
> [    2.110002] ldousb: disabling
> [    2.118173] Waiting for root device PARTUUID=1cc37260-02...
> [    2.294362] mmc1: host does not support reading read-only switch, assuming write-enable
> [    2.306243] mmc1: new high speed SD card at address e624
> [    2.312904] mmcblk1: mmc1:e624 SU02G 1.84 GiB 
> [    2.326343]  mmcblk1: p1 p2
> [    2.376621] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
> [    2.385202] VFS: Mounted root (ext4 filesystem) on device 179:26.
> [    2.407181] devtmpfs: mounted
> [    2.410698] Freeing unused kernel memory: 464K (c08ce000 - c0942000)
> INIT: version 2.88 booting
> Starting udev
> [    3.090182] udevd[118]: starting version 182
> [    3.699961] omap_rtc 48838000.rtc: rtc core: registered 48838000.rtc as rtc0
> [    3.713509] snd: unknown parameter 'slots_reserved' ignored
> [    4.054422] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
> [    4.114532] CAN device driver interface
> udevd[248]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> [    4.155306] aic_dvdd: supplied by evm_3v3_sw
> udevd[252]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> udevd[256]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
> udevd[258]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/script[    4.212222] c_can_platform 4ae3c000.can: c_can_platfor
> m device registered (regs=fce3c000, irq=339)
> s/mount.sh': No such file or directory
>
>
> udevd[271]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> udevd[270]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> udevd[272]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> udevd[274]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> [    4.346465] input: gpio_keys as /devices/platform/gpio_keys/input/input0
> udevd[278]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> udevd[285]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> [    4.406640] asoc-simple-card sound@0: tlv320aic3x-hifi <-> 48468000.mcasp mapping ok
> udevd[292]: failed to execute '/etc/udev/scripts/mount.sh' '/etc/udev/scripts/mount.sh': No such file or directory
>
> [    4.739579] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
> [    4.744941] 10 ofpart partitions found on MTD device spi0.0
> [    4.750775] Creating 10 MTD partitions on "spi0.0":
> [    4.755893] 0x000000000000-0x000000010000 : "QSPI.SPL"
> [    4.766207] 0x000000010000-0x000000020000 : "QSPI.SPL.backup1"
> [    4.774564] 0x000000020000-0x000000030000 : "QSPI.SPL.backup2"
> [    4.782840] 0x000000030000-0x000000040000 : "QSPI.SPL.backup3"
> [    4.790901] 0x000000040000-0x000000140000 : "QSPI.u-boot"
> [    4.798630] 0x000000140000-0x0000001c0000 : "QSPI.u-boot-spl-os"
> [    4.806897] 0x0000001c0000-0x0000001d0000 : "QSPI.u-boot-env"
> [    4.815230] 0x0000001d0000-0x0000001e0000 : "QSPI.u-boot-env.backup1"
> [    4.823957] 0x0000001e0000-0x0000009e0000 : "QSPI.kernel"
> [    4.831572] 0x0000009e0000-0x000002000000 : "QSPI.file-system"
> [    5.344267] usbcore: registered new interface driver usbfs
> [    5.350250] usbcore: registered new interface driver hub
> [    5.355993] usbcore: registered new device driver usb
> [    5.451117] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
> [    5.457345] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
> [    5.466225] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00010010
> [    5.475473] xhci-hcd xhci-hcd.0.auto: irq 442, io mem 0x488d0000
> [    5.483174] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
> [    5.490296] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [    5.497890] usb usb1: Product: xHCI Host Controller
> [    5.503022] usb usb1: Manufacturer: Linux 4.4.0-10066-g93270db-dirty xhci-hcd
> [    5.510489] usb usb1: SerialNumber: xhci-hcd.0.auto
> [    5.519395] hub 1-0:1.0: USB hub found
> [    5.523701] hub 1-0:1.0: 1 port detected
> [    5.530453] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
> [    5.536265] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
> [    5.544538] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
> [    5.553439] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
> [    5.560554] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [    5.568137] usb usb2: Product: xHCI Host Controller
> [    5.573261] usb usb2: Manufacturer: Linux 4.4.0-10066-g93270db-dirty xhci-hcd
> [    5.580739] usb usb2: SerialNumber: xhci-hcd.0.auto
> [    5.587531] hub 2-0:1.0: USB hub found
> [    5.591555] hub 2-0:1.0: 1 port detected
> [    5.675924] EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)
> Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
> bootlogd.
> [    5.784298] random: dd urandom read with 109 bits of entropy available
> ALSA: Restoring mixer settings...
> No state is present for card DRA7xxEVM
> Found hardware: "DRA7xx-EVM" "" "" "" ""
> Hardware is initialized using a generic method
> No state is present for card DRA7xxEVM
> Sun Dec 13 18:33:00 UTC 2015
> INIT: Entering runlevel: 5
> Configuring network interfaces... [    6.519312] net eth0: initializing cpsw version 1.15 (0)
> [    6.606108] Generic PHY 48485000.mdio:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=48485000.mdio:02, irq=-1)
> [    6.625567] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
> udhcpc (v1.22.1) started
> Sending discover...
> [    9.609162] cpsw 48484000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
> [    9.617411] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
> Sending discover...
> Sending select for 172.24.190.225...
> Lease of 172.24.190.225 obtained, lease time 3600
> /etc/udhcpc.d/50default: Adding DNS 192.0.2.2
> /etc/udhcpc.d/50default: Adding DNS 192.0.2.3
> done.
> Starting system message bus: dbus.
> UIM SYSFS Node Not Found
> Starting telnet daemon.
> Starting tiipclad daemon
> GateMP support enabled on host
>
> Opened log file: lad.txt
>
> numProcessors = 5 id = 0 baseId = 0
>
> Spawned daemon: /usr/bin/lad_dra7xx
>
> .
> Starting rpcbind daemon...done.
> creating NFS state directory: done
> starting statd: done
> NFS daemon support not enabled in kernel
> Starting syslogd/klogd: done[   12.848700] random: nonblocking pool is initialized
>
> Starting thttpd.
> Enabling thermal zones...
> Stopping Bootlog daemon: bootlogd.
>
>  _____                    _____           _         _   
> |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
> |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
> |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
>               |___|                    |___|            
>
> Arago Project http://arago-project.org dra7xx-evm /dev/ttyO0
>
> Arago 2013.10 dra7xx-evm /dev/ttyO0
>
> dra7xx-evm login: root
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# modprobe g_ncm
> [   26.247605] using random self ethernet address
> [   26.252319] using random host ethernet address
> [   26.259930] usb0: HOST MAC 1a:32:b3:5c:cc:d3
> [   26.265198] usb0: MAC aa:d8:1b:39:99:95                                          
> [   26.269272] g_ncm gadget: NCM Gadget                                             
> [   26.273027] g_ncm gadget: g_ncm ready                                            
> root@dra7xx-evm:~# [   26.809434] g_ncm gadget: full-speed config #1: CDC Ethernet (NCM)
>
> root@dra7xx-evm:~# modprobe g_ncm -r
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# ./ncm-acm.sh 
> 0xa55a
> [   32.535944] using random self ethernet address
> [   32.540614] using random host ethernet address
> [   32.578322] usb0: HOST MAC e2:1d:dc:ce:c3:35
> [   32.583367] usb0: MAC d6:ed:69:bd:45:38
> root@dra7xx-evm:~# [   33.087560] configfs-gadget gadget: full-speed config #1: c
>
> root@dra7xx-evm:~# stty -F /dev/ttyGS0 -icanon
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# 
> root@dra7xx-evm:~# [  106.871597] failed to send STARTTRANSFER command ret=-22
> [  107.377682] failed to send STARTTRANSFER command ret=-22
> [  107.873028] failed to send STARTTRANSFER command ret=-22
> [  107.878652] failed to send STARTTRANSFER command ret=-22
> [  107.884574] failed to send STARTTRANSFER command ret=-22
> [  107.890567] failed to send STARTTRANSFER command ret=-22
> [  107.896371] failed to send STARTTRANSFER command ret=-22
> [  107.902203] failed to send STARTTRANSFER command ret=-22
> [  107.907871] failed to send STARTTRANSFER command ret=-22
>
> root@dra7xx-evm:~# ifconfig usb0
> usb0      Link encap:Ethernet  HWaddr D6:ED:69:BD:45:38  
>           inet6 addr: fe80::d4ed:69ff:febd:4538/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:25 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000 
>           RX bytes:6644 (6.4 KiB)  TX bytes:864 (864.0 B)
>

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux