Multi-Tech Systems MT9234MU Modem User Manual


 
AppendixBInstallingonLinux
MultiTechSystems,Inc.MT9234MUUserGuide 39
InstallingtheKernelSources
TobuildtheTIUSBdriveryoumusthavethematchingker nelsourcesforyourkernel.
Toverifythatyouhavematchingkernelsources,run"uname‐r"togettheversionoftherunningkernel.Then
checkforthedirectory/ usr/src/linux<version>,/lib/modules/<version>/source,/lib/modules/<version>/build,
or/usr/src/linux<stripped_version>,wherestripp ed_versionhastheextraversioninformationremoved.In
thesedirectorieslookforthefilesinclude/linux/autoconf.hand.config.
Ifyoudonotfindthecorrectkernelsourcedirectory,youmustfindandinstallthekernelsourcesfromyour
distributionCDsorothermedia.
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.makedep Createthedependencyandversionfiles.
Ifyouhavebuiltyourownkernel,thekernelsourcesarealreadyinstalledandprepared.Ifyouareusinga
kernelthatcamewithaLinuxdistribution,itcansometimesbediff iculttogetthekernelsourcescorrectly
installedandprepared,sinceeachLinuxdistributionhandleskernelsourcesslightlydifferently.
Forexample,ifyougeterrorsaboutthewrongkernelversion,youmayhaveinstalledthewrongkernelso urces,
oryoumayneedtoeditthekernelversioninthetoplevelMakefileofthekernelsources.Ifyougetcompilation
errors,perhapsyouforgottorun"makeoldconfig"and"makedep".
Ifyouhavedifficulties,lookcarefullyattheerrormessageswheninstallingtheTGZorRPMpackages‐‐those
messagesshouldgiveyouanindicationofjustwhattheerroris.