ixp425-fw.README revision 1.1
11.1Sscw$NetBSD: ixp425-fw.README,v 1.1 2006/12/10 10:01:49 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.1Sscw http://www.intel.com/design/network/products/npfamily/ixp400_current.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.1SscwAfter clicking the link, you will be directed to a click-through license
331.1Sscwpage. Assuming you agree to the terms of the license (and you are
341.1Sscw*strongly* advised to print it out and read it carefully) you will then
351.1Sscwbe able to download a ZIP file containing the microcode.
361.1Sscw
371.1SscwExtract the microcode under any decent Unix-like system using the "unzip"
381.1Sscwcommand provided with the OS, or with the version included in the pkgsrc
391.1Sscwcollection under archivers/unzip:
401.1Sscw
411.1Sscw	$ unzip IPL_ixp400NpeLibrary-2_3.zip
421.1Sscw
431.1SscwNext, you must generate a microcode image suitable for inclusion in the
441.1SscwNetBSD kernel.
451.1Sscw
461.1Sscw	$ cd ixp400_xscale_sw/src/npeDl
471.1Sscw
481.1SscwIn this directory, create a file called IxNpeMicrocode.h, and populate
491.1Sscwit with the following two #defines:
501.1Sscw
511.1Sscw#define IX_NPEDL_NPEIMAGE_NPEB_ETH
521.1Sscw#define IX_NPEDL_NPEIMAGE_NPEC_ETH
531.1Sscw
541.1SscwNote: If you know that you will only ever use Ethernet on NPE-B, you can
551.1Sscwomit the second line, and vice-versa.
561.1Sscw
571.1SscwNow compile and run ixNpeDlImageConverter.c:
581.1Sscw
591.1Sscw	$ cc ixNpeDlImageConverter.c -o foo
601.1Sscw	$ ./foo
611.1Sscw
621.1SscwCongratulations! You should now have a file called "IxNpeMicrocode.dat"
631.1Sscwin the current directory. Please take heed of the license you agreed to
641.1Sscwwhen you downloaded the Microcode. The license contains clauses which
651.1Sscwcontrol the redistribution of this microcode object file.
661.1Sscw
671.1SscwNow copy "IxNpeMicrocode.dat" to the sys/arch/arm/xscale directory in
681.1Sscwyour NetBSD source tree. All you have to do now is run config(1) and
691.1Sscwbuild your kernel.
701.1Sscw
711.1SscwIf all went as planned, the Ethernet controller(s) will show up as npe0
721.1Sscwand npe1. That's all there is to it!
731.1Sscw
741.1SscwIt is planned that pkgsrc will, eventually, automate most of the above
751.1Sscwprocedure.
76