Multitech MT9234ZBA-USB Modem User Manual


 
AppendixDInstallingwithLinux
MultiTechSystems,Inc.MT9234ZBAUSBUserGuide 37
InstallingKernelSources
TobuildtheTIUSBdriveryoumusthavethematchingker nelsourcesforyourkernel.
Toverifythatyouhavematchingkernelsources:
1. Run"uname‐r"togettheversionoftherunningkernel.
2. Checkforthedirectory/usr/src/linux<version>,/lib/modules/<version>/source,
/lib/modules/<version>/build,or/usr/src/linux<stripped_version>,wherestripped_versionhastheextra
versioninformationremoved.
3. Inthesedirectorieslookforthefilesinclude/linux/autoconf.hand.config.
Ifyoudonotfindthecorrectkernelsourcedirectory,youmustfindandinstallthekernelsourcesfromyour
distributionCDsorothermedia.
PreparingKernelSources
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.co
nfig,andrun"makeoldconfig".
4.makedep Createthedependencyandversionfiles.
Ifyouhavebuiltyourownkernel,thekernelsourcesarealreadybeinstalledandprepared.Ifyouareusinga
kernelthatcamewithaLinuxdistribution,itcansometimesbediff iculttogetthekernelsourcescorrectly
installedandprepared,sinceeachLinuxdistributionhandleskernelsourcesslightlydifferently.
Forexample,ifyouge
terrorsaboutthewrongkernelversion,youmayhaveinstalledthewrongkernelsources,
oryoumayneedtoeditthekernelversioninthetoplevelMakefileofthekernelsources.Ifyougetcompilation
errors,perhapsyouforgottorun"makeoldconfig"and"makede
p".
Ifyouhavedifficulties,lookcarefullyattheerrormessageswheninstallingtheTGZorRPMpackages‐‐those
messagesshouldgiveyouanindicationofjustwhattheerroris.