|
在网上找了JLink v7 在 Linux 下的驱动,可我的就是怎么也装不上,最后发现了,是libusb版本的问题,因为我的是Fedora 12 x86 的,只需要下一个以前的老版本libusb即可。
1).Download jlink for linux beta from www.segger.com
2).Extract and move "45-jlink.rules" to /etc/udev/rules.d/.
3).Rename ($ mv JLink_Linux_090804 Jlink)
4).Modify some files
/********************************************************************************
$ rm libjlinkarm.so libjlinkarm.so.0
$ ln -s libjlinkarm.so.0.0 libjlinkarm.so.0
$ ln -s libjlinkarm.so.0 libjlinkarm.o
********************************************************************************/
Ps: If move those files to lib without midify, it would warn "file too short". 'Cause two of these three libs are link file ,and the link is broken. We should rebuid those links.
5).Move the libs to usr's lib
/********************************************************************************
$ mv libjlinkarm.so.0.0 /usr/lib64/
$ mv libjlinkarm.so.0 /usr/lib64/
$ mv libjlinkarm.so /usr/lib64/
********************************************************************************/
WHAT?? "wrong ELF class: ELFCLASS64"? Or some problem with libusb? Don't worry, 'cause our system is x86_64, we just need a libusb for i386. Get a "libusb-0.1.12-22.fc12.i686" from "http://rpmfind.net/" and install it.Go on!
6).Exce Jlink for linux
/********************************************************************************
$ ./JLinkExe
(
OH!!
>>
SEGGER J-Link Commander V4.03a ('?' for help)
Compiled Aug 4 2009 12:13:06
Can not connect to J-Link via USB.
<<
This results from authority.
)
$ sudo ./JLinkExe
********************************************************************************/
>>
[Librae@UNITED JLink]$ sudo ./JLinkExe
SEGGER J-Link Commander V4.03a ('?' for help)
Compiled Aug 4 2009 12:13:06
DLL version V4.03a, compiled Aug 4 2009 12:12:42
Firmware: J-Link ARM V7 compiled Jun 30 2009 11:05:27
Hardware: V7.00
S/N : 850959
Feature(s) : RDI, FlashBP, FlashDL, JFlash, GDBFull
VTarget = 0.000V
JTAG speed: 5 kHz
J-Link>
<<
All ok! |
阿莫论坛20周年了!感谢大家的支持与爱护!!
一只鸟敢站在脆弱的枝条上歇脚,它依仗的不是枝条不会断,而是自己有翅膀,会飞。
|