Chinaunix首页 | 论坛 | 博客
  • 博客访问: 107357
  • 博文数量: 41
  • 博客积分: 2132
  • 博客等级: 大尉
  • 技术积分: 305
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-16 16:08
文章分类

全部博文(41)

文章存档

2012年(5)

2011年(3)

2010年(20)

2009年(13)

我的朋友

分类:

2009-09-25 19:57:11

今晚折腾了一晚上,终于把openocd0.2.0编译成功了。现在和大家分享,^_^。

1.下载FTD2232的驱动


2.安装FTD2232linux驱动库

nstallation:
1. unzip and untar the file given to a suitable directory
gunzip libftd2xx0.4.12.tar.gz
tar -xvf libftd2xx0.4.12.tar

2. As root user copy the following files to /usr/local/lib
cp libftd2xx.so.0.4.12 /usr/local/lib

3. Change directory to /usr/local/lib
cd /usr/local/lib

4. make symbolic links to these files using the following commands:
ln -s libftd2xx.so.0.4.12 libftd2xx.so

5. Change directory to /usr/lib
cd /usr/lib

6. make symbolic links to these files using the following commands:
ln -s /usr/local/lib/libftd2xx.so.0.4.12 libftd2xx.so

7. Add the following line to /etc/fstab:
none /proc/bus/usb usbdevfs defaults,devmode=0666 0 0
There have been reports that you may need to use the following command for some distros
none /proc/bus/usb usbdevfs defaults,mode=0666 0 0 (use usbfs in 2.6 kernels)

8. Remount all in the fstab file
mount -a

If you have problems with this check with usbview (search on the internet for application
or it can be sent to you by ftdi) to check the usb file system is mounted properly.

Other problems will be related to the ftdi_sio driver loading -
1.you must unload this driver (and usbserial) if it is attached to your device ("rmmod ftdi_sio" and "rmmod usbserial"as root user).
2.Your PID/VID has not been included in the distribution.A PID of 0x6006 and VID of
0x0403 should work as a temporary workaround.

重启系统

3.配置OPENOCD

 ./configure --enable-ft2232_ftd2xx
make

sudo make install

至此安装成功^_^。

阅读(1435) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~