LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Help me, Ethernet does not work in Linux (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/help-me-ethernet-does-not-work-in-linux-682308/)

subhashini.s 11-10-2008 04:16 AM

Help me, Ethernet does not work in Linux
 
Hi everybody,

My board has
CPU: MPC8360E
Boot code version: u-boot-1.3.2
linux kernel version: linux-2.6.22(with updated patches).

My problem is:

In kernel, I am able to ping only my board, but when i try to ping a host system in LAN,it fails!

EXPLANATION:
Using bootm cmd,I loaded
kernel image: uImage,
ramdisk image:rootfs.ext2.gz.uboot taken from MPC8360E_PB_K26_20071012-LTIB.iso
and fdtfile.

From this, I concluded network card is ok.After bootm cmd,I got the console for Kernel.

Next I doubted Ethernet card, to confirm I executed the below commands and confirmed Ethernet card is working fine.

######################################################################
~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:04:9F:00:23:23
inet addr:192.168.0.254 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Base address:0x3200

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0

~ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
NETDEV WATCHDOG: eth0: transmit timed out
UCC3 Fast registers:<6>Base address: 0xe100e200<6>
--- followed by more register dumps..after this it hangs--
#######################################################################

- But Network configuration is Ok.
- And Network card is OK.( eth0: Micrel KSZ8041TL PHY ).

But really, phy can't connect to outside network. I am able to ping to my board ip address, but when i try to ping a host in LAN fails!

What could be the problem here? Am I missing some configuration?

pixellany 11-10-2008 07:09 AM

There's too much information here, but some things are missing.

First, what kind of internet connection do you have?--ie DSL, Cable modem, etc.?
Do you have a router?
Static IP or DHCP?

If eth0 shows in ifconfig, and "ifconfig up" works, then the driver for the card is OK.

You don't mention setting the IP address or using DHCP. If you have DHCP, you have to issue dhcpcd or dhclient to connect.

Have you tried setting things up with the GUI tools in your distro?

estabroo 11-10-2008 08:39 AM

Do you have a default route? Without it you won't be able to see beyond your local ip block.

subhashini.s 11-11-2008 02:24 AM

Yeah, default route is set. Still i am not able to ping other than my system.

subhashini.s 11-11-2008 02:26 AM

There is no DHCP to set ip address, it is static.

pixellany 11-11-2008 07:04 AM

Quote:

Originally Posted by subhashini.s (Post 3338054)
There is no DHCP to set ip address, it is static.

I asked you several questions---we can't help you if you don't provide complete information.

twwwater 11-14-2008 09:29 PM

waaaaaaa......
thank you all here,for that I met the same problem with subhashini.s


All times are GMT -5. The time now is 09:22 PM.