Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Onion Pi Pack - Case problems, bad Pi?

by Sackmo on Fri Oct 11, 2013 6:42 pm

Greetings! Recently I purchased an Onion Pi Pack, but unfortunately I've been having a lot of problems getting started.

The first seems to be with the case that was included with the pack. After putting everything together I plugged the Pi in, but it gave me a sold red PWR with a light green ACT. I figured this meant it couldn't read the SD card and it might be bad, but then I found out the Pi would boot fine if I took everything out of the case. I couldn't even get it to boot with the Pi just sitting inside the bottom tray, even though everything seemed to fit just fine.

After doing a bit of looking, I noticed that the case's description page on the site says that it's not compatible with the micro SD card adapter, which is the same included with the kit. Is... this intentional, or am I missing something? It seems strange that incompatible hardware would be included in the same kit.

Anyway, after getting the Pi to boot I noticed things were a bit sluggish. SSH was taking a long time to log in (about 5 seconds or more between the user and password prompt) or wouldn't even connect at all. Using wget to download a test file returned a speed of 30Kb/s or less, which is less than 10% of what my main computer will download at. I also noticed a massive amount of dropped packets and errors:

Code: Select all
pi@raspberrypi ~ $ ifconfig eth0
eth0      Link encap:Ethernet  HWaddr b8:27:eb:87:7b:80
          inet addr:192.168.0.6  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8543 errors:6886 dropped:3444 overruns:0 frame:3444
          TX packets:10034 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8617647 (8.2 MiB)  TX bytes:1228336 (1.1 MiB)


I also ran some tests with iperf:

Code: Select all
pi@raspberrypi ~ $ iperf -c 192.168.0.21
------------------------------------------------------------
Client connecting to 192.168.0.21, TCP port 5001
TCP window size: 21.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.6 port 56348 connected with 192.168.0.21 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   111 MBytes  92.7 Mbits/sec

pi@raspberrypi ~ $ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.0.6 port 5001 connected with 192.168.0.21 port 59777
[  5] local 192.168.0.6 port 5001 connected with 192.168.0.21 port 59778
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-162.7 sec   256 KBytes  12.9 Kbits/sec


Notice the first attempt when running with -s didn't even finish.

I tried using different cables, ports and power supplies and they all give me the same results over eth0. Interestingly, using the wifi module will give me the proper download speeds with no errors, but the packet loss is even greater (though that may be due to low signal strength - I'm not not too familiar with wifi):

Code: Select all
wlan0     Link encap:Ethernet  HWaddr 44:33:4c:10:72:a4
          inet addr:192.168.0.7  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:9630 errors:0 dropped:9898 overruns:0 frame:0
          TX packets:6300 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13742571 (13.1 MiB)  TX bytes:710122 (693.4 KiB)


I thought it might have something to do with the SD card, but it seems to be reading/writing fine:

Code: Select all
pi@raspberrypi ~ dd if=/dev/zero of=~/test.tmp bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 95.6118 s, 5.5 MB/s

pi@raspberrypi ~ $ dd if=~/test.tmp of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 28.9014 s, 18.1 MB/s


That's all I've come up with so far, so any help you can offer me would be greatly appreciated.
Sackmo
 
Posts: 3
Joined: Wed Oct 09, 2013 7:53 pm

Re: Onion Pi Pack - Case problems, bad Pi?

by adafruit_support_rick on Sat Oct 12, 2013 7:09 am

The MicroSD adapter included with the kit works fine. It's the "low-profile" microSD adapter that's incompatible with the case:
http://www.adafruit.com/products/966

The RX data rate on the wired ether is not good. I'll guess that you've probably got a bent or otherwise crufty pin in the RJ-45 jack.

You can email support@adafruit.com with a link to this thread to arrange a replacement Pi.
User avatar
adafruit_support_rick
 
Posts: 8579
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY