  | | | Adding new e1000 driver to pxe initrd | Adding new e1000 driver to pxe initrd 2003-09-27 - By Randy Tidd
Back Hi, I'm attempting to add a newer version of e1000.o and e100.o to the initrd.img included in the /images/pxeboot directory of the Redhat 8.0 CD1. I have hardware which requires the use of the newer driver and also have a need to use the default RH 8.0 kernel. I have successfully added my compiled versions of e1000.o and e100.o to the initrd.img, and have updated the pcitables to recognize my new hardware, but get symbol errors when the driver loads so I suspect I have a problem in the way that I compile the driver. I have a fresh install of Redhat 8.0 that I am attempting to compile the e1000 and e100 source from. I do the following: In the 2.4.18-14 source tree , I copy configs/2.4.18-14-i386-BOOT to .config and do a make clean dep. Once that completes I modify include/linux/version.h to return 2.4.18-14BOOT when compiling the drivers so the module won't fail to load simply because the kernel versions do not match. I then enter the e1000 source and the e100 source and do a make to compile the module. Both modules compile without error. However after adding them to the initrd.img and booting from the network, I see symbol errors when the modules are loaded. Can anyone point out what I'm doing wrong here? Any tips welcome. Thanks, -Randy
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas -microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 10"> <meta name=Originator content="Microsoft Word 10"> <link rel=File-List href="cid:filelist.xml@(protected)"> <!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} span.EmailStyle17 {mso-style-type:personal-compose; mso-style-noshow:yes; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt; font-family:Arial; mso-ascii-font-family:Arial; mso-hansi-font-family:Arial; mso-bidi-font-family:Arial; color:windowtext;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} @(protected) Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--> </head>
<body lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I’m attempting to add a newer version of e1000.o and e100.o to the <span class=SpellE>initrd.img</span> included in the /images/<span class=SpellE>pxeboot</span> directory of the <span class=SpellE>Redhat</span> 8.0 CD1.<span style='mso-spacerun:yes'> </span>I have hardware which requires the use of the newer driver and also have a need to use the default RH 8.0 kernel.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I have successfully added my compiled versions of e1000.o and e100.o to the <span class=SpellE>initrd.img</span>, and have updated the <span class=SpellE>pcitables</span> to recognize my new hardware, but get symbol errors when the driver loads so I suspect I have a problem in the way that I compile the driver.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I have a fresh install of <span class=SpellE>Redhat</span> 8.0 that I am attempting to compile the e1000 and e100 source from. <span style='mso-spacerun:yes'> </span>I do the following:<o:p></o:p></span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>In the 2.4.18-14 source <span class=GramE>tree ,</span> I copy configs/2.4.18-14-i386-BOOT to .<span class=SpellE>config</span> and do a make clean dep.<span style='mso-spacerun:yes'> </span><o:p></o:p></span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Once that completes I modify include/<span class=SpellE >linux/version.h</span> to return 2.4.18-14BOOT when compiling the drivers so the module won’t fail to load simply because the kernel versions do not match.<o:p></o:p></span> </font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>I then enter the e1000 source and the e100 source and do a make to compile the module.<span style='mso-spacerun:yes'> </span>Both modules compile without error.<span style='mso-spacerun:yes'> </span><o:p ></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>However after adding them to the <span class=SpellE>initrd .img</span> and booting from the network, I see symbol errors when the modules are loaded. <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Can anyone point out what I’m doing wrong here?<span style='mso-spacerun:yes'> </span>Any tips welcome.<o:p></o:p></span>< /font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>Thanks,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt; font-family:Arial'>-Randy<o:p></o:p></span></font></p>
</div>
</body>
</html>
|
|
 |