Slashdot Mirror


Serious Problems With USB and Ethernet On the Raspberry Pi

First time accepted submitter rephlex writes "The USB controller used in the Broadcom BCM2835 (which is the SoC the Raspberry Pi uses) has buggy drivers which have been causing problems for many of its users. In addition to this, the Pi can only supply an unusually low amount of current to its USB devices, just 140 mA approximately, and using a powered hub to sidestep this limit exacerbates the issues caused by the USB drivers. Even Ethernet is affected as the Ethernet controller used on the Raspberry Pi is connected to the SoC via USB. This has resulted in packet loss and even total loss of network connectivity in certain situations. Attempts have been made in the past to fix the buggy USB drivers as there are other devices which use this problematic controller. None of these attempts seem to have achieved very much."

31 of 202 comments (clear)

  1. Slightly exaggerated I feel by Anonymous Coward · · Score: 4, Insightful

    A buggy driver (which can be fixed) is hardly a "serious problem" - give it time, distros and drivers are still progressing on the RasPi

    1. Re:Slightly exaggerated I feel by SomePgmr · · Score: 5, Informative

      Indeed. And these "buggy drivers" haven't presented me with any problems for USB or ethernet so far.

      The amount of current the usb port will supply was supposed to be an issue, but I tried out a wifi dongle without using a powered hub, and no issues.

      I'm sure problems exist for some people, and I'm sure they'll iron them out. For my part, I've gotten more than $35 worth of utility out of mine already.

    2. Re:Slightly exaggerated I feel by Anonymous Coward · · Score: 4, Interesting

      Obviously you've never had to deal with Broadcom drivers in Linux before. Broadcom is notorious for their poor driver support in Linux, they usually install just fine, but when you go to put the device they control to use it's sporadic at best. It's gotten to be such a huge headache of repeated failure that I avoid broadcom like the plague.

    3. Re:Slightly exaggerated I feel by hairyfeet · · Score: 5, Funny

      I'd say the bigger question is this....WTF did you expect out of a $35 device? Seriously? Its $35 fricking bucks people! Sure they could have used more robust and thus less likely to fuck up chips, but it wouldn't be $35 then would it?

      It looks like people are buying a $35 device and then bitching when it doesn't run like a $200+ device...well duh, really? Hell its a miracle the damned thing works as good as it does considering the BOM, so if you don't like it? Plenty of $200+ Android devices out there that doesn't have those issues..sheesh, talk about a sense of entitlement, its fricking $35!

      --
      ACs don't waste your time replying, your posts are never seen by me.
    4. Re:Slightly exaggerated I feel by hairyfeet · · Score: 3, Informative

      And I notice no price listed but I bet it costs more than $35! With everything there is a trade off people, and to get the Pi to sell at $35 and still make a buck for the devs you've got to deal with a seriously low BOM just to make sure shipping the thing doesn't cost more than the selling price. At $35 I wouldn't be surprised if the actual BOM wasn't $18 or less, just to cover having it built and shipped.

      Moral of the story? You want something bug and hassle free you have to pay more money, simple as that. I'm sure if the Pi guys set the price at $100 per unit they could have used better chips with better drivers and eliminated the hassle, but the whole point of the pi was to have a functional FOSS unit as cheaply as could be made. Well when cheap is your goal corners have to be cut folks, its just THAT simple.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    5. Re:Slightly exaggerated I feel by MadCow42 · · Score: 4, Informative

      And there are known workarounds if you need more power on the onboard USB ports - so you can drive your WiFi adapter without a powered hub.

      I've soldered 1-ohm resistors over top of the USB polyfuses. This bypasses the very low current limit on those ports, but they still can't draw more than the main polyfuse will allow (700mA, vs. 140mA on the USB's).

      Using a 1-ohm resistor helps prevent current being drawn too low when you hot-plug a USB device. That could cause the Pi to reboot.

      MadCow.

      --
      I used to have a sig, but I set it free and it never came back.
    6. Re:Slightly exaggerated I feel by BravoZuluM · · Score: 3, Informative

      I bought two PIs. One for me and one for my son. The purpose was to have a inexpensive piece of hardware on which we can learn the mechanics of embedded Linux development. I noticed all of the above problems on the boards that I bought. As a beginner, I wasn't sure if I was doing something wrong. We spent an entire Saturday working through the power issues, like the crew working on Apollo 13. We did get it worked out, but when you are learning something, it is best to learn on a platform that isn't presenting intermittent problems. The student isn't going to recognize the demarcation between their ignorance and hardware problems. If the board can't be built reliably for $35, get better chips and raise the price. In order for the board to do what is says it does, USB better provide 500ma or it isn't a USB connector. The upside to all this is that I've learned more about Linux in two weeks than I have tinkering with Linux for 10 years.

  2. FIRST POST by pscottdv · · Score: 5, Funny

    Posted from my Raspberry Pi...

    --

    this signature has been removed due to a DMCA takedown notice

    1. Re:FIRST POST by Howard+Beale · · Score: 4, Funny

      I've used a Pi, and there's no way for it to respond quick enough on /. for you to post within 6 minutes of the story going live.

  3. DIE BLASPHEMER! by CajunArson · · Score: 4, Funny

    Though hast profaned the name of the HOLY PI with thine blasphemous use of facts! We cast thee into the deepest pits of Hell amongst the Beagle Board and Panda Board demons!

    All praised be THE PI!

    --
    AntiFA: An abbreviation for Anti First Amendment.
  4. Fix for the USB by Thantik · · Score: 5, Informative

    If you place a 1 ohm resistor in parallel with F1 and F2, you can get the voltage drop and current higher - fixing a lot of the issues with the USB.

    1. Re:Fix for the USB by Thantik · · Score: 5, Informative

      Can't delete or edit...crap: Voltage drop less, and current higher - Here's the site for said modification: http://himeshp.blogspot.com/2012/07/raspberry-pi-usb-power-issues-ultimate.html

    2. Re:Fix for the USB by Anonymous Coward · · Score: 3, Informative

      Apparently you don't know what a polyfuse is. Nonzero resistance, isn't useless after it blows.

      Nor do you know how a regular fuse works, they have greater than 0 ohms resistance. They wouldn't blow, otherwise.

    3. Re:Fix for the USB by Anonymous Coward · · Score: 3, Funny

      Why don't they change the original design? Are they resistant to change?

    4. Re:Fix for the USB by artor3 · · Score: 3, Interesting

      Yes, their "fuses" are technically thermistors, but everyone calls them resettable fuses or PTC fuses or polyfuses. It's not poor labeling.

      It is, however, bad BOM selection. It took me thirty seconds on Newark just now to find a resettable fuse with 200 mA limit and just 650 mOhms max initial resistance. Sure, costs two cents more, and it lets through a bit more current. You know what lets through even more current? All the 1 ohm resistors and shorts that people are going to mod into their boards to fix this problem.

      Mistakes happen, lord knows I've made enough myself, but did they not test the electrical specs on these boards before sending them out to customers?

    5. Re:Fix for the USB by Obfuscant · · Score: 3, Informative
      Never learned about significant figures, did we?

      Ok, for the hyperpicky insignificant: a fuse should have an extremely low, reasonably constant resistance that will vary only slightly with temperature and not with current or voltage applied. Otherwise it isn't a fuse, it's something else. Thermistor, varistor, etc.

      Any reasonably astute techincal person, when trying to replace a defective fuse, will ask two questions: what is the current rating and fast vs. slow blow. If he doesn't have one on hand, he may, in a pinch, replace the fuse with a piece of wire and, other than chancing a circuit meltdown (because fuses usually blow for a reason) might be able to get the circuit back online.

      Nobody would ask "what is the resistance of your fuse at 100mA?" Nobody would wonder if the circuit needed a specific resistance (or capacitance or inductance) in that fuse. All three of those parameters should be parasitic at best. (That means small and irrelevant in design, sometimes relevant in practice.)

    6. Re:Fix for the USB by Zerth · · Score: 4, Informative

      Direct quote on the front page, March 3, 2012:

      "On our original model, weâ(TM)d assumed that only hacker-types were going to be interested. It seems we made a mistake there" -- Liz Upton

      http://www.raspberrypi.org/archives/723

    7. Re:Fix for the USB by Man+On+Pink+Corner · · Score: 4, Insightful

      Nobody would ask "what is the resistance of your fuse at 100mA?

      Nobody except an engineer who is attempting to design something that will work properly.

  5. So fix it. by dgatwood · · Score: 5, Informative

    The data sheet (in particular p. 203-ish) talks about the workarounds required to work around PHY bugs and other USB hardware. Doesn't look particularly complex.

    --

    Check out my sci-fi/humor trilogy at PatriotsBooks.

  6. I believe it's called... by Master+of+Transhuman · · Score: 3, Insightful

    you get what you pay for...in this case, a $35 tiny little board not designed by a company with QA capabilities... Big surprise it has problems...not.

    It's a hacker tool - so hack it until it works.

    --
    Richard Steven Hack - This sig is TOO GODDAMN SHORT TO DO ANYTHING USEFUL WITH! MORONS!
  7. Quite reliable in my experience by sehgalanuj · · Score: 5, Informative

    I got the Raspberry Pi while ago and this is the first time I am hearing of this issue. Of course, that is only because I haven't encountered it. So far I am using it extensively on my network without problems and it is even handling the load I throw at it quite gracefully.

    It is a home VPN, DNS, Backup, File and Print server. On top of this, it is even the endpoint for my IPv6 tunnel and it runs a routing advertisement daemon to hand out v6 addresses on the network. So far it handles the v6 network load without any slowdown from my old machine that took care of this. I even threw in a USB stick to talk to 6LoWPAN devices I use at home and it works flawlessly with that too. So obviously both my USBs and the Ethernet are used up.

    All this for a $35 computer that eats up a whole lot lesser energy than my old solution. Even if I had to solder a resistor to fix a problem that I haven't had, I am not sure what can beat this.

  8. It's open! But with proprietary drivers. by Anonymous Coward · · Score: 5, Interesting

    I'm still confused as to what the appeal of the Pi is.

    They keep touting the damned thing as "open", yet you require binary blobs in the kernel just to get it to boot. The hardware is only "hacker friendly" so long as you're using USB based devices or something that sticks off the GPIO ports, the hardware itself (especially the SoC they're using) is hardly hacker friendly because the entire thing is a proprietary solution that requires proprietary drivers to run.

    So can someone please tell me why this platform should be considered "open" at all? It seems to go against everything Linux strives towards. I could see a nice x86 based SoC with a S3 VGA adapter being "open"- all the hardware is well understood and open source drivers exist for everything. The Pi seems to be the exact opposite of that though.

    1. Re:It's open! But with proprietary drivers. by tchuladdiass · · Score: 3, Informative

      I'm assuming HD refers to hardware decode. That is on the Broadcom chip, it just has to be licensed separately. They have it on their web store for 2.40 pounds. http://www.raspberrypi.com/mpeg-2-license-key/

    2. Re:It's open! But with proprietary drivers. by marcansoft · · Score: 5, Informative

      For the record, you can get ARM SoCs that are almost entirely open - the TI OMAP series does a pretty decent job, and last I checked they have excellent open documentation. Sure, the PowerVR graphics crap is proprietary, but you don't have to use it - it's purely a coprocessor that renders to a framebuffer. The video output hardware is independent, open, and documented (i.e. the equivalent of an S3 VGA adapter).

      Broadcom, though, is pretty much the antithesis of open documentation.

  9. Use a better power source and quit complaining by adosch · · Score: 5, Insightful

    I've had two Raspberry Pi's running side-by-side since June and I did initially experience 'network choke' as described but it was from improperly powering my Pi's. I was using a 5v microUSB adapter but with too low of an amp draw. Pay particular attention to what you're using as a power source would be my first bit of advice.

    My second bit is a bit of a rip FTFA. The quote "As I said, the Pi is currently being worked over by a crowd of skilled techno-people" is a bit of a stretch. I'd say maybe20% of Pi users actually have their shit together with enough well-rounded-ness of hardware/EE/development in their background to be productive with the Pi. The other 80% are just trying to use this device as a $35 desktop replacement who want to try and hook up 4 1TB SATA devices to it, followed a long with a board load of "pamper-me" forum posts that will make a self-respective real "geek" nauseated.

    Issues like this are seen ALL the time in the 'real hardware engineering world', and they are worked out. Let's not be so quick to judge this device all the time, and see the Pi for what it is: A very easy-to-work-with low cost ARM platform that far beats out the overheard of working with any SBC or emebedded hardware platform that would need JTAG, flash map, kernel/bootloader support to get going ...on your own.

  10. Can't get good sound on RPi. Power problems. by dannycim · · Score: 4, Informative

    I bought two Raspberry Pi(es) to use as audio servers and have been disappointed by the sound quality. The on-board audio out's DSP has limited bandwidth so sound is down-sampled to 11 bits. Scratchy. It's not advertised so that was a let-down.

    Using a USB AUDIO dongle is no-go either, because of the crappy USB drivers. Stutters non-stop. Here are oscilloscope grabs of two music samples and a 1Khz tone: http://imgur.com/a/rVR99 The flat parts shouldn't be there. The only way to get good sound now is to use rather expensive USB soundboards or the HDMI output, but extracting line-level audio signals from that isn't a simple or cheap proposition.

    The power design should be re-thought. If you power your Pi with exactly 5 volts, the voltage drop in the polyfuses causes early failures if you connect peripherals that have medium current demands. If you're lucky your power adapter might supply a bit more than 5 volts (5.25 is nice) and you might not experience too many problems. Me, I've soldered supply wires to test points T1(vcc) and T2(gnd) and bypassed the fuses completely.

    I hope they come up with another revision, add a Low-drop-out regulator (+$2) and figure out the USB naggies.

    Until then, caveat emptor.

  11. Power supply issues are overstated by rephlex · · Score: 4, Informative

    I am the submitter of this story. I posted as "lostintime" on the Raspberry Pi forums before I was banned for the post I made in this thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=15320

    The power supply issues the Raspberry Pi has are mostly a red herring. The Pi is certainly unusually sensitive to power and can only supply a stupidly low amount of current to USB devices no matter what power supply is used, but these issues have been used as a catch-all to explain away every problem people have been having with USB and Ethernet on the Pi. This has obscured the more pressing issue of buggy drivers which I believe are the root cause of the majority of problems Pi users have been having.

  12. $179 by wonkavader · · Score: 3, Informative

    The VIA board, at $179, is simply not in the same class. It's not an alternative.
    It's for completely different projects.

  13. USB driver may not be fixable by Anonymous Coward · · Score: 5, Informative

    The USB driver may not be fixable, the jury is still out on this one. There are three key problems:

    1) Documentation on the Broadcom USB controller is proprietary and is not made openly available by the Raspberry Pi Foundation.

    2) The USB core for the Broadcom SoC was bought from a 3rd party, and we are told that not even Broadcom has full documentation, nor understands the driver.

    3) The Foundation has discovered that the controller and its driver expect realtime response from the ARM core, and if Linux's non-realtime scheduling doesn't respond in 1 ms, a split transaction USB event can be dropped. Not surprisingly, this occurs regularly and produces lost mouse clicks, stuck keyboard keys, etc..

    That's a pretty nasty combination of problems, and it means that assuming that it's fixable may not be a safe prediction. We'll have to wait and see.

    For the time being though, USB and networking (which is implemented over USB) have a large catalogue of issues and incompatibilities. All boards have this inherent problem but YMMV on whether the issues bite you, as it depends on exactly what devices you have connnected and what you're doing with the board.

    In addition to the above faults, the community discovered a PCB track layout error on the board which causes a proportion of the USB chips to overheat owing to an incorrect connection. It doesn't appear to be critical but wastes power and the heat may shorten board or device lifetime.

    Relations are very tense on the forum, and the Foundation has banned people who express their concern about the faults.

    1. Re:USB driver may not be fixable by Anonymous Coward · · Score: 5, Informative

      I work in a company who does SOC and we have one our SOC that use this USB core IP.

      This USB core had so many problem that we end up making it work only in full speed mode (and not high speed one). As you said split transaction don't work well (in our case we had seen irq storm that make linux freeze).

      BTW we have full documentation of the chip (broadcom should have this), but the driver is so complex that it is very hard to fix/rewrite (AFAIK samsumg rewrite it).

      Also for our newer SOC we used another USB IP made by chipidea, but the funny part is there were brought by synopsis and synopsis want people to buy there crappy dwc USB core...

    2. Re:USB driver may not be fixable by subreality · · Score: 3, Insightful

      Can't they have the healthy attitude of accepting the flaws exist and be helpful to those looking for solutions? is it too much to ask?

      Well, it's complicated. There are a few very prolific malcontents who were following up on every. damn. thread. they could shoehorn themselves into ranting about how this is yet another failing of the foundation ...

      The foundation, for their part, seem to be noobs when it comes to moderating forums, and haven't yet gotten the hang of carefully proportioned response.

      Both sides kinda suck and are turning this into more drama and less collaboration than would be ideal.