Ethernet does not work in Linux+Ramdisk on at91rm9200

This forum is for users of Microchip MPUs and who are interested in using Linux OS.

Moderator: nferre

kiennd
Posts: 1
Joined: Tue Oct 03, 2006 7:25 am

Ethernet does not work in Linux+Ramdisk on at91rm9200

Tue Oct 03, 2006 7:30 am

Hi everybody!

My board use chip at91rm9200 ( my board as same as ARM9 SBC board http://www.ime.usp.br/~fr/sbc/ )
, and I use u-boot as a boot loader for my system.
I built linux image 2.6 ( 2.6.16, 2.6.17, 2.6.18 ) with patch from http://maxim.org.za/AT91RM9200/2.6/ and a small root filesystem and use u-boot to load them.
Everything is ok. My system had a sh shell.

#################################################
# ls
bin ftp linuxrc sbin var
dev home lost+found tmp
etc lib proc usr
#################################################

And here is a part of dmesg log:

#################################################

NET: Registered protocol family 16
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 256 (order: -2, 1024 bytes)

TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 1024 bind 512)
TCP reno registered
NetWinder Floating Point Emulator
V0.97 (double precision)

at91_spi: Baud rate set to 5990400
AT91 SPI driver loaded
AT91 Watchdog Timer enabled (5 seconds, nowayout)
at91_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a AT91_SERIAL
at91_usart.1: ttyS1 at MMIO 0xfffc4000 (irq = 7) is a AT91_SERIAL

RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
LXT970: Registered new driver
LXT971: Registered new driver
eth0: Link now 100-FullDuplex

eth0: AT91 ethernet at 0xfefbc000 int=24 100-FullDuplex (de:ad:be:ef:01:01)
eth0: Intel LXT971A PHY

#################################################################################



Ethernet card is seem to work.

################################################################################
# ifconfig lo up
# ifconfig eth0 up
eth0: Link now 100-FullDuplex
# ifconfig eth0 192.168.0.1 netmask 255.255.255.0
# ping -c 1 localhost
PING localhost.localdomain (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=1.6 ms

--- localhost.localdomain ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.6/1.6/1.6 ms
# ping -c 1 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: icmp_seq=0 ttl=64 time=1.4 ms

--- 192.168.0.1 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max = 1.4/1.4/1.4 ms
# ping -c 1 192.168.0.222
PING 192.168.0.222 (192.168.0.222): 56 data bytes

--- 192.168.0.222 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss
#

################################################################################

But really, it can't connect to outside. ping localhost and it's ip address are ok, but ping a host in LAN ==> false!
- Network configuration is Ok.
- Network card is OK. In u-boot env, i use tftp to load kernel image and ramdisk image ==> network card is ok
- In kernel with patched, i think kernel image had driver for network card ( eth0: Intel LXT971A PHY ).

Can you give me some suggestion.
Thanks!!!
0blar
Posts: 11
Joined: Thu Sep 14, 2006 10:12 pm

Thu Oct 05, 2006 9:48 pm

I Did the same board and I have a probleme to load the filesystem
Can you please post how you configure u-boot, the commandarg and how to generate a filesystem and how to boot it from flash

thanks
siriroad
Contact:
Posts: 2
Joined: Mon Oct 09, 2006 9:56 am

Mon Oct 09, 2006 10:49 am

Can you set mac address at u-boot ?
Select driver PHY chip linux by mak menuconfig ?
Siriroad Jungthawan
Embedded Systems Engineer
Design Gateway Co., Ltd.
www.design-gateway.com

Return to “LINUX”

Who is online

Users browsing this forum: Bing [Bot], Gaston and 5 guests