librae8226 发表于 2010-3-26 20:16:26

JLink v7 在 Linux(x86) 下的驱动方法(详细)

在网上找了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 Aug4 2009 12:13:06
Can not connect to J-Link via USB.
<<
This results from authority.
)
        $ sudo ./JLinkExe
********************************************************************************/
>>
$ sudo ./JLinkExe
SEGGER J-Link Commander V4.03a ('?' for help)
Compiled Aug4 2009 12:13:06
DLL version V4.03a, compiled Aug4 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!

liouravr 发表于 2010-3-26 22:59:42

bu不错的方法

sunge 发表于 2010-3-27 01:15:29

试试...

liouravr 发表于 2010-3-30 18:07:20

要顶起来
页: [1]
查看完整版本: JLink v7 在 Linux(x86) 下的驱动方法(详细)