From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ip2.televic.com ([81.82.194.222]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SmOFK-0002CP-Lh for barebox@lists.infradead.org; Wed, 04 Jul 2012 11:59:53 +0000 From: Vanalme Filip Date: Wed, 4 Jul 2012 13:53:39 +0200 Message-ID: <6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAE@SRV-VS06.TELEVIC.COM> Content-Language: en-US MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1420034425605346260==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: starting ethernet switch in SMI mode To: "barebox@lists.infradead.org" --===============1420034425605346260== Content-Language: en-US Content-Type: multipart/related; boundary="_004_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_"; type="multipart/alternative" --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_ Content-Type: multipart/alternative; boundary="_000_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_" --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, On our board with i.MX27 processor, we have a Micrel 5-port Managed Etherne= t switch (ksz8895mq). When starting in normal MII mode, from the Barebox pr= ompt, I can get an IP address by executing the dhcp command. When I change the switch's mode to SPI (via hardware strapping), I'm not ab= le to get an IP address anymore via DHCP. In this mode, one has to write to= a register in the switch to make the switch start. So, within our startup = code, I added some code to start the switch. Reading back the register, I s= ee that the bit is set, so I assume the switch sould be running at that mom= ent. However, when executing the dhcp command, I get "phy0: Autonegotiation= timeout". That's strange, because, when I boot to Linux kernel, the kernel starts up = without any problem and gets an IP address via DHCP. So in Linux, it's doin= g OK. Because it is working in Linux, I'm quite sure the switch was started in a = correct way. I don't understand why Barebox is unable to contact the switch while there'= s no problem in Linux to do the same. Anyone any idea on this problem ? Thanks in advance ! Filip [cid:image003.png@01CD59EC.6A109D00] Filip Vanalme Senior Development Engineer Tel. +32 51 30.30.45 Fax +32 51 33.18.86 www.televic.com Televic NV * Leo Bekaertlaan 1 * 8870 Izegem * Belgium Company number 0402.757.955 * RPR Kortrijk --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

On our board= with i.MX27 processor, we have a Micrel 5-port Managed Ethernet switch (ks= z8895mq). When starting in normal MII mode, from the Barebox prompt, I can = get an IP address by executing the dhcp command.

When I change the switch’s mode to SPI (via hardw= are strapping), I’m not able to get an IP address anymore via DHCP. I= n this mode, one has to write to a register in the switch to make the switc= h start. So, within our startup code, I added some code to start the switch= . Reading back the register, I see that the bit is set, so I assume the swi= tch sould be running at that moment. However, when executing the dhcp comma= nd, I get “phy0: Autonegotiation timeout”.

That’s strange, because, when I boo= t to Linux kernel, the kernel starts up without any problem and gets an = IP address via DHCP. So in Linux, it’s doing OK.

Because it is working in Linux, I’m qu= ite sure the switch was started in a correct way.

I don’t understand why Barebox is unable to con= tact the switch while there’s no problem in Linux to do the same. Any= one any idea on this problem ?

 

Thanks in advance !<= o:p>

 

<= p class=3DMsoNormal>Filip

 

3D"te=

<= tr>

 =

 

&= nbsp;

= --_000_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_-- --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_ Content-Type: image/png; name="image003.png" Content-Description: image003.png Content-Disposition: inline; filename="image003.png"; size=2780; creation-date="Wed, 04 Jul 2012 13:53:39 GMT"; modification-date="Wed, 04 Jul 2012 13:53:39 GMT" Content-ID: Content-Transfer-Encoding: base64 iVB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Rn9lO36pmKENDAZQCIHCSWi/OtEmCic68Xcy FNrTjCxQ0ElWSfjQHLM+j7X1hFLChxgo+I56XQKDARQkUHgnb98k5dr2ITmGTkJPDAUuJMgJhc78 vVA0IWAz9J6hcKXHfx6QU7gAFACFIKPQGe7Wtb/QLygdmu3a3EHXgKhApz0Odb3YRJ/rHOmJoNB+ vnGBm52xHkdjxFU34Zdj/tRfUxOwncTT4/xm9tOGBTR+rnBI14Bc2AAQCgW93vURKI1Vr/mB9Vnp PIdZRAWDARS8RtHZVdaCpNXSzL7rOgVv27ZOQAqF2gAsCbz2pKFrvJnmX3nmUOdNNmsc6qKnhWDd Fm0hVgoU9FiPhc9qYfMoYDAQeX5AKXu3ZNYUV8wtaHsYPS61A4eW8kbO/zB+/s+l3Vvtehhvylih 7BAIBFCAQCCAAgQCARQgEAigAIFAkuV/45GKAp8KlvkAAAAASUVORK5CYII= --_004_6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAESRVVS06TELE_-- --===============1420034425605346260== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============1420034425605346260==--

<= b>&nb= sp;

Filip Vanalme

Senior Development Engineer

 

Tel. +32 51 30.30.45

Fax +32 51 33.18.86

www.televic.com<= /span>

 

 

Televic NV • Leo B= ekaertlaan 1 • 8870 Izegem • Belgium
Company numbe= r 0402.757.955 • RPR Kortrijk