Date: Fri, 09 May 2014 18:42:29 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Ian Lepore <ian@FreeBSD.org> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@FreeBSD.org> Subject: Re: USB isochronous traffic with Rasberry Pi [WAS: Re: USB audio device on Raspberry Pi] Message-ID: <536D0575.1040407@selasky.org> In-Reply-To: <1399647986.22079.367.camel@revolution.hippie.lan> References: <20140425154430.GA76168@utility-01.thismonkey.com> <535A8AEA.1000100@selasky.org> <20140425204134.GA458@cicely7.cicely.de> <20140430091411.GA45015@utility-01.thismonkey.com> <5360C0A7.9010407@selasky.org> <1398867266.22079.51.camel@revolution.hippie.lan> <CAGW5k5bZ_bTQUXuzNm=tbwx3npz1_HoOR3vM8TBRVFs8zWCq-w@mail.gmail.com> <5362638B.1080104@selasky.org> <5363C133.2000304@selasky.org> <53677CB8.5000800@selasky.org> <CAJ-Vmo=XmH-RX6_i13NuAXhq-jTC%2BWedGiyOMJaPO4r014DSgw@mail.gmail.com> <1399303695.22079.239.camel@revolution.hippie.lan> <1399304157.22079.243.camel@revolution.hippie.lan> <CAJ-Vmok-%2B7%2Bcq%2BDa6_C2AA7BuP5readY_Gfwwm_RF5kh4VerQA@mail.gmail.com> <5368A93D.3070608@selasky.org> <5368AC03.8080401@selasky.org> <536CE5E9.8020408@selasky.org> <1399647986.22079.367.camel@revolution.hippie.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/09/14 17:06, Ian Lepore wrote: > On Fri, 2014-05-09 at 16:27 +0200, Hans Petter Selasky wrote: >> Hi, >> >> I've tried to dig through the DWC OTG controller to make it work better >> in host mode. Can you test the latest code after: >> >> http://svnweb.freebsd.org/changeset/base/265777 >> >> And report any errors/regression issues when using USB devices? >> >> --HPS > > After updating to r265780 and building clean, I consitantly get this > when the rpi boots: > > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2014 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 11.0-CURRENT #0 r265780M: Fri May 9 08:44:47 MDT 2014 > ilepore@revolution.hippie.lan:/local/build/staging/freebsd/rpi/obj/arm.armv6/local/build/staging/freebsd/rpi/src/sys/RPI-B-serial arm > gcc version 4.2.1 20070831 patched [FreeBSD] > CPU: ARM1176JZ-S rev 7 (ARM11J core) > Supported features: ARM_ISA THUMB2 JAZELLE ARMv4 Security_Ext > WB enabled LABT branch prediction enabled > 16KB/32B 4-way instruction cache > 16KB/32B 4-way write-back-locking-C data cache > real memory = 134213632 (127 MB) > avail memory = 123858944 (118 MB) > random device not loaded; using insecure entropy > random: <Software, Yarrow> initialized > ofwbus0: <Open Firmware Device Tree> > simplebus0: <Flattened device tree simple bus> mem 0x20000000-0x20ffffff on ofwbus0 > intc0: <BCM2835 Interrupt Controller> mem 0xb200-0xb3ff on simplebus0 > systimer0: <BCM2835 System Timer> mem 0x3000-0x3fff irq 8,9,10,11 on simplebus0 > Event timer "BCM2835 Event Timer 3" frequency 1000000 Hz quality 1000 > Timecounter "BCM2835 Timecounter" frequency 1000000 Hz quality 1000 > bcmwd0: <BCM2708/2835 Watchdog> mem 0x10001c-0x100027 on simplebus0 > gpio0: <BCM2708/2835 GPIO controller> mem 0x200000-0x2000af irq 57,59,58,60 on simplebus0 > gpio0: read-only pins: 46,47,48,49,50,51,52,53. > gpio0: reserved pins: 48,49,50,51,52,53. > gpioc0: <GPIO controller> on gpio0 > gpiobus0: <OFW GPIO bus> on gpio0 > gpioled0: <GPIO led> at pin(s) 16 on gpiobus0 > bcm_dma0: <BCM2835 DMA Controller> mem 0x7000-0x7fff,0xe05000-0xe05fff irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 > mbox0: <BCM2835 VideoCore Mailbox> mem 0xb880-0xb8bf irq 1 on simplebus0 > sdhci_bcm0: <Broadcom 2708 SDHCI controller> mem 0x300000-0x3000ff irq 70 on simplebus0 > mmc0: <MMC/SD bus> on sdhci_bcm0 > uart0: <PrimeCell UART (PL011)> mem 0x201000-0x201fff irq 65 on simplebus0 > uart0: console (115200,n,8,1) > dwcotg0: <DWC OTG 2.0 integrated USB controller> mem 0x980000-0x99ffff irq 17 on simplebus0 > usbus0 on dwcotg0 > simplebus1: <Flattened device tree simple bus> on ofwbus0 > simplebus1: could not get ranges > device_attach: simplebus1 attach returned 6 > Timecounters tick every 10.000 msec > usbus0: 480Mbps High Speed USB v2.0 > ugen0.1: <DWCOTG> at usbus0 > uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0 > mmcsd0: 8GB <SDHC SA08G 0.4 SN 2630755555 MFG 10/2009 by 2 TM> at mmc0 50.0MHz/4bit/65535-block > bootpc_init: wired to interface 'ue0' > mmcsd0: Error indicated: 2 Bad CRC > uhub0: 1 port with 1 removable, self powered > ugen0.2: <vendor 0x0424> at usbus0 > uhub1: <vendor 0x0424 product 0x9512, class 9/0, rev 2.00/2.00, addr 2> on usbus0 > uhub1: MTT enabled > uhub1: 3 ports with 2 removable, self powered > random: unblocking device. > ugen0.3: <vendor 0x0424> at usbus0 > smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0 > uhub_reattach_port: device problem (USB_ERR_STALLED), disabling port 3 > smsc0: chip 0xec00, rev. 0002 > miibus0: <MII bus> on smsc0 > ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ue0: <USB Ethernet> on smsc0 > ue0: Ethernet address: 1e:b3:27:cd:38:f3 > smsc0: chip 0xec00, rev. 0002 > ue0: link state changed to DOWN > Sending DHCP Discover packet from interface ue0 (1e:b3:27:cd:38:f3) > ue0: link state changed to UP > Received DHCP Offer packet on ue0 from 0.0.0.0 (accepted) > Sending DHCP Request packet from interface ue0 (1e:b3:27:cd:38:f3) > Received DHCP Ack packet on ue0 from 0.0.0.0 (accepted) > ue0 at 172.22.42.71 server 0.0.0.0 > subnet mask 255.255.255.0 router 172.22.42.254 rootfs 172.22.42.240:/rpi > Adjusted interface ue0 > Trying to mount root from nfs:172.22.42.240:/rpi [ro,noatime]... > NFS ROOT: 172.22.42.240:/rpi > warning: no time-of-day clock registered, system time will not be set accurately > warning: no time-of-day clock registered, system time will not be set accurately > smsc0: error: usb error on tx: USB_ERR_IOERROR > smsc0: warning: bulk read error, USB_ERR_IOERROR > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > ue0: link state changed to DOWN > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: at uhub1, port 1, addr 3 (disconnected) > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > ukphy0: detached > miibus0: detached > smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0 > smsc0: chip 0xec00, rev. 0002 > miibus0: <MII bus> on smsc0 > ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0 > ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > ue0: <USB Ethernet> on smsc0 > ue0: Ethernet address: be:a4:34:6d:c5:2a > newnfs server 172.22.42.240:/rpi: not responding > newnfs server 172.22.42.240:/rpi: not responding > newnfs server 172.22.42.240:/rpi: not responding > > It's interesting that it worked well enough to mount the nfsroot > filesystem, then went bad after that. > > -- Ian Can you try and upgrade again: http://svnweb.freebsd.org/changeset/base/265783 --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?536D0575.1040407>