DM6467T开发环境的安装.docx
- 文档编号:6695601
- 上传时间:2023-01-09
- 格式:DOCX
- 页数:6
- 大小:18.62KB
DM6467T开发环境的安装.docx
《DM6467T开发环境的安装.docx》由会员分享,可在线阅读,更多相关《DM6467T开发环境的安装.docx(6页珍藏版)》请在冰豆网上搜索。
DM6467T开发环境的安装
DM6467T开发环境的安装
1.虚拟机安装VirtualBox3.2.12
2.ubuntu10.04
3.下载 DVSDK_3_10_003_10_00_19相关文件
▪linux-davinci-staging.tar.gz- containsthekernelsourcetreewiththeTImodifications,alsoknownastheProductSupportPackage(PSP)
▪linuxlibs-####.##-armv5te.tar.gz- containsPSPpre-compiledLinuxlibraries
▪dvsdk_#_##_##_##_Setup.bin- containstheDVSDKitself
▪arago-demo-image-dm####-evm.tar.gz- forrootfilesystem
▪dvsdk_#_#_#_#_overlay_dm6467.tar.gz- forplatform-specificappsanddata
▪cs2dm6467_#_##_##_##_Setup.bin- codecserverforDM6467platform
4.安装步骤
InstallingSoftwareComponents
Thissectionexplainshowtoinstalltherequiredsoftwarecomponentsonthehost.
1.LogintoyourhostLinuxworkstation.
2.Thecommandsinthissectioninstallallcomponentsinthe/home/
host$mkdir-p/home/
host$cd/home/
3.Downloadandunpackthetoolchain:
Thelink Getting_CodeSourcery_Toolchain providestheinformationyouneedtodownloadthetoolchain.Youcandownloadthe AdvancedPackages fromthelinkwhichprovidesthelinuxtarball.Theotheroptionswouldbetodownloadthe RecommendedPackages whichprovidesthetoolsinalinuxinstaller.Thesecommandsassumeyouwanttodownloadthetoolchain(AdvancedPackages)andinstallitinthe/opt/arm-2009q1directory. Note:
The"sudo"isnotnecessaryifyouwanttoinstallthetoolchaininsomeotherplace.Thetoolchaincanbeinstalledanywhereinthesystemaslongasthedirectoryhasthenecessarywritepermissions.
host$sudomkdir-p/opt
host$sudotar-xjfarm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2-C/opt
Note:
Pleasenotethat arm-2009q1-203-arm-none-linux-gnueabi.bin isanassumedinstallernamefromtheCodeSourceryif RecommendedPackages isselectedfromthelinkforthelinuxinstaller.Pleaseexecute arm-2009q1-203-arm-none-linux-gnueabi.bin toinstallthetoolchainto/opt/arm-2009q1directoryiflinuxinstallerisconsideredforthetoolchaininsteadofthetarball.
Thesecommandlinetoolsareavailableatnocost.CodeSourceryalsooffersmorefullyfeaturedtoolsforacost.TheSourceryG++Litepackageincludesallofthefollowingcomponents:
▪CodeSourceryDebugSpriteforARM
▪GNUBinaryUtilities(Binutils)
▪GNUCCompiler(GCC)
▪GNUCLibrary(GLIBC)
▪GNUC++Compiler(G++)
▪GNUC++RuntimeLibrary(Libstdc++)
▪GNUDebugServer(GDBServer)
▪GNUDebugger(GDB)
4.UnpackthePSPpre-compiledLinuxlibrariespackageasfollows.Itputsthelibraryheadersinlinuxlibs-####.##-armv5te/includedirectoryandpre-compiledlibrariesinlinuxlibs-####.##-armv5te/libdirectory.
host$tar-xzflinuxlibs-####.##-armv5te.tar.gz-C/home/
5.UnpacktheLinuxPSPsource.TheLinuxkernelcanbefoundin/home/
host$tar-xzflinux-davinci-staging.tar.gz-C/home/
6.InstalltheDVSDKsoftware:
host$chmoda+xdvsdk_#_##_##_##_Setup.bin
host$./dvsdk_#_##_##_##_Setup.bin
Note:
The$(DVSDK_INSTALL_DIR)variableintheinstallerpointstotheDVSDKinstalldirectory,e.g.,$(DVSDK_INSTALL_DIR)issetto /home/
7.Thecommandmentionedinstep6openstheinstallerwindow.Pleasechoosetheappropriateoptionsandentertherequiredpathstocompletetheinstallation.
8.YoucanchoosetoupdatethepathslaterbyeditingtheRules.makefilepresentin/home/
9.InstalltheCodecServercs#dm6467_#_##_##_##.bin,forDM6467fromthis link,wheretheDVSDKsoftwareisinstalled(/home/
)aspartofthenextstep
host$chmoda+xcs#dm6467_#_##_##_##_Setup.bin
host$./cs#dm6467_#_##_##_##_Setup.bin
Note:
Youcanuninstallthesecomponentsbyusingtherm-rfcommandonitsdirectory.Youshouldignoretheun-installfilescreatedbytheinstaller.
CreatingaTargetandHostSharedFileSystemandExportingIt
AlthoughtheEVMboard's(thatis,thetarget's)NANDflashcontainsafilesystem,duringdevelopmentitismoreconvenienttohavethetargetboardNFSmountafilesystemonahostLinuxworkstation.Onceyouhavetestedtheapplication,youcanstoreitontheboard'sflashforastandalonedemonstration.
BeforetheEVMcanmountasharedtargetfilesystem,youmustexportthattargetfilesystemonthehostLinuxworkstation.ThesharedfilesystemusesanNFS(NetworkFileSystem)server.Theexportedfilesystemwillcontainthetargetfilesystemandyourexecutables.
The InstallingaNFSServer pageprovidesinformationoninstallingNFSserverinaUbuntumachine.
BootingwithNFSasarootfilesystem
▪The"demo"filesystemforDM6467EVM(arago-demo-image-dm6467t-evm.tar.gz)shouldbeexportedfromtheNFSserveronyourhostLinuxworkstation.Additionallythereareapplicationsanddataforthetargetindvsdk_#_#_#_#_overlay_dm6467.tar.gz.Performthefollowingsteps(Youonlyneedtoperformthesestepsonce)
▪LoginwithauseraccountonthehostLinuxworkstation
▪PerformthefollowingcommandstopreparealocationfortheAragotargetfilesystem.Forexample:
host$cd/home/
host$mkdir-pworkdir/filesys
host$cdworkdir/filesys
▪SwitchusertorootonthehostLinuxworkstation
host$suroot
▪Performthefollowingcommandstocreateacopyofthetargetfilesystemwithpermissionssetforwritingtothesharedareaas
host$cp-a
host$tarxvfzarago-demo-image-dm6467t-evm.tar.gz
host$cp-a
host$tarxvfzdvsdk_VERSION_overlay_dm6467.tar.gz
host$chmod777-R/home/
▪Editthe/etc/exportsfileonthehostLinuxworkstation(nottheexportsfileonthetargetfilesystem).Addthefollowinglineforexportingthefilesysdirectory,substitutingyourusernamefor
/home/
NOTE:
Makesureyoudonotaddaspacebetweenthe*andthe(intheabovecommand.
▪Stillasroot,usethefollowingcommandstomaketheNFSserverawareofthechangetoitsconfigurationandtoinvokeanNFSrestart.
host$/usr/sbin/exportfs-av
host$/etc/init.d/nfs-kernel-serverrestart
NOTE:
Useexportfs-ravtore-exportalldirectories.Use/etc/init.d/nfs-kernel-serverstatustoverifythattheNFSstatusisrunning.
▪SetupthebootargsENVvariabletobootwithNFSfilesystem:
Pleasereferto SampleU-BootparametersrequiredfortheDVSDKdemo page.
SettingUptheBuild/DevelopmentEnvironment
Tosetupthedevelopmentandbuildenvironment,followthesesteps:
1.Logintoyour user account(andnotasroot)ontheNFShostsystem.
2.SetyourPATHenvironmentvariablesothatthetoolchainhosttoolsandcrosscompiler(arm-none-linux-gnueabi-gcc)canbefound.Todothis,youshouldopenyour.bashrcfileinatexteditorsuchasviorgeditandaddtheexportcommandlinetothefile,forexamplerunthecommandbelow:
host$gedit/home/
3.Next,addtheexportcommandbelowtothe.bashrcfile.Ifyouinstalledinalocationotherthan/opt/arm-2009q1/bin,useyourownlocationinthePATH.
exportPATH="/opt/arm-2009q1/bin:
$PATH"
4.Remembertousethefollowingcommandaftermodifyingyour.bashrcfile.Thesourcecommandessentiallyexecutesthe.bashrcscriptsuchthatthepathyoujustaddedtoitisplacedinyourcurrentenvironmentvariables:
host$source/.bashrc
5.IfyouwanttoverifyyournewPATHvariableyoucanruneitherofthecommandsbelow:
▪ThisprintsjustthePATHvariable:
host$echo$PATH
▪Thisprintsallofthesystem'scurrentenvironmentvariables:
host$printenv
BuildingtheDVSDKSoftwarefortheTarget
YoucanbuildboththeLinuxkernelandDVSDKfromdvsdk_#_##_##_##.Thefollowingstepsassumeyouhaveinstalledallcomponentsdescribedabovein/home/
YouneedtodofollowingonceinthehostmachinetobeabletobuildDVSDK
host$sudoapt-getinstalllibc6-dev
1.Changedirectoryto/home/
2.ThefollowingstepsarenotrequiredifDVSDKisinstalledthroughthelinuxinstaller.ThebelowstepscanbeusedtoverifytheenvironmentvariablessetintheRules.makefileinthedvsdk_#_##_##_##.directory.
host$geditRules.make
▪SetPLATFORMtomatchyourEVMboardasfollows:
PLATFORM=dm6467
Note:
validoptionsaredm365ordm355ordm6467
▪SetDVSDK_INSTALL_DIRtothetop-levelDVSDKinstallationdirectoryasfollows,notethatbydefault${HOME}referstoyour/home/
DVSDK_INSTALL_DIR=/home/
▪MakesureLINUXKERNEL_INSTALL_DIRisdefinedasfollowssoitpointstowhereyoucopiedthelinuxkerneltreeintheBuildingaNewLinuxKernel.
LINUXKERNEL_INSTALL_DIR=/home/
▪MakesureLINUXLIBS_INSTALL_DIRpointstotheextractedPSPpre-compiledLibraries.
LINUXLIBS_INSTALL_DIR=/home/
▪MakesureCSTOOL_DIRpointstotheCodeSourcerytoolsdirectoryasfollows:
CSTOOL_DIR=/opt/arm-2009q1
▪MakesureEXEC_DIRpointstotheoptdirectoryontheNFSexportedfilesystemasfollows:
EXEC_DIR=/home/
3.BuildingLinuxkernelimagerequires mkimage tobepresentinthesystem.T
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- DM6467T 开发 环境 安装
![提示](https://static.bdocx.com/images/bang_tan.gif)