Bitcoin Forum
May 17, 2024, 01:35:55 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Do you hate the PI's USB ports like I do? here is a fix for us miners!!!!!!!!!  (Read 7995 times)
GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
November 02, 2014, 08:45:24 AM
 #1

So, most of the miners Ive ever tried on the PI absolutely hate its USB ports.. Ive had stability issues, CRC packet tossing problems, LIBUSB timeout errors ... enough to drive anyone insane w/ a PI....

A year or go w/ some miners back then I remedied the issue by adding:

dwc_otg.lpm_enable=0 dwc_otg.fiq_enable=1 dwc_otg.fiq_fsm_enable=1 dwc_otg.fiq_fsm_mask=0x3

to my /boot/cmdline.txt file ... it fixed the issues at the time...

>> to today, Ive had issues w/ newer 'faster' miners. Like the ones mentioned above, on various different hardware.

Well, after wanting to throw all my pi's out or just putting 1 per miner just so they 'might stay stable' ... I just knew there had to be / hopefully was a magic setting that would fix it all....
The rest of that puzzle was solved today (hopefully, so far it is)...

add this to the /boot/cmdline.txt as well:
dwc_otg.speed=1

This setting forces the USB ports on the pi into USB 1.1 mode and I believe disables some other highspeed 2.0 features as well.

As it turns out, the PI hates having a USB 2.0 or higher port plugged into it, it causes enormous latency issues w/ devices(in the form of packet loss, the exact thing CGMINER complains about). Maybe it just hates USB 2.0 devices period, I dont know, but it really hates hubs.

After running my miners for an hour or so, ALL of those CGMINER complaints, USB timeouts, CRC packet tossing is now COMPLETELY GONE!!!!!!
This would normally happen once or twice every 10 mins, or 10 times every 10mins...was completely random. Now ALL GONE.

I would go so far to even say you could probably get away w/ a shitload of miners now on the pi w/ this setting. Enough till the CPU of pi starts getting maxed anyways =P

Im truely amazed by this... =)

I hope this helps some of you guys out.


NOTE: I hope the story is the same in the morning, of course, many hours later and they are just as stable =) ... will follow up on this. But for right now, Im extremely excited!

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
dogie
Legendary
*
Offline Offline

Activity: 1666
Merit: 1183


dogiecoin.com


View Profile WWW
November 02, 2014, 10:01:08 AM
 #2

I notice you've not mentioned this, but were you using a powered USB hub?

Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
November 02, 2014, 10:34:40 AM
 #3


I had good success with the Y-cable mod [1] where the RPi only gets data and is disconnected from the USB power emtirely. Solved my USB issues (that I had with or without powered hubs).

[1] https://bitcointalk.org/index.php?topic=765365.msg8730781#msg8730781


OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
November 02, 2014, 11:13:40 AM
 #4

I notice you've not mentioned this, but were you using a powered USB hub?

Yes, I use powered hubs, yes Ive ensured that the pi is not being backfed power through the uplink port on the hub ( so yes Ive done the mod to the hubs ).

Ive tried almost everything one could think of in regards to the hardware side. Diff cables, modded hubs, .. etc..
The USB 1.1 forcing is the one change that made everything 100x better for all my miners.

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
Newar
Legendary
*
Offline Offline

Activity: 1358
Merit: 1001


https://gliph.me/hUF


View Profile
November 02, 2014, 11:38:45 AM
 #5


Which miners are you using?

OTC rating | GPG keyid 1DC91318EE785FDE | Gliph: lightning bicycle tree music | Mycelium, a swift & secure Bitcoin client for Android | LocalBitcoins
warrensgun
Full Member
***
Offline Offline

Activity: 195
Merit: 100

Mining since bitcoin was $1


View Profile
November 02, 2014, 03:23:46 PM
 #6

Sweet I'll have to give this a try.  I got so frustrated with the pi and usb miners - i just setup a computer to leave on to run them.  Talk about the opposite of what we should be doing.

GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
November 02, 2014, 06:42:12 PM
 #7


Which miners are you using?

Primarily HF boards =O ... those most recently gave me the most issues.

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
Zich
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


View Profile WWW
November 03, 2014, 01:09:00 AM
 #8

Sorry, maybe this is new for you. But some one already point out this long time ago in nanofury thread.
Still this is only work if only one type miner connected to Rpi. If there is multiple different brand miner, another problem arise.
Basicly Rpi is a crap.
GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
November 03, 2014, 01:35:23 AM
 #9

Sorry, maybe this is new for you. But some one already point out this long time ago in nanofury thread.
Still this is only work if only one type miner connected to Rpi. If there is multiple different brand miner, another problem arise.
Basicly Rpi is a crap.

While thats a possibility, I can say that I have 3x HF boards & 2 GSblades running on a SINGLE pi without issue.
Also, I have 3x HF boards & 1 avy3 module on a SINGLE pi without issue.

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
volosator
Sr. Member
****
Offline Offline

Activity: 272
Merit: 250



View Profile
November 03, 2014, 05:42:26 PM
 #10

Not a solution for me: I use wifi connection to my Pi. It gives me more headache when I drop USB to 1.1 vs 2.0 for wifi dongle.
richardamullens
Newbie
*
Offline Offline

Activity: 51
Merit: 0


View Profile
November 03, 2014, 07:46:17 PM
 #11

I think that you will find that the Raspberry Pi B+ is much improved.  It can supply more power to the USB ports, it is more efficient (it uses switched mode rather than linear regulation to make 3.3V) and the USB software has improved with later versions of Raspbian.

I am using the B+ and the second generation B with CGminer with Antminer U1 and U2 devices.  The only problems I've had have been due to my powered USB hub dropping too much voltage when powering these devices.  My systems are now rock steady.
Photon939
Sr. Member
****
Offline Offline

Activity: 452
Merit: 250



View Profile
November 03, 2014, 09:44:42 PM
 #12

IDK I had pretty good luck with hooking up stupid amounts of junk to my raspi a few months ago when block erupters still managed to mine a couple bitcents

GenTarkin (OP)
Legendary
*
Offline Offline

Activity: 2450
Merit: 1002


View Profile
November 03, 2014, 09:58:28 PM
 #13

Not a solution for me: I use wifi connection to my Pi. It gives me more headache when I drop USB to 1.1 vs 2.0 for wifi dongle.

I have a wifi dongle on 2 pi's, forcing 1.1 has not affected them at all =)

GenTarkin's MOD Kncminer Titan custom firmware! v1.0.4! -- !!NO LONGER AVAILABLE!!
Donations: bitcoin- 1Px71mWNQNKW19xuARqrmnbcem1dXqJ3At || litecoin- LYXrLis3ik6TRn8tdvzAyJ264DRvwYVeEw
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!