ixp425-fw.README revision 1.2
11.2Sscw$NetBSD: ixp425-fw.README,v 1.2 2010/03/24 13:55:04 scw Exp $ 21.1Sscw 31.1SscwIXP425 NPE Microcode 41.1Sscw~~~~~~~~~~~~~~~~~~~~ 51.1Sscw 61.1SscwThe IXP425 contains up to three network co-processors called NPEs, 71.1Sscw"Network Processing Engines". These control all the networking features 81.1Sscwof the IXP425 and are usually supported by Access Library (AL) software 91.1Sscwand NPE microcode obtained from Intel. 101.1Sscw 111.1SscwThe AL source code and compiled object files are encumbered by a license 121.1Sscwwhich precludes its distribution with NetBSD. 131.1Sscw 141.1SscwHowever, NetBSD includes source for a native driver for NPE Ethernet 151.1Sscwwritten by Sam Leffler. The driver requires that Intel's microcode is 161.1Sscwloaded onto the NPE, but since we cannot distribute the microcode, it 171.1Sscwmust be downloaded from Intel's website after agreeing to their click- 181.1Sscwthrough license. 191.1Sscw 201.1SscwYou must grab the NPE microcode from here: 211.1Sscw 221.2Sscw http://www.intel.com/design/network/products/npfamily/download_ixp400.htm 231.1Sscw 241.1SscwSelect the "Download (without Crypto)" link in the "NPE Microcode" 251.1Sscwsection. Note that there is no benefit in selecting the "with Cypto" 261.1Sscwmicrocode at this time since NetBSD does not support it. 271.1Sscw 281.1SscwNote: At the time of writing (December 2006), the NPE Microcode is at 291.1Sscwversion 2.3. Newer versions may not work with NetBSD's native Ethernet 301.1Sscwdriver. If this is the case, let us know via send-pr(1). 311.1Sscw 321.2SscwUpdate: As of March 2010, NPE Microcode is at version 3.0 and has been 331.2Sscwconfirmed to work. See: 341.2Sscw http://mail-index.netbsd.org/port-arm/2010/03/24/msg000912.html 351.2Sscw 361.1SscwAfter clicking the link, you will be directed to a click-through license 371.1Sscwpage. Assuming you agree to the terms of the license (and you are 381.1Sscw*strongly* advised to print it out and read it carefully) you will then 391.1Sscwbe able to download a ZIP file containing the microcode. 401.1Sscw 411.1SscwExtract the microcode under any decent Unix-like system using the "unzip" 421.1Sscwcommand provided with the OS, or with the version included in the pkgsrc 431.1Sscwcollection under archivers/unzip: 441.1Sscw 451.1Sscw $ unzip IPL_ixp400NpeLibrary-2_3.zip 461.1Sscw 471.1SscwNext, you must generate a microcode image suitable for inclusion in the 481.1SscwNetBSD kernel. 491.1Sscw 501.1Sscw $ cd ixp400_xscale_sw/src/npeDl 511.1Sscw 521.1SscwIn this directory, create a file called IxNpeMicrocode.h, and populate 531.1Sscwit with the following two #defines: 541.1Sscw 551.1Sscw#define IX_NPEDL_NPEIMAGE_NPEB_ETH 561.1Sscw#define IX_NPEDL_NPEIMAGE_NPEC_ETH 571.1Sscw 581.1SscwNote: If you know that you will only ever use Ethernet on NPE-B, you can 591.1Sscwomit the second line, and vice-versa. 601.1Sscw 611.1SscwNow compile and run ixNpeDlImageConverter.c: 621.1Sscw 631.1Sscw $ cc ixNpeDlImageConverter.c -o foo 641.1Sscw $ ./foo 651.1Sscw 661.1SscwCongratulations! You should now have a file called "IxNpeMicrocode.dat" 671.1Sscwin the current directory. Please take heed of the license you agreed to 681.1Sscwwhen you downloaded the Microcode. The license contains clauses which 691.1Sscwcontrol the redistribution of this microcode object file. 701.1Sscw 711.1SscwNow copy "IxNpeMicrocode.dat" to the sys/arch/arm/xscale directory in 721.1Sscwyour NetBSD source tree. All you have to do now is run config(1) and 731.1Sscwbuild your kernel. 741.1Sscw 751.1SscwIf all went as planned, the Ethernet controller(s) will show up as npe0 761.1Sscwand npe1. That's all there is to it! 771.1Sscw 781.1SscwIt is planned that pkgsrc will, eventually, automate most of the above 791.1Sscwprocedure. 80