From: Vanalme Filip <F.Vanalme@TELEVIC.com>
To: "barebox@lists.infradead.org" <barebox@lists.infradead.org>
Subject: starting ethernet switch in SMI mode
Date: Wed, 4 Jul 2012 13:53:39 +0200 [thread overview]
Message-ID: <6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAE@SRV-VS06.TELEVIC.COM> (raw)
[-- Attachment #1.1.1: Type: text/plain, Size: 1385 bytes --]
Hi,
On our board with i.MX27 processor, we have a Micrel 5-port Managed Ethernet switch (ksz8895mq). 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 hardware strapping), I'm not able 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 see that the bit is set, so I assume the switch sould be running at that moment. 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 doing 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
[-- Attachment #1.1.2: Type: text/html, Size: 8004 bytes --]
[-- Attachment #1.2: image003.png --]
[-- Type: image/png, Size: 2780 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2012-07-04 11:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-04 11:53 Vanalme Filip [this message]
2012-07-04 20:23 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6EE7D1502C48E44E92DCADF9DD3E0DB9019FCE5B1DAE@SRV-VS06.TELEVIC.COM \
--to=f.vanalme@televic.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox