最近装了红帽子9.0,但是不能上网,检测不到网卡我的网卡是(MarvellYukon88E8038),也检测不到声卡。
请高手指教。先谢了
上网查了驱动程序但看不懂呀,,不懂怎么装。请高手详细指点,,:time:1
InstallationInstructionsforsk98linDriver
Thisfilecontains
1Overview
2RequiredFilesandTools
3Prerequisites
4PreparingtheDriverInstallationPackage
5DriverInstallation
5.1InstallationMode
5.2PatchGenerationMode
6PatchGenerationandRecompilationoftheKernel
6.1DownloadingandUnpackingtheLinuxKernel
6.2GeneratingtheDriverPatch
6.3ApplyingtheDriverPatch
6.4ConfiguringtheLinuxKernel
6.5CompilingtheLinuxKernel
6.6InstallingtheCompiledLinuxKernel
7ManualModuleLoading
8UnloadingtheModule
9DriverParameters
10EthtoolCommands
11Troubleshooting
================================================================================
1Overview
===========
Thisdocumentdescribestheinstallationofthesk98lindriver
onyourLinuxsystem.Itdescribeshowtheinstallationscriptworks
andhowitcanbeusedtoeitherinstallthesk98lindriverorto
createaLinuxkernelpatch.Theinstallationscriptcanbeusedon
anyLinuxkernelversionfrom2.4.20orhigher.
ApplyingtheLinuxkernelpatchrequiresaninstalledLinuxkernel
whichcanbecompiledandwhichisusedalongwiththeapplied
sk98lindriver.Therefore,unpacking,patching,configuring
andcompilingaLinuxkernelisalsoexplainedinthisdocument.
Thisdocumentdoesnotdescribethesk98lindriverandits
parameters.Formoreinformationreferto''sk98lin.txt''or
thesk98lin.4manpage.
***
2RequiredFilesandTools
===========================
Toinstallthesk98lindriverthefollowingfiles
andtoolsonyourLinuxsystemarerequired:
-Linuxkernelsourceavailableindirectory/usr/src/linux
-Compilertools(e.g.gcc)
***
3Prerequisites
================
Theprerequisitesforcompilation,loadingandpatchcreationofthe
sk98lindriverare:
-Anydeviceusingthesk98linkernelmoduleneedstobeclosed.
-Theoldsk98linkernelmoduleneedstobeunloaded.
Perdefaulttheinstallationscriptwilldothisautomatically
(if"installation"modeisselected).
-Yoursystemhastobeequippedwithasupportednetworkcard.
Withoutacardthefulldriverfunctionalitycannotbechecked.
-Thekernelsourceandkernelversionhavetobeconsistent.
Forinstance,itmightbe,thatyourunkernelversion2.4.20,but
theheaderfilesthekernelmodulewillbecompiledwithreferto
kernelversion2.4.21.Ifyoudon''thavethesamekernelversion,
installthesourcesandcompileanewkernel.It''snotpossibleto
mixdifferentkernelversions!
***
4PreparingtheDriverInstallationPackage
============================================
Beforethesk98lindriverinstallationscriptcanbeinvoked,the
installationpackageneedstobeunpacked:
1.Loginas''root''.
2.Unpackthedriverinstallationpackageusingthecommand
#tarxfvjinstall-???.tar.bz2
or
#bunzip2-cinstall-???.tar.bz2|tarxfv-
***
5DriverInstallation
======================
1.Afterthedriverinstallationpackageisunpacked,typethefollowing
commandstostartthesk98lindriverbuildprocess:
#cdDriverInstall
#./install.sh
2.a)Selectthedriverinstallationmode(seefollowingsubchapters).
b)Incaseyouhaveinstalledanotherdrivermodulethantheoriginal
Marvelldriveryouwillbeaskedhowtofurtherproceed.Youmay
ignorethefact,youmayrenametheotherdriveroryoumayerase
it.Werecommendtochoosethelastoptiontoavoidunwanted
sideeffectsandinterdependencies.
3.Waitforthedriverbuildprocesstofinish.
Dependingontheinstallationmodeyouselected,thedriveriseither
compiledandinstalledorakernelpatchisgenerated.
NOTE:
DependingonyourLinuxdistributionthenameofyourdevicemayhave
changedaftertheinstallationhaspassedsuccessfully.Inorderto
restoreyourolddevice,startthepropernetworkconfigurationutility
andrenamethedevice.
***
5.1InstallationMode
----------------------
Selectingthisinstallationmodethedriversourcesshipped
withtheinstallpackagearecompiledandtheresultingdriver
moduleobjectfileisinstalledtoasuitablelocation(usuallysomewhere
belowdirectory/lib/modules/...).
Nosourcefilesofthedriverareinstalledintoakerneldirectory.
Onlythedrivermoduleobjectfileandthemanpageofthedriverare
installedontoyoursystempermanently.
Theterm"installation"reflectsthefactthatthebuild
processrunsautomaticallywithoutanyuserinteraction.Incase
ofinstallationproblems,thedriverinstallationscriptautonomously
triestosolvetheproblem(ifthisispossible).
Aftercompilationhasfinished,theinitialsystemstateand
configurationisrecoveredandall(possibly)backed-upsystem
filesarerestoredfromtheinitialconfiguration.
***
5.2PatchGenerationMode
--------------------------
Selectingthisinstallationmode,adriverpatchiscreatedwhichcan
beappliedtoyourLinuxkernel(insteadofcompilingandinstalling
thedriveronyourmachine).
Usually,apatchisappliedwhenarecompilationoftheLinux
kernelisintendedandthelatestdriversourcesneedtobe
installedpermanentlyintheappropriatedriverdirectoryof
theLinuxkernel.
NOTE:YoustillhavetocompileyourpatchedLinuxkernelin
ordertoeffectivelyusethelatestdriversourcesshipped
withthisinstallationpackage!
***
6PatchGenerationandRecompilationoftheKernel
===================================================
Ifanewpatchhasbeencreatedusingthesk98lindriverinstallation
script,
-itneedstobeappliedagainsttheLinuxkernelsources
and
-theLinuxkernelhastoberecompiledinordertousethe
sk98lindriver.
***
6.1DownloadingandUnpackingtheLinuxKernel
-----------------------------------------------
Beforethesk98lindriverinstallationscriptisusedtogenerate
adriverpatch,aLinuxkernelneedstobeinstalled.Ifyoualreadyhave
installedaLinuxkernelinthedirectory/usr/src,youcanskipthis
paragraphandimmediatelycontinuewiththeparagraphdescribing
howtoapplythepatchagainsttheLinuxkernel.
TopatchtheLinuxKernel,proceedasfollows:
1.Loginas''root''.
2.DownloadtheoriginalLinuxsourcecodenamedlinux-a.b.c.tar.bz2
fromftp.kernel.orgintothedirectory/usr/src
3.Gotothedirectory/usr/srcandremoveallsymboliclinkstoold
Linuxsourcesusingthecommands:
#cd/usr/src
#rmlinux
4.UnpacktheoriginalLinuxsourcecodeusingthecommand:
#tarxvjflinux-a.b.c.tar.bz2
Afterthesourceshavebeeninstalled,theycanbefoundina
directorynamed/usr/src/linux-a.b.cor/usr/src/linux.
5.Ifthesymboliclinktothetargetkernelsourcedirectory
(/usr/src/linux)doesnotexist,createitmanuallywiththe
followingcommands:
#cd/usr/src
#ln-slinux.a.b.clinux
***
6.2GeneratingtheDriverPatch
--------------------------------
1.Runthesk98lindriverinstallationscript.
2.Choose"generatepatch".
3.Followtheinstructionsoftheinstallscript.
***
6.3ApplyingtheDriverPatch
------------------------------
ToapplythegeneratedPatchintothekernelusethefollowing
commands:
#cd/usr/src/linux
#cat/patch-location/sk98lin__vX.XX_a_b_c_patch|patch-p1
***
6.4ConfiguringtheLinuxKernel
---------------------------------
1.Gotothedirectory/usr/src/linux:
#cd/usr/src/linux
2.Dependingonyourcurrentenvironmentmode(consoleorgraphical),
youhavetoinvokedifferentKernelconfigurationcommands:
-Intheconsolemode,executethecommand:
#makemenuconfig
-Inthegraphicalmode,executethecommand:
#makexconfig
-Inthegraphicalmodewithkernel2.6,executethecommand:
#makegconfig
Thisbuildsafewprogramsanddisplaysthekernel
configurationmenu.Inthismenuyoucanmodifyseveraloptions
ofthekernelconfiguration.
3.Selecttheoptionsyouwanttocompileintothenewkernel.
-Forkernel2.4.xfamily:
a.Selectthemenu"NetworkDeviceSupport".
b.Select"Ethernet(1000Mbit)".
-Forkernel2.6.xfamily:
a.Selectthemenu"devicedrivers"
b.Selectthemenu"NetworkDeviceSupport".
c.Select"Ethernet(1000Mbit)".
4.SelecthowtousethedriverintheLinuxkernel.
-Tocompilethedriverasamodule,mark
"MarvellYukonChipset/SysKonnectSK-98xxSupport"with(M).
-Tointegratethedriverpermanentlyintothekernel,mark
"MarvellYukonChipset/SysKonnectSK-98xxSupport"with(*).
5.SelectifyouwanttouseRxpolling(NAPI).
-ToenableRxpollingofthedriver,mark
"UseRxpolling(NAPI)"with(*).
-TodisableRxpollingofthedriver,donotmark
"UseRxpolling(NAPI)".
6.Select"Exit".
7.Selectthemenu"Loadablemodulesupport".
8.Select"Enableloadablemodulesupport".
9.Select"Kernelmoduleloader".
10.Configureotheroptionsdependingonyourneeds(e.g.SCSI).
11.Toquittheconfiguration,select"Exit".
12.Whenthemessage"Doyouwishtosaveyournewkernelconfiguration"
isdisplayed,select"Yes".
***
6.5CompilingtheLinuxKernel
-------------------------------
AftertheLinuxconfigurationhasbeenfinished,itcanbecompiled.
1.Createalldependencies(unnecessaryforkernel2.6.x):
#makedep
2.BuildtheLinuxkernelbinary:
#makecleanbzImage.
3.Buildallmodulesandinstallthembelow/lib/modules:
#makemodules
#makemodules_install
***
6.6InstallingtheCompiledLinuxKernel
-----------------------------------------
WhenthecompilationoftheLinuxkernelhasbeenfinisheditneeds
tobeinstalledtothebootdirectory.Inadditiontothis,theboot
loader(LILO,GRUBetc.)needstobenotifiedaboutthenewLinuxkernel.
1.Installthenewkernelbycopyingitintoyourbootdirectory
byexecutingthecommands(e.g.onIntel/x86machines):
#cparch/i386/boot/bzImage/boot/vmlinuz-new
#cpSystem.map/boot/System.map-new.
2.Editthebootloaderconfigurationfiletobootthenewkernel.
Fordetailsrefertomanpageanddocumentationofyourbootloader
(LILO,GRUB).
3.Rebootyoursystemwiththenewkernel.
***
7ManualModuleLoading
========================
AfterbootingtheLinuxkernelandcompilingthedriverasaloadable
kernelmodule(LKM),thedriverneedstobeloaded.
1.Enter"modprobesk98lin".
2.IfanyMarvellYukon(TM)basedadapterisinstalledinyourcomputer
andyouhaveamounted/procfilesystem,executethecommand:
#ls/proc/net/sk98lin/
Thisshouldproduceanoutputlineofthefollowingformat:
eth0eth1...
whichindicatesthatyouradapter(s)has/havebeenfoundandinitialized.
NOTE:Forfurtherinformation(e.g.thedriverparameters)referto
thesk98lin.txtfile.
***
8UnloadingtheModule
=======================
Unloadingofthesk98lindriverisonlypossibleifithasbeen
compiledasloadablekernelmodule.Beforethedrivermodulecanbeunloaded,
allinterfacesofthedrivermoduleneedtobestoppedusingthefollowing
sequenceofcommands:
1.Executethecommand"ifconfigYOUR_DEVICEdown":
#ifconfigeth0down
#ifconfigeth1down
#ifconfig...down
2.Executethecommand"rmmodsk98lin".
***
9DriverParameters
====================
Whenloadingthedriverasakernelmodule,additionalparameters
canbepassedtothedriverforconfiguration.
Thoseparameterscanbepassedintwoways:Youcaneither
-statethemonthemodprobecommandline
or
-settheminthefile/etc/modules.conf(oldname:
/etc/conf.modules),inordertoforcethekernelmoduleloader
topassthemtothedriveratload-time.
NOTE:Forfurtherinformationaboutthedriverparametersandtheir
possiblevaluesrefertothesk98lin.txtfile.
***
10EthtoolCommands
====================
Thesk98lindriverprovidesbuilt-inethtoolsupport.Theethtool
canbeusedtodisplayormodifyinterfacespecificconfigurations.
NOTE:Forfurtherinformationaboutprovidedethtoolcommandsandtheir
possiblevaluesrefertothesk98lin.txtfile.
***
11Troubleshooting
===================
Ifanyproblemsoccurduringtheinstallationprocess,checkthe
followinglistofknownproblems.Ifyoucannotfindyourproblem
inthelistbelow,pleasecontactSysKonnect''stechnicalsupport
forhelp(linux@syskonnect.de).Whencontactingourtechnical
support,pleaseensurethatthefollowinginformationisavailable:
-the''install.log''filecreatedbytheinstallscript''install.sh''
-SystemManufacturerandHWInformations(CPU,Memory...)
-PCI-Boardsinyoursystem
-Distribution
-Kernelversion
-Driverversion
Problem:TheSK-98xxadaptercannotbefoundbythedriver.
Solution:In/proc/pcisearchforthefollowingentry:
''Ethernetcontroller:SysKonnectSK-98xx...''
Ifthisentryexists,theSK-98xxorSK-98xxV2.0adapterhas
beenfoundbythesystemandshouldbeoperational.
Ifthisentrydoesnotexistorifthefile''/proc/pci''isnot
found,theremaybeahardwareproblemorthePCIsupportmay
notbeenabledinyourkernel.
Theadaptercanbecheckedusingthediagnosticsprogramwhich
isavailableontheSysKonnectwebsite:
Problem:Programssuchas''ifconfig''or''route''cannotbefoundorthe
errormessage''Operationnotpermitted''isdisplayed.
Reason:Youarenotloggedinasuser''root''.
Solution:Logoutandloginas''root''orchangeto''root''via''su''.
Problem:Thedrivercanbestarted,butifanipaddressisassigned
toanadapternolinkupindicationappearsalthoughitis
connectedtothenetwork.Itisalsonotpossibletoreceive
ortransmitanypackets;e.g.''ping''doesnotwork.
Reason:TheadapterdoesnotreceiveanyinterruptsfromtheLinux
system.ThiscanhappenwhenusingtheAPIC(Advanced
ProgrammableInterruptController)ofanSMPcompiledkernel
onaUPenvrionment.
Solution:UsetheLinuxkernelparameters''noapic''or''nolapic''when
bootingyourkernel.Thiscanbedonebyaddingthosekernel
parameterstothebootmanagerkernelselectionmenu(either
/boot/grub/menu.lst(GRUB)or/etc/lilo.conf(LILO)).
Whenyoubuildakernel,deselectoptionCONFIG_X86_LOCAL_APIC.
Problem:Thedrivercanbestarted,theadapterisconnectedtothe
networkandalinkupindicationisdisplayed,butyoucannot
receiveortransmitanypackets;e.g.''ping''doesnotwork.
Reason:Thereisanincorrectrouteinyourroutingtableorthe
remotehostisunreachable.
Solution:Checktheroutingtablewiththecommand''route''andreadthe
manualhelppagesdealingwithroutes(enter''manroute'').
Checktheconnectiontotheremotehostsystem.
Problem:Atdriverstart,thefollowingerrormessageisdisplayed:
"eth0:--ERROR--
Class:internalSoftwareerror
Nr:0xcc
Msg:SkGeInitPort()cannotinitrunningports"
Reason:Youareusingadrivercompiledforsingleprocessormachines
onamultiprocessormachinewithSMP(SymmetricMultiProcessor)
kernel.
Solution:Configureyourkernelappropriatelyandrecompilethekernel.
***
***EndofReadmeFile***
InstallationInstructionsforsk98linDriver
Thisfilecontains
1Overview
2RequiredFilesandTools
3Prerequisites
4PreparingtheDriverInstallationPackage
5DriverInstallation
5.1InstallationMode
5.2PatchGenerationMode
6PatchGenerationandRecompilationoftheKernel
6.1DownloadingandUnpackingtheLinuxKernel
6.2GeneratingtheDriverPatch
6.3ApplyingtheDriverPatch
6.4ConfiguringtheLinuxKernel
6.5CompilingtheLinuxKernel
6.6InstallingtheCompiledLinuxKernel
7ManualModuleLoading
8UnloadingtheModule
9DriverParameters
10EthtoolCommands
11Troubleshooting
================================================================================
1Overview
===========
Thisdocumentdescribestheinstallationofthesk98lindriver
onyourLinuxsystem.Itdescribeshowtheinstallationscriptworks
andhowitcanbeusedtoeitherinstallthesk98lindriverorto
createaLinuxkernelpatch.Theinstallationscriptcanbeusedon
anyLinuxkernelversionfrom2.4.20orhigher.
ApplyingtheLinuxkernelpatchrequiresaninstalledLinuxkernel
whichcanbecompiledandwhichisusedalongwiththeapplied
sk98lindriver.Therefore,unpacking,patching,configuring
andcompilingaLinuxkernelisalsoexplainedinthisdocument.
Thisdocumentdoesnotdescribethesk98lindriverandits
parameters.Formoreinformationreferto''sk98lin.txt''or
thesk98lin.4manpage.
***
2RequiredFilesandTools
===========================
Toinstallthesk98lindriverthefollowingfiles
andtoolsonyourLinuxsystemarerequired:
-Linuxkernelsourceavailableindirectory/usr/src/linux
-Compilertools(e.g.gcc)
***
3Prerequisites
================
Theprerequisitesforcompilation,loadingandpatchcreationofthe
sk98lindriverare:
-Anydeviceusingthesk98linkernelmoduleneedstobeclosed.
-Theoldsk98linkernelmoduleneedstobeunloaded.
Perdefaulttheinstallationscriptwilldothisautomatically
(if"installation"modeisselected).
-Yoursystemhastobeequippedwithasupportednetworkcard.
Withoutacardthefulldriverfunctionalitycannotbechecked.
-Thekernelsourceandkernelversionhavetobeconsistent.
Forinstance,itmightbe,thatyourunkernelversion2.4.20,but
theheaderfilesthekernelmodulewillbecompiledwithreferto
kernelversion2.4.21.Ifyoudon''thavethesamekernelversion,
installthesourcesandcompileanewkernel.It''snotpossibleto
mixdifferentkernelversions!
***
4PreparingtheDriverInstallationPackage
============================================
Beforethesk98lindriverinstallationscriptcanbeinvoked,the
installationpackageneedstobeunpacked:
1.Loginas''root''.
2.Unpackthedriverinstallationpackageusingthecommand
#tarxfvjinstall-???.tar.bz2
or
#bunzip2-cinstall-???.tar.bz2|tarxfv-
***
5DriverInstallation
======================
1.Afterthedriverinstallationpackageisunpacked,typethefollowing
commandstostartthesk98lindriverbuildprocess:
#cdDriverInstall
#./install.sh
2.a)Selectthedriverinstallationmode(seefollowingsubchapters).
b)Incaseyouhaveinstalledanotherdrivermodulethantheoriginal
Marvelldriveryouwillbeaskedhowtofurtherproceed.Youmay
ignorethefact,youmayrenametheotherdriveroryoumayerase
it.Werecommendtochoosethelastoptiontoavoidunwanted
sideeffectsandinterdependencies.
3.Waitforthedriverbuildprocesstofinish.
Dependingontheinstallationmodeyouselected,thedriveriseither
compiledandinstalledorakernelpatchisgenerated.
NOTE:
DependingonyourLinuxdistributionthenameofyourdevicemayhave
changedaftertheinstallationhaspassedsuccessfully.Inorderto
restoreyourolddevice,startthepropernetworkconfigurationutility
andrenamethedevice.
***
5.1InstallationMode
----------------------
Selectingthisinstallationmodethedriversourcesshipped
withtheinstallpackagearecompiledandtheresultingdriver
moduleobjectfileisinstalledtoasuitablelocation(usuallysomewhere
belowdirectory/lib/modules/...).
Nosourcefilesofthedriverareinstalledintoakerneldirectory.
Onlythedrivermoduleobjectfileandthemanpageofthedriverare
installedontoyoursystempermanently.
Theterm"installation"reflectsthefactthatthebuild
processrunsautomaticallywithoutanyuserinteraction.Incase
ofinstallationproblems,thedriverinstallationscriptautonomously
triestosolvetheproblem(ifthisispossible).
Aftercompilationhasfinished,theinitialsystemstateand
configurationisrecoveredandall(possibly)backed-upsystem
filesarerestoredfromtheinitialconfiguration.
***
5.2PatchGenerationMode
--------------------------
Selectingthisinstallationmode,adriverpatchiscreatedwhichcan
beappliedtoyourLinuxkernel(insteadofcompilingandinstalling
thedriveronyourmachine).
Usually,apatchisappliedwhenarecompilationoftheLinux
kernelisintendedandthelatestdriversourcesneedtobe
installedpermanentlyintheappropriatedriverdirectoryof
theLinuxkernel.
NOTE:YoustillhavetocompileyourpatchedLinuxkernelin
ordertoeffectivelyusethelatestdriversourcesshipped
withthisinstallationpackage!
***
6PatchGenerationandRecompilationoftheKernel
===================================================
Ifanewpatchhasbeencreatedusingthesk98lindriverinstallation
script,
-itneedstobeappliedagainsttheLinuxkernelsources
and
-theLinuxkernelhastoberecompiledinordertousethe
sk98lindriver.
***
6.1DownloadingandUnpackingtheLinuxKernel
-----------------------------------------------
Beforethesk98lindriverinstallationscriptisusedtogenerate
adriverpatch,aLinuxkernelneedstobeinstalled.Ifyoualreadyhave
installedaLinuxkernelinthedirectory/usr/src,youcanskipthis
paragraphandimmediatelycontinuewiththeparagraphdescribing
howtoapplythepatchagainsttheLinuxkernel.
TopatchtheLinuxKernel,proceedasfollows:
1.Loginas''root''.
2.DownloadtheoriginalLinuxsourcecodenamedlinux-a.b.c.tar.bz2
fromftp.kernel.orgintothedirectory/usr/src
3.Gotothedirectory/usr/srcandremoveallsymboliclinkstoold
Linuxsourcesusingthecommands:
#cd/usr/src
#rmlinux
4.UnpacktheoriginalLinuxsourcecodeusingthecommand:
#tarxvjflinux-a.b.c.tar.bz2
Afterthesourceshavebeeninstalled,theycanbefoundina
directorynamed/usr/src/linux-a.b.cor/usr/src/linux.
5.Ifthesymboliclinktothetargetkernelsourcedirectory
(/usr/src/linux)doesnotexist,createitmanuallywiththe
followingcommands:
#cd/usr/src
#ln-slinux.a.b.clinux
***
6.2GeneratingtheDriverPatch
--------------------------------
1.Runthesk98lindriverinstallationscript.
2.Choose"generatepatch".
3.Followtheinstructionsoftheinstallscript.
***
6.3ApplyingtheDriverPatch
------------------------------
ToapplythegeneratedPatchintothekernelusethefollowing
commands:
#cd/usr/src/linux
#cat/patch-location/sk98lin__vX.XX_a_b_c_patch|patch-p1
***
6.4ConfiguringtheLinuxKernel
---------------------------------
1.Gotothedirectory/usr/src/linux:
#cd/usr/src/linux
2.Dependingonyourcurrentenvironmentmode(consoleorgraphical),
youhavetoinvokedifferentKernelconfigurationcommands:
-Intheconsolemode,executethecommand:
#makemenuconfig
-Inthegraphicalmode,executethecommand:
#makexconfig
-Inthegraphicalmodewithkernel2.6,executethecommand:
#makegconfig
Thisbuildsafewprogramsanddisplaysthekernel
configurationmenu.Inthismenuyoucanmodifyseveraloptions
ofthekernelconfiguration.
3.Selecttheoptionsyouwanttocompileintothenewkernel.
-Forkernel2.4.xfamily:
a.Selectthemenu"NetworkDeviceSupport".
b.Select"Ethernet(1000Mbit)".
-Forkernel2.6.xfamily:
a.Selectthemenu"devicedrivers"
b.Selectthemenu"NetworkDeviceSupport".
c.Select"Ethernet(1000Mbit)".
4.SelecthowtousethedriverintheLinuxkernel.
-Tocompilethedriverasamodule,mark
"MarvellYukonChipset/SysKonnectSK-98xxSupport"with(M).
-Tointegratethedriverpermanentlyintothekernel,mark
"MarvellYukonChipset/SysKonnectSK-98xxSupport"with(*).
5.SelectifyouwanttouseRxpolling(NAPI).
-ToenableRxpollingofthedriver,mark
"UseRxpolling(NAPI)"with(*).
-TodisableRxpollingofthedriver,donotmark
"UseRxpolling(NAPI)".
6.Select"Exit".
7.Selectthemenu"Loadablemodulesupport".
8.Select"Enableloadablemodulesupport".
9.Select"Kernelmoduleloader".
10.Configureotheroptionsdependingonyourneeds(e.g.SCSI).
11.Toquittheconfiguration,select"Exit".
12.Whenthemessage"Doyouwishtosaveyournewkernelconfiguration"
isdisplayed,select"Yes".
***
6.5CompilingtheLinuxKernel
-------------------------------
AftertheLinuxconfigurationhasbeenfinished,itcanbecompiled.
1.Createalldependencies(unnecessaryforkernel2.6.x):
#makedep
2.BuildtheLinuxkernelbinary:
#makecleanbzImage.
3.Buildallmodulesandinstallthembelow/lib/modules:
#makemodules
#makemodules_install
***
6.6InstallingtheCompiledLinuxKernel
-----------------------------------------
WhenthecompilationoftheLinuxkernelhasbeenfinisheditneeds
tobeinstalledtothebootdirectory.Inadditiontothis,theboot
loader(LILO,GRUBetc.)needstobenotifiedaboutthenewLinuxkernel.
1.Installthenewkernelbycopyingitintoyourbootdirectory
byexecutingthecommands(e.g.onIntel/x86machines):
#cparch/i386/boot/bzImage/boot/vmlinuz-new
#cpSystem.map/boot/System.map-new.
2.Editthebootloaderconfigurationfiletobootthenewkernel.
Fordetailsrefertomanpageanddocumentationofyourbootloader
(LILO,GRUB).
3.Rebootyoursystemwiththenewkernel.
***
7ManualModuleLoading
========================
AfterbootingtheLinuxkernelandcompilingthedriverasaloadable
kernelmodule(LKM),thedriverneedstobeloaded.
1.Enter"modprobesk98lin".
2.IfanyMarvellYukon(TM)basedadapterisinstalledinyourcomputer
andyouhaveamounted/procfilesystem,executethecommand:
#ls/proc/net/sk98lin/
Thisshouldproduceanoutputlineofthefollowingformat:
eth0eth1...
whichindicatesthatyouradapter(s)has/havebeenfoundandinitialized.
NOTE:Forfurtherinformation(e.g.thedriverparameters)referto
thesk98lin.txtfile.
***
8UnloadingtheModule
=======================
Unloadingofthesk98lindriverisonlypossibleifithasbeen
compiledasloadablekernelmodule.Beforethedrivermodulecanbeunloaded,
allinterfacesofthedrivermoduleneedtobestoppedusingthefollowing
sequenceofcommands:
1.Executethecommand"ifconfigYOUR_DEVICEdown":
#ifconfigeth0down
#ifconfigeth1down
#ifconfig...down
2.Executethecommand"rmmodsk98lin".
***
9DriverParameters
====================
Whenloadingthedriverasakernelmodule,additionalparameters
canbepassedtothedriverforconfiguration.
Thoseparameterscanbepassedintwoways:Youcaneither
-statethemonthemodprobecommandline
or
-settheminthefile/etc/modules.conf(oldname:
/etc/conf.modules),inordertoforcethekernelmoduleloader
topassthemtothedriveratload-time.
NOTE:Forfurtherinformationaboutthedriverparametersandtheir
possiblevaluesrefertothesk98lin.txtfile.
***
10EthtoolCommands
====================
Thesk98lindriverprovidesbuilt-inethtoolsupport.Theethtool
canbeusedtodisplayormodifyinterfacespecificconfigurations.
NOTE:Forfurtherinformationaboutprovidedethtoolcommandsandtheir
possiblevaluesrefertothesk98lin.txtfile.
***
11Troubleshooting
===================
Ifanyproblemsoccurduringtheinstallationprocess,checkthe
followinglistofknownproblems.Ifyoucannotfindyourproblem
inthelistbelow,pleasecontactSysKonnect''stechnicalsupport
forhelp(linux@syskonnect.de).Whencontactingourtechnical
support,pleaseensurethatthefollowinginformationisavailable:
-the''install.log''filecreatedbytheinstallscript''install.sh''
-SystemManufacturerandHWInformations(CPU,Memory...)
-PCI-Boardsinyoursystem
-Distribution
-Kernelversion
-Driverversion
Problem:TheSK-98xxadaptercannotbefoundbythedriver.
Solution:In/proc/pcisearchforthefollowingentry:
''Ethernetcontroller:SysKonnectSK-98xx...''
Ifthisentryexists,theSK-98xxorSK-98xxV2.0adapterhas
beenfoundbythesystemandshouldbeoperational.
Ifthisentrydoesnotexistorifthefile''/proc/pci''isnot
found,theremaybeahardwareproblemorthePCIsupportmay
notbeenabledinyourkernel.
Theadaptercanbecheckedusingthediagnosticsprogramwhich
isavailableontheSysKonnectwebsite:
Problem:Programssuchas''ifconfig''or''route''cannotbefoundorthe
errormessage''Operationnotpermitted''isdisplayed.
Reason:Youarenotloggedinasuser''root''.
Solution:Logoutandloginas''root''orchangeto''root''via''su''.
Problem:Thedrivercanbestarted,butifanipaddressisassigned
toanadapternolinkupindicationappearsalthoughitis
connectedtothenetwork.Itisalsonotpossibletoreceive
ortransmitanypackets;e.g.''ping''doesnotwork.
Reason:TheadapterdoesnotreceiveanyinterruptsfromtheLinux
system.ThiscanhappenwhenusingtheAPIC(Advanced
ProgrammableInterruptController)ofanSMPcompiledkernel
onaUPenvrionment.
Solution:UsetheLinuxkernelparameters''noapic''or''nolapic''when
bootingyourkernel.Thiscanbedonebyaddingthosekernel
parameterstothebootmanagerkernelselectionmenu(either
/boot/grub/menu.lst(GRUB)or/etc/lilo.conf(LILO)).
Whenyoubuildakernel,deselectoptionCONFIG_X86_LOCAL_APIC.
Problem:Thedrivercanbestarted,theadapterisconnectedtothe
networkandalinkupindicationisdisplayed,butyoucannot
receiveortransmitanypackets;e.g.''ping''doesnotwork.
Reason:Thereisanincorrectrouteinyourroutingtableorthe
remotehostisunreachable.
Solution:Checktheroutingtablewiththecommand''route''andreadthe
manualhelppagesdealingwithroutes(enter''manroute'').
Checktheconnectiontotheremotehostsystem.
Problem:Atdriverstart,thefollowingerrormessageisdisplayed:
"eth0:--ERROR--
Class:internalSoftwareerror
Nr:0xcc
Msg:SkGeInitPort()cannotinitrunningports"
Reason:Youareusingadrivercompiledforsingleprocessormachines
onamultiprocessormachinewithSMP(SymmetricMultiProcessor)
kernel.
Solution:Configureyourkernelappropriatelyandrecompilethekernel.
***
***EndofReadmeFile***