大联大商贸有限公司LinuxSDKforAM335xVer1.1MileTang2012/5/21此文档用于帮助客户建立SitaraAM335xLinux开发环境,其他详细内容请参阅TI官方文档版本日期版本说明2012/2/28V1.0文档建立2012/5/21V1.1添加Mars_AM335xSD卡启动说明大联大商贸有限公司-2-目录版本..............................................................................................................................................-1-VMWarePlayer建立虚拟主机...................................................................................................-3-AM335xLinuxSDK安装...............................................................................................................-7-U-BootLinuxKernel编译.........................................................................................................-14-编译U-Boot.......................................................................................................................-14-编译LinuxKernel..............................................................................................................-14-SD启动卡制作.........................................................................................................................-15-Mars_AM335x启动..................................................................................................................-18-BeagleBone启动......................................................................................................................-20-LinuxKernel配置......................................................................................................................-26-大联大商贸有限公司-3-VMWarePlayer建立虚拟主机在安装虚拟机之前,请先至下载unbuntu镜象文件,推荐下载10.04desktop。启动VMWarePlayer点击File,在下拉菜单中选择CreateaNewVirtualMachine...选择Installerdiscimagefile,给出镜象文件所在路径,点击Next大联大商贸有限公司-4-输入名称,用户名以及密码,点击Next。输入虚拟机名称,选择创建位置,点击Next。大联大商贸有限公司-5-选择硬盘大小,推荐30GB以上,选择Splitvirtualdiskintomultiplefiles,点击Next.确认设置,然后点击Finish,开始Ubuntu安装。大联大商贸有限公司-6-安装完成后,退出该虚拟机,回到主菜单,选择EditVirtualmachinesettings如下图所示,Memory推荐设置为1GB以上,Processors可根据你机器的配置来设定,NetworkAdapter设置为Bridged重新启动Ubuntu大联大商贸有限公司-7-AM335xLinuxSDK安装将光盘中的/linux/SDK/ti-sdk-am335x-evm-05.03.02.00-Linux-x86-Install文件拷贝至用户主目录,打开终端,输入:$./ti-sdk-am335x-evm-05.03.02.00-Linux-x86-Install将会弹出如下界面,点击Yes:点击Next:大联大商贸有限公司-8-选择安装目录,推荐默认,点击Next:勾选ti-sdk-am335x-evm,CodeComposer之后再安装大联大商贸有限公司-9-完成安装后,将会在主目录下生成名为ti-sdk-am335x-evm-05.03.02.00目录。打开终端,输入:$cd~/ti-sdk-am335x-evm-05.03.02.00(注意事项)如果你的操作系统不是ubuntu10.04,那么请先打开/ti-sdk-am335x-evm-05.03.02.00/setup.sh文件,找到第14行,修改为以下内容:保存即可。操作系统为ubuntu10.04可忽略此注意事项。继续输入:$sudo./setup.sh将会出现以下安装步骤:安装所需工具包:--------------------------------------------------------------------------------ThisstepwillmakesureyouhavetheproperhostsupportpackagesInstalledusingthefollowingcommand:sudoapt-getinstallxinetdtftpdnfs-kernel-serverminicombuild-essentiallibncurses5-devuboot-mkimageautoconfautomakeNote!Thiscommandrequiresyoutohaveadministratorpriviliges(sudoaccess)onyourhost.PressreturntocontinueReadingpackagelists...DoneBuildingdependencytreeReadingstateinformation...Donexinetdisalreadythenewestversion.tftpdisalreadythenewestversion.nfs-kernel-serverisalreadythenewestversion.minicomisalreadythenewestversion.build-essentialisalreadythenewestversion.libncurses5-devisalreadythenewestversion.uboot-mkimageisalreadythenewestversion.autoconfisalreadythenewestversion.automakeisalreadythenewestversion.Thefollowingpackageswereautomaticallyinstalledandarenolongerrequired:linux-headers-2.6.32-21linux-headers-2.6.32-21-generic大联大商贸有限公司-10-Use'apt-getautoremove'toremovethem.0upgraded,0newlyinstalled,0toremoveand20notupgraded.Packageverificationandinstallationsuccessfullycompleted--------------------------------------------------------------------------------安装FileSystem--------------------------------------------------------------------------------Inwhichdirectorydoyouwanttoinstallthetargetfilesystem?(ifthisdirectorydoesnotexistitwillbecreated)[/home/user/ti-sdk-amxx-evm-x.x.x.x/targetNFS]----------------------------------------------------------------------------------------------------------------------------------------------------------------Thisstepwillextractthetargetfilesystemto/home/user/ti-sdk-amxx-evm-x.x.x.x/targetNFSNote!Thiscommandrequiresyoutohaveadministratorpriviliges(sudoaccess)onyourhost.Pressreturntocontinue/home/user/ti-sdk-amxx-evm-x.x.x.x/targetNFSalreadyexists(r)renameexistingfilesystem(o)overwriteexistingfilesystem(s)skipfilesystemextraction[r]Successfullyextractedtisdk-rootfs-amxx-evm.tar.gzto/home/user/ti-sdk-amxx-evm-x.x.x.x/targetNFS---------------------------------------------------------------------------------------------------------------------------------------------------------------ThisstepwillsetuptheSDKtoinstallbinariesinto:/home/user/ti-sdk-amxx-evm-x.x.x.x/targetNFS/bootThefileswillbeavailablefrom/bootonthetarget.ThissettingcanbechangedlaterbyeditingRules.makeandchangingtheEXEC_DIRvariable.PressreturntocontinueRules.makeeditedsuccessfully..--------------------------------------------------------------------------------如果遇到选项,按下回车选择默认