- 7
- 0
- 约 14页
- 2016-12-22 发布于贵州
- 举报
硬件环境1AT91SAM9x5开发板2串口线3USB线软件环境1Linux开发环境2arm-2011.03-42-arm-none-eabi-交叉编译环境3SAM-BA v2.11编程工具4USB CDC驱动5sscom32.exe串口调试工具6AT91Bootstrap-5series_1.2.tar.bz2源码1 安装虚拟机虚拟机选择Ubuntu 11.10以上版本(升级比较方便)虚拟机的配置与升级apt-cache search package 搜索包apt-cache show package 获取包的相关信息,如说明、大小、版本等sudo apt-get install package 安装包sudo apt-get install package - - reinstall 重新安装包sudo apt-get -f install 修复安装-f = ——fix-missingsudo apt-get remove package 删除包sudo apt-get remove package - - purge 删除包,包括删除配置文件等sudo apt-get update 更新源sudo apt-get upgrade 更新已安装的包sudo apt-get dist-upgrade 升级系统sudo apt-get dselect-upgrade 使用 dselect 升级apt-cache depends package 了解使用依赖apt-cache rdepends package 是查看该包被哪些包依赖sudo apt-get build-dep package 安装相关的编译环境apt-get source package 下载该包的源代码sudo apt-get clean sudo apt-get autoclean 清理无用的包sudo apt-get check 检查是否有损坏的依赖2 Linux下安装交叉编译环境2.1安装步骤下载arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2命令行安装# tar xvzf arm-2011.03-42-arm-none-eabi-i686-pc-linux-gnu.tar.bz2# cd arm-2011.033 安装arm设备编程工具SAM Boot Assistant(SAM-BA)3.1 Windows下安装1)安装sam-ba_2.11.exe软件;2)安装USB CDC驱动;图 3.1图 3.2图 3.3图 3.4图 3.5图 3.7打开SAM-BA 2图 3.8图 3.93.2 Linux下安装1)解压sam-ba_2.11.tar.bz2;2)安装USB CDC驱动;1/ Login with administrator rights2/ Unload usbserial module if it is already running#rmmod usbserial3/ Load usbserial kernel module#modprobe usbserial vendor=0x03eb product=0x61244/ Verify that the USB connection is established#lsusb -d 03eb:6124Bus 004 Device 006: ID 03eb:6124 Atmel Corp5/ Know which USB connection is established#dmesgkernel: usb 4-2: new full speed USB device using uhci_hcd and address 5kernel: usb 4-2: configuration #1 chosen from 1 choicekernel: usbserial_generic 4-2:1.0: generic converter detectedkernel: usbserial_generic: probe of 4-2:1.0 failed with error -5kernel: usbserial_generic 4-2:1.1: generic converter detectedkernel: usb 4-2: generic converter now attached to ttyUSBx= you will have to use /dev/ttyUSBx to connect to your boardRunning SAM-BA CDC Serial version :Launch sam-ba_cdc_
原创力文档

文档评论(0)