rechmp
Posts: 15
Joined: Thu Apr 24, 2014 6:40 am

Ethernet did not work (10mbps)

Thu Apr 24, 2014 7:29 am

Greetings everyone.
I just bought my RPi B:

Code: Select all

Board Ver: BS1236
Ram: K4P46324EB-AGC1 (512MB)
Lan chip: LAN9512-JZX B1239-A1B17 8R152099B CTI-TW (e3)
Eth jack: HanRun HR901110A 1247
PSU: 5v 1000ma
So i installed raspbian from that site on my sd (present on supported list), plug in keybrd, hdmi, lan and power.
I need non gui mode only, so i did not try gui.
So now, i have problem with ethernet:
I cant get dhcp, and when i configure as static and run /etc/init.d./networking restart i see few failing attempts to connect on 100mbps and than successful connect on 10mbps half or full duplex.
Thats bad, true. But i cant ping anything except myself. Gateway or any other host is unreachable
I can see my root usb hub, usb hub, lan controller and keyboard in lsusb output.
I thought problem was in power supply and tried to connect to my phone 5v 1A charger - same.
Than i solder usb to my precise 5v 5A psu and run pi.
When system loaded i got 4.95v and 0.67-0.77A drain.
Problem still here...
Than i read that some folks have crystal x1 problem. I look on mine - looks like all soldered fine.
Also, i tried different linux distr, ant anywhere i got same problem.

So i even don't know what to do, may be someone can help me? I can show any requested log.
Thanks.

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Ethernet did not work (10mbps)

Thu Apr 24, 2014 9:07 am

Please post the output from the following

ifconfig -a
route -n
cat /etc/network/interfaces

The negotiation for 10 vs 100 and half-duplex vs full-duplex isn't controlled by the RPi that's something done on the switch at the other end of the wire.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

rechmp
Posts: 15
Joined: Thu Apr 24, 2014 6:40 am

Re: Ethernet did not work (10mbps)

Thu Apr 24, 2014 11:01 am

Dougie, thanks for help
Here what i have:

Code: Select all

auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.128
network 192.168.1.0
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.253
dns-nameservers 192.168.1.19 192.168.1.3 8.8.8.8

Code: Select all

eth0      Link encap:Ethernet  HWaddr b8:27:eb:51:f1:27
          inet addr:192.168.1.128  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::ba27:ebff:fe51:f127/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:427 errors:0 dropped:0 overruns:0 frame:0
          TX packets:244 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:30760 (30.0 KiB)  TX bytes:19867 (19.4 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:70 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6994 (1.8 KiB)  TX bytes:6994 (0.8 KiB)

Code: Select all

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.1.253   0.0.0.0         UG    0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

User avatar
DougieLawson
Posts: 39124
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Ethernet did not work (10mbps)

Thu Apr 24, 2014 10:44 pm

Get rid of

Code: Select all

network 192.168.1.0
broadcast 192.168.1.255
they aren't needed, Linux can calculate those from the IP addr & netmask.

Can you ping 192.168.1.253?
ping -c3 192.168.1.253?
Are you sure that's the right address for your gateway to the public internet?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

rechmp
Posts: 15
Joined: Thu Apr 24, 2014 6:40 am

Re: Ethernet did not work (10mbps)

Sun May 04, 2014 7:37 am

DougieLawson wrote:Get rid of

Code: Select all

network 192.168.1.0
broadcast 192.168.1.255
they aren't needed, Linux can calculate those from the IP addr & netmask.

Can you ping 192.168.1.253?
ping -c3 192.168.1.253?
Are you sure that's the right address for your gateway to the public internet?
Hello Dougie.
Sorry for delay, i was on vacation.
Configuration of gw was right.
When i came back from vacation - just plugged power in and... my eth works with same config. Mum said that cat dropped my rpi from shelf (above 1.5m high). Looks destructive, but it works.
Before post here first time i was looking for any unsoldered pins, but there were nothing. Looks like it is a chip.
Well, i hope i will work long time :)

Thank you for help.

Return to “Troubleshooting”