分类:
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
至此安装成功^_^。