Skip to contentSkip to conversation

U-boot and IXP425 NPE

U-Boot-Users Ori Idan 3 participants 4 messages Jun 3, 2007 – Jun 4, 2007

lore
Share & tools
lore

Ori Idan

author
#0 lore raw

I am trying to compile network support for IXP425 NPE

First I got error for undefined CONFIG_PHY_ADDR

I have defined CONFIG_PHY_ADDR

It then compiled and gave me undefined functions: miiphy_read, miiphy_speed, miiphy_duplex

Has anyone successfuly operated IXP425 NPE?

Signature · 1 line
Ori Idan
#1 lore raw
Quoted 10 lines · Ori Idan

I am trying to compile network support for IXP425 NPE

First I got error for undefined CONFIG_PHY_ADDR

I have defined CONFIG_PHY_ADDR

It then compiled and gave me undefined functions: miiphy_read, miiphy_speed, miiphy_duplex

Has anyone successfuly operated IXP425 NPE?

Yes, it's supported on used on multiple platforms. Although we still have a problem with the NPE-microcode in the current version. I have a patch for this in my queue.

Back to your question: You seem to be missing the MII support in your board config file (CONFIG_MII). Best would be to "clone" your board config file from a known to be working version, like "ixdpg425.h" or "pdnb3.h".

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================

#2 lore raw

Hallo,

Quoted 3 lines

... Yes, it's supported on used on multiple platforms. Although we still have a problem with the NPE-microcode in the current version. I have a patch for this in my queue.

I'm porting u-boot to a Moxa UC7420 box :-) As it is not yet working, it's fine to hear it should. For now the microcode seems to be uploaded (tried 2.3 and 2.4 version), the NET LED starts flickering, but U-Boot say something about NPE-B upload failed and no eth device found. Could the patch in the queue fix this problem? If it does, I'd like to test this patch, before I start to investigate the problem myself...

Quoted 4 lines

Back to your question: You seem to be missing the MII support in your board config file (CONFIG_MII). Best would be to "clone" your board config file from a known to be working version, like "ixdpg425.h" or "pdnb3.h".

I used the pdnb3 board as a template, and just copied the MII defines from there. Everthing compiles just fine. I asked myself, if the PHY addresses need to be adapted for each board?

Regards
Carsten

____________
Virus checked by G DATA AntiVirusKit
Version: AVK 17.5142 from 04.06.2007

____________
Virus checked by G DATA AntiVirus
Version: AVK 17.5142 from 04.06.2007
Virus news: www.antiviruslab.com

#3 lore raw

Hi Charsten,

Quoted 10 lines · Carsten Schlote
Quoted 3 lines

... Yes, it's supported on used on multiple platforms. Although we still have a problem with the NPE-microcode in the current version. I have a patch for this in my queue.

I'm porting u-boot to a Moxa UC7420 box :-) As it is not yet working, it's fine to hear it should. For now the microcode seems to be uploaded (tried 2.3 and 2.4 version), the NET LED starts flickering, but U-Boot say something about NPE-B upload failed and no eth device found. Could the patch in the queue fix this problem? If it does, I'd like to test this patch, before I start to investigate the problem myself...

No, this patch is not going to fix your problem. It's the patch from Martijn de Gouw "IXP425 ethernet & NPE microcode" from 14.05.2007, that does not included the mircocode file into the U-Boot binary, but loads the microcode from a location in FLASH. This way, you are able to build legal U-Boot images, since including the microcode is violating the GPL.

Quoted 8 lines
Quoted 4 lines

Back to your question: You seem to be missing the MII support in your board config file (CONFIG_MII). Best would be to "clone" your board config file from a known to be working version, like "ixdpg425.h" or "pdnb3.h".

I used the pdnb3 board as a template, and just copied the MII defines from there. Everthing compiles just fine. I asked myself, if the PHY addresses need to be adapted for each board?

Sure. The PHY address is board specific and needs to be configured in the board config file.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================