Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Ethernet problem with at91sam9260ek
PostPosted: Fri Feb 24, 2012 8:45 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
Hi to all,
I make a at91sam9260-ek in my home. I could boot up the linux on it. But I have one problem.
My problem is that Ethernet.
Some lines in boot-up logo are in the following lines:

Code:
U-Boot 1.3.4 (Mar  9 2010 - 19:29:50)

DRAM:  64 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
....
...
...
...
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3a:1f:34:08:54:54)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
...
...
...


I don't know that I have a hardware probmel or no.
Can you help me based on the log?
I have a problem in u-boot
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)


and in kernel I have these lines:
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3a:1f:34:08:54:54)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)


I want to know that the DM9161 is detected or no?

I could set IP with the following line:
ifconfig eth0 192.168.1.200 up

But I haven't ping.

Help me plz.


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Tue Feb 28, 2012 2:52 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
Help me plz


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Thu Mar 01, 2012 10:37 am 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
I attached my schematic for DM9161 and AT91sam9260.
Please see it.
I soldered the S601 and unsoldered R605 (pin36 of DM9161).
My configuration is set for MII mode.
Also I change my uboot:
#undef CONFIG_RMII
#define CONFIG_RMII 1
Image

Also I modify my u-boot codes to print PHY_ID1.

I have these lines in terminal:
Code:
U-Boot 1.3.4 (Mar  9 2010 - 19:29:50)

DRAM:  64 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   macb0
phy_id= 0x181
macb0: Starting autonegotiation...
macb0: Autonegotiation timed out (status=0x7849)
macb0: link down (status: 0x7849)
....
...
...
...
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffc4000 irq 21 (3a:1f:34:08:54:54)
eth0: attached PHY driver [Davicom DM9161A] (mii_bus:phy_addr=ffffffff:00, irq=-1)
...
...
...


Do you have any Idea?
I haven't connection with LAN.
The status=0x7849 say that autonegotiation has a problem.

Please help me.
I don't know that my problem is for hardware or software?


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Sat Mar 03, 2012 1:34 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
88 views with no answer?


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Sat Mar 03, 2012 4:37 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
hamzeh.nasajpour wrote:
88 views with no answer?

You misunderstand basic forum dynamics, many people focused on their own problems, few with answers.

#define CONFIG_RMII 1 ??

Doesn't ETXCK need to be connected to REFCK in RMII mode? Have you tried the 50MHz mode like the original 9260-EK?

#undef CONFIG_RMII
#define CONFIG_MII 1

Confirm VCCA voltage
Confirm specific DM9161 part number, many variants


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Sat Mar 03, 2012 6:06 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
Thank you.

Oh, I'm sorry. I have a mistake.
I modified my u-boot in this state:
Code:
#undef CONFIG_RMII
#define CONFIG_MII 1
:roll:

No, I don't test with 50Mhz and RMII mode.
But in MII mode I could print the PhyID1 and PhyID2 that exactly match with the DM9161.


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Mon Mar 26, 2012 2:05 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
I replace the LAN connector and change u-boot configuration to MII mode(xtal=25Mhz used).
In this state, I could receive file with tftp command in u-boot, But I can't use the lan network after booting up the linux kernel.

Does any modification needed in kernel to changing to MII mode?

please help me.


Top
 Profile  
 
 Post subject: Re: Ethernet problem with at91sam9260ek
PostPosted: Wed Mar 28, 2012 12:07 pm 
Offline

Joined: Sun Dec 25, 2011 2:00 pm
Posts: 58
:(
I'm waiting for help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron