AppendixB–InstallingonLinux
Multi‐TechSystems,Inc.MT9234MUUserGuide 45
PreparingtheKernelSources
Thisstepmayormaynotbenecessary,dependingonhowyourLinuxdistributioninstallsthekernelsources.
Loginasrootanddothefollowing:
Command Explanation
1.cd/usr/src/linux‐<version> Changetothesourcedirectory.
2.makemrproper Cleanupanyoldfiles.
3.Useeitherofthesecommands:
makeoldconfig
‐OR‐
makecloneconfig
Makeaconfigurationfiletomatchyour
runningkernel.
forRedHat
forSUSE
Forotherdistributionsthesesamecommands
mightwork,oryoumightneedtofinda
configfilein/bootorinaconfigsdirectory,
copyitto.config,andrun"makeoldconfig".
4.makeprepare Topreparethekernelsourcesforyour
machine.
Ifyoubuiltyourownkernel,thekernelsourcesarealreadyinstalledandprepared.Ifyouareusingakernelthat
camewithaLinuxdistribution,itcansometimesbedifficulttogetthekernelsourcescorrectlyinstalledand
prepared,sinceeachLinuxdistributionhandleskernelsourcesslightlydifferently.
Forexample,ifyougeterrorsaboutthewrongkernelversion,youmayhaveinstalledthewrongkernelso urces,
oryoumayneedtoeditthekernelversioninthetoplevelMakefileofthekernelsources.Ifyougeterrorsabout
amissingusb‐serial.h,youmayonlyhavethekernelheadersinstalled.Ifyouhavetroublegettingthefullkernel
sourcesinstalledandprepared,youcancopythecorrectversionofusb‐serial.htodrivers/usb/serialinthe
kernelheadersdirectoryandthentheotherkernelsourcesarenotneeded.
Ifyouhavedifficulties,lookcarefullyattheerrormessageswheninstallingtheTGZorRPMpackages.Those
messagesshouldgiveyouanindicationofjustwhattheerroris.